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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

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 ...
0
votes
1answer
141 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
44 views

Extracting theorems into images

Is it possible to automatically export all theorems to single files, say PNG or other image formats?
0
votes
2answers
64 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
39 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
35 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
62 views

Automated computation of rotation angle 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
53 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
75 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
52 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
59 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
178 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
89 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
95 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
43 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
37 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
102 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
30 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
54 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
285 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
115 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
291 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
32 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
36 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
98 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 ...
0
votes
1answer
323 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
38 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
42 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 ...
0
votes
1answer
91 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
59 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
123 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
59 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....
2
votes
0answers
500 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
121 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
46 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
156 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
97 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
35 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>...
2
votes
1answer
74 views

Regular expressions … how to also return the sequence splitting characters?

So, we have this great regex code by User Andrew as an answer to my OP "Automatically put certain inputs (e.g. punctuation marks) outside of the environment/command": \documentclass{article} \...
3
votes
4answers
167 views

Automatically put certain inputs (e.g. punctuation marks) outside of the environment/command

So I have a code, modified from this answer by User "ShreevatsaR", which can be called at using \tooltips{...} The code works great, for any characters inside it. For example, for: \tooltips{...
1
vote
0answers
29 views

How can I change the number of decimals in a table? [duplicate]

I have a massive table where each element has 10 decimals. Is it possible to convert the entire table to smaller like 2 or 4 decimals long? I searched and found that I might need to use the siunitx ...
0
votes
0answers
105 views

Adjust font size so that paragraph fits on oneline

Context I am trying to help a severely autistic friend, who cannot cope with more than one line of text at a time, but so long as that one line is readable, can managed to read anything from 6pt ...
1
vote
1answer
58 views

How to simplify typesetting of repeated material in math formulae

Is there a way to create something like a reference tag to avoid copy-pasting in math equations. E.g. if I have something like $ Eq=\prod_{k=1}^{K}(some-very-long-expression)^{z_{k}} $ and in the ...
1
vote
1answer
42 views

Autocomplete decimals in a siunitx table

I'm making a table with numbers with different decimal contents. I'd like to complete automatically with 0 the remaining decimal positions, i.e. in a list of numbers like 1.2, 2.34 and 3.456 I'd like ...
3
votes
2answers
98 views

Referencing theorems (while including the theorem caption)

I would like to cite my Theorems with the kind of Theorem (Corollary, Proposition, etc...). Actually when I refer to a theorem I have to type Theorem \ref{name}. I have seen in few papers that it is ...
1
vote
1answer
72 views

List all theorems that were not restated

I have a longer book written in memoir using many theorems defined by ntheorem. I would like to check if I correctly restated all theorems (done with the help of thm-restate) in later chapters. \...
3
votes
2answers
69 views

Optical vertical justification of table cells

I will be very happy if someone could help me format the entries in in the columns 1 to 3 so that they appear in the center of the row as the column 'Tracks' has been centered in the top rule \...
3
votes
1answer
589 views

Automatic code alignment with TexStudio

TexStudio has a nice option of aligning given tabular environment by choosing LaTeX > Manipulate Tables > Align Columns from the menu or clicking this icon on the toolbar: So something rough ...
2
votes
2answers
83 views

How to determine if a macro is used inside the argument of a sectioning command?

In order to further automatize a macro I have written, I would like to know if there is a possibility to determine if this macro is used inside the argument of a sectioning command or inside the text. ...
0
votes
0answers
102 views

How to prioritize custom reference command in Texpad's autocompletion

In "Autocompleting commands while typing in Texpad OS X" it is explained how to edit the file autocompleted_commands.txt to customise Texpad's autocompletion. Quote: This is useful if you have ...