OLD | NEW |
1 \def\keyword#1{\textbf{#1}} | 1 \def\keyword#1{\textbf{#1}} |
2 \def\builtinId#1{\textbf{#1}} | 2 \def\builtinId#1{\textbf{#1}} |
3 \def\comment#1{\textit{#1}} | 3 \def\comment#1{\textit{#1}} |
4 \def\capt#1{\rmfamily \caption{#1}} | 4 \def\capt#1{\rmfamily \caption{#1}} |
5 \newcommand{\cd}[1]{\textsf{#1}} | 5 \newcommand{\cd}[1]{\textsf{#1}} |
6 \def\lt{\ensuremath{<}} | 6 \def\lt{\ensuremath{<}} |
7 \def\gt{\ensuremath{>}} | 7 \def\gt{\ensuremath{>}} |
8 \def\<{\ensuremath{\langle}} | 8 \def\<{\ensuremath{\langle}} |
9 \def\>{\ensuremath{\rangle}} | 9 \def\>{\ensuremath{\rangle}} |
10 \def\metavar#1{\ensuremath{\mathit{#1}}} | 10 \def\metavar#1{\ensuremath{\mathit{#1}}} |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 \def\THIS{\keyword{this}} | 62 \def\THIS{\keyword{this}} |
63 \def\THROW{\keyword{throw}} | 63 \def\THROW{\keyword{throw}} |
64 \def\TRUE{\keyword{true}} | 64 \def\TRUE{\keyword{true}} |
65 \def\TRY{\keyword{try}} | 65 \def\TRY{\keyword{try}} |
66 \def\VAR{\keyword{var}} | 66 \def\VAR{\keyword{var}} |
67 \def\VOID{\keyword{void}} | 67 \def\VOID{\keyword{void}} |
68 \def\WHILE{\keyword{while}} | 68 \def\WHILE{\keyword{while}} |
69 \def\WITH{\keyword{with}} | 69 \def\WITH{\keyword{with}} |
70 \def\YIELD{\keyword{yield}} | 70 \def\YIELD{\keyword{yield}} |
71 | 71 |
72 \newenvironment{Q}[1]{{\bf #1}} | 72 \newenvironment{Q}[1]{{\bf #1}}{} |
73 \newenvironment{rationale}[1]{{\it #1}} | 73 \newenvironment{rationale}[1]{{\it #1}}{} |
74 \newenvironment{commentary}[1]{{\sf #1}} | 74 \newenvironment{commentary}[1]{{\sf #1}}{} |
75 | 75 |
76 \newenvironment{dartCode}[1][!ht] { | 76 \newenvironment{dartCode}[1][!ht] { |
77 % \begin{verbatim}[#1] | 77 % \begin{verbatim}[#1] |
78 \def\@programcr{\@addfield\strut} | 78 \def\@programcr{\@addfield\strut} |
79 \let\\=\@programcr | 79 \let\\=\@programcr |
80 \relax\@vobeyspaces\obeylines | 80 \relax\@vobeyspaces\obeylines |
81 | 81 |
82 \sffamily | 82 \sffamily |
83 }{ | 83 }{ |
84 %\end{verbatim} | 84 %\end{verbatim} |
(...skipping 21 matching lines...) Expand all Loading... |
106 \hspace{0pt}\marginpar{\raisebox{0.5ex}{\miniscule{\color{LMdim}#1}}}} | 106 \hspace{0pt}\marginpar{\raisebox{0.5ex}{\miniscule{\color{LMdim}#1}}}} |
107 | 107 |
108 % support convenient renewcommand | 108 % support convenient renewcommand |
109 \let\OriginalLMHash\LMHash | 109 \let\OriginalLMHash\LMHash |
110 | 110 |
111 % define a label, and show the associated logical location marker | 111 % define a label, and show the associated logical location marker |
112 \newcommand{\LMLabel}[1]{% | 112 \newcommand{\LMLabel}[1]{% |
113 \vspace{-\baselineskip}\hspace{0pt}\OriginalLMHash{\raisebox{10ex}{#1}}% | 113 \vspace{-\baselineskip}\hspace{0pt}\OriginalLMHash{\raisebox{10ex}{#1}}% |
114 \label{#1}} | 114 \label{#1}} |
115 % ---------------------------------------------------------------------- | 115 % ---------------------------------------------------------------------- |
OLD | NEW |