# All Questions

563 views

### What exactly does \@doendpe do?

Quoting from the LaTeX2e sources: [\@endparenv, \@doendpe] To suppress the paragraph indentation in text immediately following a paragraph-making environment, \everypar is changed to remove ...
827 views

### Sphinx in-line math equation alignment

As suggested by the answer to my question here, I am using the Sphinx tool in order to multi-target PDF and HTML output. For HTML, I'm using the pngmath extension. The vertical alignment of inline ...
483 views

### Place symbols/nodes at intersection between an arc and some horizontal lines with \foreach in TikZ

I'd like to place an symbol I've defined at all the intersection point between an arc and some horizontal lines: I know how to use \foreach for other cases, but I'm really not sure how to setup the ...
833 views

### Problem in BibTeX with composite names

In my .bib file, I have this entry: @conference{HCS96, title={The Virtual Cinematographer: A Paradigm for Automatic Real-time Camera Control and Directing}, author={Li-wei He and Michael F. Cohen ...
3k views

### Problems with alignment with landscape table

I'm writing a paper that includes a number of tables. Until now these have been in standard table* format, i.e. \begin{table*} \caption{Caption} \label{label} \begin{center} ...
2k views

### What are the standard styles to format LaTeX source code?

In any other programming languages, we have several ways to format our source code. For example, some of the standard styles are: Allman(ANSI) K&R GNU .... Within LaTeX, I couldn't find a neat ...
3k views

### Push marginpar up

I'm using the marginpar to put side notes, but instead of having them facing the line where they are called, I would like the whole marginpar to be pushed up. How can I achieve that? I tried adding a ...
275 views

### Remove space at the end of a macro

For a particular work, I need old style footnotes, that are typeset before the word they refer to. So I call \footnote before the word and it works fine, but it adds a space after the footnote mark. ...
3k views

### Biblatex bibliography no longer shows up

I don't know what is going on, but I've moved computers and my biblatex bibliography no longer gets printed. I do the usual: \addbibresource{references.bib} \nocite{*} ... \printbibliography ...
5k views

### How do I truncate the author list and substitute et al.?

Can someone please tell me if there is a way to truncate more than 2 authors for a publication and substitute it by et al. instead? I am using BibTeX.
364 views

### I would like to borrow revtex's amazing footnote and bibtex macros

Anybody know how revtex accomplishes its amazing citation handling. For instance, if I have a list of references in natbib using any bibstyle it looks like this [1,2,3,4,5] or [2,4,5,3,1] depending ...
693 views

### Preventing drop caps from overlapping next paragraph

Using the lettrine package, big drop caps can sometimes overlap next paragraphs, as show here: How can I do it so that following paragraphs are built around the lettrine instead of overlapping it?
5k views

### Space after float with [h]

this is my first time here, and I have this question: I'm writing my thesis, that includes many tables and figures in a float environment, with the caption at the end of it. I defined the space ...
2k views

### With fontspec, how can one define a variation of a font family?

I keep running into the following situation using fontspec with XeTeX: I define a "base" font family using \newfontfamily. I then want to access a "spaced small caps" variant, using the LetterSpace ...
1k views

### Estout and dcolumn: Overriding decimal alignment

I'm using estout (esttab actually) to produce a table in Latex from Stata. I'm using the dcolumn package to align the decimal places in my table. I want to override the alignment for a single row; ...
2k views

### hyperref, lualatex and unicode bookmarks issue (garbled page numbers in AR for Linux)

I have text with some non-ascii characters in chapters, sections... which I'd like to see in bookmarks displayed correctly. I noticed that, If I run xelatex, everything is fine, no need to set ...
148 views

### Custom bibliograpy and citations - general advice needed

First of all, if a package that implements this kind of citing style, a part of it, or something similar enough to be customized easily already exists, it's great. If it does, what is it called? ...
4k views

### Booktabs and longtable - strange spaces between lines

I needed to make some horizontal table lines bold so I used booktabs package. However if I use \toprule command to make line bold I get strange outcome - there are some spaces between bold line and ...
13k views

### How to add a dot after the section number?

I wonder is there any way to change the format of section numbering from 1.1 to 1.1. ? I know this is trivial, but I really need to add one more dot after the section number. Does anybody know how to ...
660 views

### \newenvironment text exceeds the text width

I set up a \newenvironment, some texts in this environment exceed the text width, but this doesn't happen always. The following is the \newenvironment setup % is used for parameters within a detailed ...
45k views

### How to specify a fill color in RGB format in a node in tikzpicture?

I am just trying to get a rounded corner box with some text in it. The text color will be white and the box will be filled with a particular color. The preamble includes: \usepackage{tikz} ...
574 views

### Prerendering PostScript commands in EPS with GhostScript makes transparent objects opaque

Background If the following PSTricks diagram % Circle.tex \documentclass{article} \usepackage{pstricks} \pagestyle{empty} \begin{document} \pspicture(-1,-1)(1,1) \rput(0,0){$E\not=mc^2$} ...
413 views

### How to redefine environment that has arguments?

To produce html and pdf files from the same set of sources I need to transform all wrapfigure environments (package wrapfig) to standard figure environments. One example is: ...
2k views

### Writing a negative number in text mode: $-$9 or $-9$?

If we want to produce -9, typing -9 in an input file is not correct because - is intentionally designed for hyphenation so its glyph is bad to represent the minus sign. To produce the minus sign, we ...
116 views

### Possible to Embed Base64 Encoded Images in TeX Documents? [duplicate]

Possible Duplicate: Embedding images with an encoding algorithm Most of the examples I've seen explain how to insert images by using graphicx and external images. But I'd like to know if ...
351 views

### algorithmic + babel with Hebrew conflict: Numbering missing

If I use algorithmic with babel, having both Hebrew and English, the line numbers go missing. Using MikTeX 2.9. \documentclass{article} \usepackage[hebrew,english]{babel} \usepackage{algorithm} ...
929 views

### multicols, lstlisting and float

Using the following structure, how can I get the listing to stay on the same page, be it at the top or the bottom? \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage{multicol} ...
468 views

### Single quotes in double quotes

I want to write "''" (to denote the empty string). However in LaTeX, when I try to enter "''", TexnicCenter replaces it with '''' , which displays as “”” (first pointing left, second two pointing ...
4k views

### How to pass parameters in a class file to different packages?

I'm writing a new class file that is based on book, and thought of making it available both in an English and in a Dutch version. Easiest to do seemed passing the arguments, so I constructed following ...
2k views

### Memoir custom title page and twocolumns.

Using the package memoir, I am having some trouble creating my (Oh so simple) custom title page. In the preamble, I have this: \documentclass[medievalpage,twosides,twocolumn,pdftex,final]{memoir} ...
622 views

### Table float sits at the bottom, while leaving an empty space in the middle of the page

I have trouble arranging the floats on the pages. See for example the screenshot below: Why is it happening like this? there is only this much text in this particular subsection, so why doesn't latex ...
4k views

### Latex and PDF: rangecheck error in pdfmark using ghostscript

I am trying to generate a pdf from a latex-generated ps document. (Note: I can not use pdflatex because of pstricks.) In the tex file I load \usepackage[dvips, a4paper, bookmarksopen=true, ...
498 views

### Behavior of starred section in beamer

In a LaTeX article, \section* behaves like this: \documentclass[12pt]{article} \begin{document} \section*{Not numbered} \thesection % --> 0 \section{Numbered} \thesection % --> 1 \end{document} ...
2k views

### How to center the titleframe in Hannover theme (beamer)?

I am using the Hannover theme in beamer and I am using the title frame as plain \documentclass{beamer} \mode<presentation> { \usetheme{Hannover}%{CambridgeUS}% ...
173 views

### Problem putting answers in a macro

I want to put the \begin{sol} and \end{sol} from the answers package in a macro like \newcommand{\assignment}[2] { \item #1 \begin{sol} #2 \end{sol} } ### \assignment{question}{answer} It's just ...
816 views

### Making footmisc work with manyfoot or bigfoot

How is it possible to get the side option of footmisc to work with the manyfoot or bigfoot packages? The following displays the footnotes in the bottom of the page. The footnotes show on the sides ...
834 views

### Extract document statistics? - How many pages has chapter xy? Count fixmes?

I have a large pdflatex document where each chapter is located in an extra text file and included with \include{chapter3.tex} ... How can I extract the page numbers of each chapter and write them ...
3k views

### What does \begingroup\expandafter…\endgroup do?

I often see code of the following form in package implementations (this example is from the LaTeX3 sources): \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname ...
635 views

### Putting notes to the side

Is there a package to put "footnotes" to the side like in this example : http://www.bvh.univ-tours.fr/Consult/consult.asp?numfiche=571&index=15&numtable=B372615206_18229&mode=1&ecran=0 ...
309 views

### Continue interrupted tlmgr update

I used tlmgr update --all today, and it froze when running mktexlsr, so I aborted it. When I ran it again, it said no updates available. But clearly there remains something to do after updating ...
156 views

### How to align text corresponds to text within the above line?

My attempt was to use tabular: \begin{tabular}{cccc} Let & $M_1$ recognize $A_1$, where $M_1 = (Q_1, \Sigma, \delta_1, q_1, F_1)$, & \\ & $M_2$ recognize $A_2$, where \$M_1 = (Q_2, ...
519 views

### Big table with cells spanning more than one page

I have a huge table that spans across multiple pages. I am using the \longtable to create these tables. Not only is the table huge, there are cells in the table that are more than one page long. For ...
1k views

### Kile: How to spell check all files in a project? (recursive spell-checker?)

When I write a paper using Kile, I typically create a project for the paper, have each section of the paper in a separate file in the project, and use the \include command to order them in the ...
17k views

### How to add newline within node using TikZ?

I want to break the input of a path in order to draw Pushdown Automaton,so I try to use the break line symbol \\ and even , it still doesnt break the lines. For example, the input should be 0, ...
5k views

### Does enumitem conflict with beamer for lists?

I am using the enumitem package in a beamer presentation. When I added a usepackage directive for it, the bullets in front of itemize lists disappeared. I tried restoring them by using ...
5k views

### should I be torn between Keynote and beamer?

I have experience with both keynote and beamer (and as a matter of fact, powerpoint as well). I think they both have a very different set of features, which depending on how you look at them, can ...
752 views

### Page numbers vertically centered in the outer page margin

Even though it seems to be a non-standard position, I'd like to place my document's page numbers vertically centered in the outer page margin – i.e. where you usually have your thumb when you skim ...
947 views

### Vertical spacing problem related to the mdframed environment

I use the mdframed package with option style=1, which means that TikZ is responsible for drawing frames: \documentclass{article} \usepackage[style=1]{mdframed} \begin{document} \noindent Text ...
236 views

### How do I set document options at compile time? [duplicate]

Possible Duplicates: Conditional Compiling and \documentclass Passing parameters to a document Changing LaTeX headers via a makefile I'm setting up a Rakefile for a LaTeX document and I'd ...
1k views

### Caption does not work with wrapfig

The following code does not output the caption correctly, font appears in normal size, and "Figure" is not boldfaced. \begin{wrapfigure}{r}{0.5\textwidth} \vspace{-50pt} \begin{center} ...

15 30 50 per page