Questions tagged [macros]
{macros} is for questions specifically concerning TeX's macro processor. Note that, because TeX uses macros ubiquitously, most questions about code that uses macros are not looking for information about how macros work, and so are not appropriate for this tag.
7 questions from the last 30 days
4
votes
3
answers
155
views
Redefine \gg in ‘unicode-math’
I have:
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}[Ligatures=TeX]
\setmathfont{STIX Two Math}
\usepackage{amsmath}
% need a suitable ...
3
votes
2
answers
82
views
Retrieve the value of a variable earlier in the document
I am preparing the schedule for a conference and using a time counter controlled by the macro \Next. By default, \Next advances the time by 15 minutes, but it can also accept an optional argument to ...
1
vote
0
answers
104
views
Uniform sequences of mathematical dots
When I need to write a sequence of dots without using TikZ, I often define a simple macro based on \bullet or another symbol that produces two or three dots (which they can be increase and decrease in ...
0
votes
0
answers
55
views
Is there a way to have a GUI that fills in tex file? [duplicate]
I have a class and a .tex file to write special-formatted memos. Unfortunately, I doubt the main end users who write the memos will want to change the field text in the .tex file for each memo. Is ...
4
votes
3
answers
201
views
Redefine `\item` so its first "argument" is a full word
I defined a Tikz macro and I want to use it so the item of an inline itemize is passed as its argument. So far, my solution is this:
\documentclass{article}
\usepackage[inline]{enumitem}
\usepackage{...
0
votes
1
answer
69
views
Tikz size change
With the help of AI I created the following:
\documentclass{article}
\usepackage[margin=1cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{positioning}
% Define colors extracted from the image
\...
3
votes
3
answers
136
views
Macro with mandatory argument in xint (xintexpr)
This is my first time using of xint.sty; therefore, I have a few questions:
(1) Is \NewDocumentCommand{\sn}{m}{ subsn(expr, var1=value1; var2=#1) } the correct way to define a macro with a mandatory ...