Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
1answer
31 views

LaTeX code with input dependent on some integer parameters

Suppose that I have a large number of .tex files with names 1.tex, 2.tex, ..., N.tex (with N = some integer). I would like to write a LaTeX document, where I set some parameters for example: howMany ...
2
votes
0answers
38 views

An Automatic Way to Produce “Author Contribution” Section

Background Academic journals and other scholarly publications are beginning to adopt a standardized requirement for Author Contribution sections. This is a section in which authors are labeled based ...
0
votes
1answer
84 views

creating certificates automatically

I have to create certificates in Latex the format of which is already available with me. In this certificate, only the name of the participant changes and every other thing remains the same (including ...
0
votes
4answers
101 views

Automate Repeated LaTex Code

I have a table that looks like this with codes below that produces it. However I wanted to create 50 of these tables, off course with the values that changes. How can I do it without writing the ...
3
votes
2answers
68 views

expl3-strategy to automatically update the title of a document, depending on its content

Context The current question arises: as an attempt to improve the aim explained in a question of mine (Expl3' tl variable storing the result of a \seq_map_inline: OK in article's title but ...
3
votes
1answer
40 views

How to make a direct mail using an *.xls as database?

I am working with the organization staff of a congress and we have to print a lot of certificates of participation. All these certificates have te same text, except for the name of the participant. I ...
4
votes
1answer
134 views

Overhanging vertical bars in tabular

My question stems from an adaptation of the solution shown here : Generating lists and tables of items from commands in the document The idea is to sum up the reviews of a given document in a table. ...
1
vote
1answer
49 views

pgfplot: add lines from points to x axis

I am a beginner with pgfplot and latex automation in general. I am drawing a 3d scatter plot, as shown in the attached Figure. I would like to draw a line from each points to the bottom surface (so z =...
1
vote
0answers
142 views

Transform 150,000 computer generated TeX images to LaTeX code

The Encyclopedia of Mathematics is based on an encyclopedia that had its formulae written in TeX, which were saved as png images. On its way through the various publishers the original TeX source code ...
0
votes
0answers
18 views

Glossaries: Load only new glsentries to speedup compiliation

currently I am writing a relatively big physical report with a lot of different symbols, indices and superscripts. This results in a huge list of different combinations of symbols, indices and ...
3
votes
1answer
174 views

Harmonize width of MusiXTex extracts automatically

Several MusiXTeX extracts are placed in a few floats as subfigures of a document. The width variation of these extracts within a figure environment might not please the eye. The widths do not vary ...
3
votes
0answers
65 views

arara: load a local batch script or transform the batch script to an own rule

My question is similar to the one here, however it has a little different focus. I am working under Windows using MikTeX 2.9. I do have several latex projects which are part of a tool documentation. ...
1
vote
1answer
32 views

How to make the first letter in the field names of a bib file produced by BibDesk all be lowercase?

As you see, in the following example all the first letters of the field names such as Author, Booktitle, and so on, are capital. I want to make all of them be lowercase. The file is produced by ...
0
votes
0answers
15 views

Auto convert image that has latex equation to actual latex [duplicate]

I would like to know if there's any program or application that can convert a picture that has a latex equation into a actual latex format. Something that uses machine/deep learning
1
vote
1answer
94 views

How to automatically create multiple versions of a document with different paper sizes & reflecting this in the generated PDF filename?

I am using the moderncv class to prepare my resume for applying to jobs in the US (where the standard paper size is letter), and in UK (where the standard paper size is A4). Here is a MWE file called ...
0
votes
1answer
251 views

How to assign variables from a [json|yaml|toml] file

I have two Latex files for a weekly document I create. template.tex contains a large list of variables that get changed each week: \newcommand{\var}{foo} \newcommand{\othervar}{bar} Then the ...
4
votes
1answer
56 views

Changing the font in every second line of the table

I've already found solutions here that work over \rowfont{} but not automatically adjust by even and odd number of lines. I think about a case function it would work well for the first lines and then ...
1
vote
1answer
62 views

pgfplots/datatool: automatic standard error ellipse calculation and plotting

I am looking for a way to automate the process of calculating the standard error ellipse from tabular data in pgfplots. In some sense, this is a generalization of this question and this one I assume ...
0
votes
0answers
54 views

Factsheet generation in Latex: How to implement a specific design

Implementing a layout for a university paper in Latex is fairly simple as it does not need many elements. But currently I need to generate automatically reports for a university project. The report ...
4
votes
3answers
89 views

Automatic amount table columns and column numbers

I'm looking for a way to create a command with which Latex can automatically generate a table with a given amount of columns, and automatically fills in the column numbers as headers. I'm looking ...
0
votes
1answer
93 views

mcexam a custom type question

I'm trying to create an exam using the code provided by him. Here is the code: \documentclass[twoside]{article} \usepackage[english]{babel} % set fonts \usepackage[utf8]{inputenc} \usepackage[T1]{...
0
votes
1answer
53 views

Execute Command at Start of Chapter

So i've recently found out about the lettrine-package and want to use it in my reports. The basic usage is: \lettrine{E}{in} erstes Beispiel... There can be optional arguments like \lettrine[lines=...
2
votes
1answer
75 views

Create two documents with different page sizes

I need to create two versions of a pdf rendered from my .tex file, one in A4 one-side format, and one in B5 two-side format. I do this by changing the class options (I use memoir, if that matters) ...
0
votes
1answer
40 views

Automatically Generate a Table with multiple rows and columns from keys in the .tex file

I would like to loop through a LaTeX document and collect every instance of a key with multiple entries. i.e. \begin{document} \lipsum[1-1] \key{name=Peter, age=50, gender=male} \lipsum[1-1] \key{...
2
votes
1answer
61 views

output_dir from latexmk breaks makeglossaries

I've got a problem with a custom latexMK.rc file and makeglossaries using xindy. The document: \documentclass{article} \usepackage[nomain,acronym,xindy]{glossaries-extra} \makeglossaries \...
12
votes
4answers
2k views

Compiling (La)TeX files automatically with GitLab CI

Inspired by this question about compiling LaTeX files with Travis CI: How can GitLab's integrated CI feature be used to build (La)TeX documents?
2
votes
2answers
82 views

Properly setting \thecounter when defining \newcounter{counter}[resetwith]

With \newcounter{counter}[resetwith], I can define a counter to be automatically reset when resetwith changes. However, it seems that \thecounter is defined to just display the value of counter, and ...
20
votes
1answer
444 views

Make a holiday calendar with automatic “school week numbering” in tikz

I am trying to make a two sided holiday calendar (DIN A4, two pages for one school year). For this I started with an example from Robert Krause and tried to modify it. Here is how it looks so far: % ...
5
votes
2answers
135 views

Dynamic picture size

Consider the following MWE: \documentclass{article} \usepackage{graphicx} \usepackage{lipsum} \usepackage{float} \usepackage{duckuments} \begin{document} \lipsum[1-4] \begin{figure}[H] ...
0
votes
0answers
86 views

Using Arara with a folder structure

To keep things short here is my folder structure of my project: Main.tex -> Subfolder1 %(images) -> Subfolder 1.1 %(pgfplots) pgfplot_standalone.tex %(Standalone_class) ...
0
votes
0answers
165 views

Make latexmk just run pdflatex once

As far as I know latexmk automatically defines what to do when running it. So compile it several times that all references are correct. However this takes a loooong time when I just want to check my ...
1
vote
0answers
38 views

Recompile main-file automatically after every compile of other files

I am using Kile as LaTeX editor (great btw). For the pictures I use a standalone class and include the resulting .pdf via \includegraphics. However, when I change my graphic and compile it in the ...
1
vote
1answer
147 views

latexmk location of PDF output

I am using latexmk and have the $out_dir set to ./build in my .latexmkrc configuration file. This is working as it should. But is there any way of having the generated PDF file put in the main ...
0
votes
1answer
98 views

Automatically overwrite bbl for biblatex version conflict

I work on a paper with a collaborator via git. Some of us have different latex versions, in particular biblatex 3.9 and biblatex 3.11 are used. If author A compiles the document and runs biber, then ...
1
vote
1answer
517 views

GitLab CI using MiKTeX docker image

I'm trying to set up a GitLab CI to compile my LaTeX file, but I would like to avoid having to download full TeXlive over and over again. Afaik MiKTeX more or less will only download what is needed ...
2
votes
1answer
57 views

Extracting theorems into images

Is it possible to automatically export all theorems to single files, say PNG or other image formats?
1
vote
2answers
84 views

How to creat a quick start which includes some particular packages?

Whenever I begin a document in latex, I have to add a lot of necessary packages such as packages about Tikz or language packages. My quesion is how to creat a quick start which includes some ...
2
votes
0answers
49 views

Custom command for multiple boxplots

I have to include a lot of boxplots in my document and would like to automate this with a custom command. I'd like to be able to write something like this: \boxplots[ range={1,2,3,4,5}, questions=...
2
votes
2answers
44 views

lstinputlisting environment in equation- and math environment?

I am trying to semi-automatically import multiple parameters/variables from an excel (via .txt) file into both equation environments and $$ = math environments in (share)latex. It is semi-...
1
vote
1answer
104 views

Automated rotation in twoside document

There is a problem with the MWE: A solution for the MWE was found. But this solution does not work for the actual project. So far, I could not work out the reason for this. Therefore, other solutions ...
1
vote
0answers
117 views

Use a counter as label [closed]

I want to set the value of a counter as a label. I have the following structure: \section{First Section} Some text \subsection{First Subsection} Text again \subsection{Second Subsection} ...
3
votes
3answers
81 views

What is the fastest way to make a lot of variables as vectors?

OK, so I'm writing a lot of maths that includes a lot of vectors. Not every thing is a vector, but a lot of it is. Are there tools that can help me mark up a lot of my variables as being vectors ...
0
votes
1answer
96 views

\g@addto@macro combined with \immediate\write\@auxout appending position specific references

This is a follow-up question to \g@addto@macro appending position specific references. In this case I apply the automatic table filling with \immediate\write\@auxout. The reason is that I would like ...
1
vote
0answers
69 views

Feasibility of a Latex “Computation Verifier”

This may be more appropriate on stackoverflow, but as it pertains specifically to the existence of a utility for LaTeX, I thought I should ask it here. In my experience as an undergraduate, it's very ...
5
votes
2answers
194 views

\g@addto@macro appending position specific references

I would like to produce an automatically generated table containing section names. In particular, I would like to have control over the table shape, etc. (the table is used only as a minimal example). ...
1
vote
2answers
103 views

Automatically numbered examples [duplicate]

I was able to use the following new environment to number the examples automatically quite conveniently until yesterday when I updated TeXstudio to version 2.12.8. That is, I only needed to type \...
4
votes
2answers
105 views

Loop over the elements of an array so that each frame changes with images and cell content

I would like each frame in a beamer presentation to show a small table + 4 images. For every new frame, the 4 images change. On the contrary, only the content of one cell is changing in the table. ...
0
votes
1answer
82 views

Formulary in LaTeX? Rendering complete subsection before pagebreak

So i'm keeping my maths- and physics-formulas together in simple formularies in LaTeX. Right now i'm using the article class and sections / subsections for my structure, where each subsection / ...
1
vote
0answers
83 views

mathpartir: ottalt puts mathpartir premises each on their own line

I'm using the Ott tool to generate LaTeX for some inference rules in a Programming Language paper. To make the output look good, I'm using the OttAlt library. OttAlt is based on mathpartir, and one ...
1
vote
1answer
387 views

Automatic label for Chapters and Sections

I am writing a book and hope to create automatic labels for every Chapters and Sections in the form \label{AutoChap:"ChapTitle") and \label{AutoSec:SecTitle). Learning from "Automatic" ...