Tag
Latex macros
- How to Create a Numbered Example Environment in LaTeXCreate numbered examples in LaTeX with amsthm’s newtheorem command, optionally reset numbering by section, and cross-reference examples by label.
- How to Use LaTeX Macros in LuaLaTeX’s \directluaLearn how TeX expands macros in \directlua, how to pass their values safely to Lua, and how Lua can generate TeX commands.
- How to Use LaTeX Macros in MarkdownLaTeX macros can be used in Markdown only when its math renderer supports them; define macros in that renderer's configuration for portability.
- How to Define a Custom Beamer Frame CommandDefine a command that starts a Beamer frame, then end it with the literal \end{frame}; this also works with beamerarticle.
- How to Add Conditional Formatting in a \newcommandUse \ifthenelse and \equal inside a \newcommand to compare an argument, then put the desired formatting in the true and false branches.