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
0 answers
55 views

Python from LaTeX: Strange Networkx/Graphviz error

It is hard to give a minimal example, because Python3 with some packages is needed. I want to call Python from LaTeX, here is an example how I want to do it (--shell-escape is needed): \documentclass[]...
Titanlord's user avatar
  • 521
5 votes
1 answer
77 views

Writing a tex package for better auto brackets

The automatic brackets sizing provided by \left ... \right really often produces too large brackets. I want some package that for a given formula finds the right bracket size selected from \big, \Big, ...
Nicolas's user avatar
  • 59
3 votes
1 answer
90 views

Automated labelling and references in enumerate list

I am preparing a syllabus book containing a number of courses. For each course, I have an enumerated list of course objectives. Then I have units/modules under the course that addresses those ...
Subhajit Paul's user avatar
5 votes
2 answers
330 views

Generate the hyphenation of a given list of words

I'm new to LaTeX; is there a way to tell the TeX engine to generate the hyphenation of a given list of words as a text output file? For example: abdomen abduction aberrance ... What I want is ...
giofrida's user avatar
0 votes
0 answers
44 views

How do I make the brackets $\{\}$ appear automatically in a function that I personally defined?

I'm currently writing a big paper and I defined a lot of function to save time, most function are in the math mode (I don't really know if that's important). My question, that while using overleaf, ...
HitMan01's user avatar
2 votes
1 answer
40 views

Enumerate Environment with Item Numbers in Left Margin and Item Textwidth = Page Textwidth

MWE--- \documentclass[12pt]{book} \usepackage{enumitem,lipsum} \begin{document} \thispagestyle{empty} \lipsum[3] \begin{enumerate}[wide,labelwidth=6pt,labelindent=-15pt] \item \lipsum[13] \item \...
jean-marie's user avatar
  • 1,014
0 votes
0 answers
88 views

Automated BFS drawing with Lua

I tried to learn Lua with TeX. To do so, I tried to implement BFS in such a way, that it can automatically create Tikz pictures. Here is a short example of what I did: \documentclass{article} \...
Titanlord's user avatar
  • 521
0 votes
0 answers
18 views

Automatically Right Justify the Emdash and Name at the End of a Quotation When Space Permits [duplicate]

