Stack Exchange Network

Stack Exchange network consists of 174 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}.

0
votes
1answer
25 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
47 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
45 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
39 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
71 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
44 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
38 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
60 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
36 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
42 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 \...
10
votes
4answers
1k 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
42 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
373 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
100 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
58 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
87 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
32 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
100 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
60 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
423 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
52 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
83 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
45 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
42 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
83 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
85 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
81 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
66 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
189 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
96 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
100 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
59 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
57 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
275 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
32 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
99 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
354 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
209 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
450 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} ...
0
votes
0answers
55 views

Is ist possible to get the height of a text inside a parbox?

The reason for my question is, that I want to design a letter-style for use with KOMA scrlettr2, where the amount of lines in the firsthead differs, depending on the senders adress (f. e. one person ...
1
vote
1answer
37 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
117 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 ...
1
vote
1answer
877 views

TexStudio: Compile and Preview on File Save

I've spent the better part of the last couple hours searching through StackExchange and Google to find either a WYSIWYG style LaTeX editor, and for Windows, I have settled with TexStudio as the best ...
0
votes
1answer
55 views

Automation and variables

For school and exams, time is at a premium. Copying expressions and pasting them in a third party calculator is too time consuming. Not to mention if you discover that you have made a mistake, and ...
0
votes
0answers
63 views

Constructing CV sections from bibtex entries types

I would like to "automate" the generation of certain parts of my CV. Each section may correspond to a type of bibtex entry. So I would have a section for books, another for journal articles, another ...
1
vote
2answers
124 views

How to have tables automatically create new lines (with header) if they have lots of columns?

I was wondering how to instruct latex to automatically break a table after x columns and create a new line with the same header but with subsequent rows. I attach a picture to make it clearer (I did ...
3
votes
1answer
62 views

Prevent columnbreak in a custom environment

My document is organized in two (or more) columns and the document consists of chunks of text inside a custom environment. Each of those chunks is not very big and several of them can easily fit ...
5
votes
1answer
131 views

Automatic blackening out answers based on a single comment

I am designing question papers comprising of multiple choice questions. The answers are to be marked by blackening the appropriate answers (more than one may be correct) in an answer sheet. In my ...
0
votes
0answers
96 views

Automatic continued captions below listings

So I'm searching for a solution to make continued captions appear automatically below listings. What I mean, is for the listing that is broken over two or more pages to have captions like "Listing 2....