{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

31
votes
5answers
7k views

Script to automate externalizing TikZ graphics

Is there a script to automate externalizing TikZ graphics? (As suggested by Scott here)
3
votes
1answer
60 views

AND-OR Graph from Horn clauses

Does anyone know if there is a way to generate a nice graph from Horn clauses? for example: Ideally, I would like to generate AND-OR graphs like this directly from Horn clauses written in Latex; ...
1
vote
1answer
22 views

MathML and LaTeX conversion required in htlatex

I have required all the display equations should be convert to MathML options and some inline-equations need to convert in text mode format. This two types of conversion is possible in htlatex?. For ...
1
vote
2answers
70 views

How to sequentially “feed” a LaTeX document from external data source?

I have a quite complex C program that has the ability to generat raw text output to text files that are then printed on a matrix printer. These lists are now meant to receive a typographical update to ...
1
vote
1answer
38 views

How to merge data and create multiple documents?, similar to personalized mailings

I would like to use LATEX combined with EXCEL data files (or CSV if it were neccessary) to create "proof of payment". Supose a list of people John McEnroe, NYC (USA), 110.23$, 10$,May...... Mary ...
2
votes
0answers
29 views

etoolbox: problem with the last row in an table automated

I want to automate a long table as follows \documentclass{article} \usepackage{etoolbox} \newcounter{test} \newcounter{count} \begin{document} \begin{tabular}{|c|c|}\hline \whileboolexpr{test ...
2
votes
1answer
83 views

Texstudio quick start wizard options managing

My aim was to add some language packages to the quick start wizard. Thus I cliqued the plus symbol of the 'other options' option. Then I was asked to type in this new option: Thinking that it was ...
2
votes
0answers
52 views

Home-made format and Flashmode

I work with TeXShop 3.51 and OS X 10.9.5 on a MacMini 2012 + SSD. I successfully compiled a XeLaTeX format, say uo, and I can use it : %&uo % !TEX TS-program = uo \input uo-fonts.tex ...
41
votes
3answers
5k 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 ...
4
votes
3answers
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. ...
0
votes
0answers
70 views

Connectivity Maps: A way to implement this efficiently with LaTeX?

I am interested in creating connectivity maps. While there are a wide variety of ways to handle this, I am particularly interested in a LaTeX-based method for handling this. Below is an example of a ...
9
votes
1answer
197 views

Automating extraction of Markdown-formatted tables from an (incomplete) LaTeX document

I am trying to automate the presentation of my note taking. I would like to be able to regex all Pandoc tables in my document, add LaTeX around them, compile them and show the result in a PDF. ...
1
vote
0answers
27 views

LaTeX: precompile document to reuse inside a C++ program [duplicate]

I've made a C++ program with uses a LaTeX template for creating PDF documents. I open the file, replace some placeholders written inside the .tex document with values of a DB, and then, I compile the ...
2
votes
1answer
57 views

Automatic creations of labels

I have a bad habit of not labeling my headlines and I find creating them afterwards rather cumbersome. Is there any script/program that can create a label automatically from the headline, so that ...
37
votes
6answers
5k 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 ...
2
votes
2answers
27 views

Error in class lettre with datatool package

I would like automaticaly write 5 letter with \documentclass[10pt]{lettre}. I 've a CSV file with all my recipient information in mail_bd2.csv like : Titre,Apostrophe,Prenom,Nom,Organisme,Rue,Ville ...
0
votes
1answer
32 views

Automatic row (not line) breaking in tabular (or analogues) with a variable number of columns

I have some values which I need to put in a row-major form, i.e. fill the column of a tabular on the basis of its width, as described in the MWE. \documentclass[a4paper]{article} ...
5
votes
2answers
85 views

Automatically highlight words from a predefined list

I am not a native English speaker and there are some grammar mistakes I do a lot, especially have/has in conjunction with each/every, and so on. Q: Is there some way to highlight all occurrences of ...
0
votes
0answers
12 views

Xkeyval link option

I am using xkeyval and authblk package. I am creating the author link using the tag like "link={link text here}". I have mentioned four authors in my MWE. The first two authors have a link and last ...
0
votes
1answer
29 views

VIM Latex Suite. Convert u1x1 to u_1(x_1)

In this question: VIM Latex Suite repeating symbols with subscripts and superscripts Anthony created this magnificent vimscript code: function! <SID>SubSuperscripts(keyOne, keyTwo) let l = ...
111
votes
25answers
14k 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 ...
0
votes
1answer
54 views

How to automate typeset proceess? [duplicate]

I am currently using Texworks + Linux. To compile the PDF I hit pdflatex + bibtex + pdflatex + pdflatex. Is there a way so that I create a new typeset that does that in one click? Found the easy ...
2
votes
2answers
101 views

Compiling current text block in WinEdt

In WinEdt there is a toolbar button for compiling current selection of the document. But is it possible to compile current text block without manual selection? By text blocks I means parts of text ...
7
votes
3answers
182 views

Automatically generating table using \multido

First: This question is similar to Generate rows in table using \multido (or something similar). Consider the following code: \documentclass{article} \usepackage{siunitx} \usepackage{multido} ...
19
votes
4answers
2k 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 ...
7
votes
2answers
4k 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 ...
2
votes
0answers
137 views

How to add a version counter to a document in LaTeX?

Well this can be a silly question, but now I begin to give copies of my thesis for review, I would like to add a counter versions of the document. Then I have curious if there are any package or some ...
20
votes
3answers
796 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: ...
0
votes
0answers
40 views

Obtain location of typeset expressions

I'm researching for a project I have in mind, that will typeset expressions and then allow some degree of navigating the expression e.g. selecting subexpressions. I'd like to be able to not reinvent ...
20
votes
2answers
1k views

How to automatically arrange an unknown number of images?

I have several compilable LaTeX input files and their corresponding PDF files. Each PDF file contains any number of pages. I want to import each LaTeX input file with \lstinputlisting followed by its ...
54
votes
4answers
8k 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 ...
2
votes
1answer
114 views

Automating a graph drawing procedure

Here it is: I want to draw a big graph, say 50 vertices and ~200 edges. I'm getting the edges from the output of GAP, a programme for computational algebra. As it is, I have no idea what the graph ...
3
votes
2answers
5k 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 ...
2
votes
1answer
198 views

How do I Auto-Label Hyperref Fillable Forms \TextField?

Is there any way to put an automatic label into the hyperref package's \TextField parameters field like this: \newcounter{lexemeCounter} ...
10
votes
1answer
408 views

Incompatibilities with and alternatives to nath

I just discovered the existence of nath to auto-size mathematical expressions. But I also read that it has many incompatibilities and it also doesn't seem to be maintained anymore (last update was ...
2
votes
2answers
77 views

Include chapters using foreach

I have seperate .tex files in a directory named chapters in the main directory. I would like to include/input those. After some research a solution like the one below could be possible. Unfortunately ...
5
votes
2answers
7k views

Automatic missing package download on the Mac

Is there a LaTeX distribution for the Mac which has or comes close to MiKTeX's ability to download missing packages automatically?
0
votes
0answers
72 views

Automatically check whether all symbols are listed in the nomenclature

Sometimes, I write long documents with a huge amount of abbreviations and mathematical symbols. Up to now, I used to check manually if all of them were declared in the nomenclature, which is a very ...
3
votes
1answer
81 views

Automatical title section in beamer only on the first frame after \section

I'm trying to make that the title of the last section appears as frametitle only on the first frame after each \section{...} code. Now, i'm doing it manually with this code : \newcommand{\TS}[0]{ ...
0
votes
0answers
79 views

Automatic numbering TikZ figure exported from Geogebra

In my book, I have to draw a lot of figure by Geogebra and then exported to LaTeX. I used to numbering them by a caption below but sometimes I have to add more figures among them, so there is a huge ...
3
votes
1answer
98 views

Automating Lettrine

I know this topic has been touched on here and other places on the web, but it doesn't seem anyone has come up with a good solution. What I would like is to apply lettrine to a paragraph so it always ...
6
votes
1answer
136 views

How would you typeset this type of programming documentation?

Consider, for example, this pdf document which defines the standard for the C programming language. The description of the library functions follows a fixed structure composed of three sections, as ...
28
votes
2answers
1k views

Is LaTeX intended for unattended typesetting?

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

How can I label forest nodes automatically, adding labels as prefixes to nodes' content exactly once?

I was trying to figure out how you might get forest to label the nodes in a diagram such as the one featured in this question automatically. So, the idea is that: level 0: content of node should be ...
28
votes
3answers
780 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 ...
2
votes
1answer
99 views

text autocompletion on latex editor

I have a list of text snippets which I use frequently eg To whom so ever it may concern, as soon as possible, Feelfree to contact me on . Most tex editors allow command completion. Is there any way I ...
10
votes
1answer
262 views

Is there a macro telling which OS we're using?

I got some LaTeX documents that I have to compile them under different TeX Live, such as MacTeX or TeX Live. But in different OS, the font seems different too, for example, while in Windows, I prefer ...
1
vote
1answer
94 views

`fancyhdr` and automatic line length

I want to create a template for notes and I was thinking to use fancyhdr package. So far I face two problems: [1] I don't want the header in the first page, but only the footer [2] I would like to ...
5
votes
1answer
122 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 ...
10
votes
4answers
454 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 ...