{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

25
votes
4answers
668 views

Smart parentheses?

Is there a way of smartly nesting parentheses and square brackets (in text mode), so that LaTeX detects nesting relations and typesets them accordingly? I'm thinking in something like csquotes does ...
4
votes
3answers
89 views

Automatically construct image file name

I have a lot of images numbered like so: image_0001.png image_0002.png image_0003.png ... I would like to set up a Latex command to include a specific numbered image, for example: ...
3
votes
1answer
232 views

Automatic arrangement of equations with comments

This question led to a new package: conteq I am writing a paper with multiple chains of equations or inequalities, with optional explanations. Depending on the size of the equations, I use one ...
4
votes
2answers
861 views

Implementing a way to show data structures in LaTeX

Is there a way to implement data structures in LaTeX? I am currently taking two classes that require large numbers of heaps (min,max) and queues (FIFO,LIFO) and the like to be drawn after inserting ...
8
votes
1answer
289 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
1answer
69 views

System: XeLaTeX, Circumstance: Automation, PROBLEM: error message “missing \item”

I am currently generating PDF's with variable contents from a template I made. Data is fetched from a database and used to create reports. This has been working greatly until recently I needed to ...
0
votes
2answers
133 views

How can i create multiple documents from one template - depending on special “variables”?

I am currently trying to set up a document template that allows for automated creation of different output files depending on a certain "input". The "input" could be a variable or a certain kind of ...
9
votes
1answer
828 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 ...
8
votes
1answer
3k views

TeXstudio: how to automate LaTeX biber sequence of compilation

I'm a bit confused about how to configure TeXstudio to use biber. It's not that I can't find a way, I'm just wondering what is the intended way, i.e. coming from WinEdt I'm used to that "Build" or ...
3
votes
1answer
69 views

Add space in `brqalign`

Some time ago David Carlisle wrote an awesome brqalign function in this answer: http://tex.stackexchange.com/a/51543/4011. See the cited code below. How can I add space between the rows of brqalign? ...
4
votes
1answer
121 views

How can I enable non-standard characters such as blanks or german Umlaute (ä,ö,ü) for hyperref labels?

I am trying to write a small package that (as a minor sub-feature) incorporates some usage of hyperref to get internal cross-references. To be precise, I want to do provide functionality like the ...
33
votes
1answer
1k views

Questions on designing a dynamic database of exercises

Almost all packages to handle exercises allow us to attach/retrieve meta-data to/from each exercise. Some things one might want when handling exercises are: Filter exercises according to their ...
6
votes
1answer
3k 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 ...
4
votes
0answers
285 views

Automatically generate workbook from a sort of database

I have already posted a similar question here before, but because it was way too open-like and not defined well, it got closed. I'm giving it another try, this time being a bit more specific. I'm ...
1
vote
1answer
1k views

Run multiple commands in TeXShop typeset [duplicate]

I am a user of biblatex-mla and I wish to run the whole bibliography generation workflow with a single click of "Typeset" in TeXShop. pdflatex filename.tex bibtex filename pdflatex filename.tex How ...
5
votes
1answer
750 views

automatically to apply \enlargethispage{\baselineskip} when single-word-widow occurs

Sometimes I encounter this single word widows instance very often, please find the right hand page, topline scoundrel. My design strategy is to leave enough white space at the bottom margin, so when ...
4
votes
1answer
492 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 ...
11
votes
4answers
2k views

Automating the creation of name badges for an event

We are organizing an event. There will be around 60 participants and I need to prepare name badges (tags) for them. The badge will involve, name surname and affiliation fields which is different for ...
2
votes
1answer
215 views

Automatic new directory for new files

I am looking for some way to have a tidy folder system. My idea is, when I create a new file for latex to automatically create a new folder under the same name inside my working directory and put all ...
16
votes
3answers
821 views

Shortcuts for code in latex

I am tired of writing \frac{\partial something}{\partial something_else}. Can I automate it by defining some sort of shortcut to it, so that when I write \p(x)(y) it will transform to \frac{\partial ...
1
vote
0answers
61 views

Building LaTeX files by one command [duplicate]

Possible Duplicate: Tools for automating document compilation Is there a single command which would run bibtex, makeglossary (pdflatex x N ...) etc. automatically? I could create Makefile ...
10
votes
2answers
997 views

tikz External: \tikzsetnextfilename and \tikzpicturedependsonfile

Consider the following MWE. If \tikzpicturedependsonfile is commented out, the code runs as expected. A.dep is created stating the dependency of A.pdf on A.dat. Now, lets try to add the tikz source ...
5
votes
1answer
203 views

Tool to handle “precompiling the preamble” automatically

On Windows there is a nice little tool called latexdaemon that can handle "precompiling the preamble" (and thus speeding up compilation) automatically. It doesn't require any additional setup: one ...
9
votes
1answer
224 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 ...
13
votes
2answers
265 views

Persuading (la)tex “silently to go beyond the envelope of 'good taste' ” to avoid an overfull hbox

My understanding, based on reading this website, is that (la)tex performs at most three passes when trying to typeset a paragraph: one based on \pretolerance, one based on \tolerance, and one based on ...
7
votes
2answers
416 views

Auto-generating tables using etoolbox

I have a particular problem which I am trying to solve using etoolbox, but I can't figure out how. What I'm trying to do is to auto-generate a table based on information from a previous table. This is ...
7
votes
2answers
244 views

latexmk endless loop when non-PDF outputs are specified

My source file is based on the standalone package. The \documentclass command specifically looks like this: \documentclass[preview, convert={density=300}]{standalone} If the source file is named ...
21
votes
1answer
2k views

ultrafast pdflatex with precompiling

I try to improve the time pdflatex needs to compile my book. Really working example book.tex %&preamble \begin{document} Hi \end{document} and preamble.tex \documentclass{article} I run ...
5
votes
1answer
528 views

Iterating over files in a directory and including them

I have a folder called diary which contains a series of files: 20120101.tex 20120105.tex 20120304.tex etc. How can I create a single LaTeX document that includes each of these files, in ...
10
votes
1answer
212 views

Automatically convert “…” to “\ldots”

Is there a way to automatically convert a basic string into a command, for example converting instances of ... to \ldots? I have to work with a large number of plaintext files, and doing a dozen ...
15
votes
3answers
663 views

Mathematical functions inside LaTeX tables

I have several tables where I have tables which may look like this: ------------------------------------- | X | Y | X + Y | X - Y | (X + Y)/2 | ------------------------------------- | | | | ...
5
votes
5answers
2k views

Automation: static array for the sieve of Eratosthenes

I would like to produce one simple array of numbers from 1 to 100 of dimension 10*10, where 1 will not be displayed. In Sieve of Eratosthenes in tikz there are pretty animations, but what I need is ...
18
votes
2answers
2k views

Find optimal figure size to fit two images on one page

I often encounter a situation where I would like to fit two or three figures on one page. I define my figures as follows: \begin{figure}[htpb] \centering ...
5
votes
0answers
210 views

Dynamically applying formatting to regular expressions [closed]

One useful tool I find in InDesign are the Grep styles. With them, one can define character styles (e.g., boldface in small caps) for whatever expression matches the grep pattern. I know this is ...
8
votes
1answer
812 views

Timeline with automatized hours and minutes

Some time ago I've asked a question about Timelines, many solutions were given, but in the end I decided to go with TikZ and also presented my solution. But I couldn't have done it without Torbjørn ...
5
votes
0answers
446 views

Trying to make an automatic histogram (in pgfplots?) [closed]

How can I convert the automatic table generated by the macro, to an automatic histogram? Is the best way do it using pgfplots? \documentclass{article} \RequirePackage{ifthen} ...
2
votes
1answer
159 views

Recover TeX source from automatically generated LaTeX files

Maybe the question can not be exactly understood from the title. So, to automate things a bit, instead of rewriting everything when adding different pictures and tables, code was made to add ...
22
votes
4answers
962 views

Count and use the number of items in advance

When writing LaTeX code, I often successively make changes like adding or removing items. I'd like to have TeX count and update the number of items in the list automatically, as in There are ...
0
votes
0answers
45 views

Creating tables from files [duplicate]

Possible Duplicate: How typeset a numeric table from a CSV file I use the pgfplots package to add graphics to my LaTeX documents. Usually I have a data set in a .dat (plain text) document ...
3
votes
1answer
207 views

Check if non-empty subsection exists under another section

I'd like to try to make a LaTeX class which enforces a number of (non-empty) sections to exist-- if the user doesn't define them manually, then some default section content will be created. ...
5
votes
2answers
164 views

Automatic linebreaking inside displaymath

Yes, I know of the existence of breqn, and I am very excited about this package. I am trying to write a mathematics paper, that will be typeset in two different styles (different page sizes, and ...
2
votes
0answers
197 views

Large block diagrams with auto positioning [closed]

I need to make some (large) maintainable block diagrams. Some small diagrams I already made using Tikz, but I always need to specify the placement of every block. Now for large diagrams this could be ...
7
votes
1answer
1k views

Include figure (from macro) with underscore in filename

I have a system of where a .tex is generated from a program. The final .tex file has a (simplified) structure like this: \newcommand{\PlotFrame}[1]{% \begin{frame} \frametitle{...} ... ... ...
7
votes
1answer
114 views

How to avoid the need to declare already declared items in \index?

Code: \documentclass{article} \usepackage{index} \usepackage{lipsum} \makeindex \begin{document} \section{\index*{Hello World}} Hello World Some text about \index*{foo}. \lipsum[1-15] Hello ...
5
votes
1answer
185 views

How do I make future equations renumber as extensions of previous equations?

I'm looking to do the following automatically rather than manually \documentclass{article} \usepackage{amsmath} \begin{document} These equations are pretty important. \begin{align} ...
34
votes
1answer
899 views

TeX as the basis for data driven document generation system?

I am in the early stages of trying to replace an existing document generation system based on Microsoft Office apps (Word and Excel). The system runs once a year to generate over 300,000 individual ...
4
votes
2answers
2k views

Automatically run Latex command after saving .tex file in Emacs

How can I have Emacs call the Latex command every time after I save my .tex file? Thanks A solution: while playing with ELisp and looking around, I added this to .emacs and it seems to work quite ...
15
votes
2answers
1k views

Create a LibreOffice spreadsheet from luatex

After reading this amazing answer, I'm wondering if it possible to do the same thing but the other way round, that is create a LibreOffice spreadsheet from luatex, exporting data from the tex file to ...
10
votes
1answer
918 views

Create a “yearbook-style” multi-page layout of photos

I would like to create a "yearbook-style" layout of photos in LaTeX. Each photo would have a caption and the objective would be to automatically layout the differently sized rectangular photos to ...
5
votes
1answer
329 views

Automatically capitalize macro output if used after a period [duplicate]

Possible Duplicate: Detect beginning of a sentence in a macro for capitalization Is it possible to write a macro that is able to determine if it is used at the beginning of a sentence? For ...