# All Questions

5k views

### The output of eps fig is rotated by itself

I am trying to use an .eps figure for my paper, but the problem comes when I got weird output. I use this command: \begin{figure}[!ht] \centering \includegraphics[scale=0.2]{A.eps} \end{figure} ...
1k views

### Fill the left 1/3 of the title page with color?

This is my first time to try and write documentation by using LaTeX. The generated PDF is quite impressive, but there is one thing I have no idea of how to do it: I would like to have the left 1/3 of ...
2k views

### Sans serif font with distinguished capital I for math.

I work a lot with matrix algebra. I also give a lot of presentations. It'd be nice to have a good sans serif font to use for both. Currently, my choice is the bitstream vera sans with math package: ...
665 views

### How does one publish/promote a new package?

I just took all the wonderful information supplied here, and wrote a small package that makes it possible to use Unicode characters for section, subsection, subsubsection, paragraph, subparagraph and ...
14k views

### How do I alternate graphics in LaTeX beamer

I'm trying to alternate graphics on a slide: \frame{ \frametitle{Verkette Liste Beispiel} \begin{figure} \includegraphics<1>[scale=0.7]{pics/List-0.pdf} ...
485 views

### Fix nested section numbers in RTL languages with polyglossia.

The third subsection in the second subsection of the first section should be numbered 1.2.3. This holds also for RTL languages, since numbers, including Dewey numbering is still LTR even in an RTL ...
4k views

### natbib: Error when citing paper with similar authors and same year

I get a strange error when I try cite two certain papers in the same document, when I use the natbib package (with numbers option enabled). If I trim the author list or change the year of either ...
4k views

### Generating 2d barcodes

Is there any package that generates 2d barcodes (QR code). I want to add a barcode on the front page of a manual I have written containing the URL where to download that manual. It would be nice if I ...
1k views

### Any way to get neato-like node placement in a TikZ graph?

I'm interested in drawing molecular connectivity graphs in TikZ. Using \node and child without any positions I am able to draw a tree diagram which is semi-useful as I can easily illustrate the ...
17k views

### \includegraphics: Dots in filename

\includegraphics cannot handle filenames that contain more than the one dot, separating the filename from the extension. Apparently it uses everything after the first dot as extension and then, of ...
3k views

### Adding Tables to a Minipage Like Environment?

I'm trying to set up an environment to use for examples in my thesis document. I would like to increase margins, change the line spacing, open with "Example :", and close with $\Box$. Minipage works ...
2k views

### Emacs-org-mode and latexmk

After getting to know org mode here, I tried it out. It seems to be, indeed, very helpful. However, I want it to work smoothly with LaTeX, and as a compiling script I want to use latexmk. I followed ...
4k views

### Compile using latexmk in emacs

In the accepted answer in for the question it is suggested how to add latexmk support to emacs. If I get it right, compiling the .tex file should be assigned to C-c C-c. However this doesn't work for ...
3k views

### Figure next to list (caption problems)

I am trying to put a figure next to a list, where the list is talking about the figure. This is fine, I can do that with the minipage environment. However, my problem is that when I try to put a ...
2k views

### Use latexmk to filter the log file

I am usually using latexmk in a split shell with my code on the left and latexmk in -pvc mode on the right. When using some packages which themselves load a lot of other packages (think beamer) the ...
16k views

### Hyperref warning - Token not allowed in a PDF string

When compiling a beamer presentation and using the following \author command \author{Name \\ \texttt{my.email@domain.com}} I get the following hyperref warning in my logfile Package hyperref ...
6k views

### Using the itemize environment inside a caption

The following code does not compile. However, if I remove the itemize environment it does. I googled for this problem, and found suggestions that using the caption package would solve the problem, ...
1k views

### PSTree creates confusing Undefined control sequence

