{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
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
11 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
37 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
134 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
0answers
38 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 ...
2
votes
2answers
48 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
8k 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
39 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
25 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
26 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
26 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
40 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: ...
35
votes
5answers
8k views

Script to automate externalizing TikZ graphics

Is there a script to automate externalizing TikZ graphics? (As suggested by Scott here)
102
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
95 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 ...
23
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
142 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
51 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
122 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
22 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
10k 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
39 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
72 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
38 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
83 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
129 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
103 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
57 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
89 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
175 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
108 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
196 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 ...
2
votes
1answer
70 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 ...
7
votes
1answer
172 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
32 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} ...
15
votes
4answers
356 views

Using the filename in the document?

I have a bunch of documents called wk01.tex wk02.tex and so on up to (eventually) 20. These are weekly handouts for a course I TA. Currently, each document starts with a \def\classweek{5} or whatever. ...
0
votes
0answers
25 views

Replace figures by Figure placeholder and move all of them to bottom in LaTeX

I was asked by the journal to do not embed figures and tables in the manuscript file Google says me only about this solution. However solution requires manual amendment of LaTeX file which I ...
5
votes
2answers
7k views

Can Texmaker, as I'm typing, automatically create a preview of the document's PDF output?

Currently, I have to use the F1 key to get PDF output. I want to set up Texmaker so that it automatically shows me an in-IDE preview of the PDF file that my .tex file compiles to...as I type. How ...
3
votes
1answer
87 views

Adjust axes to plotted surface in Asymptote

I am plotting several parametric surfaces with Asymptote. When I change the parameters (tyMax in the MWE below), the value of the function can change significantly so I have to adjust the axes ...
3
votes
1answer
42 views

Are context-sensitive species or abbreviation macros possible?

Thanks to this, automated abbreviation of species and some technical terms became understandable for me as a LaTeX beginner :-) My PhD supervisors (not LaTeX users) however, criticised that I used the ...
48
votes
4answers
6k views

Replace \input{fileX} by the content of fileX automatically

Suppose I have a document with multiple include or input statements \input{fileA} \input{fileB} etc. Is there an easy way to generate a single .tex file where \input{fileA} is replaced by the ...
6
votes
2answers
605 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
0answers
52 views

makebbx - program similar to makebst? [duplicate]

Possible Duplicate: Is there a style definition helper for creating biblatex citation styles, like makebst for biblatex? There is a "program" called makebst that allows creating of ...
1
vote
1answer
47 views

Auto-insert “Ref.” or “Refs.” before citation

In the answers to this question, it is explained how "Ref." can automatically be added before any citation. However, I would like to have an automatic "Ref." or "Refs." depending on whether I \cite ...
2
votes
2answers
176 views

Axis of symmetry of a parabolic function

I want to draw the axis of symmetry of a quadratic function, using the top. The problem is that positioning the axe is not so good. Changing the xmin=-6 into xmin=-2 makes the red line on the wrong ...
2
votes
0answers
32 views

How to import key words are areas latex reports from a list of values

I write long test reports. And generally i have a spreadsheet (xls) with all the relevant data regarding the tests. I would like to automatically include that data from excel throughout the report. ...
2
votes
1answer
96 views

Autofill letter template

I'm an MD and I have to write a lot of letters to collegues and I want to try to do this in LaTex to increase productivity. I wonder if it's possible to make a basic letter template without any names, ...