{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

6
votes
2answers
248 views

How to just print the calculation using sagetex

I want a command \simp which takes an algebraic expression E_1 and outputs E_1 = E_2 where E_2 is the simplified form of E_2. To do so I tried to use sagetex like this: \documentclass{article} ...
5
votes
1answer
105 views

Library of reusable equations

I want to do something that sounds simple. I want to create an external file where I will store my equations. Then I would like to be able to these equations and input them in a document without ...
6
votes
1answer
5k views

Auto-fit table column widths based on content

Is there any solution in LaTeX tables that implements similar functionality to MSWord's AutoFit?
2
votes
2answers
219 views

Automated copy and paste?

I have found a program that can convert PDF to LaTeX, and so I have .tex files of various math textbooks. I want to make a list of theorems from the book, and so I have been manually copying and ...
6
votes
1answer
167 views

Put from external file?

I need to write a command that read a line from a text file and expand to the content of this line, the next command read the next line and so on. ... \command{arg} ... \command{arg} ... ...
6
votes
3answers
615 views

Extract document statistics? - How many pages has chapter xy? Count fixmes?

I have a large pdflatex document where each chapter is located in an extra text file and included with \include{chapter3.tex} ... How can I extract the page numbers of each chapter and write them ...
31
votes
5answers
4k 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 ...
1
vote
0answers
34 views

Letter with different addressees [duplicate]

I would like to generate several cover letters which except for the title and the address of the recipients are identical. I do not want to change the title and address every time, but rather want to ...
4
votes
1answer
156 views

Automatic command insertion for successive capital letters

I work in a field with heavy use of acronyms. To make my documents visually more appealing, I like to use a moderate downscaling of the capital letters. \documentclass{article} ...
9
votes
1answer
426 views

Is there an OCR that can convert an image of a formula into a TeX markup?

Is there an OCR software that can convert a graphical image (in PNG, GIF, TIFF, PDF... format) of a mathematical formula into the corresponding TeX markup?
5
votes
1answer
428 views

TikZ to PDF from the command line

I am generating TikZ files using figures from MATLAB (using a MATLAB function from the stack exchange). I then open these files using TikzEdt, and generate the PDF file. Is there a way to make it ...
1
vote
1answer
143 views

Hbox overfull: automatic linebreaks on spaces

I have a problem Overfull \hbox (13.62198pt too wide) in paragraph at lines 49--50. I read similar questions and all the solutions introduced a manual intervention directly into the text - e.g. using ...
10
votes
4answers
328 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 ...
26
votes
4answers
5k views

Script to automate externalizing TikZ graphics

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

How to define a complicated hyphenation for Chinese pinyin

I am setting a document with Chinese pinyin. I use \- to separate syllables in pinyin phrases (eg. zhong\-wen). This not only allows for proper hyphenation, but also allows spell check in ...
2
votes
1answer
49 views

Short syntax for including multiple times the same pages in pdfpages

Using the pdfpages package I can do something like this to merge some pages of a document. \includepdf[page={1,1,1,2,2,10,10,10,10},nup=1x2]{mypdf.pdf} In this case 3 times pages 1 and 2 times ...
7
votes
2answers
90 views

Adding text to a different part of the document

I'm writing a LaTeX document at the moment which has problems (which are created in a {theorem} environment) for the reader in it. I'd like to put solutions to those problems in the end of the ...
8
votes
2answers
224 views

What tools are there to make LaTeX more viable at work

I do data mining in R, Python and various object oriented languages. I like using LaTeX to present my results; either to myself (i.e. use them for result interpretation/analysis) or to send to ...
11
votes
5answers
1k views

Cross Platform LaTeX Build System

I am on Windows 7 Professional (64 bit) and would like to be able to execute one command to completely compile a PDF from source .tex files (including all required runs to get the table of contents, ...
1
vote
1answer
76 views

Where is the auto correction in TeXnicCenter

I was looking for the auto correction in TeXniCenter, and found a ticket from 2009 here: http://sourceforge.net/p/texniccenter/user-reports/1066/ Tino Weinkauf said: "It is already in our feature ...
7
votes
1answer
198 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 ...
11
votes
0answers
100 views

Text collage (word cloud) in LaTeX? [duplicate]

There are some automatic method (package, class, macro) in LaTeX to do a text collage similar to that showed in the image? If not, is would be possible without too much manual work?. The ...
5
votes
1answer
95 views

How would you run the equivalent of a functional test/output test on a piece of LaTeX code?

In most programming languages one has the equivalent of a functional test, that can test code and see if the required output is correct and find edge cases. Is there a way to write similar tests, to ...
31
votes
1answer
945 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 ...
2
votes
0answers
74 views

Create all queries in separate file like \listoffigure

I would like to print all the queries collect from the article and need to print in article opener page. How do achieve this? My MWE: \documentclass{threecolumn} \begin{document} \jnltype{37} ...
5
votes
1answer
136 views

Author firstname, Initials and Lastname values find and store in LaTeX3

I would like to store each authors firstname, initials and lastname values in newcommands. My MWE is: \documentclass{article} \usepackage{xparse} \makeatletter \def\author#1{\gdef\@author{#1} ...
17
votes
1answer
144 views

Floats shortly after they have been \ref-erenced; Warn otherwise

In my thesis I have a many floating figures which I then reference using \ref. I use flafter to ensure that they do not appear before they are defined in the source code (See Force floats to be ...
3
votes
1answer
339 views

TikZ: labeling a small arc

How can I automate labeling a small arc? \documentclass[tikz, convert = false]{standalone} \begin{document} \begin{tikzpicture} \draw (0, 0) arc[radius = .25cm, start angle = 0, end angle = 30]; ...
10
votes
2answers
291 views

How to create commands for automating the commenting process on some zones of a picture

I have a lot of comments to make on different pictures, I can do it with the following command for ex: \begin{tikzpicture} \node[anchor=south west,inner sep=0] (image) at (0,0) ...
12
votes
3answers
336 views

Draw Polygonal Number Using PSTricks (or TikZ)

I would like to draw the following using PSTricks (or TikZ): (Found on http://i1.wp.com/mathandmultimedia.com/wp-content/uploads/2012/08/polygonal-numbers.png.) I can do it myself using an ...
1
vote
1answer
72 views

How can I automatically change the font qualities of the first few words of a chapter?

First off, TeX knows about words (since it does different spacing for inter-letter, inter-word, and inter-sentence. There must be a way to tap into this. As for the Q, what I mean is emulating the ...
1
vote
1answer
157 views

Automatic vertical alignment of multirow cells

I have this MWE \documentclass{article} \usepackage{multirow} \usepackage{bigstrut} \setlength{\bigstrutjot}{2pt} % height added by \bigstrut \usepackage{tabu} \tabulinesep=1.5pt % ensures some ...
10
votes
2answers
3k views

Where to put a custom macros file?

I have a bunch of common commands I put in document preambles. I don't always use them all, but it makes the preamble too long for my tastes. I want to put them all in an external file (preferably in ...
0
votes
1answer
190 views

Intelligent way to autoref / label enumerations

I want to automatically label and reference a enumeration of functional requirements. The labeling works, but I can't reference the list items via \ref{REQ1} etc. ...
5
votes
0answers
110 views

Automating Error Detection of pfdlatex

Background: I have numerous individual files that need to be compiled, so am using a script to do that with the following options: set PDFLATEX_OPTIONS = "\ --file-line-error \ ...
0
votes
0answers
22 views

pdflatex options: double dash vs. single dash [duplicate]

Been meaning to ask this for a while, but is there any difference in a command line option to pdflatex which uses a single dash, and one that uses a double dash? For instance in my recent question ...
2
votes
1answer
301 views

How to draw bigger circular states and multiple transitions in automata?

I want to draw something like this. I have three difficulties: How to draw bigger circular states and dashed circular state? How to draw multiple arrows between states? (Ex. In the state "App ...
5
votes
1answer
390 views

How to draw rectangle edge label in tikz?

I want to draw something like this. How to get that rectangle edge label? This is the MWE. \documentclass{article} \usepackage{tikz} \usepackage[margin=15mm]{geometry} \usepackage{calc} ...
2
votes
1answer
744 views

How can I do the 'latex bibtex latex latex' compiling using Windows without the command line? [duplicate]

I'm using LaTeX and JabRef on Windows. I set up my bibliography database and cited references in my LaTeX document. However, I do not know how to use the command line on Windows to do the 'latex ...
1
vote
0answers
124 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} ...
3
votes
1answer
1k views

Quick Build commands in WinEdt

I recently switched from TeXMaker to WinEdt. In TeXMaker I was used to customize my 'Quick Build' command in the 'Configure TeXMaker' dialog. In that dialog I was able to choose, for example: ...
3
votes
1answer
155 views

Robust processing of autogenerated LaTeX files that contain many errors

I use knitr to generate pretty reports, with pdflatex as backend. Everything works fine if the R code runs without error. However, if the R code fails, the autogenerated file is sometimes invalid in ...
1
vote
1answer
236 views

Automatic report generation

I am trying to automatically create a curriculum vitae (or any other document if one would prefer) from a datafile that holds all values/entries. Here are my individual files that go into this ...
1
vote
1answer
193 views

Automate Controls for Curves

I am looking to automate (simplify) the path drawn in blue on my MWE. I am trying to avoid nodes if possible as this is nested in a tikzpicture. Ideally I was hoping to simply specify the begin and ...
8
votes
2answers
541 views

A tool for creating bibtex entries from MARC tags?

My library provides citation information for books in several formats, but not as bibtex entries. One standard format is the so-called MARC manual tags, which are human incomprehensible, but at least ...
3
votes
1answer
214 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 ...
6
votes
2answers
366 views

Expand command read from file

I have a file, that contains a list of latex commands each command per line. Now I want to read this file line per line and execute/expand the macros automatically. I tried the following but this only ...
8
votes
1answer
494 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
89 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 ...
7
votes
2answers
266 views

How can I determine what a label is labeling (a-la \autoref)?

I want to have a command which gets a label and returns the environment (or the last sectionining command etc.) after which I had the \label. I mean, like \autoref, but no need to convert from the TeX ...