Most Popular

1500 questions
129
votes
2 answers

Highlight, textcolor, and boldface simultaneously

I would like some portion of the text to have all three features but it's not compiling. It works two at a time but not with all three. \hl{\textbf{foo}} \hl{\textcolor{red}{foo}} \textbf{\textcolor{red}{foo}} The above three work but this…
Amatya
  • 1,885
129
votes
20 answers

Prevent pdflatex from writing a bunch of files

If I create just a basic hello.tex file an compile it using pdflatex hello.tex The pdflatex program is creating a plethora of file which is a little annoying. Currently it writes all those files about which I really don't care: hello.aux,…
fouronnes
  • 1,597
  • 3
  • 12
  • 10
129
votes
10 answers

Footnote in tabular environment

I thought that footnotes would have only a problem with the table environment, but none of the answers in Footnotes in Tabulars? Footnote in table seem to work for the tabular…
strpeter
  • 5,215
128
votes
7 answers

Change figure numbering for appendix

I want to "reset" the figure counting in my document when the appendix starts, and follow a different pattern than 1, 2, 3... Specifically, I want figures in the appendix to start with A.1, A.2 onward, instead of continuing on from the main…
Maarten
  • 1,643
128
votes
3 answers

How to use different colors for different \href commands?

I have two different \href{}{} links and I want each to be a different color. In the example below they will both be blue, how can I make each link have a different color? \documentclass{article} \usepackage[colorlinks = true, linkcolor…
makhlaghi
  • 1,882
128
votes
3 answers

Fundamental differences : PSTricks, TikZ/PGF and others

OK, since this is a pretty vague and subjective question. I need to set up some borders around the discussion that I intend to benefit from. But before anything, I certainly do NOT want to excite the comparison frenzy and other ... I bet you can't…
percusse
  • 157,807
128
votes
5 answers

Setting exact margins

I am writing a document for which I need the margin to be exactly as follows: left, right, top and bottom text margin all equal to 1in, distance from bottom of the paper to page number equal to 0.75in (I don't have any footnote or header to set). I…
David
  • 1,281
127
votes
5 answers

What are the practical differences between installing LaTeX from MacTeX or MacPorts/Homebrew?

When I started using a unix based system it was very natural to install MacTeX, since the installation of it is more "windows-like", though the installation package is huge. Later I was introduced to MacPorts, and recently Homebrew, which also…
Holene
  • 6,920
127
votes
2 answers

How to fix table position

Table does not show up at the same position it was inserted in the TeX file. I got the understanding through bit of reading on this forum that they are floats and they pick the best place on the current or next page. Because of this the text written…
Aku
  • 11,026
127
votes
3 answers

Removing vertical space inside \maketitle

In \documentclass{article}, the \maketitle command results in a lot of wasted vertical space. Is there any way for me to remove it? In other words, I'd like the author to appear directly below the title, and the date directly below the author.
Jeremy Hurwitz
  • 2,139
  • 5
  • 19
  • 14
127
votes
3 answers

How to best debug LaTeX?

..and I don't mean finding out why it doesn't compile, I mean serious debugging: breakpoints, figuring out value of variables at a given moment during run/compile, stepping, examining a stack (is there one?), etc. All the things that we take for…
Yossi Farjoun
  • 13,274
  • 10
  • 74
  • 96
127
votes
4 answers

How to check if a macro value is empty or will not create text with plain TeX conditionals?

I have a macro which holds some text value, e.g. \macro{some text}. If it is empty, I would like for nothing to appear in the document, but it has some content of any kind which would produce text displayed in the document, I would like a message to…
Village
  • 13,603
  • 23
  • 116
  • 219
127
votes
2 answers

LaTeX -- specify font point size?

I want to use a font size other than the standard LaTeX list of tiny, huge, etc. How can I do that?
127
votes
2 answers

What does the phrase "Underfull \hbox (badness 10000) in paragraph" actually mean?

What does the actual phrase above mean?
127
votes
3 answers

How to set font to Arial throughout the entire document?

In preamble, I have: \renewcommand{\familydefault}{\sfdefault} \usepackage{arial} but it doesn't work. How do I set my font to Arial throughout the entire document? UPDATE: In short, both answers work. It really depends on the environment. If using…
Level1Coder
  • 7,029