Ignore:
Timestamp:
May 31, 2021, 2:05:54 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
fa4915c
Parents:
0497bd6
Message:

clean up macros and add defaultdialect={CFA}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r0497bd6 rcc022a9  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Sat May  8 08:48:37 2021
    14 %% Update Count     : 540
     13%% Last Modified On : Mon May 31 09:10:49 2021
     14%% Update Count     : 546
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    3737
    3838\usepackage{xspace}
    39 \newcommand{\CFAIcon}{\textsf{C}\raisebox{\depth}{\rotatebox{180}{\textsf{A}}}} % Cforall icon
     39\newcommand{\CFAIcon}{\textsf{C\raisebox{\depth}{\rotatebox{180}A}}} % Cforall icon
    4040\newcommand{\CFA}{\protect\CFAIcon\xspace}                              % CFA symbolic name
    4141\newcommand{\CFL}{\textrm{Cforall}\xspace}                              % Cforall non-icon name
     
    7373\setlength{\parindentlnth}{\parindent}
    7474
    75 \usepackage{pslatex}                                    % reduce size of san serif font
    76 \usepackage{relsize}                                    % must be after change to small or selects old size
     75\usepackage{pslatex}                                                                    % reduce size of san serif font
     76\usepackage{relsize}                                                                    % must be after change to small or selects old size
    7777\usepackage{rotating}
     78\usepackage{calc}                                                                               % latex arithmetic
    7879
    7980% reduce size of chapter/section titles
     
    158159\newcommand{\CheckPeriod}{\@ifnextchar{.}{}{.\xspace}}
    159160
    160 \@ifundefined{eg}{
    161161\newcommand{\EG}{\abbrevFont{e}.\abbrevFont{g}.}
    162162\newcommand{\eg}{\EG\CheckCommaColon}
    163 }{}%
    164 \@ifundefined{ie}{
     163
    165164\newcommand{\IE}{\abbrevFont{i}.\abbrevFont{e}.}
    166165\newcommand{\ie}{\IE\CheckCommaColon}
    167 }{}%
    168 \@ifundefined{etc}{
     166
    169167\newcommand{\ETC}{\abbrevFont{etc}}
    170168\newcommand{\etc}{\ETC\CheckPeriod}
    171 }{}%
    172 \@ifundefined{etal}{
     169
    173170\newcommand{\ETAL}{\abbrevFont{et}~\abbrevFont{al}}
    174171\newcommand{\etal}{\ETAL\CheckPeriod}
    175 }{}%
    176 \@ifundefined{viz}{
     172
    177173\newcommand{\VIZ}{\abbrevFont{viz}}
    178174\newcommand{\viz}{\VIZ\CheckPeriod}
    179 }{}%
     175
    180176\makeatother
    181177
     
    240236\usepackage{listings}                                                                   % format program code
    241237\usepackage{lstlang}
    242 \usepackage{calc}                                                                               % latex arithmetic
    243238
    244239\makeatletter
     
    281276numberstyle=\footnotesize\sf,                   % numbering style
    282277% replace/adjust listing characters that look bad in sanserif
    283 literate={-}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.75ex}{0.1ex}}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1
    284         {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1
    285         {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2 {->}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.8ex}{0.075ex}}}\kern-0.2ex\textgreater}2,
     278literate=
     279  {-}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.75ex}{0.1ex}}}}1
     280  {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1
     281  {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1
     282  {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1
     283  {<-}{$\leftarrow$}2
     284  {=>}{$\Rightarrow$}2
     285  {->}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.8ex}{0.075ex}}}\kern-0.2ex\textgreater}2,
     286defaultdialect={CFA},
    286287}% lstset
    287288}% CFAStyle
Note: See TracChangeset for help on using the changeset viewer.