{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
0answers
24 views

How can I automatically update section levels for included/input tex files? [duplicate]

I would like to automatically determine the current section (or subsection) where an input/included file is placed and use automatically updated sectioning commands so that a file can be included in ...
2
votes
1answer
40 views

Automated Tex bubbles with texts

I am working on a project that will require intense timeline fields and all to keep track of stuff so I am trying to make it all easier by making it automatic. I have made a lot of progress in it ...
6
votes
3answers
124 views

New command for automatic enumerate generation

I was thinking about a macro with only one argument, but of varibale length expanding the parameters into an enumeration. E.g.: \dostuff{a} expand to \begin{enumerate} \item a. \end{...
1
vote
1answer
69 views

Time calculation with spreadtab

I come from this question: How can I automatically calculate sums in a LaTeX table? I want to do the same but with "timing" calculations. So my example would look like this: \documentclass{article} \...
11
votes
4answers
667 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
156 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 ...
4
votes
1answer
70 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 ...
1
vote
1answer
38 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 ...
3
votes
2answers
39 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
26 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) ...
7
votes
2answers
222 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 ...
2
votes
2answers
104 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
306 views

Backward difference in LaTeX?

How can I write backward difference in LaTeX?
1
vote
0answers
67 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 ...
3
votes
1answer
74 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[...
8
votes
0answers
115 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 ...
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
193 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 ...
0
votes
0answers
29 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
190 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
66 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 ...
0
votes
1answer
63 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
54 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
30 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 ...
2
votes
1answer
49 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{...
7
votes
1answer
122 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 ...
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]{...
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
420 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 ...
0
votes
1answer
47 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....
5
votes
1answer
55 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 ...
1
vote
1answer
66 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 ...
1
vote
1answer
88 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 '...
0
votes
1answer
34 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
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 ...
3
votes
1answer
93 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, ...
2
votes
1answer
119 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
65 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: \...
4
votes
2answers
294 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
162 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 ...
4
votes
1answer
104 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 ...
2
votes
2answers
66 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 ...
7
votes
1answer
551 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
48 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} \usepackage{...
0
votes
0answers
37 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 ...
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 ...
3
votes
1answer
93 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 (xmin,...
3
votes
1answer
45 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 ...