File: newcommand.tex

package info (click to toggle)
latex2html 2023-debian1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,924 kB
  • sloc: perl: 34,024; makefile: 437; sh: 32
file content (18 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\documentclass[]{article}

\begin{document}

\newcommand\nttnob{\tt}
\newcommand{\nttb}{\tt}
\providecommand\pttnob{\tt}
\providecommand{\pttb}{\tt}

newcommand with no braces: {\nttnob text}

newcommand with braces: {\nttb text}

providecommand with no braces: {\pttnob text}

providecommand with braces: {\pttb text}

\end{document}