Most Popular

1500 questions
84
votes
1 answer

I can't figure out why my ref is displaying question marks instead of a figure number regarding a float

Please see figure \ref{loginMock}. \begin{figure}[H] \label{loginMock} \centering \includegraphics[width=7cm]{loginIdea} \caption{Landing/Login Page Example} \end{figure} I am using TexShop and the caption package, and tried…
Hello
  • 841
84
votes
2 answers

What's the benefit of loading babel when writing in English?

When writing in English what is the benefit of loading babel, by \usepackage[english]{babel}, except for the possibility of setting it to use specific English dialects as described in babel: english, american, USenglish? For example I know that…
N.N.
  • 36,163
84
votes
7 answers

Having problems with listings and UTF-8. Can it be fixed?

I'm having some problems with listings and UTF-8 in my document. Maybe someone can help me? Some characters work, like é and ó, but á and others appear at the beginning of…
84
votes
4 answers

add vertical space between equations

I am using the following code to combine two equations with one number in parentheses but the two equations are very close to each other and using '\vspace{} not working How can i add a vertical space between these two equations ? \begin{equation} …
84
votes
10 answers

How to define a command that takes more than 9 arguments

I have a mathematical transformation that takes 16 parameters (grouped into 3+8+5) and would like to make a latex command for it, so that I can easily change the notation for it if the need arises. As far as I know, both \def and \newcommand take a…
Simon
  • 4,262
84
votes
2 answers

"Single ampersand used with wrong catcode" error using tikz matrix in beamer

I am having trouble getting a basic example of a matrix of notes to show up in my beamer presentation. I am using the code copied from the pgf manual. Here is a complete working example. The error I get upon compilation is: "Package pgfbasematrix…
user4692
84
votes
4 answers

Dimensioning of a technical drawing in TikZ

Is there is an easy way to mark dimensions in a technical drawing with TikZ? Is there a library or something? Edit I am using XeLaTeX. Update I chose Martin's answer because it serves me well for the moment. Ultimately the best solution would be a…
pmav99
  • 6,060
84
votes
1 answer

What is the difference between \vspace{\fill} and \vfill

What is the difference between \vspace{\fill} and \vfill? What about the starred version of them?
Mario S. E.
  • 18,609
84
votes
6 answers

How do I add a .sty file to my MacTeX/TeXShop installation?

I've searched online, but I have not found any clear instructions how to permanently add .sty files to my TeXShop installation. I'm using a Mac with OSX (TeXShop is a mac only program). What is the best way of doing this? The one comprehensive set…
celenius
  • 5,274
83
votes
1 answer

What does "running in backwards compatibility mode" mean and what should I fix to get rid of it?

I was typesetting a Tex file, but I got this warning: ! Package pgfplots Warning: running in backwards compatibility mode (unsuitable tick labels; missing features). Consider writing \pgfplotsset{compat=1.6} into your preamble. Now, I know that…
Alenanno
  • 37,338
83
votes
2 answers

Margin notes with a pointing arrow that are automatically vertically adjusted

I am trying to emulate margin notes as they are in my (favourite) macroeconomics textbook. The crucial thing here is that the little arrow points to the line where the margin note is set. I have come up with the following dirty code. Edit: I have…
Jörg
  • 7,653
83
votes
1 answer

Is it possible to make LaTeX mark overfull boxes in the output?

Is it possible to make LaTeX mark overfull boxes in the output, for example by drawing red rectangles in the PDF where the boxes overflow? The purpose -- to more easily "see" where the problems are in the output.
Vegard
  • 2,651
83
votes
4 answers

Using LaTeX to keep a diary

As the title implies, I would like to use LaTeX to keep a personal diary. I've been dumping my entries in a single file which has become unwieldy over time. Ideally I'd find a package (or collection of shell scripts) which assists me in…
83
votes
2 answers

Mindmap tikzpicture in beamer (reveal step by step)

I want to include a tikzpicture (mindmap) in beamer and I want the children to appear one after the other. So I use \visible but it don't works -- also not with \pause command. I get errors regarding forgotten semicolons. When I insert semicolons,…
André
  • 1,892
83
votes
6 answers

Curve through a sequence of points with Metapost and TikZ

This question led to a new package: hobby I found Metapost best for drawing complex smooth curves (i.e., Bezier, splines), since you do not have to directly specify Bezier control points. Unfortunately, I need to use TikZ for my current project…
Andrej
  • 2,742