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

Filter by
Sorted by
Tagged with
0
votes
1answer
55 views

Sorting tables alphabetically

I want to write a document with a couple tables, where the entries of the tables are sorted alphabetically. I found a solution here: Order table by row alphabeticaly But when I want more than one ...
0
votes
2answers
45 views

Voting results with multiple options

You can easily display the result of yes/no polls during a meeting like this: \begin{Vote} \vote{Next meeting at 11am?}{2}{1}{1} \end{Vote} I'm looking for a way to display the result of ...
0
votes
0answers
34 views

Computer equation solver with latex output to show method

I'm looking for software that would solve simple equations such as $\frac{1}{3x+2}=5$ or a quadratic and output a step-by-step solution in LaTeX. Does such software exist? I would like to see each ...
1
vote
1answer
29 views

How to automatically produce a separate title page?

Sometimes (in my field) a journal requires an anonymised version of the manuscript and a separate title page to be submitted. Other journals sometimes require other subsets of the overall document to ...
3
votes
0answers
31 views

List of all lemma in a book to be listed at the end of Book/Document

I am writing a book in latex in memoir class. The book is divided chapter wise and contains definition, lemma, theorems. Can the process of collecting all lemma at the end of the book be automated as ...
0
votes
1answer
60 views

Page-number specific commands/environments

Is there any kind of straightforward method of telling tex to somehow run a command on certain page-numbers? Before I go on, I should state that I'm using the memoir package to format my document. ...
1
vote
0answers
30 views

Make the first line small caps [duplicate]

I am transferring certain hand-taken notes to digital in two-column format, and I put a divider between the notes. For an extra visual cue, I want to make the first line of a new note to be in small ...
0
votes
0answers
36 views

Wondering how Latex will be useful for me in specific application

I've a monthly report that I need to submit and I currently use Matlab to compile all the data that I place into the report. I then take this data and manually comment and display it in a word ...
0
votes
0answers
29 views

Creating a report with TeX using data from DICOM file

The DICOM standard used in medical imaging contains detailed information about the performed medical diagnostic procedure. There are open-source DICOM toolkits that can handle data from DICOM files. ...
0
votes
1answer
30 views

How to generate an outline for a document?

I am writing a debate case class in latex and I have environments set up so the user can easily declare a contention and subpoint. For example, if the user had: Contention 1: My solution is better ...
0
votes
2answers
104 views

automating recursive file hierarchy (directory tree) diagrams with tikz

So, I've been trying to write a python script that will produce the TikZ/LaTeX source code for one of these filesystem tree / directory structure diagrams: Preview Code LaTeX: TikZ \...
0
votes
0answers
34 views

Bash file to compile multiple documents using different variables from CSV in separate folders?

There is probably a better way to do this, but this is my MWE attempt and I cannot get it to work. I want to compile multiple form letters from a .csv file like below: company, dept World of ...
7
votes
3answers
140 views

Custom align environment which auto breaks line before = and aligns at =

\documentclass{article} \usepackage{mathtools} \DeclareMathOperator{\lcm}{lcm} \begin{document} \begin{align*} \lcm(13, 7) &= (13 \cdot 7):\gcd(13, 7) \\ &= (13 \cdot 7):1 \\...
1
vote
2answers
73 views

Automatically reduce size of text to fit inside a frame

I need a code (and so, created that:P) for reducing the font size in order to fit it inside a frame (or a minipage of a frame) and not let it overflow from there to the footer's area. lets say we ...
1
vote
1answer
27 views

Variable number of lines underneath the question

I was trying to create a booklet for an assessment. I have been required to put use a list (normal enumnerate environment) for the questions, but to write down, after each question lines up to the end ...
2
votes
1answer
104 views

Automatic indentation done for subfiles with arara and latexindent not working

I am learning with latexindent. I would like to follow up this question: How is automatic indentation done for subfiles with arara and latexindent? and ask for clarification: Is there required any ...
0
votes
0answers
39 views

Automated Flow Charts using tikz

I'm trying to create some kind of 'automated' flow chart. The idea is, to have an easy way of creating flow charts by providing simple commands, so even my colleagues, how are not used to latex, will ...
2
votes
2answers
50 views

Automatically adjust float size and vertical space between elements to fit content into one page

I often find myself changing the size of figures or removing vertical space between elements (e.g., a paragraph and figure) with \vspace{} to fit certain the contents into one page. This is rather ...
0
votes
1answer
38 views

Bibliography shortening automation tool?

Is there some tool (disciple-specific or general) which takes as input a .bib file and shortens the entries, as much as possible? e.g. Replacing given names with initials ("Smith, John" -> "Smith, J."...
0
votes
0answers
35 views

Producing a list of keywords

I made a lot of worksheets for my students. I'd like to help them out by having a list of keywords at the top of my worksheet. I would like to automate the generation of this list by flagging a term ...
2
votes
0answers
28 views

How do I get latex to add {} after a control word so that post-command spacing is preserve? [duplicate]

I asked a question yesterday and I managed to find a working albeit manual solution to preserving spaces after commands based off this answer, option 2. Definition: \newcommand{\fox}{quick brown fox}...
6
votes
5answers
332 views

Partial Recompilation, how?

Editors like BaKoMa TeX and texpad seem to be able to recompile individual pages. I'm interested in how to makes this happen myself, but have been unable to find out how to do this. I'm hoping that ...
3
votes
0answers
66 views

ConTeXt: Automatically insert a command under certain conditions

This is a follow-up to https://tex.stackexchange.com/a/499481/124577. That answer works great (manually as well as automated), but the author noted in terms of automatization "don't use it". So, ...
7
votes
2answers
122 views

How to automatically calculate the width of a multicolumn in a table based on the combined widths of the columns that are merged

Let's assume that I have a table containing two l type columns that both contain rather short amounts of text. In one of the following rows I want to use a \multicolumn that merges both columns. I ...
1
vote
1answer
49 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
90 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
167 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
118 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
79 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
61 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
141 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
158 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
163 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
22 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
259 views

Harmonize width of MusiXTex extracts automatically

An answer which is sufficient but not optimal has been found. Any improvements are welcome. Several MusiXTeX extracts are placed in a few floats as subfigures of a document. The width variation of ...
3
votes
0answers
79 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
41 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 ...
1
vote
1answer
112 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 ...
1
vote
1answer
469 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
76 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
82 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
82 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
209 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
174 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
87 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
139 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
44 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
102 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 \...
17
votes
4answers
6k 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
158 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 ...

1 2 3 4 5 10