Skip to main content

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.

4 votes
3 answers
155 views

I have: \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{STIX Two Text}[Ligatures=TeX] \setmathfont{STIX Two Math} \usepackage{amsmath} % need a suitable ...
mvs's user avatar
  • 181
3 votes
2 answers
82 views

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 ...
Subhajit Paul's user avatar
1 vote
0 answers
104 views

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 ...
Sebastiano's user avatar
  • 69.6k
0 votes
0 answers
55 views

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 ...
salisboss's user avatar
  • 101
4 votes
3 answers
201 views

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{...
mathbekunkus's user avatar
  • 1,431
0 votes
1 answer
69 views

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 \...
Nick B's user avatar
  • 1,263
3 votes
3 answers
136 views

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 ...
cis's user avatar
  • 14.3k