Sharpie
  • Member for 11 years, 4 months
  • Last seen more than 4 years ago
5 answers
61 votes
28k views
Script to automate externalizing TikZ graphics
Accepted answer
72 votes

The TikZ 2.10 library, external, addresses this issue. Externalizing all TikZ graphics in a LaTeX document is as easy as: \usetikzlibrary{external} \tikzexternalize If your document is named report....

View answer
1 answers
5 votes
2k views
Does tikz 2.1 no longer work with the preview package?
Accepted answer
6 votes

I poked around a bit and I couldn't figure out what is going wrong with the Postscript pipeline. My preferred method of generating standalone images uses the PDF pipeline along with ImageMagick's ...

View answer
8 answers
26 votes
17k views
What are your favorite document classes and what do you use them for?
15 votes

I think Memoir is the bee's knees. It aggregates and integrates a bunch of packages that I would otherwise use to control or extend document layout options. This considerably reduces the amount of \...

View answer
6 answers
51 votes
15k views
How can I get an underbrace and an overbrace to partially overlap in an equation?
6 votes

Check out "LaTeX Mathmode" by Herbert Voß. The manual can be found on CTAN (PDF). Skip down to section 63.2 "Overlapping braces". He also gives examples of other tricks you may want to pull using ...

View answer
1 answers
3 votes
7k views
LaTeX vs MS word
Accepted answer
6 votes

Things that always jump to my mind: Advantages: Superior cross referencing and bibliography management. This is a must for any lengthy work such as an academic paper or research report. Just three ...

View answer
11 answers
101 votes
40k views
How to speed up LaTeX compilation with several TikZ pictures?
22 votes

You can try creating a Precompiled Preamble (Wayback machine snapshot) or "format" for your document. This technique basically caches all the computations that LaTeX does when processing the preamble ...

View answer
6 answers
62 votes
20k views
Syntax Coloring in LaTeX
5 votes

Another package to consider is fancyvrb. It is a bit more general than listings as it provides an expanded verbatim environment where listings focuses specifically on formatting source code- this ...

View answer
18 answers
675 votes
210k views
How to look up a symbol or identify a letter from a math alphabet or other character?
97 votes

The old school way is to look it up in the Comprehensive LaTeX Symbol List (warning: 4 MB PDF file). The new hotness is to use DeTeXify which uses handwriting recognition to look the symbol up for ...

View answer
8 answers
101 votes
9k views
Why can't the end code of an environment contain an argument?
26 votes

A workaround is to store information in a macro that is then accessible at the end of the environment. A key-value option parser may come in handy for this. In addition to graphics, PGF also provides ...

View answer
17 answers
148 votes
35k views
LaTeX in Industry
Accepted answer
135 votes

A very common use of LaTeX is for automatic generation of high quality PDF reports that present the results of some routine analysis. For example, given some hydrology data in CSV format: Date,Flow ...

View answer
6 answers
101 votes
71k views
Why is the MacTeX distribution so large? Is there anything smaller for OS X?
95 votes

MacTeX (and by extension TeX Live) are so big because they contain everything up to, and including the kitchen sink, then heaps on yet more stuff. Odds are, out of that 1.3 GB archive you will only ...

View answer
4 answers
17 votes
2k views
Implementation of a C compiler in TeX ?
10 votes

Another thing that may be of interest is Alan Jeffrey's lazylist package and the associated TUGboat article about performing lambda calculus in TeX: What amazes me is that the implementation is only ~...

View answer
2 answers
42 votes
46k views
How do I fill table cells with a background color?
Accepted answer
35 votes

The xcolor provides support for coloring table rows in a variety of patterns. The colortbl can color rows, columns, cells and rules. There is a nice article by Lapo Filippo Mori in the PracTeX ...

View answer
6 answers
48 votes
25k views
Can one "manually override" BibTeX's choice of citation keys by adding a field to the entry?
19 votes

