# All Questions

1k views

### Source code for examples in TikZ/PGF manual

I am starting to learn TikZ. I was wondering if the source code for all examples in the TikZ manual (2.10 version) is available somewhere for download?
752 views

### Hiding section titles when the section is empty

I have created a macro like this: \newcommand{\showsection}[2]{ \ifstrequal{#2}{}{}{\section{#1} #2} } It should be used like this in the document: \showsection{Books}{ Do you know any ...
458 views

### When specifying placement of floats, is the list prioritized?

When specifying a float's placement, e.g. [htpb], is the order of the arguments specifying the priority of them? Example: \begin{figure}[htpb] \includegraphics[width=0.7\textwidth]{sampleImage} ...
93k views

### \mathbb{Z} yields undefined control sequence error

I am using WinEdt 6 for compiling my TeX documents. I am getting an error with contains the line $\mathbb{Z}$ showing that it is undefined control sequence. How should I rectify it? Should I include ...
767 views

### Using txfonts with Polish characters breaks tables

Restated Problem and a Solution The use of a times font using the package txfonts will cause tables to be improperly displayed (see below for an image) if a character such as ę,ą or a different ...
2k views

### How to count number of lines in PDF document?

I'm using the lineno package to print line numbers (each page starts with number one) in the draft of my document: \usepackage[switch*, pagewise]{lineno} Is there a way to read out the number of ...
7k views

### How to place a node in the middle of an arc?

I think it is a simple question, but I didn't find the answer yet. The code I'm using is the following: \draw[->](1,0) arc(0:-30:1) node[midway]{$30$}; But in this way the node is placed at the ...
77 views

### Sorting tlpdb.tlu output [closed]

I get an output from tlpdb.tlu, which is unsorted. When I now use table.sort the output as a pdf is still unsorted. tlpdb = read_tlpdb( kpse.var_value("SELFAUTOPARENT") ) table.sort(tlpdb) Do I ...
276 views

### Which package is this document using for frames and boxes?

The following document (pdf) uses ConTeXt. The source file is too complicated for me to understand and I don't really know ConTeXt. Does anyone know what equivalent LaTeX packages generate similar ...
806 views

### Looking for symbol: Shield

I am looking for a "Shield" symbol: I already perused the Comprehensive Latex Symbol List, with the closest fit being \dsheraldical from the dictsym package, which is however non-satisfactory ...
1k views

### Books, Parts, and Prologues

I'm trying to nicely format a fairly large novel, with the following structure: Preamble Prologue Book I Part I Chapter 1 ... (etc.) Epilogue Postamble I'm using memoir and ...
9k views

### How do I add an image in the upper, left-hand corner using TikZ and graphicx

This is perhaps a simple question with a simple answer, but I'm stumped as a tikz novice. What would be the best method to add an image (logo) file to the upper left-hand corner of my document? ...
857 views

### Center body and left margin in page

I'm using the titlesec package to put section titles to the left of their body, but I'd like for the entire page to appear centered. That is, I'd like for the space from the far left of the page to ...
2k views

### Checking if a number is a multiple of 4

Using etoolbox, ifthen, or another form of conditional checking, how can I check if a value is a multiple of 4? E.g. if the number is 4, 8, 12, 16, etc., then it returns "true".
4k views

### Landscape, A3/A4 paper with XeTeX

With pdflatex, it seems easy to get a landscape document, on A3 paper. One only needs to add [landscape,a3paper] or [landscape,a4paper] to the document class options. With xelatex, however, these ...
2k views

### Memoir: removing headrule in chapter page

How to remove headrule in chapter page without remove of footrule, eg, rule only in foot page in all pages, but without on chapter page, but headrule in others pages. \documentclass[a4paper]{memoir} ...
1k views

### Beginner's problem - Undefined control sequence

I'm trying to produce the following result: [/ or ?] - Search for a pattern of text, jump to it by hitting Enter Then, I tried the following: \item [\/ or \?] - Search for a pattern of text, ...
514 views

### redefine \L and hyperref

When I am trying to redefine \L to be \Lambda, it seems that been undo by hyperref, getting a warning Command \L invalid in math mode and the results is the polish Ł. \documentclass{article} ...
363 views

### Nested Footnotes + Hyperref

Footnoting a footnote can be performed by placing a \footnotemark within a footnote, followed later by the accompanying \footnotetext. However, only a single footnote can be placed within a footnote ...
264 views

### How to typeset definitions with several paragraphs in the KOMA classes

The KOMA classes do not use vertical inter-paragraph spacing with some good arguments (see page 50 of the scrguide). I defined an environment for definitions with the amsthm package using their ...
4k views

### Handling of special LaTeX characters in text

I have a LaTeX file for a book chapter, which may need to be converted to Word at some point, because that is what the publishers use (sigh). This article doesn't have any math in it, but I'm still ...
35k views

### Adding letters to equation numbers

I want to number use a equation and add a letter to the equation number such as: f(x) =a x and g(x) = b x (3.1.1a,b) That is e.g. using ... \label{eq} ...
568 views

### Punctuation marks in math mode in xetex/mathspec

I am using XeTeX and have the following short document: \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amsthm} \usepackage[MnSymbol]{mathspec} \usepackage[no-sscript]{xltxtra} ...
3k views

### Is there a “medium” \cap?

When displaying the intersection symbol in equations, e.g., $$Hom(A,B) \cap Hom(B,C)$$ I find that the "cap" is too small; its height is, in fact, subordinate to the surrounding content. On the ...
188 views

### multline and mdframed bug [closed]

I do not think this bug has been reported anywhere. At least, I could not find such a report. Below is a piece of code to see the problem. The frame in the right margin is improperly calculated. ...
305 views

### multiple indexing [duplicate]

Possible Duplicate: How can I have 2 or more distinct indexes in LaTeX? I would like to have 3 index sections: one for the biological species, second for chemicals and the third for other ...
3k views

### Using unicode Roman numerals in XeTeX

As mentioned in How can I get Roman numerals in text?, there are several ways in which one can add Roman numerals to text in TeX. However, these solutions all seem to use three I's to make a roman ...
477 views

### How to write infix macro/newcommand?

Is it possible to write a new command/macro in infix syntax instead of prefix syntax; especially I'd like to have this for $\frac{a}{b}$. I use LuaLaTeX and with \newunicodechar{‾}{\overline} I can ...
1k views

### Replace chars with xstring. Catcode problem

I try to do something like this (minimal example): \documentclass[]{article} \usepackage{mathtools} \usepackage{xstring} \newcommand{\foo}[1]{ \StrSubstitute{#1}{:}{\string&}[\fooo] ...
983 views

### Drawing a simple line with tikz and remove the additonal horizontal space

In the following example I want to draw a simple line with tikz. It seems that the line produced a additional horizontal space left and right about .5\pgflinewidth. I tried outer xsep=0pt but with no ...
2k views

### creating beamer themes with options

Is it possible to create beamer themes that take options? I have three themes that are essentially the same yet each beamertheme<name>.sty overrides certain aspects of the inner, outer and ...
2k views

### Rules of thumb for size of binding correction (BCOR)

I was searching for this for a while now and I keep getting referred to an article about binding correction (probably in german) that seems to be offline. Another tip was to measure the horizontal ...
682 views

### Controlling text overflow when using \hfill to left- and right-align parts of title

I’m creating a template in plain (Xe)TeX which must have, in the first line, a location and reference number. The location is left-aligned and the reference number is right-aligned. (See example 1, ...
3k views

### Complex LaTeX Table

I am trying to make a LaTeX table. I have prepared the following code. \begin{table}[htbp] \caption{Combination Nomenclature, (Average Fill Factor)} \resizebox{1.0\textwidth}{!}{ ...
10k views

### What is a good symbol for day of birth?

I am using the moderncv package and it includes a nice header with symbols for email (\Letter) and mobile phone (\Mobilefone). I can't however seem to find a good symbol for a birth date. I was ...
6k views

### The \the command

I wanted to know if someone could point me to a reference where I could learn more about the \the command. Searching for "the" has been, without surprise, entirely unproductive. Even consulting ...
5k views

### Empty line after a tabular environment

I would like to have a little table without caption within my text. There should be, however, some space between the preceeding and following lines of text. The following snippet ...
4k views

### “Broken” arrow symbol

In his pretty awesome book “Undergraduate Algebraic Geometry” M. Reid uses (e.g. see page 4) symbol of “broken” arrow (which looks quite a like dash+space+short arrow : “- →”) for partially ...
2k views

### Creating a Word Index for a Book

I'm writing a book using memoir with a lot of technical words. I want to have an index at the end, which, for each word or term I choose, will refer the reader to the relevant pages. Is there any ...
997 views

### What does \p@ mean in some code?

I have found the source code within octavo.dtx (from the octavo package) and it has some parts called \p@. I have searched throughout the document, but cannot understand what this is defined as or ...
2k views

### LaTeX template for book reading?

Is there any LaTeX template such that in each section I can write down my reading notes ......?
501 views

### Clear tableofcontents page in memoir

How do I clear the \tableofcontents page in memoir? \documentclass[a4paper]{memoir} \begin{document} \pagestyle{headings} \begin{titlingpage} \maketitle \end{titlingpage} % i need clear this page ...
441 views

### Font issue when including EPS from Metapost into XeLaTeX

I've run into strange problems with fonts in figures included in XeLaTeX document. I have figures generated from Metapost sources with rotated math labels. When I include resulting EPS into document ...
409 views

How would one apply \nouppercaseheads only to section headers when using the memoir document class? \documentclass[a4paper]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
321 views

### Non-italicized text in a \newfixedcaption

This is a very specific follow-up question to this answer given to this question. I want to insert a picture, and use overpic to label it, in between two paragraphs of text in a thm environment ...
1k views

### Nested footnotes

The footception post (Footception: Footnote within a footnote within a footnote) describes how to recursively footnote. I am trying to make a nested footnote that is placed in the same footnote ...
2k views

### How to force a picture's location and still use overpic

I want to insert a picture, and use overpic to label it, in between two paragraphs of text, like so: Here is my first paragraph of text. \begin{figure}[htb] \centering ...
173 views

I managed to provide MWE (thanks to @lockstep) for the problem previously described here How to add a page number on the bottom of the first pages in table of contents, list of figures/tables and ...