{compiling} is about the process you must go through to convert your TeX from .tex source files into your output document format, be it pdf, dvi, or something completely different.

learn more… | top users | synonyms (1)

134
votes
17answers
29k views

Compiling documents online

I have heard rumors that you can compile documents online, and more specifically that Google has a free online compiler, but I have never been able to find any. Is there a way to compile documents ...
90
votes
22answers
9k views

Tools for automating document compilation

A lot of people write makefiles that say something like paper.pdf: paper.tex pdflatex paper bibtex paper pdflatex paper pdflatex paper To handle re-running TeX to ...
32
votes
10answers
4k views

Passing parameters to a document

I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a ...
27
votes
7answers
5k views

Conditional typesetting / build

Let's say I have .tex file which is a set of problems and solutions, of which I want to make two pdf files, one which includes the solutions and one which doesn't. so I need to build the .tex file ...
44
votes
18answers
7k views

Is there any way to get real-time compilation for LaTeX?

I would really love to have a software or tool which provided real time compilation of my LaTeX document (to be able to see the final pdf or dvi document as I type the latex code), especially for when ...
32
votes
3answers
3k views

LaTeX code sniffer and/or beautifier?

I'm looking for a LaTeX code sniffer and/or code beautifier, because I'm creating a CI server for my LaTeX books and I wanted a few things. :D
126
votes
17answers
35k views

Is there any way to do a correct word count of a LaTeX document?

Often assignments (or even papers) have a word count limit. That is not a big deal when using Word, but I don't know how to do that using LaTeX. My solution has been so far to compile the document and ...
56
votes
8answers
7k views

Can one TeX file output to multiple PDF files?

I'd like to be able to create a TeX file that will output multiple PDF files with one compilation. I'm not even sure if this is possible. Here is the setup: I am writing dozens of cover letters for ...
11
votes
2answers
12k views

How can I fix the error “GUI framework cannot be initialized” with TeXnicCenter and MiKTeX?

I don't know what I've done, but all of a sudden I am unable to compile any document which uses the geometry package. Minimal (non)-working example: \documentclass[11pt]{article} ...
2
votes
1answer
2k views

Quickest way of applying thesis to tex template

I am trying to apply my thesis to a TeX template. I have pdflatex installed on a Linux box (in my university), but cannot get it to work. When I point to my TeX file as below, it gives an error: ...
69
votes
11answers
10k views

Speeding up LaTeX compilation

Usually I don't mind about LaTeX's compilation speed, because a paper of less than 20 pages is compiled rather fast. However, I am working on a large document - A report with more than 80 pages. ...
50
votes
7answers
6k views

What is the practical difference between latex and pdflatex?

I understand that some packages (like PSTricks) can't be used with pdflatex. Are there any other differences between these tools? Can we say that pdflatex is better if we don't care about ps?
32
votes
3answers
730 views

Document requiring infinitely many compiler passes?

It is an unfortunate reality that one must compile a LaTeX file several times in order to get all labels and citations correct. As far as I know, one should go on compiling as long as TeX warns that ...
45
votes
10answers
8k views

How can I speed up LaTeX compilation?

The slowest part is a dozen of diagrams in TikZ.
53
votes
3answers
2k views

When and why should I use % !TEX TS-program and % !TEX encoding?

Occasionally, I see other people's documents starting with two lines like that: % !TEX TS-program = xelatex % !TEX encoding = UTF-8 Unicode It's clear to me that the first line declares the engine ...
27
votes
5answers
3k views

How to make Latexmk use makeglossaries?

Is there a way to make Latexmk invoke makeglossaries (part of the glossaries package)? Specifically I want to use latexmk to compile a LaTeX document that uses the glossaries package to produce a ...
37
votes
6answers
3k views

Reducing the console output of LaTeX

When I run pdfLaTeX, I get very verbose output: (/usr/local/texlive/2008/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie s/tikzlibrarycalc.code.tex) ... Is there a script to soak up all the ...
27
votes
1answer
2k views

Biblatex/biber fails with a strange error about missing recode_data.xml file

