Most Popular

1500 questions
63
votes
3 answers

Include data from a .txt verbatim

I am using a finite element program that outputs data in .txt files. And I want to input these data in my LaTeX code. Is there a way to input the data files so that they appear as the program output format? Program output data file: LaTeX…
Malthe Eisum
  • 3,019
63
votes
6 answers

Unicode degree symbol ° in math formulas: \textdegree invalid in math mode

I'd like to be able to simply input a degree symbol as ° in my source code. German keyboards have a key for this, and it makes the source so much more readable. I'm using pdflatex from TeXLive 2012, and this minimal reproducing…
MvG
  • 2,643
63
votes
8 answers

How to find the lost text part when having "Float(s) lost" error

I've lost some text. I don't know if theres something missing, so how can I find it? I'm not in the mood to compare the chapter1.tex to the pdf file by reading both. Chapter 1 (chapter1.tex) is rather long but it's the only hint I got. [35] !…
helt
  • 855
63
votes
8 answers

Is there a designated symbol for the negative sign in, say, -16?

I've been using -16 in my LaTeX code to write negative numbers. But the problem with that, is in many displays and LaTeX rendering kits, it displays the - sign as extremely long and separated from all the other mathematical symbols (e.g. the…
Zerium
  • 12,559
63
votes
5 answers

How to make a standard preamble into a package

I have a preamble that I copy and paste into nearly all of my documents. Is there a nice way to turn this into a package than I can use? I would prefer to do this in a way that doesn't depend on my Latex front end or compiler, so I can just…
BBischof
  • 4,149
  • 5
  • 28
  • 23
63
votes
4 answers

Painless Memoir Class Book Template

I would like to find a memoir class book template that has the basic features of a book already configured (with dummy type, dummy figures, etc.) that compiles properly, so I can just start writing without having to read any long and tedious…
Benish
  • 631
  • 1
  • 6
  • 3
63
votes
10 answers

Comparing typographic traditions for different languages

Sometimes students using LaTeX ask me how to do the typesetting of documents in French or Spanish. I'm not able to help them because I never learned to speak or write French or Spanish. Different languages have different typographic rules to…
Mensch
  • 65,388
63
votes
2 answers

How to decrease spacing before chapter title?

I want to decrease the vertical space between the top of the page and the chapter heading. I have tried to follow the instructions for titlesec but I am not successful. I have tried the following two setups without any changes…
63
votes
2 answers

Is there a \show for lengths?

The \show command is extremely useful for figuring out what's going on with a particular macro. Similarly, using \the can tell me the value of a counter. I'd like to know if there's something similar for lengths and skips. At the moment, I end up…
Andrew Stacey
  • 153,724
  • 43
  • 389
  • 751
63
votes
14 answers

In what ways can TeX be used beyond document production?

Most people use TeX and its many varieties to create printed documents, such as reports, books, flyer's, etc. Occasionally, I have found software that uses TeX markup for other purposes, for e.g., the flashcard software, Anki can use TeX to render…
Village
  • 13,603
  • 23
  • 116
  • 219
63
votes
4 answers

\input only part of a file

I would like to include part of the contents of a .tex file into a different .tex file. I don't have the option of modifying the file to include. The file to include may change so simply copying and pasting the part I need is not ideal. Essentially,…
astrofrog
  • 1,057
63
votes
5 answers

Is there a good document template for making business cards?

Is there a good document template for making business cards?
Neil G
  • 17,947
63
votes
3 answers

Suppress page numbers in article documentclass

I want to suppress page numbers. I am also using \maketitle command which seems to trigger the problem. MWE: \documentclass[a4paper,10pt,english]{article} \title{My title} \begin{document} \thispagestyle{empty} \maketitle Hello…
Elec
  • 1,585
63
votes
7 answers

LaTeX macro expander

Is it possible to have LaTeX (or another program) to expand a the macros in a .tex file, and output the expanded LaTeX source? If no such program exists: are LaTeX macros processed simply as string substitutions, before the document is interpreted?…
Chris Johnson
  • 1,497
  • 2
  • 13
  • 14
63
votes
2 answers

How to find the \textwidth in two-column mode?

Sometimes I find that floats don't fit nicely on a page, so I use \resizebox{\textwidth}{!}{ } so that the borders match the margins. However, I'm now working on a paper in two-column format (specifically using sigplanconf.cls)…
Douglas S. Stones
  • 927
  • 1
  • 7
  • 11