Questions tagged [latex]

LaTeX is a programming language used primarily for creating high quality academic written documents, slideshows and posters. LaTeX questions are often a better fit for the sister site "TeX - LaTeX" (https://tex.stackexchange.com). This includes questions on tools and other languages producing LaTeX code. The JavaScript libraries MathJax and KaTeX are off-topic on "TeX - LaTeX" and should be asked on Stack Overflow instead (and tagged accordingly).

LaTeX is a macro package implemented on Donald Knuth's TeX programming language and is used primarily for creating high quality written documents. The underlying TeX system is Turing complete and LaTeX inherits this property, making it possible (but rarely advisable) to perform arbitrary computations in LaTeX; more interestingly it makes it possible to get any layout scheme you can describe precisely.

Which site to use for LaTeX questions?

As LaTeX is primarily used for simply writing documents many people characterize it as a "markup language" (like HTML) and site selection criteria have been discussed several times. See:

The Stack Exchange site dedicated to LaTeX is tex.stackexchange.com, which is probably a better place to ask any LaTeX-related questions than here on Stack Overflow. The other site also covers TeX and other related technologies.

Other resources

11140 questions
6
votes
1 answer

How do I make multi-page landscape tables in LaTeX

The title is pretty much the extent of my question. I am trying to insert a large table into a document using the xtabular environment. If I wrap the xtabular environment in a landscape environment, then the bottom of my table gets chopped off. …
Tim
  • 361
  • 1
  • 5
  • 14
6
votes
1 answer

Texmaker. Is it possible to compile not focused file?

Does anybody know if it is possible to compile the file that is not being focused in texmaker? I have a report separated into many .tex files and everyone of them included in Main.tex. In order to compile the report, I need to focus Main.tex file…
mendus
  • 75
  • 6
6
votes
5 answers

How can I write special characters in RMarkdown latex documents?

I am trying ot write a paper in RMarkdown pdf. But I dont know how to use special characters like "İ, ı, ğ, ü, ö". Those characters are present in Turkish. I can easily use them in Latex using e.g. \u{g} – ğ, \c{c} – ç, \”{u} – ü, {\i} – ı, etc.…
ilker_arslan
  • 637
  • 3
  • 7
  • 17
6
votes
3 answers

Vim script to compile TeX source and launch PDF only if no errors

I am switching to using Vim for for my LaTeX editing environment. I would like to be able to tex the source file from within Vim, and launch an external viewing if the compile was successful. I know about the Vim-Latex suite, but, if possible, would…
Jeet
  • 38,594
  • 7
  • 49
  • 56
6
votes
2 answers

braces for Math in LaTeX

Is there any convenient way to type in braces in Math in Latex? Especially when I have already typed in a lot of "(" and ")" instead of "\left(" and "\right)", how can I do a quick replacement? similarly for "{" and "}" and "[" and "]"? Is it…
Tim
  • 1
  • 141
  • 372
  • 590
6
votes
3 answers

Is there a programmatic way to transform a sequence of image files into a PDF?

I have a sequence of JPG images. Each of the scans is already cropped to the exact size of one page. They are sequential pages of a valuable and out of print book. The publishing application requires that these pages be submitted as a single PDF…
Salim Fadhley
  • 22,020
  • 23
  • 75
  • 102
6
votes
1 answer

Centering display equations with org-latex-preview?

For some reason, org-mode is left-aligning my display equations when I run org-latex-preview (C-c C-x C-l). But the margin between each equation and its equation number is calculated, as if the equation was centered, which ruins the alignment…
Adam
  • 2,137
  • 16
  • 29
6
votes
2 answers

Pandoc adds extra paragraph breaks

I use pandoc to convert Markdown to Latex. My problem is that pandoc adds extra paragraph breaks around begin/end environments. Source: **First** phrase in a paragraph. \begin{multline*} some long formulae \end{multline*} Second phrase in a…
Artem Pelenitsyn
  • 2,508
  • 22
  • 38
6
votes
2 answers

No norwegian characters in LaTeX

I have translated a document from English to Norwegian in the LaTeX format, and while using norwegian special characters, I get an error using \usepackage[utf8x]{inputenc} to try and display the norwegian (scandinavian) special characters in…
implmentor
  • 1,386
  • 4
  • 21
  • 32
6
votes
1 answer

Math Latex macros to make substitutions in reStructuredText and Sphinx

Using Sphinx and reStructuredText, would it be possible to define math macros to make substitutions in a math Latex formula? Basically, I would like to have something like .. |bnabla| replace:: :math:`\boldsymbol{\nabla}` .. |vv| replace::…
paugier
  • 1,838
  • 2
  • 20
  • 39
6
votes
3 answers

How can I write a degree symbol in RMarkdown 2?

I'm writing some code with descriptions using Rmarkdown 2 and knit PDF. I've been trying many method to write a degree symbol inline: Latex package: siunitx's \ang Latex package: textcomp's \textdegree Latex: \circ And many possible RMarkdown…
Jot eN
  • 6,120
  • 4
  • 40
  • 59
6
votes
1 answer

Latex, "No counter 'counterName' defined" error, using \include

I get the following error: ! LaTeX Error: No counter 'exCoutner' defined. when I try to compile this…
R2B2
  • 1,541
  • 1
  • 12
  • 19
6
votes
2 answers

How do I enter angle brackets in bibtex?

I want to put a title field in a bibtex citation that includes angle brackets: @article{ title= { } } but when it compiles I get upside down '!' and '?' instead. How to escape the angle bracket?
timdisney
  • 5,287
  • 9
  • 35
  • 31
6
votes
3 answers

LaTeX "\indent" creating paragraph indentation / tabbing package requirement?

The LaTeX code provided below shows the usage of the command \indent as it appears in the document, but it does not produce the desired indentation within the document. Is there a specific package associated with the command \indent or \=? I´m…
Paresh471
  • 141
  • 1
  • 2
  • 8
6
votes
1 answer

Creating a multi-level enumerated list in Pandoc Markdown

I am writing a document in Markdown. I use Pandoc 1.12.2.1 to convert *.md to *.pdf (via xelatex). I am trying to make an enumerated list of the following type: 1. Item 1 1.1. Sub-item 1 1.2. Sub-item 2 2. Item 2 2.1. Sub-item 1 2.2. Sub-item…
Tom
  • 223
  • 2
  • 9