All Questions
Tagged with automation macros
46
questions
3
votes
2
answers
121
views
Best Practices for Integrating Computer Algebra Systems (CAS) into LaTeX Documents
I am currently working on enhancing my LaTeX documents to involve complex mathematical equations. Managing these equations manually often leads to errors, especially when changing dependent equations ...
0
votes
0
answers
51
views
Custom table of contents for Theorems in LaTeX Document
I'm creating a LaTeX document (on Overleaf) filled with mathematical theorems and proofs. To quickly overview which theorems have been proven, I need a custom table of contents (TOC) that organizes ...
6
votes
3
answers
556
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---\...
0
votes
1
answer
36
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 ...
4
votes
1
answer
164
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 ...
2
votes
2
answers
165
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 ...
2
votes
3
answers
385
views
How to automatically generate data summary at the beginning of the document?
Within my report I want do define several structural damages and I want to automatically generate a summary table at the beginning of the document.
Here is an example of how far I have come so far and ...
1
vote
1
answer
74
views
Automatically register arguments a command is used with
I am wondering whether it is possible to create some sort of set to keep track of elements in latex.
One intended usage would be to automatically generate a list of arguments that have been passed to ...
2
votes
1
answer
218
views
How to globally apply all texts as the argument of a command?
I'm trying to make an entire document to look like handwrote. For that I tried both the Cthulhu and handlatex.
Both of them require the following usage:
\command{here the text to be applied.}
Which ...
3
votes
1
answer
142
views
Automated lettrine and commands
I need to automatically place lettrines on a text I don't want to edit directly.
So far I have been using
\def\drop #1#2 {% note the space before {
\lettrine{#1}{#2} % a trailing space
}
and
\drop ...
3
votes
2
answers
1k
views
Automatically add Parentheses to \cos, \sin, \log, ecc. , allowing subscripts
I'm sorry if the title suggests a question that has been asked a lot of times (see below), but I couldn't find an answer that also fulfills another need...
As a math teacher, I want my students to ...
2
votes
2
answers
4k
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 ...
2
votes
2
answers
298
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
1
answer
405
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]{...
2
votes
0
answers
64
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=...