Most Popular

1500 questions
89
votes
3 answers

Confusion: \onehalfspacing vs. \spacing vs. Word vs. the world?

I have to write a paper with the requirement to use "1.5 line spacing" 12pt Times New Roman. Naturally I used \usepackage{setspace} \begin{document} \onehalfspacing Lorem ipsum… So far so good. But I'm a litte paranoid so I checked it with Word and…
niclas197
  • 1,395
89
votes
5 answers

Detecting all pages which contain color

In an larger LaTeX document there are often only some pages with color content (mainly figures) and the remaining ones are only black and white. Because printing costs for color pages are much higher than for black and white it would be good to be…
Martin Scharrer
  • 262,582
89
votes
5 answers

Vertical spacing of a table cell

I want to tabulate formulas, but I find that the lines of the table cells are too close together, and this is aesthetically unsatisfactory. Example (formulae copied from wikipedia): \begin{tabular}{|c|c|} \hline Cylindrical & $\displaystyle{{1 \over…
yohbs
  • 1,469
89
votes
2 answers

What is the difference between \hspace*{\fill} and \hfill?

In the memoir manual on page 183 ,this example is given: \begin{figure} \centering \hspace*{\fill} {ILLUSTRATION 1} \hfill {ILLUSTRATION 2} \hspace*{\fill} \caption{Example float with two illustrations} \label{fig:mult1} \end{figure} I have tried…
89
votes
2 answers

How does one typeset a URL?

I'd like to insert a URL into this document. Is there a "correct" way of doing that? If so, is there a way to turn it into a link inside the final pdf generated with pdfTeX or XeTeX?
Billy ONeal
  • 10,439
89
votes
6 answers

How to get long \texttt sections to break

I often format path names with \texttt which can be very long. Usually Tex will not break this text. The line will just create a hbox overflow. It looks like this: ................ ...C:\documents and…
Eduard Wirch
  • 993
  • 1
  • 6
  • 6
89
votes
1 answer

Referencing page number with only one reference

So I'm making this summary of a course where I've only been getting information from one book. Sometimes I want to show what page from the book a statement is taken from but I can't figure out a clean way of doing it. Basically I would like to have…
89
votes
10 answers

How can you use LaTeX to write a document with other people?

I imagine that many users are or were [PhD] students, so I would like to know: how do you use LaTeX to write a document (like the final dissertation) that requires many revisions from other people. When I work with my professor, I usually send him…
YuppieNetworking
  • 5,919
  • 7
  • 36
  • 40
89
votes
4 answers

Referencing within an align environment

The following LaTeX document: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} E=mc^2 \\ \nonumber E=mc^2 \label{eq1} \end{align} ref \ref{eq1} \end{document} Does not display the reference \ref{eq1}. Why?
Yotam
  • 7,109
89
votes
7 answers

How to install a current version of TikZ?

TikZ is undergoing lots of development with new features being added, but the versions distributed with standard TeX releases are often a little old. How do I get the latest version? If I want to be sure that I get the latest stable version, how do…
Caramdir
  • 89,023
  • 26
  • 255
  • 291
89
votes
4 answers

\newcommand and spacing

How can I define my own shorthand command, but making sure that the spacing afterwards is correct? \newcommand{\abc}{\textsc{abc}} produces 'ABC,' but has the problem 'ABCmoretexthere' (i.e. no space before the next word). Vice…
Ben
  • 1,373
89
votes
3 answers

How can I position an image in an arbitrary position in beamer?

I am making a presentation using beamer, and I want to be able to position a certain image the way I want in a frame. I am not sure how to do that. Is there some way you can specify coordinates in the frame and then set an image there? Is there a…
user5032
89
votes
4 answers

How to use itemize in Table environment

I want to create a table like the picture below, and i wish to itemize the lamba_1 > lamba_2 > 0 using 'item style', which is the cell of each categories. Can someone help me?
89
votes
1 answer

Customize legend position in PGFplots axis environment

I am trying to customize the position of the legend in the axis environment of PGFplots. A simple way to do this is by using something like legend pos=south west|south east|north west|north east in the axis options. If none of the directions…
Adriaan
  • 3,675
  • 2
  • 21
  • 41
89
votes
2 answers

How do I get numbered entries in a beamer bibliography

Instead of the default icons or the text option, I would like to have numbered entries in my bibliography. I added the line: \setbeamertemplate{bibliography item}{} to get rid of the icons, but can't figure out how to get numbers to display in their…
andy mcevoy
  • 1,729