Questions tagged [tex]

TeX is a typesetting system, where the output is defined by command-sequences. Note that https://tex.stackexchange.com is specifically dedicated to TeX questions.

TeX is a typesetting system, where the output is defined by command sequences. It was designed and mostly written by Donald Knuth. TeX was designed with two main goals in mind: to allow anyone to produce high-quality books using minimal effort, and to provide a system that would give exactly the same results on all computers, at any point in time.

There is a Stack Exchange site dedicated to TeX, which is a good place to ask any TeX-related questions.

Resources:

872 questions
19
votes
5 answers

Is there a TeX API for C++?

I want to preview TeX formulas in my User Interface. After a long time searching, it seems to me that there is no other possibility than write the formula into a .tex file call tex with system() and write a dvi file call e.g. dvipng with system()…
nobbi
  • 191
  • 1
  • 4
19
votes
6 answers

how to insert pipe symbol in TeX?

How to insert pipe symbol | in TeX (LaTeX)?
avsej
  • 3,822
  • 4
  • 26
  • 31
19
votes
3 answers

How to put a newline into a column header in an xtable in R

I have a dataframe that I am putting into a sweave document using xtable, however one of my column names is quite long, and I would like to break it over two lines to save space calqc_table<-structure(list(RUNID = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,…
PaulHurleyuk
  • 8,009
  • 15
  • 54
  • 78
18
votes
2 answers

LaTeX: Multiple authors in a two-column article

I'm kind of new to LaTeX and I am having a bit of a problem.. I am using a twocolumn layout for my article. There are four authors involved with different affiliations, and I am trying to list all of them under the title so they span the entire…
Amro
  • 123,847
  • 25
  • 243
  • 454
18
votes
2 answers

Best method of including an abstract in a latex 'book'?

I've been looking for the answer to this question for a while now but can't seem to find it, so I'm hoping someone on here can help me. I'm writing up a thesis in Latex, and really like the \frontmatter, \mainmatter and \backmatter ability when…
olan
  • 3,568
  • 5
  • 24
  • 30
17
votes
5 answers

Source code of books made with TeX/LaTeX to learn

Some time ago, reading this entry I found a nice image and a pointer to a better book entitled "Thinking Forth". To my surprise, the LaTeX sources of the book were ready to download, with pearls like: %% There's no bold typewriter in Computer…
Diego Sevilla
  • 28,636
  • 4
  • 59
  • 87
17
votes
2 answers

Trouble using Vim's syn-include and syn-region to embed syntax highlighting

I am trying to get Vim to syntax highlight any file that ends with extension .Rtex in the following way: All top level text is highlighted as TeX Exception: any text enclosed in \begin{python}...\end{python} is highlighted as Python I am able to…
Maxy-B
  • 2,772
  • 1
  • 25
  • 33
17
votes
1 answer

Spell check for latex file in Atom

I am trying to add .tex file in the Setting->Grammar of atom/spell-check so that it will check spellings in my document because .tex file is going to be a PDF document, but its not working.
Arpit
  • 991
  • 14
  • 17
17
votes
4 answers

LaTeX renderer for .NET?

I'm curious as to whether a native .NET renderer for TeX/LaTeX exists. The closest match I have been able to find is a Java implementation, JMathTeX. I am tempted to port this to C#, but before I do so, I would simply like to check whether anyone is…
Noldorin
  • 144,213
  • 56
  • 264
  • 302
16
votes
2 answers

How to I get scons to invoke an external script?

I'm trying to use scons to build a latex document. In particular, I want to get scons to invoke a python program that generates a file containing a table that is \input{} into the main document. I've looked over the scons documentation but it is not…
saffsd
  • 23,742
  • 18
  • 63
  • 67
16
votes
1 answer

Rmarkdown Retain .tex file

In R, when compiling a markdown document using rmarkdown::render(...), how can I retain the intermediate .tex file that is produced from knitting. I have tried setting the clean=FALSE argument, but this retains the figures, not the final tex file or…
Nicholas Hamilton
  • 10,044
  • 6
  • 57
  • 88
16
votes
2 answers

TeX on iPad compatible with Apple's policy?

As a nerd, I think it would be nice to have a TeX editor on the iPad. But TeX is a Turing-complete language, and it is arguably a general-purpose compiler/interpreter. Does that make it unacceptable to the App Store? Furthermore, if somebody ports…
Yuji
  • 34,103
  • 3
  • 70
  • 88
16
votes
4 answers

How do you make parentheses match height when they're split between lines in LaTeX math?

Consider the following example \begin{equation} \begin{split} f = & \left( \frac{a}{b} + \right. \\ & \left. c \right) + d \end{split} \end{equation} In the result, the left parenthesis on the first line is very…
cheshirekow
  • 4,797
  • 6
  • 43
  • 47
16
votes
1 answer

How to write below/above the text in LaTeX?

I want to have text above text (not superscript - x^2) but a \overbrace and text above it. (same for below the text) thanks
Guy
  • 14,178
  • 27
  • 67
  • 88
15
votes
3 answers
1 2
3
58 59