{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}.
8
votes
1answer
145 views
Automated generation of equation key
I am looking for a way to automatically create the legend for an equation (let's say embedded in the align environment).
What I'm currently using is a semi automated to fully manual way. Let me ...
7
votes
2answers
58 views
Setting an “attribute” for Theorem to be accessed later
I am writing a math paper with a large number of theorems. I'm looking to have a table summarizing my results, and I'd love it if the table could be generated automatically from my paper. I' looking ...
4
votes
1answer
32 views
Specify number of columns 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 to modify the brqalign environment such that ...
23
votes
4answers
447 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
56 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:
...
0
votes
0answers
45 views
How to define a custom formatting “style”? [closed]
Within the tablenotes of threeparttable I'd like to manually include a source like so:
Source: Rumors of Oz, 2013 (unpublished / forthcoming).
so that "Source" is either in \textit{Source} or ...
2
votes
0answers
77 views
Automatic arrangement of equations with comments
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 of
\documentclass{article}
\usepackage{amsmath}
...
4
votes
2answers
170 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 ...
1
vote
0answers
60 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
44 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
83 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 ...
5
votes
1answer
123 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 ...
2
votes
1answer
249 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
46 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
59 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 ...
18
votes
0answers
336 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 ...
3
votes
0answers
97 views
Latex-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
63 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 ...
0
votes
1answer
138 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 ...
0
votes
0answers
106 views
Forcing xelatex [closed]
How can I force the document processor to automatically select xelatex as a engine if pdftex is set as a default. Can I specify and invoke xelatex by putting some code in document itself?
It should ...
3
votes
1answer
187 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 ...
2
votes
0answers
105 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 ...
10
votes
4answers
463 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 ...
1
vote
1answer
120 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 ...
15
votes
3answers
400 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
58 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 ...
9
votes
2answers
222 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
131 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 ...
8
votes
1answer
135 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
206 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
323 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 ...
6
votes
2answers
134 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 ...
16
votes
1answer
641 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
123 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
181 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
355 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
419 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 ...
16
votes
2answers
504 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
134 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 ...
7
votes
1answer
469 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
324 views
Trying to make an automatic histogram (in pgfplots?)
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
125 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 ...
21
votes
4answers
342 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
42 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
100 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
111 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
150 views
Large block diagrams with auto positioning
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 ...
5
votes
1answer
256 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
99 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
96 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}
...