I'm trying to use biblatex and when I compile my document I get an error like the following: Windows data source C:\Users\<username>\AppData\Local\Temp\par-5061756c\ ...
21
votes
3answers
503 views

What are the situations where you have to compile a document more than once?

You have to compile a file twice to get the desired output in the accepted answer to Lineno for 2 column. The accepted answer to How can I avoid compiling twice? provides a way to avoid compiling ...
72
votes
5answers
5k views

Is there any reason to compile to DVI rather than PDF these days?

I appreciate that in the past, latex was faster than pdflatex, but computer speeds being what they are nowadays, I can't see any difference in how quickly documents compile... So, given that the end ...
5
votes
2answers
8k views

Unable to compile TeXmaker 4.0.2 with MiKTeX 2.9

I just downloaded first MiKTex 2.9 and then TeXmaker 4.0.2. However, I am having a hard time getting it to compile. I always get the info box saying Can't detect the file name followed by the info box ...
10
votes
3answers
451 views

Shell escape after PDF is finished and closed?

I like to escape to the shell using \write18 at the very end of the compilation after the PDF file got completely written and was closed, so that I can use it as part the shell command. Is this ...
12
votes
1answer
22k views

Undefined citation warnings

When I compile my document I get warnings of the form: Package natbib Warning: Citation `xxxxx' on page y undefined on input line z. This problem does fix itself eventually when the compiler ...
16
votes
3answers
3k views

Is there any way to generate custom errors/warnings in LaTeX?

I want something like \ifmmode\else\GenerateWarning{The command \backslash uzuka is supported only in math mode.}\fi, which is supposed to generate a warning "The command \uzuka is supported only in ...
19
votes
1answer
1k views

ultrafast pdflatex with precompiling

I try to improve the time pdflatex needs to compile my book. Really working example book.tex %&preamble \begin{document} Hi \end{document} and preamble.tex \documentclass{article} I run ...
25
votes
2answers
3k views

Understanding the Log file

I'm getting some cryptic (for me) errors and warnings when I compile. On the advice of darn near every internet resource I could find, I dug into the .log file. The trouble is, I don't know how to ...
15
votes
1answer
2k views

Compile using latexmk in emacs

In the accepted answer in for the question it is suggested how to add latexmk support to emacs. If I get it right, compiling the .tex file should be assigned to C-c C-c. However this doesn't work for ...
16
votes
1answer
2k views

Why does Latex/Bibtex need three passes to clear up all warnings?

As explained by Andy Roberts, if you need to compile a new document with bibtex citations, then you need to run latex three times, and bibtex once: latex document bibtex document latex document latex ...
23
votes
7answers
3k views

how to avoid bibtex error message “repeated entry” for an entry appearing in several bibtex files?

I am using several bibtex files, dedicated to several topics. But some references are common to several topics and then appear in several of my bibtex files. Currently, I am writing a document dealing ...
31
votes
6answers
2k views

Compiling only a page range or page selection

How do I easily compile only a page range or page selection? That is, I would like a document that looks exactly like the full document, has only the subset of pages that were manually chosen, by ...
13
votes
4answers
3k views

Having a LaTeX PDF display the date the document was printed, not compiled…

I have been looking around for quite some time trying to find a way for a PDF (created using XeTeX) to adjust the date accordingly by the date it was printed - not compiled. I am familiar with \date, ...
16
votes
3answers
3k views

How can I avoid compiling twice?

Sometimes I need to run compile twice (eg when I use lastpage). Is there a way to set things so TeX knows that there is need for second run and do it automatically? I use Texmaker.
15
votes
2answers
445 views

Avoid linebreaks in LaTeX console / log output

Is it possible to tell the LaTeX command not to use line breaks in its console / log output? This would make it easier to automate the processing of the log file, e.g. extracting the names of missing ...
10
votes
1answer
2k views

Delete .aux file in order to successfully compile

From time to time I need to prepare presentations, and I use the beamer class plus the minted package. I would like to know why sometimes I need to delete the aux file generated by pdflatex to ...
102
votes
16answers
5k views

How to prolong compilation time while engaging in leisure activities?

I thought of that old joke today, where a programmer can make an undeniable excuse for his leisure activities while in work on the basis that he is just waiting for his code to compile. Although I ...
28
votes
3answers
23k views

LaTeX with Sublime Text 2

I recently (2 days back) started using LaTeX, I use Sublime Text 2 (ST2) for most of the programming. I found that ST2 has LaTeX package. So what I am doing is write the document with ST2 and run it ...
7
votes
3answers
703 views

Speedy LaTeXing

I am LaTeXing my notes for a maths class, and I'm wondering what TeX.SE has to say about tips and tricks that have helped them enter their LaTeX code that much faster. It can be anything from a ...
16
votes
3answers
317 views

Print 'system information' in LaTeX doc

I've used TeX quite a bit before but am getting back into it at the moment. I want to print a document details page with info such as: Compiled on: Compiled by: OS version: LaTeX version: ...
10
votes
4answers
300 views

How can I automate the workflow for producing multiple versions of a document? [duplicate]

Say you have two versions of the same LaTeX document. For instance, you have one version of your lecture slides for actually delivering a lecture: as you're really not a big fan of the "wall of ...
17
votes
2answers
3k views

Speed up compilation by (pre-)compiling chapters separately?

I am writing a long document with many chapters. They are all included from a root document using \input{chapterX.tex} etc. Compiling everything takes pretty long. As a workaround to make compilation ...
5
votes
1answer
2k views

TeXstudio: how to automate LaTeX biber sequence of compilation

I'm a bit confused about how to configure TeXstudio to use biber. It's not that I can't find a way, I'm just wondering what is the intended way, i.e. coming from WinEdt I'm used to that "Build" or ...
5
votes
2answers
1k views

Conditional Compiling and \documentclass

I am quite new to latex and don't quite get it how to compile different versions of my presentation. If this is important: I am using pdflatex and beamer. There are three documentclasses I am ...
11
votes
2answers
5k views

Compiler gives hundreds of “invalid character” suddenly

I am writing my latex document in TexMaker and suddenly in one of the thousands of compilations I make there is a error and I cant get rid of it. The error is: ! Text line contains an invalid ...
10
votes
1answer
890 views

How to make `latexmk` run the appropriate amount of times

System: Ubuntu 13.04, Texlive2012, Emacs 24.something, I run Emacs from the terminal and not the GUI, and I have server mode on in Emacs. When compiling my latex documents, I use AucTeX in emacs to ...
5
votes
1answer
985 views

Multibib with TeXworks: how to parse second .aux file?

I need to use the multibib package to create a double bibliography document. I am currently working with TeXworks 0.4.3 (on Windows 7), but I cannot make the double bibliographies system work. The ...
4
votes
2answers
489 views

generating LaTeX tabular code during compilation

I use LaTeX for scientific reporting in brain imaging (fMRI). I have a tabular array in LaTeX, that contains quite a lot of rows and columns, which both are brain regions and in the each intersecting ...
2
votes
3answers
14k views

New installation – Texmaker Quick Build says: “Could not start the command”

I just downloaded and installed Texmaker. I've never used any (La)TeX before. When I click the Run button with an arrow next to "Quick build" I get an error saying "Could not start the command". Why? ...
7
votes
2answers
1k views

Typeset single chapter from book

I am working on a multi-chaptered document, tied together with a main tex file that pulls the chapters in via \include. To build the entire document, in its current draft form, can take upwards of ...
7
votes
2answers
1k views

Is there any way to build a LaTeX document from a parent directory?

I've written a makefile for my current project which produces all deliverables (executable, written in C, and report, written in LaTeX). I have a directory structure whereby the Makefile and outputs ...
5
votes
1answer
788 views

How can I see why a file isn't compiling somewhere else, if it does in my machine?

I'm attempting to submit a paper using the Elsevier Editorial System in LaTeX, and in the final step before submission it builds a file with information, the cover letter, and hopefully the ...