{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
43 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
10 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
25 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 = ...
0
votes
1answer
43 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
70 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 ...
2
votes
0answers
128 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 ...
0
votes
0answers
32 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 ...
2
votes
1answer
86 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 ...
2
votes
2answers
69 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 ...
0
votes
0answers
68 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
55 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
60 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
83 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
122 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 ...
7
votes
3answers
157 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} ...
5
votes
1answer
66 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 ...
2
votes
1answer
72 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 ...
1
vote
1answer
66 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 ...
1
vote
1answer
69 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 ...
2
votes
0answers
57 views

Are there some tools to automate the final submission to IEEE?

I got a mail from the editor of the IEEE TEC journal where he explains the procedures which are needed to finalize the submission to the journal: The IEEE requires that you submit the following ...
4
votes
3answers
217 views

Very smart parentheses?

This is a follow up question of Smart parentheses? In the above mention question, the parentheses are smart so that they change they form depending on the nesting level. I wonder if it would be ...
5
votes
1answer
133 views

Creating procedurally generated nodes in TikZ

I am relatively new to TikZ, and have been hacking together figures as I need them for uni assignments from various examples on the internet. Now I am moving into research, I am having to write a lot ...
20
votes
3answers
757 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: ...
3
votes
2answers
130 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 ...
6
votes
2answers
168 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
278 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 ...
5
votes
0answers
98 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 ...
0
votes
0answers
39 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 ...
2
votes
2answers
64 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 ...
6
votes
2answers
198 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
60 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} ...
2
votes
1answer
219 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
79 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
40 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
283 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, ...
1
vote
1answer
61 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 ...
4
votes
1answer
90 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
60 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, ...
3
votes
1answer
109 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 ...
4
votes
1answer
70 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
45 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
144 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 ...
7
votes
4answers
205 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 ...
19
votes
2answers
1k 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 ...
10
votes
2answers
132 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
207 views

Creating a LaTeX Template which is filled by a script [duplicate]

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 ...
2
votes
2answers
151 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 ...
6
votes
3answers
734 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 ...
5
votes
2answers
192 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
1answer
345 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" ...