{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

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
131 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 ...
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
24 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 ...
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: ...
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 ...
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} ...
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
118 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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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, ...
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: ...
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
106 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 ...
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 ...
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 ...
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} ...
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 ...
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
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 ...
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
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
174 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, ...
4
votes
2answers
175 views

How to automate adding spaces around an ampersand in math mode

Suppose, we are writing a logical expression in math mode: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} $a\&b$ ...
1
vote
1answer
78 views

Format words starting with specific letter sequence

Is it possible to automatically format words starting from specific letter sequence? For instance, in the text "HalloWorld, HalloPeople, there is a nice day!" I want the whole words starting from ...
7
votes
3answers
157 views

How to make the enumeration of theorem-like environments indipendent from cross-referencing in a particular way

I'm writing a mathematical paper, and right now I'm using \newtheorem{theorem}{Theorem}[section] to enumerate theorems, propositions, etc. In this way, every statement shows the number of the ...
10
votes
2answers
568 views

Appending an empty row after every 5 or 10 rows in LaTeX table

I wonder how to append an empty row after every 5 or 10 rows in LaTeX table. Here is my MWE in .Rnw format. Any help will be highly appreciated. Thanks! \documentclass{article} ...
1
vote
0answers
122 views

different text alignment on even/odd pages (like raggedouter but for text)

For a poetry book I would like to typeset all text on even pages \raggedleft and all text on odd pages \raggedright, including headings. Poems can span across multiple pages, so the change of text ...
7
votes
1answer
136 views

Generate Table of Contents pages without a full recompile

I have a document that I need to recompile often. Currently I am doing the standard two pass compile where the first pass generates the .toc file and the second pass then inserts it. However, as my ...
3
votes
1answer
266 views

Database style reports in LaTeX

I see plenty of questions around that demonstrate that csv files or database tables can be imported and formatted (based on templates and existing knowledge of the data structure) using LaTeX. My ...
4
votes
1answer
103 views

Macro for creating a table

I want to have a macro that creates tables of a specific type which specialize in multiple choices questions. The required command \createtable{#1}{#2}{#3} has three arguments: The total number of ...
1
vote
1answer
43 views

MathML and LaTeX conversion required in htlatex

I have required all the display equations should be convert to MathML options and some inline-equations need to convert in text mode format. This two types of conversion is possible in htlatex?. For ...
1
vote
2answers
172 views

How to sequentially “feed” a LaTeX document from external data source?

I have a quite complex C program that has the ability to generat raw text output to text files that are then printed on a matrix printer. These lists are now meant to receive a typographical update to ...
3
votes
1answer
83 views

AND-OR Graph from Horn clauses

Does anyone know if there is a way to generate a nice graph from Horn clauses? for example: Ideally, I would like to generate AND-OR graphs like this directly from Horn clauses written in Latex; ...
1
vote
1answer
120 views

How to merge data and create multiple documents?, similar to personalized mailings

I would like to use LATEX combined with EXCEL data files (or CSV if it were neccessary) to create "proof of payment". Supose a list of people John McEnroe, NYC (USA), 110.23$, 10$,May...... Mary ...
3
votes
0answers
42 views

etoolbox: problem with the last row in an table automated

I want to automate a long table as follows \documentclass{article} \usepackage{etoolbox} \newcounter{test} \newcounter{count} \begin{document} \begin{tabular}{|c|c|}\hline \whileboolexpr{test ...