Most Popular

1500 questions
134
votes
8 answers

How can we display fireworks?

Soon we can celebrate the New Year. How can we use TikZ for drawing fireworks? For example like this, photographed by Kurume-Shimin, found on Wikipedia: Click on Image search for getting further impressions. On the Wikipedia page you can see…
Stefan Kottwitz
  • 231,401
134
votes
7 answers

Long underscore in LaTeX

In LaTeX, how would I make a long underscore? For example, Name _______ Signature _______
Neil G
  • 17,947
134
votes
2 answers

How to change font size for specific lstlisting

I have a java lstlisting and it is too big and does not mach a single page. Is there any way to specify font for specific listing, not all listings in document?
134
votes
4 answers

"(" or "\left(" parentheses?

What is the difference between ( and \left( in LaTeX? Sometimes, when the content is small, it does not seem to matter which pair I use. What is the best practice when it comes to which parentheses use?
Tim N
  • 10,219
  • 13
  • 63
  • 88
133
votes
2 answers

PDF colour model and LaTeX

(Strictly speaking, this is a question about XeLaTeX and the xcolor package but I’m assuming that the issue is actually with the color model of PDF.) I’m having the problem that colours in my PDF don’t match. For example, I screen grabbed a colour…
Konrad Rudolph
  • 39,394
  • 22
  • 107
  • 160
133
votes
17 answers

Are there other "fun" packages like the "coffee stains" package?

I'm trying to convert some friends to LaTeX and have come up against a (to me) unexpected objection: there are too few packages that support "fun" (really), to which I responded: I know there are examples of clever and creative (and a bit silly)…
orome
  • 10,459
133
votes
8 answers

How to align a set of multiline equations

I am trying to align a set of long equations, that are themselves align environments as most of them are spreading on multiple lines. Currently I just have a sequence of align environments, with each equation inside in order to align the pieces of…
133
votes
8 answers

Allow line break, but without inserting a dash

I have a sentence that contains a number of long dataset names. I would like to allow LaTeX to break these names at certain positions that I would like to specify somehow just like I can use \- to allow a word break with hyphenation. But: I would…
133
votes
3 answers

Fancy chapter headings

I'm searching for nice predefined chapter headings. I've found the fncychap package, and seen that memoir has quite a few, too. Do you know other packages that provide predefined fancy chapter styles?
raphink
  • 31,894
133
votes
15 answers

Is there a nice solution to get a "presenter mode" for Latex presentations?

I really like the way Keynote and MS Office (and also OpenOffice & similar) support a presentation mode that displays the current slide, the next (and maybe previous) slide, the elapsed and current time, and also any notes attached to the slides on…
133
votes
6 answers

Importing a Single Symbol From a Different Font

Is there a general way to change the font of a particular symbol without switching packages? For example, suppose I'm using Computer Modern for my entire document, but I want the "subset" operator to look as it does in mathabx. How can I redefine…
133
votes
11 answers

Converting Markdown to LaTeX, in LaTeX

I've started to use markdown for my notes simply because its faster than writing latex, but I would prefer to have the extra power to LaTeX. Is there/would it be possible to have a markdown environment which converted the markdown to latex? Is LaTeX…
superbriggs
  • 2,052
132
votes
6 answers

How to change font size mid document?

I want to create a TeX document for which the first (summary) page is \documentclass[10pt]{article}, but for which the rest of the document is \documentclass[12pt]{article}. Is there an easy way to do this?
Joel
132
votes
6 answers

What is the simplest way to typeset an entire document in sans-serif?

How do I typeset an entire document in sans-serif, e.g. Helvetica, without littering the document with font changes for every heading/paragraph, etc.? Like in How to set the font for a \section title (and chapter etc), but with the paragraphs all in…
Jared Updike
  • 1,493
131
votes
9 answers

Adding more than one author with different affiliation

My goal is adding more than one author with different affiliations, it will look like something: Author A, Author B, Author C, Author D and Author E A,B,C Department of Computer Science D,E Department of Mechanical Engineering …
berkay
  • 3,083