If you use the natbib package, you can declare an "alias" or alternative citation for a source: For example, the following .bib entry: @techreport{caltrans2002, Author = {{California Department ...

View answer
5 answers
14 votes
13k views
Better way to calculate coordinates in Tikz?
Accepted answer
20 votes

Complete LaTeX documents used to generate the figures in this answer are available as a Gist on GitHub. One way to solve the "putting text over arrows" question is to use inline nodes and relative ...

View answer
10 answers
161 votes
140k views
Fonts larger than \Huge?
Accepted answer
126 votes

You can use the Memoir document class. It provides two things that are relevant to your question: More Base Font Sizes The standard LaTeX document classes only allow you to choose 10pt, 11pt or ...

View answer
3 answers
8 votes
6k views
Standalone LaTeX editor/renderer for Windows?
6 votes

Is there any small and simple program (or even library) that can render LaTeX locally as you type? The only freely available program that I know of which can handle on-the-fly rendering of TeX and ...

View answer
1 answers
17 votes
3k views
Tikz for large files
20 votes

First off, if you are plotting 15,000 points one has to wonder what exactly you are trying to visualize. With so many points the "signal" or "point" of your graphic is likely to be lost in all the "...

View answer
2 answers
28 votes
33k views
Getting Sweave code chunks to stay inside page margins?
Accepted answer
27 votes

To illustrate the problem, here is the output from the following Sweave document: \documentclass[a4paper]{article} \usepackage{Sweave} \DefineVerbatimEnvironment{Sinput}{Verbatim} {xleftmargin=2em, ...

View answer
3 answers
1 votes
374 views
Are there any document viewers that use Tex as a backend?
2 votes

Theoretically, this would be possible. A customized TeX compiler could be created that, for example, executed function calls to a QPainter to draw pages in a Qt application instead of outputting DVI ...

View answer
2 answers
7 votes
2k views
Widths of digits and letters
Accepted answer
6 votes

I tried a tabular environment within the minipage environment. It introduces an left indent that I could not get rid of. The length that controls the horizontal cell padding in tabular environments ...

View answer
4 answers
12 votes
3k views
Embeddable in browser LaTeX editor/compiler plugin?
Accepted answer
9 votes

You could look into the Common LaTeX Service Interface which powers ScribTeX and, I believe, LaTeX Lab. The CLSI exposes TeX compilers as a web service by accepting requests with document code, ...

View answer
1 answers
0 votes
240 views
Making extra produced schunk globally invisible in Sweave
Accepted answer
3 votes

echo=FALSE suppresses printing of the input. To hide the output, you need to add results=hide: <<...,echo=FALSE,results=hide>>= # Your code here @

View answer
3 answers
1 votes
554 views
Syntax doldrums
4 votes

Is there an alternative interpreter for LaTeX that has nicer syntax? In general, TeX is very poor when it comes to "alternative interpreters" due to the fact that writing a program that can ...

View answer
5 answers
21 votes
18k views
Giving headlines a background color spanning across the entire typearea
6 votes

Here is another method that exploits the behavior of passing a macro that takes one argument to \setkomafont. The actual styling is done using TikZ nodes. \documentclass{scrartcl} \usepackage{tikz} \...

View answer
13 answers
145 votes
42k views
Passing parameters to a document
23 votes

LuaTeX anyone? Inside the document, you can access the command line arguments through the arg table: %luaargs.tex \documentclass{article} \begin{document} Document args were: \begin{description} ...

View answer
2 answers
12 votes
23k views
How to make TOC be on its own pages?
Accepted answer
17 votes

Try surrounding the table of contents with page breaks: \newpage \tableofcontents \listofmyequations \newpage Sometimes, it is also expected that pages containing the table of contents (also ...

View answer
2 answers
2 votes
1k views
article(Noweb) in LyX 2.0.0
1 votes

Perhaps this blog post by Yihui Xie will provide a good example and starting point if you are looking to do literate programming with LyX and R: http://yihui.name/en/2010/10/how-to-start-using-...

View answer
2 answers
15 votes
12k views
GnuplotTex: automatic plotting and vertical line indication
4 votes

Many of your questions concern how GnuPlot constructs graphs and don't have much to do with TeX. Unless there are some GnuPlot experts around here, more insight may be found on their mailing list: ...

View answer
4 answers
15 votes
6k views
Read arbitrary lines from file
6 votes

What you are asking about here is "random access" to the lines of text file, which is not supported by any filesystem that I know of. Most programming languages have a seek function that can "jump" ...

View answer