Most Popular

1500 questions
69
votes
2 answers

Always use \NewDocumentCommand instead of \newcommand?

Are there compelling reasons to stick with \newcommand or should one always use \NewDocumentCommand instead, even when not using any of the additional features offered by xparse? In addition and more specifically, If I already require xparse to…
Xavier
  • 13,947
69
votes
1 answer

Nested enumeration numbering

I write homework assignments in LaTex and the assignments are always divided into subparts (i.e. Problem 1 is divided into 1.1, 1.2, 1.3, ...). Currently what I do is I have nested enumerations, but the numbering isn't exactly what I'd like. To…
69
votes
1 answer

shifting (0,0) to new coordinate Tikz

I am using Tikz to draw a wide graph but starting from left and after reaching the middle of the graph the nodes fall outside of page. I tried playing with scale but the graph distorts and texts inside nodes does not conform to new scale well. So I…
69
votes
5 answers

What are TeX and LaTeX?

I'm surprised no one else has asked this question. It's not explained very well in the FAQ or site descriptions either. I know many of you will think "LMGTFY", "RTFM", or "ask wikipedia", but I'd rather get the answer straight from the experts. …
69
votes
1 answer

How to set page counter by skipping first page?

Possible Duplicate: No page numbering I am working on numbering on page. I already got reply for my previous question. How to set page counter in mdframed as footer? But i want to skip first page as it is title page. So i m using…
manish
  • 9,111
69
votes
8 answers

Pushing \qed to the right within a displayed formula

In my own custom theorem environment, I'm using the \qed command to create a white box. This works wonderfully when the theorem ends with a regular paragraph -- the box is pushed to the right where it should be. Note that I just type out the \qed…
69
votes
2 answers

How do I make the 'such that' symbol from Set Theory?

I am looking for the 'such that' symbol in set theory. I don't know what it's called so I'm not sure how to look for it. For the moment, I am just using this '|'. What is the appropriate symbol?
Henry B.
  • 2,231
69
votes
2 answers

Avoid linebreaks in LaTeX console / log output (or increase columns in terminal)

Is it possible to tell the LaTeX command not to use line breaks in its console / log output? This would make it easier to automate the processing of the log file, e.g. extracting the names of missing graphics files like in this output ! LaTeX Error:…
69
votes
4 answers

Wrap text around a tabular

I would like to wrap some text around a tabular as the figure shows. Do I have to use minipage and fix the width of the table, and the width of the text on the left hand? Isn't there a simpler way?
SoftTimur
  • 19,767
69
votes
1 answer

\setbox vs. \sbox and \savebox - What are the differences I need to know about?

What's the difference between using TeX's \setbox and LaTeX's \sbox and \savebox?
gablin
  • 17,006
69
votes
2 answers

Voltameter in TeX?

Hello I wanted to draw a Hofmann voltameter in TikZ like in this image: Unfortunately, there are a lot of curves and shapes that are tedious to draw. Is there an easy way to draw it or do I have to settle for something like…
sab hoque
  • 2,627
69
votes
7 answers

Efficient ways to anonymize a document

Many academic journals practice double-blind peer review which means that the author is required to blind their document by removing any references that can reveal the author's identity. How can I take advantage of the power of TeX and friends to…
N.N.
  • 36,163
69
votes
7 answers

Logic operators in LaTeX? (XOR?)

When I google this, it seems that \XOR is how you would get an XOR symbol in LaTeX, however that is giving me the 'undefined control sequence' error. How does one get the xor symbol?
whatnow
69
votes
4 answers

pgfplots: how can I scale to text width?

This question led to a new package: tikzscale When I try to scale a plot with: width=\textwidth there is some horizontal space between the start/end of the plot and the start/end of the margins, see this…
Benjamin
  • 853
69
votes
7 answers

How to add some visual style and pizzazz to course notes?

LaTeX is wonderful for writing mathematical papers, but while the output is perfectly typeset it is not visually very exciting. And although it may just be "familiarity breeds contempt", I am basically fed up of the CMR fonts. I want to write some…