# All Questions

77k views

### How to create posters using LaTeX

I want to create posters for my poster presentation on a conference. What tools or LaTeX classes are available for preparing posters ?
570k views

### How does one insert a backslash or a tilde (~) into LaTeX?

How does one insert a "\" (backslash) into the text of a LaTeX document? And how does one insert a "~" (tilde)? (If you insert \~, it will give you a tilde as an accent over the following letter.) ...
218k views

### How can I get bold math symbols?

To make Latin-letter variables bold I can use e.g. \mathbf{a}, but while putting Greek letters or symbols such as \nabla inside \mathbf doesn't cause any errors or warnings, it also doesn't do ...
19k views

### When to use \par and when \\

What is the difference between \par and \\ and when should I use \par instead of \\?
4k views

### How to keep a constant baselineskip when using minipages (or \parboxes)?

When a minipage is used to box a text paragraph, the first line of the minipaged text and the last line of the previous text paragraph are closer than two consecutive lines in a standard text ...
5k views

### Difference between administrative and user mode of MiKTeX

For a lot of questions here on TeX.SE and on other fora regarding MiKTeX, it turns out that the underlying problem actually lies in the not understood distinction between administrative and user ...
842 views

### How to customize my titlepage?

I'm searching for a flyleaf code. I mean a "cover sheet" or a "first page" in this style which I could insert into my classicthesis doctoral thesis. I'm writing my thesis with Classicthesis. This is a ...
234k views

### What commands are there for horizontal spacing?

I know that \: in LaTeX produces a space when rendered. Are there any alternatives, because my LaTeX renderer doesn't support \: (it renders it as text), and there is no help / FAQ that I can find.
5k views

### How to split bibliography into “works cited” and “works not cited”?

I need two bib-like sections: a "References" giving works explicitly cited in my text, and a "Bibliography" (or "Further reading" if you prefer) giving everything from my bibfile that didn't already ...
17k views

### When not to use \ensuremath for math macro?

I have gotten into the habit of using \ensuremath around math components in every macro that I define, so that I can use the same macro inside and outside of math mode. But egreg's comments in ...
3k views

### What is the meaning of double pound symbol (number sign, hash character) ##1 in an argument?

I've seen sometimes that people use a double pound sign (##) when defining/using arguments. What is the difference between the normal argument, #1, and the double sign one, ##1? Are there any ...
49k views

### Good way to make \textcircled numbers?

I'm trying to make some good-looking numbers in a circle, using the simple command: \textcircled{1} However, the circle is misaligned vertically with the number, and look a bit sloppy: Any ...
80k views

### How to convert PDF to (La)TeX?

I know that hardly any information is passed to the PDF when a .tex file is compiled. But is there a tool that can convert a PDF document back to (La)TeX?
43k views

### Forcing linebreaks in \url

I wish to typeset some relatively long URLs in a piece of text, and when I use \url{..}, the resulting text does not respect the margin boundaries that govern the main text body, instead going all the ...
8k views

### Extract x, y coordinate of an arbitrary point in TikZ

I need a macro to extract the x and y coordinates from an arbitrary point, like (3,4), or like (A), or like ([xshift=-2pt] A.north west), where A is the name of a node. I've seen the solution ...
2k views

### Print programs with its proper syntax

I have defined my own language whose syntax is very close to the one of Pascal. I would like to type the following program for instance. Many people use the packages algorithmicx or algorithm2e to ...
54k views

### LaTeX conditional expression

I would like to be able to set a flag at the beginning of the main flag (say output) that tells if I want to produce a paper document or an electronic document. Then I should check this flag to ...
141k views

### Commenting out large sections

So to "comment out" a line, I need to insert a % at the beginning of the line (so that line will not be compiled). Is there way to comment out a large section without having to manually putting a % ...
116k views

### Underscores in words (text)

How can I produce the text Word_one_two in LaTeX? I tried: Samp\_Dist\_Corr But, it doesn't quite look right. Also, I want it in the typewriter font, so actually, I'm doing: ...
22k views

### TikZ: How to draw an arrow in the middle of the line?

Like this: .------<------. | | v ^ | | '------>------' I am currently using \begin{scope}[very thick,->] \draw (-4,1)--(-4,0)--(0.1,0); \draw ...
35k views

### Two figures side by side

How can I put two figures side-by-side? Not two sub-figures, but two actual figures with separate "Fig.: bla bla" captions. A figure is supposed to spread over the entire text width, but I have two ...
5k views

### Cunning (La)TeX tricks

Writing (La)TeX code sometimes requires a degree of guile. Here (in no particular order) are two of my favourite examples. Macros ending with spaces Pete asked how to see the implementation of ...
6k views

### How to include a picture over two pages, left part on left side, right on right (for books)?

When writing a long book (from 300 to over a 1000 pages), there is often need to include large pictures and one wishes to have them displayed over two pages, left half on the left page, right half on ...
29k views

### What graphics packages are there for creating graphics in LaTeX documents?

