{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

97
votes
23answers
10k views
+200

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 ...
2
votes
2answers
77 views

Create a service using Automator to compile .tex file in Mac

I'm using Mac OS 10.9.3, TeXLive-2013 and Scrivener to write my papers. I'd like to use Apple's Automator in order to create a service (available from the Finder's right-click menu over a file) called ...
22
votes
3answers
498 views

How to compute the remaining space on the current page

Is there a way to compute the remaining space on the current page and issue an optional command?
21
votes
0answers
379 views

Documenting on code revisions

I have made modifications to a few files of a C++ program. I would like to document on these changes in a nice LaTeX report, by showing exactly what I modified and explaining why I did so. Since ...
4
votes
1answer
68 views

Automatic tabular cell switching

Now I want to automatically switch cols and rows by counting. I have already pinned the issue down to the alignment character &: \newcounter{myRow} \newcounter{myCol}[myRow] \setcounter{myRow}{1} ...
3
votes
1answer
29 views

Automating hline in longtable spanning many pages

Typesetting a document with lots of multipage longtables, How is it possible to automate a \hline at end of page. \documentclass[12pt]{article} ...
6
votes
4answers
92 views

Repeat and enumerate a part of document

I have 4 sets/groups of exam questions. I want to enumerate them from 1 to a number of persons. Because a number of students exceed 4 I must repeat the sets. If I had 40 students therefore I would ...
5
votes
1answer
2k views

Including many figures from a directory

I have a large number of figures (~300) in a folder called 'allimages'. The figures are numbered fig1.eps, fig2.eps,.....fig300.eps. I want to put all of them in latex such that 6 ...
3
votes
2answers
197 views

Overwrite TikZ auto placement of weights in graph

So I have the following graph: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usepackage[english]{babel} \begin{document} ...
7
votes
4answers
146 views

typesetting long lists of numbers - is automatic tabling possible?

I have quite a lot of lists of numbers I need to put into my document. I am not sure how best to typeset them. Inspired by reading Add \midrule Every 5 Lines Automatically the other day, I sort of ...
14
votes
2answers
537 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 ...
6
votes
1answer
189 views

How is automatic indentation done for subfiles with arara and latexindent?

I guess that I have overlooked something, but I can't find a solution to run arara on my subfiles when processing my main file. I would like to autoindent my code but only succeed for the main.tex. I ...
10
votes
2answers
103 views

Automate the description of the paper

Most or all papers have a final paragraph in the introduction that describes the sections that are present. I'd like to generate it automatically, I guess this should be possible because it is mostly ...
4
votes
0answers
95 views

Creating a LaTeX Template which is filled by a script

I have create some sort of Template I'm using for my reports. The Data shown in those document is collected by a script running on a webserver. I was wondering if there is an appropriate method for ...
5
votes
2answers
130 views

Randomise rune selection with allrunes

The allrunes package provides a lot of runes. Some families, such as the Medieval runes, have a variety of variant forms; the runes for 'd', for example, include: I want to decorate a page border ...
6
votes
3answers
184 views

Make a polygon with automatically labelled nodes according to their coordinates

