Questions tagged [automation]
{automation} is about automating certain tasks when creating a (La)TeX document, e.g., with the help of {packages}, custom {macros} or {tools} for {compiling}.
591
questions
160
votes
16
answers
53k
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 ...
151
votes
27
answers
38k
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 get ...
148
votes
16
answers
80k
views
What is the status of generating LaTeX from handwriting (i.e., OCR)?
I type fast enough that for most things it's not a pain, but I have a few big stacks of old course notes I'd like in LaTeX which I'm dreading having to go through. So, I'm just wondering what the best ...
114
votes
10
answers
25k
views
Replace \input{fileX} by the content of fileX automatically
Suppose I have a document with multiple include or input statements
\input{fileA}
\input{fileB}
etc.
Is there an easy way to generate a single .tex file where \input{fileA} is replaced by the ...
112
votes
12
answers
12k
views
LaTeX packages for use with revision control
I use revision control (Subversion, to be exact) to keep track of the edits to my LaTeX documents. Is there a LaTeX package that interfaces with revision control? Specifically, it would be nice to see ...
99
votes
7
answers
23k
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 ...
89
votes
5
answers
35k
views
Detecting all pages which contain color
In an larger LaTeX document there are often only some pages with color content (mainly figures) and the remaining ones are only black and white.
Because printing costs for color pages are much higher ...
70
votes
2
answers
5k
views
Avoid linebreaks in LaTeX console / log output (or increase columns in terminal)
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 ...
66
votes
9
answers
25k
views
Fit text into given box by adjusting the fontsize
I would like to fit text (potentially several paragraphs) into a box of given size. This should be done by adjusting the fontsize of the contained text.
Clarification edit: The given dimensions are ...
66
votes
3
answers
16k
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 the ...
64
votes
2
answers
56k
views
What's the advantage of using csquotes over using an editor's auto-replacement for "?
Many editors (TeXnicCenter, Texmaker, TeXworks, ...) offer auto-replacement of " by the desired form of quotation marks, be it `` and '' for English, "` and "' for German, or whatnot. Usually, I know ...
62
votes
5
answers
30k
views
Script to automate externalizing TikZ graphics
Is there a script to automate externalizing TikZ graphics?
(As suggested by Scott here)
59
votes
4
answers
17k
views
draw colored world/US map in LaTeX
I'm trying to draw maps similar to these in a LaTeX pdf document:
I want to auto-generate them from a list of pairs (country,color) to determine the colors.
I have found the package pst-map2dII in ...
56
votes
4
answers
30k
views
Auto generate an Index
Is there any way to auto-gererate an index for the makeidx package? I've written ~270 pages and didn't think of adding \index{} everywhere.
Do I really need to go over everything and add \index{}?
47
votes
5
answers
6k
views
Automated Newspaper Layout (with TeX and abroad)
Update: I'd like to revive (and revise) this question a bit because there have been some recent developments, and furthermore I would be happy to encourage some up-to-date discussion.
I'm thinking (...