File: newcommand.tex

package info (click to toggle)
latex2html 2021-debian1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,796 kB
  • sloc: perl: 33,871; makefile: 437; sh: 22
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}