{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

3
votes
2answers
113 views

Automatically copy items from the last list

In crypto, proof involves a sequence of games. Each game contains a list of lines. Adjacent games are almost the same except for a small number of lines (usually 1). I used to copy the old game to the ...
13
votes
2answers
438 views

Automatically generate graphics which shows light diffusion on a rough surface

I just want to make an image like this (using tikz or pstricks) of light reflexion and diffusion: What I am interested in is, how this can be done (semi)-automatically via tikz or pstricks: ...
6
votes
2answers
137 views

Automatically determine numbers of pages with figures

I'd like to get a list of all the pages in my document that have figures on them. Specifically, the page numbers in the PDF file that is created from my LaTeX document. This would allow me to print ...
6
votes
2answers
169 views

Automatically include a sequence of images

I want to include a sequence of images in Beamer (although it can be in another type of document). Something similar to the option Photo Album in LibreOffice and MS PowerPoint. What I did is to make ...
2
votes
4answers
384 views

using AutoHotKey to streamline LaTeX document authoring

Is it possible to use AutoHotKey to facilitate LaTeX document authoring? In which ways? Is there any off the shelf AutoHotKey script for this purpose?
26
votes
1answer
585 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 ...
3
votes
3answers
153 views

Automatically Adding Potentially Referenced Macros From Auxillary File

In this question someone asked if there was any way to eliminate user defined macros from a TeX document and replace them with the appropriate primitives. The answer seemed to be that while some ...
4
votes
0answers
56 views

Is there a TeX-native way to generate a readable graph from an adjacency matrix?

related questions This question goes the opposite way from the conversion I would like: Matrix from graph description This question is almost what I want, but the vertex coordinates are manually ...
2
votes
2answers
51 views

List of figures that have a certain “property” I set

Note: This question differs from other similar custom-list questions because each of my environments-of-interest can have multiple keywords, and I only want to generate a list pertaining to one ...
0
votes
0answers
27 views

How to set up automatic build in Emacs

I've done this with Texclipse in Eclipse using a script that is called after every edit or refresh. I wonder if this is possible in Emacs? For Emacs, I manually compile by calling M-x tex-compile ...
6
votes
2answers
130 views

How to automatically include several text documents into a LaTeX document?

I have several .txt or .dat files, whose names are of the form: dn-ddmmyyyy.txt. For instance: d0-01021989.txt d1-21021989.txt d2-15021994.txt d3-12121996.txt d4-14032014.txt d5-22022035.txt ...many ...
1
vote
1answer
49 views

Replace lambdas by bold lambdas in a macro

I am looking for a way to replace \lambda by \bm\lambda in some of my expressions. This is what I tried, without success: % arara: pdflatex \documentclass{article} \usepackage{bm} ...
24
votes
2answers
959 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, ...
1
vote
1answer
47 views

Multiple pdf outputs with template

I have some 84 files S1-5.tex, S1-6.tex, S1-7.tex, S1-8.tex, S2-1.tex, S2-2.tex like these which only contain content. The templ.tex file contains the preamble. I need to generate 84 pdf files ...
94
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 ...
2
votes
1answer
55 views

Reading and (custom) formatting a CSV (not \csvautotabular)

Suppose I have a really long, really boring list of data in - let's say CSV, but converting to other formats is an option, when this can be done automatically - and I want to prepare a section in my ...
0
votes
0answers
49 views

Auto-Compile after any modification in WinEdt

Is there any way to make WinEdt to automatically re-compile after any modification in TeX file? I know that it is possible to do it using third-party codes like it is explained here: Why can Bakoma ...
1
vote
1answer
34 views

References from auto generated images are wrong

In the following I generate labels for some figures that are auto-generated \usepackage{varioref} \newcounter{figurecounter}\setcounter{figurecounter}{1} \let\endF\endfigure \renewcommand\endfigure{% ...
3
votes
1answer
114 views

Iterate through folder foreach picture, possible?

Is it possible to iterate through a folder containing pictures while first filtering file extension tikz,png,pdf or eps, and then getting a list of filenames of the directory for use in a for loop, ...
4
votes
1answer
76 views

How to automate introduction of section titles in book

I'm using Spundun's method for automating inputing the entries in a diary, in turn inspired by Peter Grill (Using LaTeX to keep a diary), and I would like to add section dividers by year. This should ...
2
votes
0answers
41 views

Using Lua in listed elements (List of Figures, List of Tables, List of Content)

I am not sure if I use the wrong approach or if this is an issue in LuaLaTex in general. I tried to integrate some internationalization (I18n) to our documentation framework using Lua. Long story, ...
101
votes
24answers
11k 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 ...
6
votes
2answers
199 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 ...
3
votes
1answer
70 views

Is there a way to know how often latex has already run? [duplicate]

A few days ago, I have seen an example of a latex file, that did conditional \defs on subsequent runs but I can't find that one again. I still remember that it was by looking into the \jobname.aux do ...
2
votes
2answers
110 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
527 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?
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
36 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
101 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
239 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
162 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
780 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
221 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
112 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
110 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
144 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
246 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
311 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
398 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
243 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
268 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
184 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
168 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
212 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
90 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
49 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 ...
13
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
74 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 ...