Ignore:
Timestamp:
Aug 27, 2018, 4:40:34 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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.
Message:

Merge branch 'master' into cleanup-dtors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    rf9feab8 r90152a4  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Mon Aug 28 20:18:42 2017
    14 %% Update Count     : 355
     13%% Last Modified On : Mon Jul  9 08:28:05 2018
     14%% Update Count     : 380
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    3737
    3838\newcommand{\CFAIcon}{\textsf{C}\raisebox{\depth}{\rotatebox{180}{\textsf{A}}}\xspace} % Cforall symbolic name
    39 \newcommand{\CFA}{\protect\CFAIcon} % safe for section/caption
     39\newcommand{\CFA}{\protect\CFAIcon}             % safe for section/caption
    4040\newcommand{\CFL}{\textrm{Cforall}\xspace} % Cforall symbolic name
    4141\newcommand{\Celeven}{\textrm{C11}\xspace} % C11 symbolic name
     
    5555\setlength{\parindentlnth}{\parindent}
    5656
     57\newcommand{\LstBasicStyle}[1]{{\lst@basicstyle{#1}}}
    5758\newcommand{\LstKeywordStyle}[1]{{\lst@basicstyle{\lst@keywordstyle{#1}}}}
    5859\newcommand{\LstCommentStyle}[1]{{\lst@basicstyle{\lst@commentstyle{#1}}}}
     
    101102% index macros
    102103\newcommand{\italic}[1]{\emph{\hyperpage{#1}}}
    103 \newcommand{\definition}[1]{\textbf{\hyperpage{#1}}}
     104\newcommand{\Definition}[1]{\textbf{\hyperpage{#1}}}
    104105\newcommand{\see}[1]{\emph{see}~#1}
    105106
     
    114115\def\impl{\@bsphack\begingroup
    115116          \def\protect##1{\string##1\space}\@sanitize
    116           \@wrxref{|definition}}
     117          \@wrxref{|Definition}}
    117118\newcommand{\indexcode}[1]{{\lstinline$#1$}}
    118119\def\use{\@bsphack\begingroup
     
    124125    \if@nobreak \ifvmode\nobreak\fi\fi\@esphack}
    125126%\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}}
    127128
    128129% inline text and lowercase index: \Index{inline and lowercase index text}
     
    147148
    148149% Latin abbreviation
    149 \newcommand{\abbrevFont}{\textit}       % set empty for no italics
     150\newcommand{\abbrevFont}{\textit}                       % set empty for no italics
     151\@ifundefined{eg}{
    150152\newcommand{\EG}{\abbrevFont{e}.\abbrevFont{g}.}
    151153\newcommand*{\eg}{%
     
    153155                {\@ifnextchar{:}{\EG}%
    154156                        {\EG,\xspace}}%
    155 }%
     157}}{}%
     158\@ifundefined{ie}{
    156159\newcommand{\IE}{\abbrevFont{i}.\abbrevFont{e}.}
    157160\newcommand*{\ie}{%
     
    159162                {\@ifnextchar{:}{\IE}%
    160163                        {\IE,\xspace}}%
    161 }%
     164}}{}%
     165\@ifundefined{etc}{
    162166\newcommand{\ETC}{\abbrevFont{etc}}
    163167\newcommand*{\etc}{%
    164168        \@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}{
    172178\newcommand{\VIZ}{\abbrevFont{viz}}
    173 \newcommand{\viz}{%
     179\newcommand*{\viz}{%
    174180        \@ifnextchar{.}{\VIZ}%
    175                 {\abbrevFont{\VIZ}.\xspace}%
    176 }%
     181                {\VIZ.\xspace}%
     182}}{}%
    177183\makeatother
    178184
    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}%
    181187        \item\relax
    182188}{%
    183189        \endlist
    184 }% quote2
     190}% cquote
    185191
    186192\newenvironment{rationale}{%
    187   \begin{quote2}\noindent$\Box$\enspace
     193  \begin{cquote}\noindent$\Box$\enspace
    188194}{%
    189   \hfill\enspace$\Box$\end{quote2}
     195  \hfill\enspace$\Box$\end{cquote}
    190196}%
    191197
     
    201207\newenvironment{syntax}{
    202208\paragraph{Syntax}
    203 \begin{quote2}
     209\begin{cquote}
    204210\begin{description}[noitemsep,leftmargin=\parindentlnth]
    205211}{
    206212\end{description}
    207 \end{quote2}
     213\end{cquote}
    208214}
    209215% \def\syntax{\paragraph{Syntax}\trivlist\parindent=.5in\item[\hskip.5in]}
     
    215221\newcommand{\opt}{$_{opt}$\ }
    216222
    217 \usepackage{varioref}                 % extended references
     223\usepackage{varioref}                                   % extended references
    218224% adjust varioref package with default "section" and "page" titles, and optional title with faraway page numbers
    219225% \VRef{label} => Section 2.7, \VPageref{label} => page 17
     
    241247language=CFA,
    242248columns=fullflexible,
    243 basicstyle=\linespread{0.9}\sf,                                                 % reduce line spacing and use sanserif font
    244 stringstyle=\tt,                                                                                % use typewriter font
    245 tabsize=5,                                                                                              % N space tabbing
    246 xleftmargin=\parindentlnth,                                                             % indent code to paragraph indentation
    247 extendedchars=true,                                                                             % allow ASCII characters in the range 128-255
    248 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 cup
    252 showlines=true,                                                                                 % show blank lines at end of code
    253 aboveskip=4pt,                                                                                  % spacing above/below code block
     249basicstyle=\linespread{0.9}\sf,                 % reduce line spacing and use sanserif font
     250stringstyle=\tt,                                                % use typewriter font
     251tabsize=5,                                                              % N space tabbing
     252xleftmargin=\parindentlnth,                             % indent code to paragraph indentation
     253extendedchars=true,                                             % allow ASCII characters in the range 128-255
     254escapechar=§,                                                   % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-'
     255mathescape=true,                                                % LaTeX math escape in CFA code $...$
     256keepspaces=true,                                                %
     257showstringspaces=false,                                 % do not show spaces with cup
     258showlines=true,                                                 % show blank lines at end of code
     259aboveskip=4pt,                                                  % spacing above/below code block
    254260belowskip=3pt,
    255261% replace/adjust listing characters that look bad in sanserif
     
    257263        {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1
    258264        {<-}{$\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-^
     265moredelim=**[is][\color{red}]{®}{®},    % red highlighting ®...® (registered trademark symbol) emacs: C-q M-.
     266moredelim=**[is][\color{blue}]{ß}{ß},   % blue highlighting ß...ß (sharp s symbol) emacs: C-q M-_
     267moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting ¢...¢ (cent symbol) emacs: C-q M-"
     268moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % keyword escape ¶...¶ (pilcrow symbol) emacs: C-q M-^
    263269}% lstset
    264270}% CFADefaults
     
    266272\CFADefaults
    267273% inline code ©...© (copyright symbol) emacs: C-q M-)
    268 \lstMakeShortInline©                                                                    % single-character for \lstinline
     274\lstMakeShortInline©                                    % single-character for \lstinline
    269275}% CFAStyle
    270276
Note: See TracChangeset for help on using the changeset viewer.