Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/refrat/refrat.tex

    r92c0f81 r83e9bd3  
    1111%% Created On       : Wed Apr  6 14:52:25 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Sun Aug  6 10:25:31 2017
    14 %% Update Count     : 105
     13%% Last Modified On : Fri Jun  2 10:43:14 2017
     14%% Update Count     : 83
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
    1717% requires tex packages: texlive-base texlive-latex-base tex-common texlive-humanities texlive-latex-extra texlive-fonts-recommended
    1818
    19 \documentclass[openright,twoside,11pt]{report}
     19\documentclass[openright,twoside]{report}
    2020
    2121%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     
    3737\usepackage{mathptmx}                                   % better math font with "times"
    3838\usepackage[usenames]{color}
    39 \input{common}                                          % common CFA document macros
     39\usepackage[pagewise]{lineno}
     40\renewcommand{\linenumberfont}{\scriptsize\sffamily}
     41\input{common}                                          % bespoke macros used in the document
    4042\usepackage[dvips,plainpages=false,pdfpagelabels,pdfpagemode=UseNone,colorlinks=true,pagebackref=true,linkcolor=blue,citecolor=blue,urlcolor=blue,pagebackref=true,breaklinks=true]{hyperref}
    4143\usepackage{breakurl}
    4244\renewcommand{\UrlFont}{\small\sf}
    4345
    44 \usepackage[pagewise]{lineno}
    45 \renewcommand{\linenumberfont}{\scriptsize\sffamily}
    46 \usepackage[firstpage]{draftwatermark}
    47 \SetWatermarkLightness{0.9}
    48 
    49 % Default underscore is too low and wide. Cannot use lstlisting "literate" as replacing underscore
    50 % removes it as a variable-name character so keywords in variables are highlighted. MUST APPEAR
    51 % AFTER HYPERREF.
    52 \renewcommand{\textunderscore}{\leavevmode\makebox[1.2ex][c]{\rule{1ex}{0.075ex}}}
    53 
    5446\setlength{\topmargin}{-0.45in}                                                 % move running title into header
    5547\setlength{\headsep}{0.25in}
     
    5850
    5951\CFAStyle                                                                                               % use default CFA format-style
    60 \lstnewenvironment{C++}[1][]                            % use C++ style
    61 {\lstset{language=C++,moredelim=**[is][\protect\color{red}]{®}{®}#1}}
    62 {}
    6352
    6453% inline code ©...© (copyright symbol) emacs: C-q M-)
     
    9887
    9988\date{
    100 \today
     89DRAFT \\ \today
    10190}% date
    10291
     
    123112
    124113\clearpage
    125 \thispagestyle{plain}
    126114\pdfbookmark[1]{Contents}{section}
    127115\tableofcontents
    128116
    129117\clearpage
    130 \thispagestyle{plain}
    131118\pagenumbering{arabic}
    132119
     
    430417
    431418\begin{syntax}
    432 \lhs{keyword} one of
    433 \rhs \dots
    434 \rhs \input{keywords}
     419\oldlhs{keyword}
     420\rhs ©forall©
     421\rhs ©lvalue©
     422\rhs ©trait©
     423\rhs ©dtype©
     424\rhs ©ftype©
     425\rhs ©otype©
    435426\end{syntax}
    436427
     
    478469
    479470\begin{table}[hbt]
    480 \centering
    481 \input{operidents}
     471\hfil
     472\begin{tabular}[t]{ll}
     473%identifier & operation \\ \hline
     474©?[?]© & subscripting \impl{?[?]}\\
     475©?()© & function call \impl{?()}\\
     476©?++© & postfix increment \impl{?++}\\
     477©?--© & postfix decrement \impl{?--}\\
     478©++?© & prefix increment \impl{++?}\\
     479©--?© & prefix decrement \impl{--?}\\
     480©*?© & dereference \impl{*?}\\
     481©+?© & unary plus \impl{+?}\\
     482©-?© & arithmetic negation \impl{-?}\\
     483©~?© & bitwise negation \impl{~?}\\
     484©!?© & logical complement \impl{"!?}\\
     485©?*?© & multiplication \impl{?*?}\\
     486©?/?© & division \impl{?/?}\\
     487\end{tabular}\hfil
     488\begin{tabular}[t]{ll}
     489%identifier & operation \\ \hline
     490©?%?© & remainder \impl{?%?}\\
     491©?+?© & addition \impl{?+?}\\
     492©?-?© & subtraction \impl{?-?}\\
     493©?<<?© & left shift \impl{?<<?}\\
     494©?>>?© & right shift \impl{?>>?}\\
     495©?<?© & less than \impl{?<?}\\
     496©?<=?© & less than or equal \impl{?<=?}\\
     497©?>=?© & greater than or equal \impl{?>=?}\\
     498©?>?© & greater than \impl{?>?}\\
     499©?==?© & equality \impl{?==?}\\
     500©?!=?© & inequality \impl{?"!=?}\\
     501©?&?© & bitwise AND \impl{?&?}\\
     502\end{tabular}\hfil
     503\begin{tabular}[t]{ll}
     504%identifier & operation \\ \hline
     505©?^?© & exclusive OR \impl{?^?}\\
     506©?|?© & inclusive OR \impl{?"|?}\\
     507©?=?© & simple assignment \impl{?=?}\\
     508©?*=?© & multiplication assignment \impl{?*=?}\\
     509©?/=?© & division assignment \impl{?/=?}\\
     510©?%=?© & remainder assignment \impl{?%=?}\\
     511©?+=?© & addition assignment \impl{?+=?}\\
     512©?-=?© & subtraction assignment \impl{?-=?}\\
     513©?<<=?© & left-shift assignment \impl{?<<=?}\\
     514©?>>=?© & right-shift assignment \impl{?>>=?}\\
     515©?&=?© & bitwise AND assignment \impl{?&=?}\\
     516©?^=?© & exclusive OR assignment \impl{?^=?}\\
     517©?|=?© & inclusive OR assignment \impl{?"|=?}\\
     518\end{tabular}
     519\hfil
    482520\caption{Operator Identifiers}
    483521\label{opids}
Note: See TracChangeset for help on using the changeset viewer.