This is an extension of the question posed in Automatically Display the First Word of Every Quotation in Small Caps Consider the code \documentclass[14pt]{memoir} \usepackage[T1]{fontenc} \usepackage[...
mlchristians's user avatar
  • 7,724
3 votes
1 answer
450 views

Automated Dijkstra Visualization

I want to visualize the Dijkstra algorithm for finding the shortest path. I am inspired by this post. Sadly, I am way too bad at LaTeX. My initial idea was doing it with LuaLaTeX using Lua and I was ...
Titanlord's user avatar
  • 521
0 votes
0 answers
83 views

Automatically detect acronyms without \ac or \gls around them

My Situation: I am using glossaries package to manage my acronyms. They are all neatly defined in one file with a list generated automatically. But I have to confess: I was very inconsistent in using \...
Paul Smith's user avatar
0 votes
0 answers
61 views

How to automatically populate a latex template from multiple tex files in pure latex?

I have a folder mytexfiles/ including tex files which I'm trying to automatically include/populate in a main.tex template located in the same directory as mytexfiles/. Each file contains a filename in ...
Kirk Walla's user avatar
6 votes
3 answers
551 views

Automatically Display the First Word of Every Quotation in Small Caps

Consider the code \documentclass[12pt]{book} \usepackage[T1]{fontenc} %\usepackage[sfdefault]{cabin} \newcommand{\longemdash}{{\fontfamily{cmss}\selectfont---}} \newcommand{\emdash}{\nobreak---\...
mlchristians's user avatar
  • 7,724
3 votes
0 answers
49 views

Numerical precision issues within PFGplotstable

I am creating a table which automatically generates outputs of various quantities of interest for compressible flow. The first column contains Mach numbers, which are used to calculate the quantities ...
aeroben's user avatar
  • 31
0 votes
1 answer
48 views

Cross out a transition of automaton

I have the following automaton. \begin{tikzpicture}[>=latex, >=stealth', auto, node distance=0.5cm and 1.5cm, semithick, initial text=] \node[state, initial] (q0) {$q_{0}$}; \node[state] (...
McDuck's user avatar
  • 63
0 votes
1 answer
34 views

Automatically customizing the front cover of different memoirs

I need to create several memoirs with the same format. For each document I want to customize several features of the front cover, for example the background color. I'm trying to automate the ...
Tonechas's user avatar
  • 972
1 vote
1 answer
119 views

postscript hyperlink url auto-open

I'm trying to add a hyperlink to a PDF by modifying the PostScript. Any possible to open this action link automated or opening postscript or pdf. it will be executed the link. [/Rect [ 0 425 295 445 ] ...
alex's user avatar
  • 11
2 votes
2 answers
96 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: Here are latex ""code""...
Yang's user avatar
  • 23
4 votes
1 answer
162 views

Auto-capitalise lone "i" in LaTeX

Is there a package or pre-amble command which would auto-capitalise all lone 'i's within the text of a LaTeX document (i use overleaf to compile)? I find it easier to write text without manually ...
Robert Sandler's user avatar
2 votes
1 answer
94 views

Study materials for automatic impagination with Context?

Here is the thing, I am working with a lot of catalogs but we are doing it, in my opinion, the wrong way! It is a mix of ancient catalogs made in Photoshop and newer ones made wrongly in InDesign. In ...
freezr's user avatar
  • 91
1 vote
0 answers
32 views

Is there a program that automates the use of a standardized Tex document?

I have a standardized LaTex document that contains two letters and several pages of documentation. This is to be sent to each and every customer we have, for every order we deliver. The document stays ...
Fridtjof85's user avatar
0 votes
0 answers
26 views

Individualized exams, some with no questions (not as a bug; as desired behavior)

I am generating individual exams for my students. I have that code working, and the other questions I can find on stackexchange are about generating the exams. The issue comes from the fact there are ...
Claire's user avatar
  • 1
0 votes
1 answer
95 views

Read metadata from a file

Say all homework files: hw1.tex, hw2.tex, ... use some common homework.cls. Problem is that in every hw*.tex file these variables have to be set manually. \documentclass{homework} \author{John Smith} \...
AvidSeeker's user avatar
1 vote
1 answer
48 views

Automatic upright subscripts in pdflatex

For some time I used Micos solution to the problem of automatically typesetting subscripts upright based on lualatex. Now I want to switch back to pdflatex (because of compile times and the better ...
Julia's user avatar
  • 1,616
0 votes
0 answers
15 views

glossaries package - default "text" field of an entry to its name + symbol

Can you think of any simple way to use the values given to the fields "name" and "symbol" as input for the field "text" when making a \newglossaryentry? For example, I ...
Neil Lamas's user avatar
0 votes
0 answers
80 views

is there a way to autofill tables in latex like in excel with equations [duplicate]

i would like to be able to auto calculate simple values based on other values already present in the tabular environment or a similar environment i have tried looking on google but couldn't find ...
Church of Eg's user avatar
0 votes
1 answer
57 views

Automation hyperlink from title to relevant Wikipedia page

I would like to hyperlink any subsection to a relevant Wikipedia page while clicking on it. let's say that the name of the subsection is: " Row and column vectors (wiki) " when clicking on (...
Saar BK's user avatar
2 votes
2 answers
144 views

Define categorized, changeable variables for use throughout a document

TL;DR How do I print categorized and subcategorized values declared in a JSON file (or in some similar type of file) inside of a LaTeX document? In my document, I am assigning a bunch of values to ...
Ben Zelnick's user avatar
1 vote
1 answer
40 views

Automatically generate two-page index entries

I'm writing a text where there will be several index entries for short biographies. The index entries for persons are supposed to be in small caps and the biography entries will get page numbers in ...
Frunobulax's user avatar
  • 2,116
3 votes
1 answer
56 views

Automatically suppress claim number if there's only one claim

When writing a proof, I often need to include a claim, for which I've defined a separate environment. In my current set up, claims are numbered successively, with the numbering resetting within every ...
Reveillark's user avatar
0 votes
0 answers
138 views

Automating the Build and View (F5)

Is there a way to automate the Build and View (F5) function such that it knows which command to use amongst latex, pdflatex, xetex and lualatex? For example, if I load the fontspec, I want my ...
itc's user avatar
  • 600
0 votes
1 answer
203 views

Loop through directory structure and include all *.pdf files

I have a document that is constructed from a number of *.tex files stored in a directory organized as follows: -2022 -07 -01 -note.tex -file1.pdf -differentfilename....
pQ12branch's user avatar
1 vote
2 answers
72 views

How do I know, whether I need to run BibTeX or not?

If I have an unknown *.tex file and want to know, whether I need to run BiBTeX afterwards or not, what is the simplest way to find out in a script? Consider this file: \documentclass{article} \begin{...
TobiBS's user avatar
  • 5,104
1 vote
0 answers
140 views

Polynomial long division with complex numbers

I heard of the polynom LaTeX package, which can be used to do polynomial long division in LaTeX documents; I have even used it myself before for normal polynomials with real coefficients. However, now ...
Benjamijn Flanze's user avatar
0 votes
2 answers
347 views

Change vertex and edge style

I wanted the larger circle to be an ellipse, and the loop on the right to be smaller (as the below drawing shows). Does anyone know how to do it? this is my .TEX document: \documentclass[12pt]{...
B612's user avatar
  • 153
4 votes
3 answers
687 views

LaTeX software to evaluate expressions

I am looking for a latex package that can evaluate symbolic expressions by substituting the values of symbols declared in some header. For example, in these set of equations, as you can see, I get ...
Kutsit's user avatar
  • 169
2 votes
3 answers
3k views

Get number of pages in document [duplicate]

When writing reports it is common to have a page of meta-information at the start, written by, checked by, client, date etc. One of the fields I need is number of pages. Since I'm going to be ...
thosphor's user avatar
  • 1,183
2 votes
0 answers
27 views

Margin when using auto-scaling of parenthesis: Is there a better way than adjusting for it with "\!"?

Whenever I need larger parenthesis I use \left( \right) which automatically adjusts the size as needed. I know that the optimum would be to always manually choose from \big, \bigg, \Big, ... but for ...
Richard's user avatar
  • 200
0 votes
1 answer
34 views

Priority based removal of optional sentences to fit page

I am wasting days of my life rewriting rejected papers for other conferences with different page limits. Also it would be nice to extract parts for a website without a page limit. Is there a way to ...
Konrad Höffner's user avatar
3 votes
1 answer
701 views

lua code inside directlua throws an invalid escape sequence error

I'm trying to make use of lualatex to automate generation of some part of a pdf. The directory tree for my minimal working example looks like the following: │ lua_escaping_issue.tex │ └───a_folder ...
user32882's user avatar
  • 1,574
0 votes
3 answers
226 views

Create a function that generates a letter?

I have to write many letters where each time I have to modify just the names, dates and address, but it is always the same content. A short version would be something like "Dear [name], from [...
Mauricio's user avatar
  • 225
1 vote
1 answer
708 views

Automatically adding images directly from python code (preferably using VSCode)

Imagine I have some python code that generates an image. e.g. import matplotlib.pyplot as plt import numpy as np # Data for plotting t = np.arange(0.0, 2.0, 0.01) s = 1 + np....
Tereso del Río Almajano's user avatar
0 votes
0 answers
24 views

How to ignore theorems when creating a pdf?

I am writing a document which includes exercises and their solution. To do distinguish them nicely, I used the amsthm package and the following code: \newtheoremstyle{dotlessP}{}{}{\color{black}}{}{\...
Baba's user avatar
  • 61
3 votes
2 answers
213 views

How to Left Justify the Lettrine Only with the Text After Inserting Opening Quotation Marks

Consider the code: \documentclass{book} \usepackage{lettrine,xcolor} \usepackage{lipsum} \usepackage[tracking=true]{microtype} \input GoudyIn.fd \renewcommand{\LettrineFontHook}{\usefont{U}{GoudyIn}{...
mlchristians's user avatar
  • 7,724
0 votes
1 answer
59 views

How to automate table generation via function or macro

This should a simple question with a simple answer but I couldn't find something related to this online (being also a TeX newbie...). I am trying to automate table generation so that I can avoid copy ...
gplt's user avatar
  • 3
0 votes
0 answers
69 views

Scaling tables between page sizes, and filling the page

I'm a teacher, and this is a design pattern I hope to use a lot. I have some information that I want to present as 1) a poster (a1), and 2) a handout (a4). What I would like to be able to do is set ...
randomlogic78's user avatar
1 vote
1 answer
210 views

Enumerate in Beamer: Automize only@

I would like to split enumerate environment over multiple slides in an automatized manner. In the following example, I need to write only@ for each slide. How to get an automized version of this code?...
mert's user avatar
  • 1,667
3 votes
1 answer
365 views

How to reset alternating row colors using xcolor and longtable?

I am attempting to automate alternating row colors in a longtable environment. My rows alternate between gray and white, and the alternating persists across pagebreaks. My issue is that I would like ...
Eric's user avatar
  • 83
2 votes
1 answer
115 views

Algorithmically generating the syntax of math equations

Is there a way to algorithmically write equation syntax in latex?? Suppose I want to write the N-point DFT matrix in an equation, then is it possible if i specify what each entry of NxN matrix will be ...
Kutsit's user avatar
  • 169
0 votes
2 answers
88 views

Create .bat to execute XeLaTeX+MakeIndex+BibLaTeX

Time ago I created a bat script to execute PDFLaTeX+MakeIndex+BibLaTeX so I can add as a processing tool in TeXworks (image below), and it was easy because I found many sites explaining how to do that ...
Eduardo Jiménez's user avatar
1 vote
1 answer
84 views

Can't write to aux file from cmd

I have an automating script written in Java to generate a PDF file from a source tex file. The?main tex file may reside in one drive say 'C:' and one included file via \input in another drive say 'D:'....
SolidMark's user avatar
  • 1,415

1
2 3 4 5
12