Most Popular

1500 questions
206
votes
5 answers

How to define the badness of a river?

I've written an algorithm to try and detect rivers in paragraphs and it actually detects quite a lot when I run it. Some of them are clearly false positives, but there are others that are indeed aligned spaces on consecutive lines. Here are some,…
raphink
  • 31,894
206
votes
3 answers

How to color math symbols?

One can use the command such as \textcolor[rgb]{1.00,0.00,0.00}{boundary} to color the word "boundary" in a document. Here is my question: How to color the math symbols in $$? For example, can one turn $C^{2}$ into red in LaTeX?
user5590
205
votes
6 answers

Escape character in LaTeX

I need to output the below text but since \ is a special character, I cannot: [RegularExpression(@"\d+")] Also sometimes I need use dollar sign $ as well but it seems to be a special char, too. What is the way to escape those in LaTeX? UPDATE: I…
tugberk
  • 4,177
  • 7
  • 25
  • 26
205
votes
10 answers

Why is LaTeX so complicated?

I have been using LaTeX professionally almost every day for almost 10 years, so I think I can say that, by now, I more or less know what I'm doing. I also do a lot of ordinary computer programming, in traditional languages like C++ and Visual Basic.…
Jamie Vicary
  • 11,098
203
votes
6 answers

Why should I be interested in ConTeXt?

In the spirit of a free-form Friday on StackOverflow, I'd like to know if I should consider learning ConTeXt. What got me into LaTeX way back in 1994 was having structural markup that made longer documents easier to write. What got me into XeTeX…
Matthew Leingang
  • 44,937
  • 14
  • 131
  • 195
203
votes
5 answers

What are the differences between $$, \[, align, equation and displaymath?

I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a block started with \[.
niklasfi
  • 2,263
203
votes
1 answer

How to remove the top horizontal bar in fancyhdr?

When using fancyhdr, how do you remove the top horizontal rule? I do not want a header at all, just a footer. This is what I do now: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \lfoot{text} \cfoot{text 2} \rfoot{text…
anonymous
203
votes
5 answers

\includegraphics: Dots in filename

\includegraphics cannot handle filenames that contain more than the one dot, separating the filename from the extension. Apparently it uses everything after the first dot as extension and then, of course, complains about an unknown graphics…
202
votes
13 answers

How can I set a dark theme in TeXstudio?

After perusing LaTeX Editors/IDEs, I'm considering switching from TeXmaker (in which I use the preset "dark theme") to its fork, TeXstudio. What I mean by "dark theme" is a dark background with suitable text colours, which, in my experience, is…
jub0bs
  • 58,916
201
votes
6 answers

How to change the name of document elements like "Figure", "Contents", "Bibliography", "Appendix", etc.?

I'd like to modify the names used to typeset some of my document elements. For example, the caption of figure floats should change from "Figure" to "Fig.", and my \tableofcontents sectioning heading shouldn't read "Contents", but "Table of…
lockstep
  • 250,273
201
votes
2 answers

How to get rid of navigation symbols in beamer?

When creating presentations in beamer, those little symbols that you can click on and will take you to different parts of your presentation are automatically included on your slides. I don't like that, but decided not to try and change it for now.…
Vivi
  • 26,953
  • 31
  • 77
  • 79
201
votes
12 answers

Placeholder for figure/includegraphics

Is there a command that I can use as a placeholder for \includegraphics? I want to use such a placeholder to add the original graphics later.
nimcap
  • 5,135
201
votes
8 answers

How can I write cases with grouping braces on both left and right side, and split the condition into two lines in LaTeX?

The code I used to write is this one $$ X(m,n)= \begin{cases} x(n),\\ x(n-1)\\ x(n-1) \end{cases} $$ But I don't know how to write this one Also, what if I want to write this
Maryà
  • 4,830
201
votes
24 answers

Showcase TeX Typography for TUG's Calendar

I'm making a calendar. The calendar will be for TUG, 2015. Last year I also made a calendar but because of time constraints most examples were graphics. Since this is a lot of work, I need your help. If you can/want to help out, the following are…
user10274
201
votes
5 answers

Is there a way to slightly shrink a table, including font size, to fit within the column boundaries?

I have a table that is just a little too wide for a 3.33" column. Is there a way to simply shrink the table a little to make it fit? I'm OK if the 10pt font becomes 9pt-something. Here is an…
Nathan Farrington
  • 3,117
  • 5
  • 20
  • 12