# All Questions

723 views

### siunitx multicolumn problem

In addition to Right-centered columns in LyX, I have another problem, now with multicolumns. I want to center the number "98" (which spans two columns) above the two other columns. These shall be ...
520 views

### How to include graphics from a complex file structure

I am writing a Latex file that needs to include figures from a directory graphs. graphs has several sub-directories say, one , two and three. These individually contain several graphics that should ...
2k views

### Referencing items while using uncover

I am writing a presentation (using beamer) for a seminar and I just faced a problem I can't handle. On one slide, I have a big equation and then use an uncover-list to explain all the elements in ...
120 views

### How to fix diferent position of the line (space between the line and a page number and paragraphs) in the header using \pagestyle{uheadings}

I have noticed that in the document I am working on the line in the header is changing position page to page. Basically there are two slightly (but notably) different vertical spaces between the line ...
625 views

### mdframed theorems within beamerarticle script

I need to use framed theorem environments the way they are made in Make an Example and shaded box like in the book. The realization with \usepackage[framemethod=TikZ]{mdframed} is working fine. But ...
228k views

### Big Parenthesis in an Equation

I have an equation contained inside $...$, which automatically makes a \sum with sub- and superscripts turn big--so that the summation sign looks awkward inside parenthesis. Any idea how to make ...
338 views

### Indent successive lines an additional amount

I am trying to define an environment in latex that will indent each successive line of a short block of text by a fixed amount. For example, the first line will have no indentation, the second line ...
1k views

### Error when using both minted and TikZ externalize with xelatex

