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
32 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=...
0
votes
1answer
26 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
33 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 \...
9
votes
4answers
732 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?
0
votes
0answers
29 views

Texstudio Autocompletion doesn't work

Before installing a new os (elementary os loki, based on Ubuntu 16.04), i was enjoying Texstudio's autocompletion. It was set by default, and I never touched any setting related to it. With a new os, ...
2
votes
2answers
36 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
346 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
84 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
46 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
64 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
72 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
50 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
355 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
49 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
80 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
44 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
40 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
79 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
66 views

Use a counter as label

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
78 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
70 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
185 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
94 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
97 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
52 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
48 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
231 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
87 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
330 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
186 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
416 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
43 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
112 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
713 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
50 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
61 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
118 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
61 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
129 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
79 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....
3
votes
0answers
916 views

Is there a way to make latexmk automatically switch between pdflatex and xelatex?

Assume I have some projects to be compiled with pdflatex, some with xelatex. For now I'm just passing an appropriate key to latexmk command in console, e.g. latexmk -pdf ToBeCompiledWithPdflatex.tex ...
0
votes
2answers
177 views

Biblatex - how to count entries in a .bib file without invoking \printbibliography

I have three .bib files with the bibliography of my CV split into "journals", "conferences" and "thesis". I count the amount of entries for each .bib file following this method for the three types: \...
0
votes
1answer
63 views

Biblatex - count cites from different bibliographies separately

I have three separate bibliography files as follows: \newtotcounter{no_journals} \newtotcounter{no_conferences} \newtotcounter{no_thesis} \AtEveryBibitem{\stepcounter{no_journals}} \defbibheading{...
2
votes
1answer
204 views

Footnotes: Keep same footnote number for same footnotetext (during all document)

Is it possible to tell LaTeX, that \footnote{text} use the same number, if the text is equal?
3
votes
2answers
100 views

How to alternatively display different names for even and odd entries in enumerate

I am making a list of problems, where answers are given below the problems. Currendesrired is the Answers should come with the same indentation as the Problems with Automatic numbers (same as the ...
0
votes
0answers
37 views

What is an appropriate way to insert structured data from an on-line source into a Tex/LaTeX document? From within, or externally?

Let's say there is a structured list of items on some on-line source. For example, the website https://nothing.better.to.do-a.shame might contain the following data: A blueberry <tag>...