{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

8
votes
2answers
519 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
186 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
301 views

Backward difference in LaTeX?

How can I write backward difference in LaTeX?
2
votes
1answer
616 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
34 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
98 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
53 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} ...
0
votes
0answers
13 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
179 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
57 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
18k 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
93 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
20 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 ...
3
votes
0answers
38 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
159 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
59 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 ...
23
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
50 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
33 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} ...
2
votes
1answer
44 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: ...
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
7k 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
109 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 ...
24
votes
2answers
7k 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
160 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
62 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 ...
1
vote
0answers
263 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
24 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
11k 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
44 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 ...
1
vote
0answers
74 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
48 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
30 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
86 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 ...
4
votes
2answers
141 views

How to set up automatic build in Emacs

I've done this with Texclipse in Eclipse using a script that is called after every edit or refresh. I wonder if this is possible in Emacs? For Emacs, I manually compile by calling M-x tex-compile ...
2
votes
1answer
114 views

Automated document generation with texts and images

I would like to generate a document including several images. Under each image should be a different caption, taken from an text file, separated by line or semicolon. For example: imagename: 1.jpg ...
4
votes
1answer
60 views

Automatically calculate width

This is a question to Werner's answer to the question "How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)?". Consider the following code: ...
3
votes
1answer
92 views

Automatically add \noindent for short paragraphs

Is there a way to activate \noindent to each line which is so small that there is no line break in the paragraph? An example: The code This is a long paragraph: Lorem ipsum dolor sit amet, ...
4
votes
2answers
227 views

Automatically validate and format ISBNs

Is there any way to get Biblatex to automatically validate and format ISBNs? That is, I would like to be able to enter a field such as isbn = {9789549090666}, in my .bib file—not worrying about ...
2
votes
2answers
131 views

Problem with tikz externalize and automatic solutions

I am using a solution environment for exercise sheets as proposed by @egreg some years ago: http://tex.stackexchange.com/a/39566/4011. However if I combine it with the tikz externalize library, it ...
7
votes
1answer
201 views

How to add a version counter to a document in LaTeX?

Well this can be a silly question, but now I begin to give copies of my thesis for review, I would like to add a counter versions of the document. Then I have curious if there are any package or some ...
22
votes
2answers
1k views

How to make these boxes?

I don't know how exactly to call what I want to implement. It's like a box surrounded with a line and, depending on the context, I want to place a graphic on the right corner e.g. a light bulb or a ...
7
votes
1answer
337 views

Automatic document generation based on a database

I want to automatically create business card based on a database containing my employees' data. (i.e. to generate one .pdf file per person, filling in a pre-filled document with the information of the ...
1
vote
1answer
38 views

Automatically reset the counter of a custom-defined sectioning block with titlesec

I added a custom sectioning block to my document following the instructions I found on this question: Defining custom sectioning commands. Below is a mvce: \documentclass[12pt]{article} ...