{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

2
votes
2answers
138 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
202 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
395 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
42 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
358 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
32 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
8k 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
92 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
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 ...
51
votes
4answers
7k 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
667 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
54 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
51 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
211 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
167 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, ...
10
votes
2answers
738 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} ...
4
votes
2answers
235 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$ ...
7
votes
3answers
166 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 ...
1
vote
1answer
108 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 ...
42
votes
7answers
5k views

Fit text into given box by adjusting the fontsize

I would like to fit text (potentially several paragraphs) into a box of given size. This should be done by adjusting the fontsize of the contained text. Clarification edit: The given dimensions are ...
10
votes
2answers
137 views

Adding text to a different part of the document

I'm writing a LaTeX document at the moment which has problems (which are created in a {theorem} environment) for the reader in it. I'd like to put solutions to those problems in the end of the ...
6
votes
1answer
279 views

Automating Error Detection of pdflatex

Background: I have numerous individual files that need to be compiled, so am using a script to do that with the following options: set PDFLATEX_OPTIONS = "\ --file-line-error \ ...
7
votes
1answer
163 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 ...
1
vote
0answers
169 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 ...
2
votes
0answers
121 views

Create all queries in separate file like \listoffigure [closed]

I would like to print all the queries collect from the article and need to print in article opener page. How do achieve this? My MWE: \documentclass{threecolumn} \begin{document} \jnltype{37} ...
3
votes
1answer
364 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
119 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 ...
3
votes
1answer
92 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
48 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
221 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 ...
1
vote
1answer
175 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
48 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 ...
2
votes
1answer
148 views

Texstudio quick start wizard options managing

My aim was to add some language packages to the quick start wizard. Thus I cliqued the plus symbol of the 'other options' option. Then I was asked to type in this new option: Thinking that it was ...
2
votes
0answers
77 views

Home-made format and Flashmode

I work with TeXShop 3.51 and OS X 10.9.5 on a MacMini 2012 + SSD. I successfully compiled a XeLaTeX format, say uo, and I can use it : %&uo % !TEX TS-program = uo \input uo-fonts.tex ...
8
votes
3answers
4k views

How do I combine several tex files into one?

In my paper I have several tex files, mainly produced by some other tools (.bbl by bibtex, .eps_tex by inkscape etc.). I would like to combine them into a single tex file as required by my publisher. ...
0
votes
0answers
117 views

Connectivity Maps: A way to implement this efficiently with LaTeX?

I am interested in creating connectivity maps. While there are a wide variety of ways to handle this, I am particularly interested in a LaTeX-based method for handling this. Below is an example of a ...
9
votes
1answer
459 views

Automating extraction of Markdown-formatted tables from an (incomplete) LaTeX document

I am trying to automate the presentation of my note taking. I would like to be able to regex all Pandoc tables in my document, add LaTeX around them, compile them and show the result in a PDF. ...
1
vote
0answers
28 views

LaTeX: precompile document to reuse inside a C++ program [duplicate]

I've made a C++ program with uses a LaTeX template for creating PDF documents. I open the file, replace some placeholders written inside the .tex document with values of a DB, and then, I compile the ...
2
votes
1answer
80 views

Automatic creations of labels

I have a bad habit of not labeling my headlines and I find creating them afterwards rather cumbersome. Is there any script/program that can create a label automatically from the headline, so that ...
41
votes
6answers
6k views

How to make Latexmk use makeglossaries?

Is there a way to make Latexmk invoke makeglossaries (part of the glossaries package)? Specifically I want to use latexmk to compile a LaTeX document that uses the glossaries package to produce a ...
2
votes
2answers
81 views

Error in class lettre with datatool package

I would like automaticaly write 5 letter with \documentclass[10pt]{lettre}. I 've a CSV file with all my recipient information in mail_bd2.csv like : Titre,Apostrophe,Prenom,Nom,Organisme,Rue,Ville ...
0
votes
1answer
37 views

Automatic row (not line) breaking in tabular (or analogues) with a variable number of columns

I have some values which I need to put in a row-major form, i.e. fill the column of a tabular on the basis of its width, as described in the MWE. \documentclass[a4paper]{article} ...
5
votes
2answers
224 views

Automatically highlight words from a predefined list

I am not a native English speaker and there are some grammar mistakes I do a lot, especially have/has in conjunction with each/every, and so on. Q: Is there some way to highlight all occurrences of ...
0
votes
1answer
35 views

VIM Latex Suite. Convert u1x1 to u_1(x_1)

In this question: VIM Latex Suite repeating symbols with subscripts and superscripts Anthony created this magnificent vimscript code: function! <SID>SubSuperscripts(keyOne, keyTwo) let l = ...
0
votes
1answer
77 views

How to automate typeset proceess? [duplicate]

I am currently using Texworks + Linux. To compile the PDF I hit pdflatex + bibtex + pdflatex + pdflatex. Is there a way so that I create a new typeset that does that in one click? Found the easy ...
2
votes
2answers
274 views

Compiling current text block in WinEdt

In WinEdt there is a toolbar button for compiling current selection of the document. But is it possible to compile current text block without manual selection? By text blocks I means parts of text ...
7
votes
3answers
280 views

Automatically generating table using \multido

First: This question is similar to Generate rows in table using \multido (or something similar). Consider the following code: \documentclass{article} \usepackage{siunitx} \usepackage{multido} ...
20
votes
4answers
2k views

Generating a table of glyphs with XeTeX

I am trying to get XeTeX to generate a table of all the possible glyphs of a given font, but can not figure out how to make XeTeX know how many glyphs the font has, so I have to specify an exact ...