This bit of code generates an undefined control sequence on the last curly brace. What am I doing wrong? \psset{levelsep=1cm,treesep=.75cm,nodesep=4pt} \begin{center} \pstree{\Tr{$z$}} { ...
5k views

### Can I use natbib in beamer, but omit the bibliography? [duplicate]

Can I call references from my .bib file, but not put a huge bibliography at the end of my presentation? Or at least hide it in a bunch of slides that don't display? I tend to think in terms of my ...
647 views

### drawing package in tex

I just want to learn how to make graphics in TeX. I have looked through this site and tried some TeX source file. But I am confused by the TikZ and tkz packages. Do they have any relation or are they ...
2k views

### How to create separate parts in a long paper?

I have a long paper which includes several chapters. I want to add a separator between certain subsets of chapters, which will have numeral counts, and will include a title taking the whole page, as a ...
394 views

### How do I install the SIGCHI template with MacTex?

Just to note, I am new to latex. I followed the instructions for installing new latex, bib, and bst files from SIGCHI on the MacTex FAQs page. When I open the sample.tex and attempt to compile it ...
1k views

### How can I have the three source-code symbols _ < > produce themselves (_ < >) in the typeset output by default?

I use LaTeX to take quick notes about my programming work. I have a couple of frustrations: I need to use underscore a lot because of variables named with underscores. However, I have to escape ...
124k views

### How to force a table into page width?

I have the following table: \begin{table}[htb] \begin{tikzpicture} \node (table) [inner sep=0pt] { \begin{tabular}{ l | l } {\bf Symptom} & {\bf Metric} \\ \hline Class that has many accessor ...
6k views

### compile a .tex file to Word document? [duplicate]

Possible Duplicate: Workflow for converting LaTeX into Open Office / MS Word Format Are there any solutions to this? I know that's probably not the most favorable thing to do... But I ...
1k views

### How to automatically inline \input commands and bibliography?

I have a document that uses some \input commands and creates the bibliography via an external .bib file and bibtex. Now I have to inline the \input commands (i.e. replace each \input command with ...
3k views

### Converting pdf to LaTeX? [duplicate]

Possible Duplicate: How to convert PDF to (La)TeX? is there a way to convert pdf to LaTeX? I don't need the conversion to be very accurate. It's fine for me as long as it is "almost there". ...
4k views

### Automatically assign a number to every paragraph

I would like to add a marginal number (don't know the right term; in german „Randnummer“) to every paragraph of text I write. I don't see any other solution, than to write every single number manually ...
1k views

### Generalize \@ifnextchar to consider more than one character.

I am looking for a clever way to write a switch statement based on the next input characters, ideally, one could write: \@switchnextchars \@case{abc}{\typeout{You gave me an abc}}% ...
908 views

### Cite in the caption of a graphic but not in \listoffigures?

Sometimes I'd like to cite the reference in the caption of a graphic. But I want to avoid that this citation is displayed in the \listoffigures. How can I achieve that? Fore example with this code: ...
6k views

### Place figures side by side, spill into outer margin

I would like to place two figures side by side (not subfigures) and what’s more, I’d like to let the figures spill into the outer margin (since they are too wide for the the text width. Like this: ...
16k views

### Installing a class

I created a new class file to use. I have put the .cls file in the same directory as the original cls files (report, book etc) and im 100% sure the names match. The directory for me is: C:\Program ...
4k views

### How do I robustly typeset a double-hat?

I'm trying to typeset a symbol with two hat accents (useful for denoting superoperators in quantum mechanics, for instance), but \hat{\hat{L}} produces too much space between the hats. I found one ...
2k views

### Hoefler Text Extended Ligatures and XeTeX

I'm using XeTeX (MacTex 2010, Mac OSX 10.6) to render a document in Apple Hoefler Text. However, although I can make it render common ligatures, such as fi and ffi, I can't seem to be able to force it ...
2k views

### Including an itemized list within a tabular column using the paralist package

The paralist package offers the option of typesetting an itemized list with a \topsep length of zero, and this is especially useful in a tabular setting. However, the following minimal example does ...
263 views

### Defining my own “boxes”?

What I want is a environment that lets me create my own "boxes" (or blocks? I keep confusing them...) with the following properties They visually couple together a piece of sourcecode and a ...
3k views

### Force Computer Modern in math mode

I am writing a presentation using the beamer class and XeTeX. I have changed the sans font using \setsansfont. Now some symbols in my equations are rendered using the mono font (like the lowercase ...
482 views

### synttree in tabular: vertical alignment of other columns

synttree is a package that allows you do define tree graphs in an easy way. Now I'm trying to put such a tree in a table cell like so: \begin{tabular}{lp{3cm}} ... My left column & \synttree[A ...
2k views

### LaTeX baffled by BOM---Unicode's byte order mark.

Unicode applies the convention of using a byte order mark as signature at the beginning of a text stream, identifying the encoding used within it. The following three bytes at the beginning of a file: ...
3k views

840 views

### Looking for a more appropriate version of \cases

Often-times I find myself wanting to write something like, That is, a vertical brace followed by a table consisting of three columns, the first and the last are math, aligned where-ever I like, and ...
2k views

### Cite a reference with the initials of the authors

How do I cite references such that instead of appearing a number in the citation, the initials of the authors appears using natbib? For example, if I have this reference "[JRP] Jordan, M., Rodman, ...
724 views

### What's the best way to draw loop invariants in LaTeX?

I want to draw a picture similar to this one for divide part of Quicksort. What's the best method to do so? Is there a package for it or should I use Tikz to do it? If Tikz can you point me to some ...
1k views

### Conditional Compiling and \documentclass

I am quite new to latex and don't quite get it how to compile different versions of my presentation. If this is important: I am using pdflatex and beamer. There are three documentclasses I am ...
2k views

### Is there a way to adjust kerning for a specific character combination?

Is it possible to tell (La)TeX to adjust the kerning of a specific character combination? For example, suppose I want !! to be typeset as !\kern 1.2pt!, just like ff is automatically turned into a ...
9k views

### Continuous footnote numbering

I would like footnote numbering to continue over pages and chapters. In my document it's reset every chapter. I'm using the report documentclass.
4k views

### Left-justify with align on “=” in align environment

I searched the tex.stackexchange archives for an answer to this question but couldn't find one. I assume it's a common question, however. I often want to align text similar to the poly environment in ...
4k views

### Underfull hbox error on tabular context

I am having a problem with the following document, pdflatex is continuously complaining with Underfull \hbox (badness 10000) in alignment at lines 3--7 in this sample, but it does for many more lines ...