Changeset 90152a4 for doc/LaTeXmacros/common.tex
- Timestamp:
- Aug 27, 2018, 4:40:34 PM (8 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- b7c89aa
- Parents:
- f9feab8 (diff), 305581d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
doc/LaTeXmacros/common.tex (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
rf9feab8 r90152a4 11 11 %% Created On : Sat Apr 9 10:06:17 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Mon Aug 28 20:18:42 201714 %% Update Count : 3 5513 %% Last Modified On : Mon Jul 9 08:28:05 2018 14 %% Update Count : 380 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 … … 37 37 38 38 \newcommand{\CFAIcon}{\textsf{C}\raisebox{\depth}{\rotatebox{180}{\textsf{A}}}\xspace} % Cforall symbolic name 39 \newcommand{\CFA}{\protect\CFAIcon} % safe for section/caption39 \newcommand{\CFA}{\protect\CFAIcon} % safe for section/caption 40 40 \newcommand{\CFL}{\textrm{Cforall}\xspace} % Cforall symbolic name 41 41 \newcommand{\Celeven}{\textrm{C11}\xspace} % C11 symbolic name … … 55 55 \setlength{\parindentlnth}{\parindent} 56 56 57 \newcommand{\LstBasicStyle}[1]{{\lst@basicstyle{#1}}} 57 58 \newcommand{\LstKeywordStyle}[1]{{\lst@basicstyle{\lst@keywordstyle{#1}}}} 58 59 \newcommand{\LstCommentStyle}[1]{{\lst@basicstyle{\lst@commentstyle{#1}}}} … … 101 102 % index macros 102 103 \newcommand{\italic}[1]{\emph{\hyperpage{#1}}} 103 \newcommand{\ definition}[1]{\textbf{\hyperpage{#1}}}104 \newcommand{\Definition}[1]{\textbf{\hyperpage{#1}}} 104 105 \newcommand{\see}[1]{\emph{see}~#1} 105 106 … … 114 115 \def\impl{\@bsphack\begingroup 115 116 \def\protect##1{\string##1\space}\@sanitize 116 \@wrxref{| definition}}117 \@wrxref{|Definition}} 117 118 \newcommand{\indexcode}[1]{{\lstinline$#1$}} 118 119 \def\use{\@bsphack\begingroup … … 124 125 \if@nobreak \ifvmode\nobreak\fi\fi\@esphack} 125 126 %\newcommand{\use}[1]{\index{#1@{\lstinline$#1$}}} 126 %\newcommand{\impl}[1]{\index{\protect#1@{\lstinline$\protect#1$}| definition}}127 %\newcommand{\impl}[1]{\index{\protect#1@{\lstinline$\protect#1$}|Definition}} 127 128 128 129 % inline text and lowercase index: \Index{inline and lowercase index text} … … 147 148 148 149 % Latin abbreviation 149 \newcommand{\abbrevFont}{\textit} % set empty for no italics 150 \newcommand{\abbrevFont}{\textit} % set empty for no italics 151 \@ifundefined{eg}{ 150 152 \newcommand{\EG}{\abbrevFont{e}.\abbrevFont{g}.} 151 153 \newcommand*{\eg}{% … … 153 155 {\@ifnextchar{:}{\EG}% 154 156 {\EG,\xspace}}% 155 }% 157 }}{}% 158 \@ifundefined{ie}{ 156 159 \newcommand{\IE}{\abbrevFont{i}.\abbrevFont{e}.} 157 160 \newcommand*{\ie}{% … … 159 162 {\@ifnextchar{:}{\IE}% 160 163 {\IE,\xspace}}% 161 }% 164 }}{}% 165 \@ifundefined{etc}{ 162 166 \newcommand{\ETC}{\abbrevFont{etc}} 163 167 \newcommand*{\etc}{% 164 168 \@ifnextchar{.}{\ETC}% 165 {\ETC\xspace}% 166 }% 167 \newcommand{\ETAL}{\abbrevFont{et\:al}} 168 \newcommand{\etal}{% 169 \@ifnextchar{.}{\ETAL}% 170 {\abbrevFont{\ETAL}.\xspace}% 171 }% 169 {\ETC.\xspace}% 170 }}{}% 171 \@ifundefined{etal}{ 172 \newcommand{\ETAL}{\abbrevFont{et}~\abbrevFont{al}} 173 \newcommand*{\etal}{% 174 \@ifnextchar{.}{\protect\ETAL}% 175 {\protect\ETAL.\xspace}% 176 }}{}% 177 \@ifundefined{viz}{ 172 178 \newcommand{\VIZ}{\abbrevFont{viz}} 173 \newcommand {\viz}{%179 \newcommand*{\viz}{% 174 180 \@ifnextchar{.}{\VIZ}% 175 {\ abbrevFont{\VIZ}.\xspace}%176 } %181 {\VIZ.\xspace}% 182 }}{}% 177 183 \makeatother 178 184 179 \newenvironment{ quote2}{%180 \list{}{\lstset{resetmargins=true,aboveskip=0pt,belowskip=0pt}\topsep=4pt\parsep=0pt\leftmargin=\parindent \rightmargin\leftmargin}%185 \newenvironment{cquote}{% 186 \list{}{\lstset{resetmargins=true,aboveskip=0pt,belowskip=0pt}\topsep=4pt\parsep=0pt\leftmargin=\parindentlnth\rightmargin\leftmargin}% 181 187 \item\relax 182 188 }{% 183 189 \endlist 184 }% quote2190 }% cquote 185 191 186 192 \newenvironment{rationale}{% 187 \begin{ quote2}\noindent$\Box$\enspace193 \begin{cquote}\noindent$\Box$\enspace 188 194 }{% 189 \hfill\enspace$\Box$\end{ quote2}195 \hfill\enspace$\Box$\end{cquote} 190 196 }% 191 197 … … 201 207 \newenvironment{syntax}{ 202 208 \paragraph{Syntax} 203 \begin{ quote2}209 \begin{cquote} 204 210 \begin{description}[noitemsep,leftmargin=\parindentlnth] 205 211 }{ 206 212 \end{description} 207 \end{ quote2}213 \end{cquote} 208 214 } 209 215 % \def\syntax{\paragraph{Syntax}\trivlist\parindent=.5in\item[\hskip.5in]} … … 215 221 \newcommand{\opt}{$_{opt}$\ } 216 222 217 \usepackage{varioref} % extended references223 \usepackage{varioref} % extended references 218 224 % adjust varioref package with default "section" and "page" titles, and optional title with faraway page numbers 219 225 % \VRef{label} => Section 2.7, \VPageref{label} => page 17 … … 241 247 language=CFA, 242 248 columns=fullflexible, 243 basicstyle=\linespread{0.9}\sf, % reduce line spacing and use sanserif font244 stringstyle=\tt, % use typewriter font245 tabsize=5, % N space tabbing246 xleftmargin=\parindentlnth, % indent code to paragraph indentation247 extendedchars=true, % allow ASCII characters in the range 128-255248 escapechar=§, % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-'249 mathescape=true, % LaTeX math escape in CFA code $...$250 keepspaces=true, %251 showstringspaces=false, % do not show spaces with cup252 showlines=true, % show blank lines at end of code253 aboveskip=4pt, % spacing above/below code block249 basicstyle=\linespread{0.9}\sf, % reduce line spacing and use sanserif font 250 stringstyle=\tt, % use typewriter font 251 tabsize=5, % N space tabbing 252 xleftmargin=\parindentlnth, % indent code to paragraph indentation 253 extendedchars=true, % allow ASCII characters in the range 128-255 254 escapechar=§, % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-' 255 mathescape=true, % LaTeX math escape in CFA code $...$ 256 keepspaces=true, % 257 showstringspaces=false, % do not show spaces with cup 258 showlines=true, % show blank lines at end of code 259 aboveskip=4pt, % spacing above/below code block 254 260 belowskip=3pt, 255 261 % replace/adjust listing characters that look bad in sanserif … … 257 263 {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1 258 264 {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2 {->}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.8ex}{0.075ex}}}\kern-0.2ex\textgreater}2, 259 moredelim=**[is][\color{red}]{®}{®}, % red highlighting ®...® (registered trademark symbol) emacs: C-q M-.260 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting ß...ß (sharp s symbol) emacs: C-q M-_261 moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting ¢...¢ (cent symbol) emacs: C-q M-"262 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % keyword escape ¶...¶ (pilcrow symbol) emacs: C-q M-^265 moredelim=**[is][\color{red}]{®}{®}, % red highlighting ®...® (registered trademark symbol) emacs: C-q M-. 266 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting ß...ß (sharp s symbol) emacs: C-q M-_ 267 moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting ¢...¢ (cent symbol) emacs: C-q M-" 268 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % keyword escape ¶...¶ (pilcrow symbol) emacs: C-q M-^ 263 269 }% lstset 264 270 }% CFADefaults … … 266 272 \CFADefaults 267 273 % inline code ©...© (copyright symbol) emacs: C-q M-) 268 \lstMakeShortInline© % single-character for \lstinline274 \lstMakeShortInline© % single-character for \lstinline 269 275 }% CFAStyle 270 276
Note:
See TracChangeset
for help on using the changeset viewer.