What packages do you use and recommend for creating graphics in your LaTeX documents? As this is a community wiki post, please add your package to the accepted answer (or add a comment, and ...
36k views

### What is the difference between \def and \newcommand?

Inspired by a question about \let and \def, I have some that essentially all boil down to asking What are the differences between \def and \newcommand? In particular, I wonder Is it possible to ...
876 views

### What are the ways to position things absolutely on the page?

I know that there is tikz, but also eso-pic and textpos. I'd like to see a list of possible ways (not necessarily packages) for absolute positioning of things (which I believe amounts to "boxes") on ...
8k views

### Defining commands/abbreviations that contain numbers

116k views

### How to include SVG diagrams in LaTeX?

I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to ...
26k views

### Compile a LaTeX document into a PNG image that's as short as possible

I need to convert my LaTeX documents into PNG. The problem is, I also need the resulting image to be as short as possible (height-wise). I've tried latex followed by dvipng, but the result is always ...
22k views

### How to make the PDFs produced by pdflatex smaller?

I feel that the PDFs produced by pdflatex are too huge. So for example my 50 page book with no illustrations is 500KB. I feel it should be more like 50K or even less. The .tex files together are just ...
11k views

### How to write (La)TeX (with parentheses) [or any other TeX-related logo]

I'm looking after a macro to write the (La)TeX logo (with parentheses), i.e. something similar to \TeX, \LaTeX, but where the output includes ()'s.
5k views

### How to define a figure size so that it consumes the rest of a page?

Sometimes I don't need to have a specific picture size, but for layout reasons I would like to scale the image so that the rest of the page is filled. How can I achieve that?
8k views

### PSTricks error “Undefined control sequence <recently read> \c@lor@to@ps”

I have a problem with this file tex: \begin{document} \begin{figure} \begin{center} \begin{pspicture}(0,0)(1,3.8) \psline{-<}(0,0)(0,.2) \psline{-}(0,.2)(0,.4) \psline{*->}(0,.4)(0,.9) ...
133k views

### What point (pt) font size are \Large etc.?

In the preamble I have: \documentclass[a4paper,11pt]{article} \usepackage{fontspec} \setmainfont{Arial} What can be inferred about the real font pt size for the following? \tiny, \scriptsize, ...
32k views

### Style/class tutorials

What are some good tutorials on writing custom styles (classes) that clearly explain commands used and some of the features that TeX has to offer in the way of styles?
13k views

63k views

### Why can't pdflatex print EPS figures?

The images in my paper are in EPS format. If I execute pdflatex to get a PDF version of my paper, the figures won't appear. I have to typeset using the latex command, and then convert the DVI file to ...
8k views

### Unbreakable block

I want to do something like the following in TeX: \begin{nobreak} Text here will not split over pages, it will remain as one continuous chunk. If there isn't enough room for it on the current page ...
5k views

### How can I invert a 'clip' selection within TikZ?

I wish to draw an arc for a reflex angle on the outside of a triangle with coordinates (A), (B) and (C). If I wanted to draw the arc inside the triangle I could use something like \begin{scope} ...
8k views

### Cross-reference packages: which to use, which conflict?

Inspired by my earlier question Theorem packages: which to use, which conflict?, here is another similar question. There are many different packages for making cross references. Among them hyperref, ...
16k views

### What GUI applications are there to assist in generating graphics for TeX?

I found GeoGebra to be a useful tool to help generate code for graphs. I suppose there must be other tools to help draw diagrams such as Sets/Venn Diagrams or Electrical Circuits (Logic Gates). Which ...
4k views

### Workflow for managing references?

What is your workflow for managing references? How does this workflow scale? Do you use programs like zotero, mendeley, jabref? What are their pros and cons? Does it allow easy integration of ...
9k views

### Different command definitions with and without optional argument

I want to define a command that expands to two completely different things depending on whether I supply, or not, an optional argument. For example, \mycmd{normal} -> something(normal) ...
7k views

### Vertical and horizontal lines in pgf-tikz

It is easy to produce a path between two nodes consisting of a single horizontal and a single vertical line (from the manual): \begin{tikzpicture} \draw (0,0) node(a) [draw] {A} (1,1) node(b) ...
24k views

### Cyrillic in (La)TeX

What are different ways to use Cyrillic in (La)TeX? What are their pros and cons?
16k views

### How to have local package override default package

I have an non-root account on a shared server which has an old version of a package available to all users, and I want to use a newer one on my account. I cannot just use \$TEXINPUTS, because latex ...
7k views

### \includegraphics PDF, color problem

I'm using pdflatex, and use \includegraphics to include content of figures from PDF. PDF are exported from InkScape. \begin{figure} [!h] \centering \includegraphics[height=3cm]{fig/SUSAN.pdf} ...
52k views

### What are the advantages of TeX Live over MiKTeX?

I have been using MiKTeX for a couple of years. I don't know whether it is "wise" to insist on using it. Could you give me a list of advantages of TeX Live over MiKTeX?