{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}.

learn more… | top users | synonyms

14
votes
7answers
534 views

Automatic generation of pages with variable fields

I need to produce dozens of same pages, except for the part that each page has to have a different person's name on it. Imagine it as an exam, where the content is equal for every page, except that I ...
18
votes
2answers
1k views

Repeated slides in beamer

I have about 200 JPEG files that I need to include in a PDF document, one JPEG per page (i.e. 200 pages + intro slide). The following code successfully does this with one JPEG. ...
0
votes
1answer
419 views

Fine-tuning bibliography

This question concerns fine-tuning a bibliography. I collected bib files (that are available for download from the source of a journal article) and put them all in a single biblio.bib file. Here are ...
4
votes
2answers
311 views

Solutions to problem sheets

For writing problem sheets I have a customized theorem environment called pr for the problem and a specialcomment called solution for the solution. See example below. Now my question is, if it is ...
29
votes
2answers
5k 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 ...
4
votes
1answer
551 views

Fake MLA-style bibliography fix?

\leftskip0.5in \parindent-0.5in Author. Title. Place: Publisher, Date. Medium. convincingly fakes the hanging indent of MLA-style bibliography. Is there a way to set this for a region at every new ...
16
votes
1answer
979 views

texify or latexmk?

MiKTeX 2.9 comes with both and they apparently do the same thing. I was wondering what the difference between them is (if any) and which one is preferable for large documents.
9
votes
1answer
219 views

Automated placement of text and graphics within presentations

The beamer package creates very professional presentations. Are there any additional packages which can be used with beamer which allows users to focus on content, while leaving TeX to decide where to ...
11
votes
5answers
1k views

Cross Platform LaTeX Build System

I am on Windows 7 Professional (64 bit) and would like to be able to execute one command to completely compile a PDF from source .tex files (including all required runs to get the table of contents, ...
6
votes
1answer
717 views

Latexmk can't see a dependency on a .fmt format file

I'm using latex on a small netbook, and with average-sized files (~150 pages at the moment) compilation is already pretty slow. So I am looking for every way to speed up the compilation. In this ...
7
votes
2answers
266 views

How can I determine what a label is labeling (a-la \autoref)?

I want to have a command which gets a label and returns the environment (or the last sectionining command etc.) after which I had the \label. I mean, like \autoref, but no need to convert from the TeX ...
3
votes
1answer
630 views

latexmk -pvc option breaks when compiling beamer class

latexmk is the tool I'm using to compile my documents, and the -pvc option is the one which is normally on. In this setting, when I save a file which produces a compilation error, then latexmk informs ...
3
votes
2answers
553 views

Exam poll generator?

I need a recomendation for some good LaTeX document generator. I have two lists of questions - I want the Generator - to make a given number of exam polls which will have first question from the ...
2
votes
1answer
221 views

Using checksums to determine completion of compilation

Before preparing a document for printing, I use a BASH script, like the following: #!/bin/sh xelatex document.tex % compile 1 makeglossaries document xelatex document.tex % compile 2 xelatex ...
3
votes
1answer
167 views

Find and match corresponding arXiv preprints and journal articles

Many works are published on a preprint server such as the arXiv before publication in a peer-reviewed journal. Since the arXiv can be updated during the peer-review process, it is common to find ...
2
votes
2answers
293 views

Is there software similar to the arXiv.org AutoTeX?

I was wondering, does software similar to the arXiv AutoTeX exist, or is AutoTeX is available somewhere?
5
votes
2answers
338 views

macro for custom indexing with conditionals and text recognition

I was unable to solve this by myself and by searching this wonderful site. The problem is with indexing. I still consider myself as a LaTeX newbie :) The situation: - I'm working on an english book ...
7
votes
2answers
545 views

Footnotes with automatic final period

I'm tired to always add a period at the end of the \footnote command. Is there the possibility that LaTeX automatically does this at the end of every footnote?
6
votes
1answer
1k views

How to programmatically detect if a LaTeX package is installed?

I am writing a program, and I want it to do different things depending on which LaTeX packages have been installed. My current solution is to automatically generate simple .tex files that \usepackage ...
4
votes
3answers
418 views

Automatically convert `<=` to `\leq`

Is there a way to automatically convert instances of <= and >= to \leq and \geq ? I keep typing <= and >= by mistake.
5
votes
2answers
371 views

Tab not as extra alignment tab

Is there a way to have LaTeX render the tabs in a tabular environment to determine the columns so that there is no further need for the ampersands & ? Most of the time the columns only contain a ...
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.
12
votes
2answers
646 views

Automatically avoid more than one node when drawing a path

Background Andrew Stacey's answer to Automatically connect nodes without overlapping other nodes or connections presents code to make a path avoid a node by going through a corner of that node ...
9
votes
2answers
747 views

Repeat beamer presentation automatically

I have a beamer presentation which should run automatically on its own during an exhibition. I already added \transduration{5}\transblindshorizontal to show the next slide automatically after 5 ...
12
votes
1answer
1k views

Automatically connect nodes without overlapping other nodes or connections

In making a tree diagram with TikZ. Say that I've got the following nodes \node(a) {\(A\)}; \node(b1) at ($(a)+(4,1)$){\(B_1\)}; \node(b2) at ($(b1)+(0,-1)$){\(B_2\)}; \node(c) at ...
2
votes
1answer
3k views

Can Texmaker, as I'm typing, automatically create a preview of the document's PDF output?

Currently, I have to use the F1 key to get PDF output. I want to set up Texmaker so that it automatically shows me an in-IDE preview of the PDF file that my .tex file compiles to...as I type. How ...
10
votes
1answer
713 views

