-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands1.tex
27 lines (21 loc) · 869 Bytes
/
commands1.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% That at least was the original intention. As you can see from the comments, some of the commands
% that work for TeX and pdf output are innefective when applied to HTML and eBooks!
% These are useful because HTML output corrupts the result of the \latex command.
\newcommand{\latex}{LaTeX\xspace}
\newcommand{\tex}{TeX\xspace}
% Makes extra space in HTML but not in PDF output.
\def\htbr{\ifdefined\HCode{\HCode{<br/><br/>}}\fi}
\newcommand\nextpage[1][]{
\ifdefined\HCode {
\HCode{<mbp:pagebreak />}}
\else
\newpage
\fi
}
% Makes small typewriter text, comparable to other font sizes.
\def\smalltt#1{\texttt{\small #1}}
% Makes small verbatim inline typewriter text, comparable to other font sizes.
% Use as \sverb|My verbatim text|
\def\sverb{\Verb[fontsize=\small]}
% Makes small URL text, comparable to other font sizes.
\def\surl#1{{\small{\url{#1}}}}