Ignore:
Timestamp:
May 21, 2021, 4:48:10 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
f1bce515
Parents:
5407cdc (diff), 7404cdc (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r5407cdc r8d66610  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Sun Feb 14 15:52:46 2021
    14 %% Update Count     : 524
     13%% Last Modified On : Sat May  8 08:48:37 2021
     14%% Update Count     : 540
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    3838\usepackage{xspace}
    3939\newcommand{\CFAIcon}{\textsf{C}\raisebox{\depth}{\rotatebox{180}{\textsf{A}}}} % Cforall icon
    40 \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
     40\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
    4343\newcommand{\CCIcon}{\textrm{C}\kern-.1em\hbox{+\kern-.25em+}} % C++ icon
    44 \newcommand{\CC}{\protect\CCIcon\xspace}                        % C++ symbolic name
     44\newcommand{\CC}[1][]{\protect\CCIcon{#1}\xspace}               % C++ symbolic name
    4545% numbers disallowed in latex variables names => use number names
    46 \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
     46\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
    5050\newcommand{\Csharp}{C\raisebox{-0.7ex}{\Large$^\sharp$}\xspace} % C# symbolic name
    5151
     
    102102\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}{-2.5ex \@plus -1ex \@minus -.2ex}{1.0ex \@plus .2ex}{\normalfont\normalsize\bfseries}}
    103103\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}}
    104105
    105106% index macros
     
    152153% Latin abbreviation
    153154\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
    154160\@ifundefined{eg}{
    155161\newcommand{\EG}{\abbrevFont{e}.\abbrevFont{g}.}
    156 \newcommand*{\eg}{%
    157         \@ifnextchar{,}{\EG}%
    158                 {\@ifnextchar{:}{\EG}%
    159                         {\EG,\xspace}}%
    160 }}{}%
     162\newcommand{\eg}{\EG\CheckCommaColon}
     163}{}%
    161164\@ifundefined{ie}{
    162165\newcommand{\IE}{\abbrevFont{i}.\abbrevFont{e}.}
    163 \newcommand*{\ie}{%
    164         \@ifnextchar{,}{\IE}%
    165                 {\@ifnextchar{:}{\IE}%
    166                         {\IE,\xspace}}%
    167 }}{}%
     166\newcommand{\ie}{\IE\CheckCommaColon}
     167}{}%
    168168\@ifundefined{etc}{
    169169\newcommand{\ETC}{\abbrevFont{etc}}
    170 \newcommand*{\etc}{%
    171         \@ifnextchar{.}{\ETC}%
    172         {\ETC.\xspace}%
    173 }}{}%
     170\newcommand{\etc}{\ETC\CheckPeriod}
     171}{}%
    174172\@ifundefined{etal}{
    175173\newcommand{\ETAL}{\abbrevFont{et}~\abbrevFont{al}}
    176 \newcommand*{\etal}{%
    177         \@ifnextchar{.}{\protect\ETAL}%
    178                 {\protect\ETAL.\xspace}%
    179 }}{}%
     174\newcommand{\etal}{\ETAL\CheckPeriod}
     175}{}%
    180176\@ifundefined{viz}{
    181177\newcommand{\VIZ}{\abbrevFont{viz}}
    182 \newcommand*{\viz}{%
    183         \@ifnextchar{.}{\VIZ}%
    184                 {\VIZ.\xspace}%
    185 }}{}%
     178\newcommand{\viz}{\VIZ\CheckPeriod}
     179}{}%
    186180\makeatother
    187181
     
    284278showlines=true,                                                 % show blank lines at end of code
    285279aboveskip=4pt,                                                  % spacing above/below code block
    286 belowskip=0pt,
     280belowskip=2pt,
    287281numberstyle=\footnotesize\sf,                   % numbering style
    288282% replace/adjust listing characters that look bad in sanserif
     
    297291\lstset{
    298292language=CFA,
    299 moredelim=**[is][\color{red}]{@}{@},    % red highlighting @...@
    300 %moredelim=**[is][\color{red}]{®}{®},   % red highlighting ®...® (registered trademark symbol) emacs: C-q M-.
     293%moredelim=**[is][\color{red}]{@}{@},   % red highlighting @...@
     294moredelim=**[is][\color{red}]{®}{®},    % red highlighting ®...® (registered trademark symbol) emacs: C-q M-.
    301295%moredelim=**[is][\color{blue}]{ß}{ß},  % blue highlighting ß...ß (sharp s symbol) emacs: C-q M-_
    302296%moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting ¢...¢ (cent symbol) emacs: C-q M-"
Note: See TracChangeset for help on using the changeset viewer.