The goal: Make a polygon (and a circle containing that polygon at the nodes of the polygon, without the polygon's lines) with automatically numbered nodes according to their coordinates (x,y) [which ...
2
votes
2answers
294 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?
4
votes
2answers
142 views

How do I automate writing list of symbols in my masters thesis?

I'm using documentclass{article}. I have symbols, both in inline text and inside equations. How can I automate the process of listing them?
6
votes
1answer
198 views

Does a (Lua) approach exist, to read XML data into a .tex file?

I am having a lot of data in .xml files which look like this: <DATA> <NAME="name" /> <VERSION="1" /> <VARIABLES> <TEST> <ELEMENT atr="0" ...
8
votes
2answers
183 views

How can I programmatically populate a PDF's pdfcreator field?

As I understand it, embedding (as metadata) the typesetting engine that was used to produce a PDF document is good practice. Here is an example of how this can be done using the hyperref package: ...
2
votes
1answer
82 views

How to use arara with TeXShop

I try to use arara with TeXShop on my Mac, but I don't understand some steps either javascript, probably because of my english & my programer level. I create first the arara.engine in the ...
4
votes
0answers
107 views

Querying a SharePoint list and typesetting the response with LuaLaTeX

I would like to generate some reports from data stored in SharePoint lists. It is possible to query the lists using web services and retrieve the data in a xml data format. For example, sending a ...
5
votes
2answers
185 views

Suppress 2-letter ligature when 3-letter ligature would apply

Automatic handling of ligatures in TeX seems notoriously difficult but I was wondering whether in a font that has an ff and an fl ligature but no ffl one, it was possible to suppress the usage of any ...
1
vote
2answers
75 views

Print a short title in the header

I'm creating a style file to use as a template for submissions to a specific journal. That journal requires a short title in the header. I could easily hard-code such a short title in the style file ...
2
votes
0answers
42 views

Cancel the use of \baselineskip when at the top of page

I've defined a macro \myaddress which prints my address at the end of a document, cf. Simplify how I write my address in documents. That macro includes the use of \vspace{\baselineskip} to separate it ...
12
votes
7answers
3k views

Is there an automatic process to create index creation?

Certainly, there must be some way to somewhat create a list of words suggested to be included in an index.
3
votes
0answers
73 views

How can I read in files paragraph by paragraph?

I have an interesting project here and, while I could do it manually, it seems to me to be an interesting puzzle to automate it. I have the following structure: ./ +- main.tex | +- originals/ | | | ...
42
votes
5answers
2k 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 ...
2
votes
2answers
86 views

Updating words throughout document

In my job we deliver several of hundred physical assemblies per project - typically to offshore platforms in Nordsjøen - each one has a corresponding tag (and also other metadata such as item ...
17
votes
1answer
347 views

Optimal arrangement of pictures/boxes in a page

Does anybody come up with a way to automatically arrange a few figures or boxes in a larger rectangle or page? Here it is a real world example: One is producing a beamer presentation. One has 4 or 5 ...
0
votes
0answers
18 views

Adding blank pages when generating multiple copies of a document [duplicate]

I'm generating multiple copies (right now, 2, but a general solution would be nice) of a letter with minor variations using datatool. I just realised that if I'm printing it double-sided. and if the ...
2
votes
0answers
60 views

How to use sed to comment some lines in tex files (has “%” a particular meaning for sed ?)

I've been reading something in Most useful sed one-liners for TeX users which is related to my problem, but albeit interesting, it is not what I need. I have many tex (beamer class) files in ...
0
votes
0answers
117 views

How to batch convert PS to PDF without leaving windows open?

I am new to TexShop and new to this forum so please forgive me if the question is dumb. I need to convert about 13,800 postscript files to PDF. TexShop can do it but the only ways I know how means ...
18
votes
4answers
433 views

Avoid repeating [hbt] and \centering for every table

In a document I'm writing, I'm using the familiar [hbt] option for my floating tables, and I center them. I'd like to avoid repeating that every time I'm creating a table. I assume it's easy to add ...
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 ...
90
votes
12answers
6k 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 ...
4
votes
1answer
37 views

Parametrized inclusion of sub-files

I'm preparing a Resume using LaTeX, mainly for the purpose of easy customization. In particular, I wish to be able to generate different outputs from the same input file by changing a few parameters. ...
4
votes
1answer
95 views

Possibility of extending LaTeX capabilities given technology advancements?

As countless questions/answers have noted in the past, LaTeX requires you to compile at least twice when there are references, TOC/LOF, etc. Many of these situations have been documented in the ...
6
votes
2answers
137 views

Automatically remove ruler when no header is present

This is a question triggered by Automatically remove page number in one-page documents. When activating the fancyhdr package, it is necessary to clear the headers, which I do below with \fancyhf{}, ...
13
votes
4answers
331 views

Automatically remove page number in one-page documents

I find LaTeX's choice of putting a page number in one-page documents stylistically odd, so I would like to suppress that behavior. I've previously done this manually, but it would be better to not ...
4
votes
1answer
383 views

Getting TextMate to call biber

I've recently made the switch to biblatex from natbib but one problem I've been unable to resolve is how to make TextMate (which is my preferred editor) call biber instead of bibtex. I've installed ...
1
vote
1answer
56 views

Inputting files alphabetically

I am creating an anthology of poems and songs, and have a main file where I am using \input to insert separates TeX files which contain the poems. I was wondering if there was a simpler way of ...
21
votes
2answers
897 views

Is LaTeX intended for unattended typesetting?

With markup converters like Pandoc, it is now possible to generate LaTeX documents without ever touching any LaTeX code. However, obtaining aesthetic page breaks for slightly complex documents, ...
3
votes
1answer
144 views

Automatically emphasize \author names in bibliography and citations

This is a follow-up question to Make specific author bold using biblatex. Using biblatex and biber and either XeLaTeX or LuaTeX, would it be possible to extract all names from the \author command, ...
2
votes
1answer
144 views

Create an accessory that executes latex->dvi2ps->ps2pdf in WinEdt

I use WinEdt Build 20131031 (v. 8.1) 64-bit with Windows 7 and MikTeX 2.9. I would like to create an accessory ("latexdvi2ps2pdf") in execution modes for compiling tex documents in the following ...
4
votes
0answers
74 views

Is there a package for automating equation colorization?

I'd like to have the equation colorization process be somewhat semantic, i.e., I can still type equations or math the ordinary way, except they occur in an environment in which the colorization ...
9
votes
1answer
622 views

Automatic calculation of error in pgfplots

When taking in data through a file (such as table[x index=0, y index=1, y error index=2]{plots/mydata.table};) is it possible to automatically calculate the error bars (instead of putting them in ...
10
votes
1answer
167 views

Adding a dictionary definition

Does anyone know of a package that supports dictionary definitions? I was thinking of something like this: Source: Luscombe et al (2001), Yearbook of Medical Informatics. A) the easiest would ...
0
votes
0answers
43 views

Add additional title page if page number is large

I have a document that generates automatically. Sometimes number of its page becomes too large and I want to add additional title page for every part of it which is, for example, 2000 pages long. So, ...
24
votes
5answers
3k views

Intelligent paragraph reflowing in vim?

I'm not sure whether this is an appropriate question for tex.SE. If you think questions like this should not be asked here, please voice you concern. If necessary I'll open a question on meta. For ...