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
35 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
138 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
16 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 ...
4
votes
1answer
135 views

Harmonize width of MusiXTex extracts automatically

Several MusiXTeX extracts are placed in a few floats as subfigures. The width variation of these extracts within a figure environment might not please the eye. The widths do not vary much. So a ...
3
votes
0answers
61 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
29 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
14 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
81 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
96 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
52 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
53 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
47 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
80 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
72 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
47 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=...
1
vote
1answer
68 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
39 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
52 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
54 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
397 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
113 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
74 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
118 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
35 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
135 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
83 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
484 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
55 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
47 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
43 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
94 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
102 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
80 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
92 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
192 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
101 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
103 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
68 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
74 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
341 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" ...
2
votes
1answer
35 views

Let's get it just right: An \aboveorbelow{some-label} command

I'd like to define an \aboveorbelow command which can be used as follows: \documentclass{article} \begin{document} \section{Animals} \label{sec:animals} \section{Another section} The quick brown fox (...
0
votes
0answers
107 views

Automatically Create a Latex Invoice

I've just set up a website with much help from the Stack forums! I have customers who buy items (through the PayPal interface that takes care of the credit card payments). I have made invoices in ...
7
votes
3answers
379 views

Misunderstanding tikz foreach loop

I have two diagrams (both are supposed to be the same), one with explicit draw and node commands, the other one with foreach loops. Obviously, I don't understand foreach loops, as I can only get one ...
1
vote
1answer
236 views

Make tikzpicture automatically insert page break at bottom of the page

I am fairly new to Latex and I am struggeling with the tikz package. I am making an automatic resume generator, which prints the skills of a person along with a progress bar. This skill tree is in ...
5
votes
4answers
503 views

How to draw a border around a subset of nodes

I need diagrams like this: I've automated the "black" part but could not figure out how to do it with the red border; my current version is this: \documentclass[border=1mm,tikz,preview]{standalone} ...
1
vote
1answer
38 views

Navigation last next for own automated labels

I would like to add some navigation to my PDFs, such as jumping from change note to change note or todo note to todo note or such to the next such and back, something like \newcounter{cnt:todo} \...
2
votes
2answers
128 views

list-item automatically span to text width

I would like to span the list-item to textwidth automatically. If it's possible to align in 4 list to text-width (based on the long-length text) otherwise if it's to align in 3 list to text-width. My ...