Changes in doc/LaTeXmacros/common.tex [28572e8:e94eeb9]
- File:
-
- 1 edited
-
doc/LaTeXmacros/common.tex (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
r28572e8 re94eeb9 11 11 %% Created On : Sat Apr 9 10:06:17 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : S at May 8 08:48:37202114 %% Update Count : 5 4013 %% Last Modified On : Sun Feb 14 15:52:46 2021 14 %% Update Count : 524 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 … … 38 38 \usepackage{xspace} 39 39 \newcommand{\CFAIcon}{\textsf{C}\raisebox{\depth}{\rotatebox{180}{\textsf{A}}}} % Cforall icon 40 \newcommand{\CFA}{\protect\CFAIcon\xspace} % CFA symbolic name41 \newcommand{\CFL}{\textrm{Cforall}\xspace} % Cforall non-icon name42 \newcommand{\Celeven}{\textrm{C11}\xspace} % C11 symbolic name40 \newcommand{\CFA}{\protect\CFAIcon\xspace} % CFA symbolic name 41 \newcommand{\CFL}{\textrm{Cforall}\xspace} % Cforall non-icon name 42 \newcommand{\Celeven}{\textrm{C11}\xspace} % C11 symbolic name 43 43 \newcommand{\CCIcon}{\textrm{C}\kern-.1em\hbox{+\kern-.25em+}} % C++ icon 44 \newcommand{\CC} [1][]{\protect\CCIcon{#1}\xspace}% C++ symbolic name44 \newcommand{\CC}{\protect\CCIcon\xspace} % C++ symbolic name 45 45 % numbers disallowed in latex variables names => use number names 46 \newcommand{\CCeleven}{\protect\CCIcon{11}\xspace} % C++11 symbolic name47 \newcommand{\CCfourteen}{\protect\CCIcon{14}\xspace} % C++14 symbolic name48 \newcommand{\CCseventeen}{\protect\CCIcon{17}\xspace} % C++17 symbolic name49 \newcommand{\CCtwenty}{\protect\CCIcon{20}\xspace} % C++20 symbolic name46 \newcommand{\CCeleven}{\protect\CCIcon{11}\xspace} % C++11 symbolic name 47 \newcommand{\CCfourteen}{\protect\CCIcon{14}\xspace} % C++14 symbolic name 48 \newcommand{\CCseventeen}{\protect\CCIcon{17}\xspace} % C++17 symbolic name 49 \newcommand{\CCtwenty}{\protect\CCIcon{20}\xspace} % C++20 symbolic name 50 50 \newcommand{\Csharp}{C\raisebox{-0.7ex}{\Large$^\sharp$}\xspace} % C# symbolic name 51 51 … … 102 102 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}{-2.5ex \@plus -1ex \@minus -.2ex}{1.0ex \@plus .2ex}{\normalfont\normalsize\bfseries}} 103 103 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}{-2.0ex \@plus -1ex \@minus -.2ex}{-1em}{\normalfont\normalsize\bfseries}} 104 \renewcommand\subparagraph{\@startsection{subparagraph}{4}{\z@}{-1.5ex \@plus -1ex \@minus -.2ex}{-1em}{\normalfont\normalsize\bfseries\itshape}}105 104 106 105 % index macros … … 153 152 % Latin abbreviation 154 153 \newcommand{\abbrevFont}{\textit} % set empty for no italics 155 % If not followed by a comma or colon, add a comma.156 \newcommand{\CheckCommaColon}{\@ifnextchar{,}{}{\@ifnextchar{:}{}{,\xspace}}}157 % If not followed by a period, add a period.158 \newcommand{\CheckPeriod}{\@ifnextchar{.}{}{.\xspace}}159 160 154 \@ifundefined{eg}{ 161 155 \newcommand{\EG}{\abbrevFont{e}.\abbrevFont{g}.} 162 \newcommand{\eg}{\EG\CheckCommaColon} 163 }{}% 156 \newcommand*{\eg}{% 157 \@ifnextchar{,}{\EG}% 158 {\@ifnextchar{:}{\EG}% 159 {\EG,\xspace}}% 160 }}{}% 164 161 \@ifundefined{ie}{ 165 162 \newcommand{\IE}{\abbrevFont{i}.\abbrevFont{e}.} 166 \newcommand{\ie}{\IE\CheckCommaColon} 167 }{}% 163 \newcommand*{\ie}{% 164 \@ifnextchar{,}{\IE}% 165 {\@ifnextchar{:}{\IE}% 166 {\IE,\xspace}}% 167 }}{}% 168 168 \@ifundefined{etc}{ 169 169 \newcommand{\ETC}{\abbrevFont{etc}} 170 \newcommand{\etc}{\ETC\CheckPeriod} 171 }{}% 170 \newcommand*{\etc}{% 171 \@ifnextchar{.}{\ETC}% 172 {\ETC.\xspace}% 173 }}{}% 172 174 \@ifundefined{etal}{ 173 175 \newcommand{\ETAL}{\abbrevFont{et}~\abbrevFont{al}} 174 \newcommand{\etal}{\ETAL\CheckPeriod} 175 }{}% 176 \newcommand*{\etal}{% 177 \@ifnextchar{.}{\protect\ETAL}% 178 {\protect\ETAL.\xspace}% 179 }}{}% 176 180 \@ifundefined{viz}{ 177 181 \newcommand{\VIZ}{\abbrevFont{viz}} 178 \newcommand{\viz}{\VIZ\CheckPeriod} 179 }{}% 182 \newcommand*{\viz}{% 183 \@ifnextchar{.}{\VIZ}% 184 {\VIZ.\xspace}% 185 }}{}% 180 186 \makeatother 181 187 … … 278 284 showlines=true, % show blank lines at end of code 279 285 aboveskip=4pt, % spacing above/below code block 280 belowskip= 2pt,286 belowskip=0pt, 281 287 numberstyle=\footnotesize\sf, % numbering style 282 288 % replace/adjust listing characters that look bad in sanserif … … 291 297 \lstset{ 292 298 language=CFA, 293 %moredelim=**[is][\color{red}]{@}{@}, % red highlighting @...@294 moredelim=**[is][\color{red}]{®}{®}, % red highlighting ®...® (registered trademark symbol) emacs: C-q M-.299 moredelim=**[is][\color{red}]{@}{@}, % red highlighting @...@ 300 %moredelim=**[is][\color{red}]{®}{®}, % red highlighting ®...® (registered trademark symbol) emacs: C-q M-. 295 301 %moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting ß...ß (sharp s symbol) emacs: C-q M-_ 296 302 %moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting ¢...¢ (cent symbol) emacs: C-q M-"
Note:
See TracChangeset
for help on using the changeset viewer.