Most Popular

1500 questions
139
votes
3 answers

Cross-reference packages: which to use, which conflict?

Inspired by my earlier question Theorem packages: which to use, which conflict?, here is another similar question. There are many different packages for making cross references. Among them hyperref, cleveref, varioref, theoremref, nameref… The…
Seamus
  • 73,242
139
votes
6 answers

How to write partial differential equation (Ex. dQ/dt=ds/dt) with real partial derivative signs?

I would like to make a partial differential equation by using the following notation: dQ/dt (without / but with a real numerator and denomenator). Earlier today I got help from this page on how to u_t, but now I also have to write it like dQ/dt. I…
David
  • 1,711
139
votes
4 answers

How can I split a beamer bibliography across two slides?

I have several citations in a beamer-based presentation. Is it possible to split the bibliography across two slides? I'm using natbib / bibtex. And I currently just…
M. Tibbits
  • 3,601
  • 3
  • 17
  • 11
139
votes
1 answer

How to list all bibliography entries without citing

I've read that "All items listed in the bibliography should be cited in the body of the paper." But if I did not cite any item in the .tex file, how can I list the items in the bibliography? That's it, I did not want to cite any item, but to appear…
qwerty
  • 2,975
139
votes
7 answers

How to force LaTeX not to break the line after a hyphen “-”?

With ~ we can enforce that no line break occures between two words. But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the - in (re-)creation. In my document the line breaks between (re- and…
138
votes
1 answer

Difference between "right of=" and "right=of" in PGF/TikZ

In the PGF/TikZ manual, sometimes I see the option right of=somenode instead of right=of somenode. They look very similar, but the effects are different. The distance between nodes positioned with the latter option is boundary-to-boundary, as…
Truong
  • 1,795
138
votes
7 answers

Should I \mathrm the d in my integrals?

When writing an integral, it seems like something should be done to separate the "d", as in \int f(x) dx, so as not to confuse it with a variable. I've seen it left as-is, bolded, and straightened. Even among those options there are several ways to…
Ray
  • 1,483
138
votes
3 answers

Using \colon or : in formulas?

I noticed that in many documents you encounter $f: X \to Y$ instead of $f \colon X \to Y$. Another example are quantified expressions: $\forall x: P (x)$ versus $\forall x \colon P(x)$. I find the \colon visually more pleasing, however I sometimes…
blubb
  • 1,711
138
votes
1 answer

Write pseudo code in latex

I am trying to write pseudo code in my paper. Here is the snippet and image like what I want. Can some one please help me to format it. \begin{algorithm} \caption{Euclid’s…
cyclic
  • 1,557
  • 2
  • 11
  • 8
138
votes
2 answers

How to change the size of nodes?

How is it possible to change the size of a node, for example: \begin{tikzpicture} \draw node[fill,circle]{} (0,0);% \end{tikzpicture} How to make the circle smaller or larger?
student
  • 29,003
138
votes
4 answers

Why does TeX Live "require" yearly updates?

Every year TeX Live provides a new version. My recollection is that soon after a new version is released, the old version's tlmgr stops fetching updates to packages. They provide upgrading instructions with the disclaimer This procedure is not…
StrongBad
  • 20,495
137
votes
3 answers

Why does underlined text not get wrapped once it hits the end of a line ?

Sometimes I want to underline some text, and it extends past the end of a line. Why does \underline{} not automatically wrap my text for me ? Also, how can I underline text so that it will still wrap ?
gabkdlly
  • 1,503
137
votes
4 answers

Simulate a scanned paper

I'm try to move my current paperwork routine towards a paperless workflow (for the “administrative” type of papers, of course… not for serious reading tasks). There is one major annoyance thwarting me: people sometimes require me to print, sign and…
F'x
  • 3,011
137
votes
13 answers

inputenc Error: Unicode char \u8: not set up for use with LaTeX

This is with ref to my previous question Package clash in multilingual…
Manish
  • 1,571
137
votes
7 answers

Custom margin settings for figure in LaTeX

I have a fairly large figure in a LaTeX document. This figure is too large for the left and right margin of the document. This results in the figure being placed flush with the left margin, and way beyond the right margin. What I want is to do, is…
Vegard