Images off the page in multicols environment

Before my question, some background information. I’ve created an algorithm (not latex) which will generate a catalog for a collection of books dynamically. A user supplies information to query an SQL ...
3
votes
2answers
4k views

How do I combine several tex files into one?

In my paper I have several tex files, mainly produced by some other tools (.bbl by bibtex, .eps_tex by inkscape etc.). I would like to combine them into a single tex file as required by my publisher. ...
6
votes
3answers
615 views

Extract document statistics? - How many pages has chapter xy? Count fixmes?

I have a large pdflatex document where each chapter is located in an extra text file and included with \include{chapter3.tex} ... How can I extract the page numbers of each chapter and write them ...
12
votes
3answers
1k views

Generating a table of glyphs with XeTeX

I am trying to get XeTeX to generate a table of all the possible glyphs of a given font, but can not figure out how to make XeTeX know how many glyphs the font has, so I have to specify an exact ...
4
votes
1answer
159 views

How to avoid duplication of longtable setup code

I have many longtable's in my document. Everything is the same across all the tables, except for the caption and the content (of course). How can I avoid duplicating the stuff required to set up ...
3
votes
1answer
239 views

Auto two column mode

I'm trying to create songbook document class. Every song is on its own page. I want to achieve that if the song is regular sized (fits to one page in one column) the song's page is one column, but if ...
14
votes
2answers
2k views

Replacement for MiKTeX's texify in TeX Live

I used to use the texify command in MiKTeX on Windows. I would, for example, run a command like: texify --pdf --run-viewer file.tex which, as I understand it, would produce a pdf, automatically ...
1
vote
1answer
289 views

Automation of generating pstricks graphics with texclipse before pdf generation

When using eclipse with pdflatex I want it to create the pstricks Images automatically. The classical way (without eclipse or texlipse) would be: latex test.tex dvips -o test-pics.ps test.dvi ps2pdf ...
2
votes
1answer
2k views

How to generate LaTeX documents with Perl

I have to generate Software Requirement Specification documents in LaTeX. I have to use Perl to accomplish this. The documents consist of tables, lists, pictures, TOC, table of figures, headings and ...
30
votes
3answers
3k 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 ...
2
votes
1answer
586 views

Macro for tabbing with complex line breaks (or similar environment)

I have a complicated transcription with mid-line aligned text. I've been using tabbing to do it automatically, but it obviously doesn't do line breaks. I want to write a macro (unless something ...
15
votes
2answers
613 views

Predictive mode: Only auto-complete LaTeX keywords

I typeset documents in French, and I don't really need auto-completion of the words that I type. I do, however, love the completions features that Predictive mode offers for LaTeX commands. Is there ...
7
votes
1answer
2k views

How to use kile with feynmf or feynmp?

Does somebody know how to teach kile to automatically do the additional steps for compiling Latex documents that contain Feynman diagrams produced with feynmf or feynmp? For what I know I have to ...
16
votes
4answers
2k views

How to automatically skip leading white spaces in listings

This question led to a new package: lstautogobble (lstaddons bundle) For my programming lecture slides I heavily use the listings package with \lstnewenvironment to typeset source code. It's a ...
17
votes
2answers
625 views

Is there any package to automatically select font size and margins to optimize pages?

Suppose I am preparing multi-page handouts using LaTeX. I don't care much about the font and margins size (while they are reasonable), but I would like all the pages to be filled, ie. avoid the ...
6
votes
1answer
5k views

Auto-fit table column widths based on content

Is there any solution in LaTeX tables that implements similar functionality to MSWord's AutoFit?
4
votes
3answers
868 views

Automatically start the necessary pdflatex runs if .tex has changed (MacOS X)?

I read about Latex Daemon, which seems to automatically start a new latex run, when the source document (.tex) has changed. Can somebody recommend me a similar solution for MacOS X (as Latex daemon ...
3
votes
1answer
553 views

Bibtex fails without citations… (test for citations? or invisible dummy cite)

I have a LaTeX folder where I use the same makefile and preamble for building either a part of the report or the entire report. This is achieved by a hack in the makefile where I substitute the file ...
10
votes
2answers
966 views

Is there a tool/script available to simply install packages locally?

This question is not on how to manually install packages but how to install packages automatically via script. This question is not about MikTeX or the limited tex package management in certain linux ...
18
votes
2answers
5k views

Inputting multiple files in LaTeX

Suppose I have a directory containing a bunch of LaTeX source files, and I want to input all of them into a single main file. I could do this by saying \input{dir/file1.tex} \input{dir/file2.tex} ...
13
votes
2answers
777 views

Automatically Locate Included Images

Do you think it's possible to include images into LaTeX without specifying the exact path to them. So instead of: \includegraphics{path/to/image/myfig.pdf} It would be: \includegraphics{myfig.pdf} ...
4
votes
2answers
246 views

Automate width determination for included graphics

For including graphics such as Matlab plots, I use \includegraphics from the graphicx package. Every time, I have to decide on some width and pass e.g. [width=180mm] to the inclusion command. This ...
17
votes
1answer
1k views

Automatic newspaper creation in LaTeX

This is a very general question about LaTeX, asked by a 100% newbie! I'm trying to figure out if it's feasible to build an automatic newspaper creation engine, and if LaTeX can help in this field. ...
10
votes
2answers
3k views

Where to put a custom macros file?

I have a bunch of common commands I put in document preambles. I don't always use them all, but it makes the preamble too long for my tastes. I want to put them all in an external file (preferably in ...