Most Popular

1500 questions
111
votes
3 answers

How to include LaTeX package in R Markdown?

I am writing a report with Rmd in RStudio via knitr package. I want to write a indicator variable symbol in the report, like How do you get \mathbb{1} to work (characteristic function of a set)?. The line \usepackage{bbm} should be included…
Stella Hu
  • 1,210
  • 2
  • 9
  • 5
111
votes
7 answers

LaTeX document to epub or mobi ebook formats (with mathematical formulas)

Recently I purchased an ebook reader (Kindle), and I want to export some of my document in LaTeX to an ebook format. I tried exporting from LaTeX to PDF, but isn't perfect because I have to zoom in-out and move around the page many times (isn't…
diegocaro
  • 1,213
111
votes
12 answers

LaTeX packages for use with revision control

I use revision control (Subversion, to be exact) to keep track of the edits to my LaTeX documents. Is there a LaTeX package that interfaces with revision control? Specifically, it would be nice to see the revision number and time and date inside the…
PersonX
  • 2,185
  • 3
  • 20
  • 23
111
votes
4 answers

Writing mod in congruence problems without leading space

I have been writing $a \equiv r (\mod n)$ but this puts a space between the ( and mod. For example, r ( mod n ) instead of r (mod n). So, how do you write r (\mod n) without that space? What would be the correct way to write $a \equiv r (\mod…
T. Webster
  • 1,281
110
votes
1 answer

How can I write tilde ~ in math mode?

Possible Duplicate: How to look up a symbol? How does one insert a backslash or a tilde into LaTeX? ~ makes symbols after them 'phantoms'. I want just to write '~' in math mode and \~ doesn't work. How can I solve this problem? (I want to write…
110
votes
4 answers

What is the difference between \over and \frac?

What is the difference between {some-expression}\over{another-expression} and \frac{some-expression}{another-expression} ? Which is preferable?
lily
  • 1,227
110
votes
4 answers

Handling of wrapfig pictures in LaTeX

Is there a way to avoid having a picture that trails off the end of a page, as in this example? This is how I wrap the picture: \begin{wrapfigure}{r}{0.5\textwidth} \vspace{-20pt} \begin{center} …
mortenstarck
  • 2,027
110
votes
3 answers

How to insert vertical space between paragraphs

Possible Duplicate: Is there an easy way to have my whole document with a space between paragraphs rather than indentation? Googling didn't give required results. (Many, but not applicable or code doesn't work) Essentially, what I want to do is…
Aubergine
  • 1,609
110
votes
5 answers

Is there a BNF grammar of the TeX language?

I'm looking for a BNF grammar of the TeX language, does it exist? EDIT For those of us who are not computer scientists, a BNF grammar is one kind of formal description of a CFG: Backus Naur Form. For those who don't know their Chomsky, a CFG is a…
rystsov
  • 1,203
110
votes
5 answers

Non italic text in theorems, definitions, examples

What package should I use, or what setting can I make to the font in theorems so that the text wouldn't be italic. I use amsmath, and from default, everything I write in theorem environments becomes italic and I don't want that. Thank you
Beni Bogosel
  • 1,688
110
votes
2 answers

My table doesn't fit; what are my options?

I have a table that I want to insert on a page, but at least one (perhaps both) of the following conditions are met: The table is too wide to fit within the text block or page. That is, I'm exceeding some horizontal restriction. The table is too…
Werner
  • 603,163
110
votes
5 answers

Adding a signature on an online job application

Nowadays many job applications are sent in digital form as PDF. We use of course LaTeX to create such. Usually you add a cover letter to your CV and credentials. If you sent this as print-out by classic mail you sign this letter (at least in…
Martin Scharrer
  • 262,582
110
votes
4 answers

What is the proper use of \@ (i.e., backslash-at)?

In this answer, \@ is used after a period and before an \xspace, presumably to indicate that the preceding period (in "etc.") was not sentence-final. In these tips, \@ is used before a period and after capital letters, to indicate that the preceding…
Ben Lerner
  • 7,082
110
votes
7 answers

Date format: YYYY-MM-DD

Currently I put the date in my document using: \date{\today} How do I display the date in the YYYY-MM-DD format?
Vincent
  • 5,257
110
votes
6 answers

Bold italic vectors

I am trying to display vectors as bold and italic. The command \mathbf sets the letters non-italic. I also googled a bit and stumbled upon \mathbf{\em y} or \mathbfit{y}, which all didn't work. I hope someone can help me on this.