{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

1
vote
2answers
40 views

Print a short title in the header

I'm creating a style file to use as a template for submissions to a specific journal. That journal requires a short title in the header. I could easily hard-code such a short title in the style file ...
2
votes
0answers
30 views

Cancel the use of \baselineskip when at the top of page

I've defined a macro \myaddress which prints my address at the end of a document, cf. Simplify how I write my address in documents. That macro includes the use of \vspace{\baselineskip} to separate it ...
3
votes
0answers
60 views

How can I read in files paragraph by paragraph?

I have an interesting project here and, while I could do it manually, it seems to me to be an interesting puzzle to automate it. I have the following structure: ./ +- main.tex | +- originals/ | | | ...
4
votes
0answers
48 views

Querying a SharePoint list and typesetting the response with LuaLaTeX

I would like to generate some reports from data stored in SharePoint lists. It is possible to query the lists using web services and retrieve the data in a xml data format. For example, sending a ...
0
votes
0answers
17 views

Adding blank pages when generating multiple copies of a document [duplicate]

I'm generating multiple copies (right now, 2, but a general solution would be nice) of a letter with minor variations using datatool. I just realised that if I'm printing it double-sided. and if the ...
2
votes
0answers
46 views

How to use sed to comment some lines in tex files (has “%” a particular meaning for sed ?)

I've been reading something in Most useful sed one-liners for TeX users which is related to my problem, but albeit interesting, it is not what I need. I have many tex (beamer class) files in ...
0
votes
0answers
56 views

How to batch convert PS to PDF without leaving windows open?

I am new to TexShop and new to this forum so please forgive me if the question is dumb. I need to convert about 13,800 postscript files to PDF. TexShop can do it but the only ways I know how means ...
17
votes
1answer
306 views

Optimal arrangement of pictures/boxes in a page

Does anybody come up with a way to automatically arrange a few figures or boxes in a larger rectangle or page? Here it is a real world example: One is producing a beamer presentation. One has 4 or 5 ...
18
votes
4answers
373 views

Avoid repeating [hbt] and \centering for every table

In a document I'm writing, I'm using the familiar [hbt] option for my floating tables, and I center them. I'd like to avoid repeating that every time I'm creating a table. I assume it's easy to add ...
4
votes
1answer
31 views

Parametrized inclusion of sub-files

I'm preparing a Resume using LaTeX, mainly for the purpose of easy customization. In particular, I wish to be able to generate different outputs from the same input file by changing a few parameters. ...
4
votes
1answer
85 views

Possibility of extending LaTeX capabilities given technology advancements?

As countless questions/answers have noted in the past, LaTeX requires you to compile at least twice when there are references, TOC/LOF, etc. Many of these situations have been documented in the ...
2
votes
2answers
81 views

Updating words throughout document

In my job we deliver several of hundred physical assemblies per project - typically to offshore platforms in Nordsjøen - each one has a corresponding tag (and also other metadata such as item ...
6
votes
2answers
99 views

Automatically remove ruler when no header is present

This is a question triggered by Automatically remove page number in one-page documents. When activating the fancyhdr package, it is necessary to clear the headers, which I do below with \fancyhf{}, ...
12
votes
4answers
287 views

Automatically remove page number in one-page documents

I find LaTeX's choice of putting a page number in one-page documents stylistically odd, so I would like to suppress that behavior. I've previously done this manually, but it would be better to not ...
1
vote
1answer
50 views

Inputting files alphabetically

I am creating an anthology of poems and songs, and have a main file where I am using \input to insert separates TeX files which contain the poems. I was wondering if there was a simpler way of ...
2
votes
1answer
74 views

Create an accessory that executes latex->dvi2ps->ps2pdf in WinEdt

I use WinEdt Build 20131031 (v. 8.1) 64-bit with Windows 7 and MikTeX 2.9. I would like to create an accessory ("latexdvi2ps2pdf") in execution modes for compiling tex documents in the following ...
20
votes
2answers
827 views

Is LaTeX intended for unattended typesetting?

With markup converters like Pandoc, it is now possible to generate LaTeX documents without ever touching any LaTeX code. However, obtaining aesthetic page breaks for slightly complex documents, ...
4
votes
0answers
71 views

Is there a package for automating equation colorization?

I'd like to have the equation colorization process be somewhat semantic, i.e., I can still type equations or math the ordinary way, except they occur in an environment in which the colorization ...
0
votes
0answers
38 views

Add additional title page if page number is large

I have a document that generates automatically. Sometimes number of its page becomes too large and I want to add additional title page for every part of it which is, for example, 2000 pages long. So, ...
3
votes
1answer
124 views

Automatically emphasize \author names in bibliography and citations

This is a follow-up question to Make specific author bold using biblatex. Using biblatex and biber and either XeLaTeX or LuaTeX, would it be possible to extract all names from the \author command, ...
3
votes
0answers
71 views

How do I automate writing list of symbols in my masters thesis?

I'm using documentclass{article}. I have symbols, both in inline text and inside equations. How can I automate the process of listing them?
5
votes
1answer
95 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 ...
2
votes
2answers
156 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
161 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} ... ...
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 ...
2
votes
1answer
143 views

Overwrite TikZ auto placement of weights in graph

So I have the following graph: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usepackage[english]{babel} \begin{document} ...
1
vote
1answer
114 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 ...
9
votes
1answer
308 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
38 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
45 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
82 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
214 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 ...
10
votes
4answers
303 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 ...
6
votes
2answers
208 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
346 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 ...
5
votes
1answer
90 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 ...
11
votes
0answers
96 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 ...
2
votes
0answers
67 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
126 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} ...
1
vote
1answer
70 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 ...
1
vote
1answer
71 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 ...
12
votes
3answers
318 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 ...
4
votes
1answer
148 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} ...
6
votes
1answer
148 views

How is automatic indentation done for subfiles with arara and latexindent?

I guess that I have overlooked something, but I can't find a solution to run arara on my subfiles when processing my main file. I would like to autoindent my code but only succeed for the main.tex. I ...
1
vote
1answer
130 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 ...
3
votes
1answer
309 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
1answer
158 views

Adding a dictionary definition

Does anyone know of a package that supports dictionary definitions? I was thinking of something like this: Source: Luscombe et al (2001), Yearbook of Medical Informatics. A) the easiest would ...
0
votes
0answers
21 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 ...
5
votes
0answers
97 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 \ ...
5
votes
1answer
331 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} ...