Questions tagged [automation]

{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}.

Filter by
Sorted by
Tagged with
1
vote
1answer
22 views

Enumerate in Beamer: Automize only@

I would like to split enumerate environment over multiple slides in an automatized manner. In the following example, I need to write only@ for each slide. How to get an automized version of this code?...
3
votes
1answer
271 views

How to reset alternating row colors using xcolor and longtable?

I am attempting to automate alternating row colors in a longtable environment. My rows alternate between gray and white, and the alternating persists across pagebreaks. My issue is that I would like ...
2
votes
1answer
70 views

Algorithmically generating the syntax of math equations

Is there a way to algorithmically write equation syntax in latex?? Suppose I want to write the N-point DFT matrix in an equation, then is it possible if i specify what each entry of NxN matrix will be ...
0
votes
1answer
27 views

Create .bat to execute XeLaTeX+MakeIndex+BibLaTeX

Time ago I created a bat script to execute PDFLaTeX+MakeIndex+BibLaTeX so I can add as a processing tool in TeXworks (image below), and it was easy because I found many sites explaining how to do that ...
1
vote
1answer
59 views

Can't write to aux file from cmd

I have an automating script written in Java to generate a PDF file from a source tex file. The?main tex file may reside in one drive say 'C:' and one included file via \input in another drive say 'D:'....
3
votes
1answer
39 views

How can I automate file inclusion using arguments?

I am working on a collection of books that uses content from other files. I want to have each reference in a file to avoid redundant content and to make it easier to review and correct the content. ...
0
votes
0answers
26 views

Drawing line from point to automatically fitted linear regression [duplicate]

Hi I have the following code which produces the regression straight based on the points on the table. I suppose the red dots on the curve are the equivalent of each point but on the fitted straight. I ...
1
vote
0answers
24 views

Float if not larger than otherwise be page-breakable

