# All Questions

190 views

### Need macro to ignore specific even-numbered inputs

My document consists (among other things) of blocks that look like this: \begin{Solution}{6.7.8,1.2.3} ... \end{Solution} or \begin{Solution}{,1.2.3} ... \end{Solution} I would like to define ...
9k views

### What is a simple example of something you can do with LuaTeX?

I've heard that with LuaTeX, you can embed Lua code in your document that work directly with TeX internals, making it possible to do several things that are hard to do with macros. What is a good ...
3k views

### Which manuals are on your “TeX Reference” shelf?

This is a community wiki since there is no "one true answer"- if you find an answer that contains a lot of your choices, but is missing something you feel is incredibly useful. Feel free to add it. ...
14k views

### Tools for automating document compilation

A lot of people write makefiles that say something like paper.pdf: paper.tex pdflatex paper bibtex paper pdflatex paper pdflatex paper To handle re-running TeX to ...
23k views

### Where can I find computer modern fonts for use in other programs, e.g. Adobe Illustrator?

For some complicated diagrams, I need to use something like Adobe Illustrator or Inkscape, and would like to include nicely typeset labels. (I'm aware of post-processing solutions, such as pinlabel.) ...
5k views

### What is the best way to learn TeX?

As opposed to LaTeX, which is addressed in another question. Most of the references I've seen get too complex too quickly. I'm looking for something that gives me a top-down view of the language - ...
6k views

### How can I convert math-less latex documents into Microsoft Word?

Like most people here, my resume/CV is in LaTeX, but there are always these annoying companies (or more often, recruiters) who will only look at resumes in Microsoft Word format. How can I translate ...
23k views

### What is the difference between TeX and LaTeX?

I know LaTeX and I've heard that LaTeX is a set of macros in TeX. But what does it exactly mean?
2k views

### How can I specify a long list of math operators?

The preambles of my LaTeX documents often include many many lines of \DeclareMathOperator instructions, e.g. \DeclareMathOperator{\Rep}{Rep} \DeclareMathOperator{\Tet}{Tet} ...
895 views

### When does it make sense to use TeX only and skip LaTeX?

In what applications doesn't LaTeX give you much?
8k views

### How do I use an OpenType font with my LaTeX document?

I want to use a really cool open-source OpenType font with my LaTeX document. I was told that either I could go through a long process of converting the OpenType font to one useable by LaTeX, or I ...
12k views

### How can I speed up LaTeX compilation?

The slowest part is a dozen of diagrams in TikZ.
8k views

### Is there an easy way to have my whole document with a space between paragraphs rather than indentation?

I would like to have my whole document showing a blank line (or space) between paragraphs and no indentation. I know how to do it line by line, but is there a way to change that with just one or a few ...
9k views

### How do I label different rows or columns of a matrix using braces?

I have a matrix enclosed in brackets [ ] (or (), or {}, or |'s, or ||'s): - a b c d - | e f g h | | i j k l | - m n o p - which I want to label like so: R |---| -- - a b c d ...
45k views

### Differences between LuaTeX, ConTeXt and XeTeX

I’m interested in the differences and commonalities between the “new” (La)TeX processors: LuaTeX, XeTeX, and ConTeXt. Personally, I’ve only used XeTeX so far and without having the time to try out ...
31k views

### What does “overfull hbox” mean?

I often see output from TeX with the warning overfull hbox, badness 10000. What does this message mean?
2k views

### How can I prevent page break between lines of a paragraph or bibliography entry?

My university's thesis guidelines require that each bibliographic entry appear in whole on a single page, rather than being split across two. How can I prevent (La)TeX breaking a paragraph across a ...
4k views

### Is there a template available that allows easy publishing of poem book?

I would like to layout a professionally designed book containing poems. What template should I use?
20k views

### Spell checking LaTeX documents

What's the best strategy for spell checking LaTeX documents?
46k views

### How to look up a symbol or identify a math symbol or character?

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?
6k views

### What is the best way to make the transition from Microsoft Word to LaTeX?

My experience at the present moment is restricted to Microsoft Word and is likely to remain for most of my collaborative work. However, for my individual authored documents I would like to use LaTeX. ...
45k views

### What are good learning resources for a LaTeX beginner?

Which book (free or otherwise) was the most useful to you when you started learning LaTeX? I am frequently asked this question by friends who want to learn LaTeX, and I recommend the book which got ...
2k views

I copied a beamer presentation and made new slides, but when I compile it the table of contents is missing. I tried copying and pasting the old presentation into mine and it is still missing the ...
689 views

### Label in caption

For certain styles it appears that the \label statement must be included in \caption to preserve good referencing. Why is that?
47k views

### Compiling documents online

I have heard rumors that you can compile documents online, and more specifically that Google has a free online compiler, but I have never been able to find any. Is there a way to compile documents ...
507 views

Possible Duplicate: ToC numbering problem My LaTeX document is acting strangely. Here is a simplified version of it: \documentclass{article} \begin{document} \tableofcontents \newpage ...
2k views

### Automatically define macros in LyX documents

I'm using LyX all the time and over the last 2 years I've accumulated some very handy macros for my lecture notes. As it is today, every time I start a new document, I copy and paste the macros from ...
2k views

### How do I set the minimum width of a subfigure?

I have: \subfigure[blah blah blah.] { \begin{tikzpicture}[/MyStyle] ... some stuff... \end{tikzpicture} } But "some stuff" is not that wide and the text in the subfigure produces a lot of ...
17k views

### How can I use \linebreak inside a node, in tikz? [duplicate]

This is my code, which doesn't work: \documentclass{article} \usepackage{tikz} \begin{document} \tikz \node {start\linebreak{}stop}; \end{document} The \linebreak command doesn't work. In order to ...
1k views

### Solution of problems in the end of a book [duplicate]

Possible Duplicate: How can I produce exercises in one part of a LaTeX document with selected answers in another? I'm writing a book and want to add some math problems and solutions to this ...
2k views

### Why \linebreak doesn't work when text width is not set? [duplicate]

This is the code I have: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \tikz \node[rectangle split, rectangle split parts=2] ...
696 views

### How to remove entry “Listings” from table of content (toc)

How can I use \lstlistoflistings to create a list of listings, but not have this list as an entry in the table of content? Normally, a star helps to hide things like that and I use memoir as document ...
9k views

### How to insert 4 digit year that shows up in \today?

Using the LaTeX command \today, I can insert the current date. Is there any way to insert the current year with a simple command? All I want is the simple 4 digit year that shows up in \today.
57k views

### Have new line between paragraphs, no indentation [duplicate]

Possible Duplicate: Is there an easy way to have my whole document with a space between paragraphs rather than indentation? I am sure that this must be a dup, but I can't find the right ...
30k views

### Listings caption [duplicate]

I'm using the listings package with this \begin command: \begin{lstlisting}[caption=blabla, label=amb] This yields a nice code listing with a caption like "Listing 1.1 blabla". Is there a way to ...
61k views

### Insert date set with \date command

I searched all morning to do this. I want to insert in my custom title page the date, author, title set with the following commands \date{The date} \author{Me \and Other} \title{the document title} ...
7k views

### Can pdflatex (or any tex package) automatically rescale included images which have been reduced in size?

I'm writing my thesis in LaTeX, generating it with pdflatex. I have a large number of figures, many of which are bitmaps (as opposed to SVG) in PNG/JPEG format. I've generally created them to be ...
76k views

### \vspace vs. \vskip

What is the difference between \vspace{-1em} and \vskip -1em, for example? I guess the first is LaTeX, and the latter is TeX. When is the proper time to use one and not the other, and why?
18k views

### Specifying a no-indent for a list

I have the following: This is just normal text... \begin{enumerate} \item First Item ?\\\\ This is the text of the first item \item Second Item ?\\\\ This is the text of the second item ...
55k views

### What is the difference between “Page Break” and “New Page”? [duplicate]

Possible Duplicate: \pagebreak vs \newpage In LyX/LaTeX, What is the difference between "Page Break" and "New Page"? They both seem to do the same to me.
16k views

### Verbatim environment that can break too long lines?

I want to generate a PDF of user-submitted text using LaTeX. To handle crazy user input, I first thought about using the verbatim package, but of course it doesn't break up too long lines. Is there ...
4k views

### tabularx inside a \newenvironment

There's something wrong with this code: \newenvironment{Tbl} {\begin{tabularx}{\textwidth}{|l|X|} \hline} {\end{tabularx}} but this is fine: \newenvironment{Tbl} {\begin{tabular}{|l|l|} \hline} ...
21k views

### page number position

I am working on a long document in LaTeX with documentclass book. I need the page number to always be in the upper right corner of each page, even if that page is the first page of a chapter (right ...
3k views

### Aligning matrix nodes in tikz

Another question about aligning nodes using matrices in tikz. Consider the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix ...
3k views

### LaTeX document error: too many }'s [closed]

I have a latex document, which works fine but when ever I try to add in an image with a figure caption it gives me an error saying there are to many }'s. \begin{figure}[h!] \caption{A picture of a ...
3k views

### backslashbox is too wide

I feel the first column in my longtable is too wide. Please see the figure below My code is: \begin{center} \begin{longtable}{|c|c|c|c|c|c|} \caption{Error rates for SVM and 100 random counts. ...
2k views

### How can I save shell output to a variable in LaTeX? [duplicate]

I need to be able to execute a shell command through LaTeX [*] and have the resulting output available for use later on in the form of a LaTeX 'variable' (e.g., via a subsequent \newcommand command). ...
4k views

### Defining a command for amsmath's align environment
