Most Popular

1500 questions
76
votes
8 answers

How to form "if ... or ... then" conditionals in TeX?

I feel really stupid for asking this, but how do you form more complex if conditionals in TeX? I'm looking for something like: \ifnum\x=1 OR \ifnum\x=14 {do this} \else {do that} \fi I don't want to have to resort to copy-pasting the entire…
gablin
  • 17,006
76
votes
5 answers

How can I place a one-column-abstract in a two-column document?

How can I place a one-column-abstract and after that two-column-section in a LaTeX template?
amir
76
votes
4 answers

How can I add stippling to elements of my tikz diagrams?

Okay so I think everyone knows how to draw a sphere in Tikz \tikz{ \fill [black] (-1,-1) rectangle (1,1); \shade [ball color=white] (0,0) circle [radius=1cm]; } But how can I add to it this effect that can be found in Penrose's drawings? (those…
someone
  • 761
76
votes
10 answers

What's the best way make an "augmented" coefficient matrix?

When studying systems of linear equations, it's nice to remind people that the last column of the coefficient matrix holds the constants. This is often done in books by putting a vertical line between the last column and the next to last column. …
76
votes
2 answers

Was the Knuth-Plass line breaking output ever subjected to a blind experiment?

Have any blind trials been organized to test to which extent "the average reader" prefers paragraphs typeset by the Knuth-Plass algorithm (or more advanced variants) over those typeset using the simple greedy algorithm? See the Wikipedia article on…
76
votes
4 answers

MikTeX 2.8 Update Error "Windows API error 87"

I was happily updating packages when the following error appeared: Error: Windows API error 87: The parameter is incorrect. The full update report with this error at the very end is as follows: MiKTeX Update Wizard Report Version: 2.8.3553 Date:…
ptrcao
  • 6,603
76
votes
2 answers

Display ' apostrophe

Is there a small package free way of implementing something like this in pdflatex and LaTeX? I wish for the outcome of \documentclass{article} \begin{document} `It's a nice day!' \end{document} To be ʻIt's a nice day!ʼ I know that due to…
Peilonrayz
  • 1,136
76
votes
2 answers

How to set document font to times new roman by command

I wanted to know how to set font of a document to Times New Roman and size to 12 for text and for Chapter Heading 14 only, for the whole document. I don't want to use the fontspec package for this. Please help me out on this.
Shivam Dhoot
  • 1,167
76
votes
2 answers

Adding headers and footers using Pandoc

Pandoc uses Tex as an intermediary step when generating PDF, so I thought asking this question on the Tex part of StackExchange may be the right place. If not, please let me know, and I will delete it. How do you specify that Pandoc should use a…
Jack
  • 1,025
76
votes
5 answers

Why are Bitmap-Fonts used automatically?

I have the following LaTeX-document: \documentclass[a4paper,11pt]{article} \usepackage[utf8x]{inputenc} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \title{Sample} \author{Litb} \begin{document} \maketitle \begin{abstract} This is a…
76
votes
4 answers

babel: english, american, USenglish

Does it make any difference (and if so, which) whether I use english, american, or USenglish as the option for the babel package? I've already looked into the package description, and it seems to be the same to me, but since I consider myself a…
doncherry
  • 54,637
76
votes
4 answers

What is a token?

Please forgive such a basic question, but I did some Google searching and looked around on this site, and while there are many threads and online resources that involve tokens, I can't seem to find a direct explanation of what a token is,…
Zev Chonoles
  • 5,466
  • 5
  • 31
  • 52
75
votes
3 answers

Is it possible to scale an entire \begin{figure}?

I have a bunch of LaTeX-output from Gnuplot which I would really like to leave alone. Is there an easy way of scaling an entire figure? Something like \includegraphics[scale=0.5]{...} but just for the figure environment? If it matters, I…
75
votes
8 answers

Vertical table lines are discontinuous with booktabs

I created a table in LaTeX, but there are some problems with the borders. The borders remain open whereas I want them closed. Also, in the last row, I want the vertical line gone, ie I want just one column in the last row. Can someone please fix it?…
Günal
  • 3,393
  • 8
  • 31
  • 31
75
votes
3 answers

How to style text in hyperref \url?

I want to set color, font and similar style attributes for the text in a \url from the hyperref package. How do I go about doing it? All I have found are comments saying that I probably don't want to do that. I want to because I am using ttf fonts…
jonalv
  • 11,466