In my thesis I am embedding a few pseudocode algorithms using the algpseudocode and the algorithm packages. Thus a typical example would look like \begin{algorithm} \caption{My caption} \label{alg:...
1
vote
0answers
23 views

Stop LyX from automatically wrapping formulas with LRE (in Hebrew)

As in the following question, I'm working in LyX in Hebrew, by using the "use non-TeX fonts (via XeTeX/LuaTeX)" option. When I insert a math equation LyX automatically wraps it with \LRE{}. ...
1
vote
3answers
91 views

How to automatically generate data summary at the beginning of the document?

Within my report I want do define several structural damages and I want to automatically generate a summary table at the beginning of the document. Here is an example of how far I have come so far and ...
1
vote
1answer
31 views

Automatically register arguments a command is used with

I am wondering whether it is possible to create some sort of set to keep track of elements in latex. One intended usage would be to automatically generate a list of arguments that have been passed to ...
1
vote
2answers
81 views

Automatically composing documents from multiple text files which are not LaTeX formatted?

I'm looking for a way to create a songbook out of individual song files. Each song file is a self-contained block of text data consisting of: Song name Song author Some details (optional) Lyrics with ...
0
votes
1answer
21 views

Automatically include a listing of all files in a folder [duplicate]

My thesis supervisor requires me to include all my MATLAB code in the PDF. My code is scattered in a dozen .m files, all in the same folder. I know I can include code, using the matlab-prettifier ...
1
vote
0answers
84 views

Redefining questions environment in exam to use longtable

I am trying to redefine the questions environment and take each question and put it inside a longtable environment so that the first column will have the question number, and the middle will have the ...
0
votes
1answer
39 views

Is there a way to iterate over a list of couple in tikz?

I would like to draw a list of 2D points with tikz and additionally draw these points multiplied by a certain factor alpha. If the y-coordinate was a function of the x-coordinate, it would be easy to ...
1
vote
0answers
42 views

Automate drawing diagram parsed from input file

I want to automate the process of drawing simple diagrams based on values in an input file. I run simulations and often draw these kinds of diagrams to visualize the parameters. I have used the ...
4
votes
1answer
103 views

A small tool to simplify the units of measurement using siunitx package

Considering that some of my students, especially first year students (14 years old) are not able to simplify units of measure and find the final unit of measure, is it possible to create an automatic ...
1
vote
1answer
55 views

How to globally apply all texts as the argument of a command?

I'm trying to make an entire document to look like handwrote. For that I tried both the Cthulhu and handlatex. Both of them require the following usage: \command{here the text to be applied.} Which ...
1
vote
1answer
55 views

Aligning bullet in tikz with some other issues

I want to change a few things in the following picture: (1) Aligning the bullet (d) vertically upwards from where the picture starts. (2) Changing direction of the arrow at q4 from right to left (in ...
1
vote
1answer
33 views

Automatically remove indentation at natural breaks

I've been using Latex for about 2 years now and I'm really enjoying it. I was just wondering if there is some package or code out there that can help me suppress indents at natural breaks. With ...
1
vote
1answer
309 views

How do I automatically fill LaTeX templates with from a table of data?

I have a LaTeX template like \documentclass[12pt]{article} \begin{document} Hello, \VAR{USER}! \end{document} and a table of users (for example as a csv) like ID,USER 01,Peter 02,Michael 03,Jana ... ...
0
votes
1answer
42 views

Footnote with automatic final period not working with "Ibid."

I'm using this solution to automatically add a period at the end of every footnote; the code should insert a period only if the footnote does not already end with a period, a question mark or a bang. ...
2
votes
1answer
54 views

Automate data input

I have a tex body which looks something like This week we have added 5600 vaccines in the inventory which is a 8.5% increase compared to last week. Now, these number, 5600 and 8.5% are updated every ...
1
vote
0answers
67 views

Automation of slave code compilation in master/slave with \newif

For big documents, I choose to use a master/slave structure. Rather than play comment/uncomment the preamble of the slave code with the comment package and also the \end{document} (for avoid conflict ...
4
votes
2answers
63 views

Define macros from a list processed by the listofitems package

I wanted to distinguish the control variables of different agents in a separate color so that my students can read examples more easily. To do so, I wanted to write a macro \definevar{x,y;z} that I ...
1
vote
0answers
46 views

Automatically generate tabel that shows grade corresponding to number of points within exam

I would like to automatically add a table that shows the height of the grade corresponging to the number of points. So far, I have \tcprintroundresult{1} \tcsetcoltype{|c|c|}{>{\centering\...
0
votes
0answers
25 views

from bibtex to the original paper

Is there any tool or plugin that allows us to enter a BibTeX file and receive as output a list of files or links to the original papers (in PDF)? I can enter into Google Scholar all the titles of the ...
0
votes
1answer
129 views

How to set `\autocite{}` of `biblatex` as `\tiny` using beamer

I would like to produce beamer slides with biblatex and to set the font size of the citations with \autocite{} as \tiny while keeping the font size of the citations with \textcite default (\normalsize)...
3
votes
1answer
83 views

Automated lettrine and commands

I need to automatically place lettrines on a text I don't want to edit directly. So far I have been using \def\drop #1#2 {% note the space before { \lettrine{#1}{#2} % a trailing space } and \drop ...
1
vote
1answer
62 views

How to modify the counter for tikzexternalize file names?

Many journals require the figures of a submission to be handed in separately, using sensible names. Tikz-external seems like the perfect fit for this job if the majority of figures are based on tikz/...
0
votes
1answer
56 views

Last Word not break avoid automatically

I have need to avoid last word break. It must print in PDF before the line or break with previous word. My MWE IS: \documentclass{book} \doublehyphendemerits=100000 \frenchspacing \usepackage{...
5
votes
2answers
133 views

Flashcard automation

I would like to prepare flashcards. For example: \documentclass[12pt]{article} \usepackage[paperwidth=32pc, paperheight=18pc, margin=5pc]{geometry} \usepackage{fontspec} \setmainfont{Linux Libertine O}...
1
vote
0answers
25 views

How can I delete the bullet generated in acronyms chapter? [closed]

In acronyms page, integrated in main menu I'm using the below code, but a bullet is generated in first acronym (see picture) \chapter*{Acronyms} \begin{acronym}[TST] % Give the longest acronym here \...
5
votes
1answer
96 views

Anticlockwise or clockwise symbol (90°, 180°, 270°, 360°) in the caption

I have this MWE: \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \usepackage{tikz} \usepackage{graphicx} \usepackage[labelformat=simple]{caption} \usepackage[...
15
votes
5answers
2k views

Can LaTeX automatically itemize a list?

So I have a word list file in .txt format, I want to edit it and enumerate them. But since the file runs into thousands of lines potentially, it would be a daunting task to do it manually. I wonder ...
0
votes
1answer
20 views

Inserting lyx into lyx?

Let's say I send mass-email to many people in many parts of the world. I want to make customized pdf file for people of different countries, gender, occupation. Can I make US.lyx, UK.lyx, France.lyx, ...
0
votes
1answer
133 views

tex.sprint in LuaLaTeX

I would like to print text as per XML file. But when using tex.sprint enter mark is removed and all the text are displayed in single line in PDF. How do avoid this? My ds.tex file is \documentclass{...
0
votes
1answer
160 views

To Remove Enter marks (\n) in Lua

I have using LuaLaTeX Version : 1.12.0 and i have converting XML to LaTeX using Lua Script. I have need to remove enter marks in Lua Scripts. How to achieve this. \documentclass{article} \begin{...
0
votes
0answers
30 views

Without \cite command reference with reference ID hyperlink

I have using LuaLaTeX Ver: 1.12.0. I have converting XML to LaTeX using Lua Script. I have maintained the cross-links as per XML. I want to hyperref cross-link need to go corresponding hyperref cross-...
0
votes
0answers
45 views

Convert the relevant part in bib file to bibliography entries

I have a latex file with a bibliography. I enter the bibliography items taken from Bibliography.bib file with the command \bibliographystyle{apalike} \bibliography{Bibliography} Is it possible to ...
5
votes
4answers
263 views

Alphabetical sorting of a sequence of names

I have a long number of people to acknowledge in my thesis, and I was wondering if it would be possible to sort their names automatically, rather than doing it by hand. In other words, I would like a ...
1
vote
1answer
42 views

How to number constants based on first use?

Much like the author of this question, I would like to automatically number some constants in my document. A relatively easy way to do this is by creating a new counter, assigning a label to each ...
0
votes
1answer
91 views

[arara]: Reuse compiled preamble with pdflatex and mylatexformat.ltx

When running pdflatex more than once successively, is it possible to: • Compile your preamble packages • Snapshot this moment in compilation • Continue running through the rest of the pdflatex ...
0
votes
0answers
39 views

Print some document's statistics in preamble (eg. nb. of pages for each section)?

I'm searching for a way to get then print some statistics of my PhD thesis pdfLaTeX document in order to give some practical data to my supervisors on my writing progress (and also to help me get a ...
3
votes
1answer
181 views

How can I automatically elaborate data from XML file?

I have an XML document with elements I must use to create a LaTeX document. Is there a way to automatically get each of these elements and for each of them, execute some LaTeX commands? To make it ...
1
vote
1answer
89 views

Configuring the number of member examining committee on Approval sheet

I know that there is already at least one question here on how to set up an approval sheet. However, the question I bring you now is slightly different, because the question itself regards on how to ...
2
votes
3answers
598 views

LuaLaTeX: Automate multiple compilation with for ToC, Index, Bibliography, Glossary and others on CI

To have reproducible and reliable builds of documents on a remote CI system I would like to automate all the command line tools and multiple compilations necessary to produce a complete document. This ...
0
votes
1answer
59 views

Automatically generating pdf files from multiple latex files

I generate 50 similar latex files through python. Now I need all these files as pdfs. Is there a way to do this automatically in some way? The file names are Version 1, ..., Version 50. Example file: \...
1
vote
0answers
323 views

Many authors, multiple affiliations (à la revtex, without revtex)

I am trying to typeset a paper with a large number of authors and affiliations for a journal. In the file, there are authors with more than one affiliations and distinct authors with the same ...
0
votes
2answers
93 views

align a set of mathematical expressions in a matrix form with arbitrary number of columns

I have arranged a set of mathematical expressions using align environment. For example, \begin{flalign*} u_{(1.1)0}^0 &= 0; &u_{(2.1)0}^0 &= - 2; &u_{(2.2)0}^0 &=...

1
2 3 4 5
11