{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

9
votes
4answers
432 views

pdfLaTeX: Convert € (euro symbol) to command

I would like to use € (\€ is also acceptable) in a way which €{9x10,00} (or €[]) produces \SI{9x10,00}{€} (so a particular case of converting € to command). Preferably, if typed alone (€) it should ...
9
votes
0answers
150 views

Branch TikZ graph always on the same side

I am trying to draw a graph (actually, generate TikZ code automatically) which has a main branch that must be straight; secondary branches must always branch on the left. On each layer there must be ...
3
votes
1answer
53 views

Using TeX to automatically create a book of abstracts with sorted entries

I need to process about 100 tex files for a conference. Each file contains an abstract of a presentation and has one author. Let us assume that the relevant parts of each file are arguments of the ...
26
votes
5answers
2k 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 \...
1
vote
1answer
37 views

Italicize all words that doesn't belong to the dictionary

I'm a spanish Computer Science student and I'm doing my final degree project with Latex. I'm using TexMaker on Windows and I want to know if I can italicize all the words that doesn't belong to the ...
13
votes
3answers
486 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 ...
63
votes
5answers
13k views

Detecting all pages which contain color

In an larger LaTeX document there are often only some pages with color content (mainly figures) and the remaining ones are only black and white. Because printing costs for color pages are much higher ...
2
votes
2answers
89 views

Sorting table entries automatically

As one part of my thesis, I have more than 20 tables. I need to sort their entries alphabetically. The tables are in following format: \begin{table} \label{tab:first} \begin{tabular}{lllllll} ...
3
votes
2answers
34 views

How to make work macros work as values in parameters of psbarcode?

TL;DR- Works \psbarcode{NODATA}{height=0.33 width=1.6 includecheck includetext}{code128} But "parametrized", does not work as expected (produces big transparent output) \def\h{0.33} \def\w{1.6} \...
2
votes
1answer
25 views

Enumerate starting at equation number

The following MWE contains proofs of equations numbered (2) through (4). I structure the proofs using an enumerate environment, so that the proof of equation (2) is labeled with 2., the proof of (3) ...
8
votes
2answers
535 views

How can I programmatically populate a PDF's pdfcreator field?

As I understand it, embedding (as metadata) the typesetting engine that was used to produce a PDF document is good practice. Here is an example of how this can be done using the hyperref package: \...
7
votes
2answers
210 views

Draw star polymer in tikz

I want to draw a structure similar to the below picture in tikz. The draw have to be in 2 dimensions and have 4 arms with each 6 monomers in each arm. Preferable each arm twist, like in the below ...
3
votes
2answers
304 views

Backward difference in LaTeX?

How can I write backward difference in LaTeX?
2
votes
1answer
662 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 ...
4
votes
1answer
4k 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: ...
1
vote
0answers
60 views

In search of automatic drawing finite state machine graphs

I am looking for some layouts or methods with which I could draw Finite State Machine graph. I have tried a lot of Tikz library layouts like: spring, necklace, electrical and so on. Main thing what I ...
8
votes
0answers
110 views

Tags, like on TeX.SE, but with the ability to show or hide both the tag--document structure and associated text, as in the multiaudience package

The term "tags" can be understood to mean that which is used to organize and make text more understandable (as in TeX.SE). The term "tags" can also be understood as something used to manipulate the ...
3
votes
1answer
65 views

Set paperheight to (overall) textlength

The page should when the text ends. So, that there is only one "page". Don't worry. It's not for being printed. \documentclass[12pt]{article} % Packages \usepackage{lipsum,anyfontsize} \usepackage[...
1
vote
0answers
17 views

How do I automatically generate BibTeX citation template in Kile?

When I want to cite something in BibTeX, I Google (for example) bibtex article and scour for pages with example templates filled out: @article{article, author = {Peter Adams}, title = {The ...
8
votes
5answers
191 views

Importing Parameters From a Separate File

Looked a long time for a solution to my problem, but said problem did not seem to lend itself well to "google-eez"! Here's my problem: I have a Beamer presentation that I give to many different ...
2
votes
0answers
62 views

search for and highlight words/numbers in pdfpages while only printing highlighted pages

I have a project where it would be very helpful to be able to include pdf pages with certain text and or number highlighted, and in addition limit the pages output to those which have the highlighted ...
119
votes
25answers
19k views

Tools for automating document compilation

A lot of people write makefiles that say something like paper.pdf: paper.tex pdflatex paper bibtex paper pdflatex paper pdflatex paper To handle re-running TeX to ...
7
votes
3answers
6k 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
1answer
99 views

One source, multiple outputs

I built a CV using the kjh-vita LaTeX template (based on memoir and the template's custom stylings). I use(d) extensively end-notes via the enotez package. Then, I derive(d) a short version without ...
9
votes
1answer
3k views

How to use kile with feynmf or feynmp?

Does somebody know how to teach kile to automatically do the additional steps for compiling Latex documents that contain Feynman diagrams produced with feynmf or feynmp? For what I know I have to ...
0
votes
0answers
24 views

import entry in jabref from command line

~>java -jar /Applications/JabRef.app/Contents/java/app/JabRef-3.2.jar -n --fetch=inspire:1602.00684 ~/Dropbox/JabCache.bib to get JabRef to add a new entry to my database file. The output on the ...
3
votes
0answers
39 views

Auto images height to get specified number of pages. Is it possible with LaTeX?

I am a very beginner in LaTeX, and need to know if it is possible to do next. There is a book, consisting of text and photos, going one by one. Questions: Is it possible in LaTeX to make images ...
9
votes
1answer
179 views

What packages provide text/command substitution for LaTeX, XeTeX and LuaLaTeX?

I am aware of the following: xesearch - Allows both text and command substitution. Only for XeLaTeX Simple example: \usepackage{xesearch} \SearchList{list1}{Hello}}{hlw} Any time "hlw" is ...
2
votes
2answers
65 views

Can glossaries provide warnings when a glossary entry is used but not included in the glossary?

glossaries supports cross-referenced entries. In particular, if I use one glossary entry in another and only include the second explicitly in my document, glossaries can still figure out that it ...
24
votes
2answers
9k views

Inputting multiple files in LaTeX

Suppose I have a directory containing a bunch of LaTeX source files, and I want to input all of them into a single main file. I could do this by saying \input{dir/file1.tex} \input{dir/file2.tex} \...
0
votes
1answer
57 views

for shell script containing the whole latex document, adding a file name choosing capability [closed]

I ran across this post Possible to have a shell script containing the whole LaTeX document? The solution in that post works perfectly as written. However I wanted to be able to choose the name ...
1
vote
1answer
43 views

Command sequence to reliably terminate LaTeX in batchmode

I'm looking for a command sequence that will terminate a running instance of pdflatex --interaction batchmode regardless of its state and prior input. I don't care about the output or error ...
4
votes
2answers
29 views

Automatically adding spaces (tracking) between letters in math mode?

A tool that I have no control over produces the following output: \[\mForall{v1 v2 v3 : \mNat{} \mPlus{} \mQuot{}}{a \mLt{} b \mAnd{} b \mLt{} c \mImpl{} a \mLt{} c}\] All that I can do is redefine ...
0
votes
0answers
29 views

How to create an own sorted label List from special \refs

I the following code which lets me define labels for source code and later make a table out of them \documentclass[12pt]{article} \pagestyle{empty} \usepackage{xcolor} \usepackage[hidelinks]{...
2
votes
1answer
48 views

Auto-generating labels for theorems

I'm using package amsthm to define a "Definition" environment as follows: \theoremstyle{definition} \newtheorem{definition}{Definition} In brackets, a name for the definition is supplied: \begin{...
36
votes
5answers
8k views

Script to automate externalizing TikZ graphics

Is there a script to automate externalizing TikZ graphics? (As suggested by Scott here)
103
votes
12answers
8k views

LaTeX packages for use with revision control

I use revision control (Subversion, to be exact) to keep track of the edits to my LaTeX documents. Is there a LaTeX package that interfaces with revision control? Specifically, it would be nice to see ...
7
votes
1answer
118 views

Where do I find a LaTeX template with maximal number of math-related shortcut commands?

During my mathematical typing, I find it a lot of hassle having to type in and then proofread. Visually impaired, I'm really slow with my mathematical typesetting using LaTeX. So can anybody ...
25
votes
2answers
8k views

Auto generate an Index

Is there any way to auto-gererate an index for the makeidx package? I've written ~270 pages and didn't think of adding \index{} everywhere. Do I really need to go over everything and add \index{}?
6
votes
1answer
178 views

Recommended database to handle large amounts of text for LaTeX automation [closed]

I am automating the production of LaTeX files but am noticing that depending on the selected database and scripting language there can be length limitations on the character strings being retrieved. ...
1
vote
1answer
64 views

Producing LaTex tables from OpenOffice Calc

Calc2latex is a great add-on for OpenOffice Calc, but no longer works since about version 4.? of Calc. I am now working with Calc 5.0.3 Is anyone aware of a way to automate production of latex tables/...
1
vote
0answers
364 views

LaTeX for automatic report generation

I accept that this question might be a bit outside the scope of this page, but please bear with me! At work I'm going to set up a framework for generating some pretty basic reports, which could be on ...
1
vote
0answers
28 views

version of multiple files: all document in one .tex file

I am using latexpand to Replace \input{fileX} by the content of fileX automatically using the following command in ubuntu: perl latexpand mainfile.tex > newfile.tex But I am obtaining a warning ...
11
votes
1answer
12k views

Auto-fit table column widths based on content

Is there any solution in LaTeX tables that implements similar functionality to MSWord's AutoFit?
0
votes
1answer
45 views

Latex Command to Compile another Latex File

I am making a cover letter, where I add a CV to that letter. I currently use the command \includepdf[pages={-}]{CV.pdf} Using the package pdfpages to include another pdf file. This imply that CV....
1
vote
0answers
77 views

Automatic Population of table

I'm a Newbie to LaTeX. I'm looking for a way to make a Bill of Materials list (automatically) from the contents available in the document. In the below example, I've shown what the document will ...
5
votes
1answer
51 views

Automatic \fullcite for entries whose keywords field includes a certain keyword

For a thesis, I would like to switch the behaviour of the citation commands \cite and \footcite based on the cited entry's keywords, so that Biblatex automatically outputs the citations of source ...
0
votes
1answer
33 views

how can make an automation script for pdf?

I have article from 10chapters. How I can make automation for pdf compiling? I need to make several different pdfs without one or two chapters. I can everytime just create another maintex and add /...
1
vote
1answer
87 views

Automatic List of Corrections

I have an edition of a document and I'd like to create a new edition with corrections on several places. What's the best way to create a list of corrections? I would imagine encapsulating the '...
1
vote
1answer
65 views

Is there any macro to generate latex pdf without a chapter?

I have the main tex which include tex files. \begin{document} \include{chap1} \include{chap2} \include{chap3} \include{chap4} \include{chap5} \end{document} How can I make a one pdf without for ...