See the following MWE. \documentclass{article} \usepackage{minted, tikz} \usepackage{fontspec} \setmainfont{Arial} \usetikzlibrary{external} \tikzset{external/system call={% xelatex ...
1k views

### Function sign table, complete with first and second derivative, plus concavity/convexity and asymptotic behaviour - a better way?

There has got to be a better/easier way to do this!! And by the way, how does one format the code [when posting a question] to look nice, compact, and full of colours? \documentclass{article} ...
639 views

### page number location in biblatex

I am using \printbibliography command to create bibliography in biblatex. The problem is the page number is located at the center bottom while i want it to be at the right bottom. I don't have the ...
8k views

### Labeling a Footnotemark

Is there a way to label a \footnotemark instance (without redefining the \footnotemark macro)? Labeling the \footnotemark has no effect (it labels whatever environment the command is invoked from) and ...
2k views

### beamer: More elegant way to uncover list items starting on the second slide?

Using LaTeX and beamer, I'm using the shorthanded notation <+-> and its variants (e.g. <+-| alert@+>, etc.) to have list items uncovered so that I do not have to manually enter a specific ...
2k views

### Expansion in \numexpr…\relax versus \pdfstrcmp

The \numexpr...\relax construction in eTeX allows to evaluate numerical expressions, and it expands tokens fully as it goes. The \pdfstrcmp{...}{...} construction in pdfTeX lets us compare two lists ...
359 views

### How do I get multiple ToC entries in the same line?

I need that, in the ToC, all the \paragraph references appear in the same line, like. 1 First Chapter................................................1 1.1 First ...
767 views

### Can't get my head around enumitem's spacing parameters

Maybe it's my terrible lack of sleep but I can't get my head around enumitem's horizontal spacing parameters. What I want is a decription enviroonment in which the first line of each item (where the ...
704 views

### Clear tableofcontents page in book or report

How do I clear the \tableofcontents page in book or report? \documentclass[a4paper]{book} \usepackage{lipsum} \begin{document} % i need clear this page {\thispagestyle{empty} %but is not work ...
1k views

### Undefined color error for URL, when compiling with XeLaTeX

I've defined a different color for hyperlink using \hypersetup command with urlcolor. When I am compiling it with XeLaTeX I am getting undefined color error for the URL link, but it works fine when I ...
932 views

### What does 'missing \@ before…' error mean in vim?

I get this strange behavior when I have capitals before a period, like so 1 \documentclass{article} 2 \begin{document} >> 3 Another possible protein blah blah blah from GRIP/ABP. Blah ...
261 views

### Converting to mixture of HTML (chapter/section headers) and PDF (individual chapters/sections)

I have a large collection of notes that currently consists of a large number of individual "chapters" that I manually number and keep track of. E.g. visit ...
3k views

### Converting TeX to MS-Word for recruiters asking for resumes in word files

What do you do when you have spent considerable effort finessing your resume in TeX and a recruiter asks you for your resume in MS-Word? Do you: Spend the time to produce something that looks half ...
319 views

### Custom switches (such as for underlining)

Some packages (ntheorem for example) take only text switches as arguments that can be used in the form {\switch text}, for example \bfseries. If I now want to have a suitable command for underlining, ...
15k views

### Diagonal dots spanning multiple lines/columns of a matrix

I'm filling in large sparse matrices, for example \begin{bmatrix} 0 & -2 & 1 & & -1 & 2 \\ 2 & \ddots & \ddots & \ddots & & -1 \\ ...
378 views

### Right-centered columns in LyX

This is very near to my topic: How to align integers on the right, but still center them. However, I do not get it to work under LyX. This is the code I have: \begin{table}[H] \centering ...
140k views

### Remove Indentation for a Single Paragraph

Is there a way to remove the indentation at the beginning of a paragraph for a single paragraph. I know I could do \setlength{\parindent}{0cm} This is my paragraph. Blah blah blah. ...
1k views

### PSTricks error, but package not loaded

I am working on a textbook, with a looming deadline, so I admit I did not do an exhaustive search for a solution to this situation. I was hoping someone would see this and say, "This is a duplicate ...
3k views

### Interior product (contraction) symbol

In differential topology and linear algebra, there's an operator called the interior product, denoted $\iota_X(\omega)$ or alternatively with some other "half box" like operator $X_|\omega$. Does ...
7k views

### Numbers outside Math environment

Should numbers inside the text be placed inside a math environment? For example, if I am writing ...indent code by 4 spaces..., should I write it this way or ...indent code by $4$ spaces...? ...
6k views

### Best way to denote an angle in TikZ?

What is the best and simplest way to denote an angle, with an arc and a label telling its name? I wish to be able to control (obviously) the vertices on which the angle lays, the name of the angle and ...
589 views

### cleveref gets names wrong when using the SIAM document class

When I try to use cleveref in conjunction with the SIAM style files, references to theorems, sections, figures and tables are accurate, but all other references' names (corollaries, definitions, ...
748 views

### Unsightly spacing with Calligra font (Christmas card)

I'm writing my Christmas cards again with LaTeX. Last year I used a commercial font with XeTeX. For this year I was thinking about using Calligra as font, but for some reason the output is not nice ...
348 views

### What characters in a normal text document will screw up LaTeX?

I'm thinking of making a simple script to turn Project Gutenburg texts into LaTeX documents, so that they are nicely typeset and ready for reading. However to do that I'll need a fairly good list of ...
3k views

### Truncation of “year” field in author-year citations using “apalike” bibliography style

I use the natbib package (with the default authoryear option) and the apalike bibliography style for bibliographies. I would like to cite a forthcoming paper in such a way that "forthcoming" or "to ...
7k views

### Simple speech bubbles, arrows or balloon like shapes in beamer

I have to highlight the grammatical categories in a sentence like this: There is a beautiful flower in the garden. Now, by either using balloons or arrows, I have to highlight which word belongs to ...
342 views

On Windows Vista, I created a custom directory C:\MikTex\tex\latex\myheader for all my header files (mostly just .tex). Now I've installed Windows 7 and I can't seem to work out how I did it the last ...
1k views

I have created a table of contents page using \tableofcontents and I have enough chapters and sections that it fills an entire page and goes into another. The problem is that since it takes a second ...
1k views

### reduce vspace after section header

I am currently using the the scrartcl document class and glossaries for acronyms: \documentclass[12pt,a4paper,headsepline,notitlepage,parskip=half]{scrartcl} ...
1k views

### bibtex fails with error: “document.blg: Forbidden to open for writing”

I am using a Windows Vista system. From the command line, pdflatex ...document works fine, with the expected errors about missing citations. It also reports: No file document.bbl which I ...
94 views

### Create boxes to indicate keyboard keys [duplicate]

Possible Duplicate: Keyboard Font for LaTeX How would I create boxes around keyboard keys, similar to Ctrl? I'm using TexMaker on Windows, but have got Linux (Ubuntu) based alternatives ...
384 views

### How to make spaces as command argument delimiters?

How to make spaces as command argument delimiters? \documentclass{article} \newcommand\foo[2]{#1 and #2.} \begin{document} \foo hi you \end{document} The expected output is hi and you. Of ...
482 views

### Prevent tikz to calculate

I just played with an answer to a question I asked here some time ago: Divide a rectangle into n times k equal cells. I wanted to be able to generate the list of points in a separate macro, however ...
2k views

### Problem using matlab2tikz

I'm trying to get matlab2tikz to work. I want to use it for prettyfying output of Matlab's image() command. In Matlab I tried imagesc(rand(100)); xlabel('X'); ylabel('Y'); title('Random Colors'); ...
4k views

### \titleformat{name=\section} in documentclass

I defined a documentclass in which I redefine a heading format with (using the package titlesec): \titleformat{name=\section} This works. But if I move this \titleformat{name=\section} to a ...
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?
747 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 ...
456 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} ...
92k 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 ...
764 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 ...
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 ...