Changeset 32cab5b for doc/LaTeXmacros


Ignore:
Timestamp:
Apr 17, 2018, 12:01:09 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
3265399
Parents:
b2fe1c9 (diff), 81bb114 (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

Location:
doc/LaTeXmacros
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    rb2fe1c9 r32cab5b  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Sat Feb 17 21:58:43 2018
    14 %% Update Count     : 369
     13%% Last Modified On : Mon Mar 19 17:18:23 2018
     14%% Update Count     : 379
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    101101% index macros
    102102\newcommand{\italic}[1]{\emph{\hyperpage{#1}}}
    103 \newcommand{\definition}[1]{\textbf{\hyperpage{#1}}}
     103\newcommand{\Definition}[1]{\textbf{\hyperpage{#1}}}
    104104\newcommand{\see}[1]{\emph{see}~#1}
    105105
     
    114114\def\impl{\@bsphack\begingroup
    115115          \def\protect##1{\string##1\space}\@sanitize
    116           \@wrxref{|definition}}
     116          \@wrxref{|Definition}}
    117117\newcommand{\indexcode}[1]{{\lstinline$#1$}}
    118118\def\use{\@bsphack\begingroup
     
    124124    \if@nobreak \ifvmode\nobreak\fi\fi\@esphack}
    125125%\newcommand{\use}[1]{\index{#1@{\lstinline$#1$}}}
    126 %\newcommand{\impl}[1]{\index{\protect#1@{\lstinline$\protect#1$}|definition}}
     126%\newcommand{\impl}[1]{\index{\protect#1@{\lstinline$\protect#1$}|Definition}}
    127127
    128128% inline text and lowercase index: \Index{inline and lowercase index text}
     
    148148% Latin abbreviation
    149149\newcommand{\abbrevFont}{\textit}                       % set empty for no italics
     150\@ifundefined{eg}{
    150151\newcommand{\EG}{\abbrevFont{e}.\abbrevFont{g}.}
    151152\newcommand*{\eg}{%
     
    153154                {\@ifnextchar{:}{\EG}%
    154155                        {\EG,\xspace}}%
    155 }%
     156}}{}%
     157\@ifundefined{ie}{
    156158\newcommand{\IE}{\abbrevFont{i}.\abbrevFont{e}.}
    157159\newcommand*{\ie}{%
     
    159161                {\@ifnextchar{:}{\IE}%
    160162                        {\IE,\xspace}}%
    161 }%
     163}}{}%
     164\@ifundefined{etc}{
    162165\newcommand{\ETC}{\abbrevFont{etc}}
    163166\newcommand*{\etc}{%
    164167        \@ifnextchar{.}{\ETC}%
    165168        {\ETC.\xspace}%
    166 }%
     169}}{}%
     170\@ifundefined{etal}{
    167171\newcommand{\ETAL}{\abbrevFont{et}~\abbrevFont{al}}
    168172\newcommand*{\etal}{%
    169173        \@ifnextchar{.}{\protect\ETAL}%
    170174                {\protect\ETAL.\xspace}%
    171 }%
     175}}{}%
     176\@ifundefined{viz}{
    172177\newcommand{\VIZ}{\abbrevFont{viz}}
    173178\newcommand*{\viz}{%
    174179        \@ifnextchar{.}{\VIZ}%
    175180                {\VIZ.\xspace}%
    176 }%
     181}}{}%
    177182\makeatother
    178183
  • doc/LaTeXmacros/lstlang.sty

    rb2fe1c9 r32cab5b  
    88%% Created On       : Sat May 13 16:34:42 2017
    99%% Last Modified By : Peter A. Buhr
    10 %% Last Modified On : Wed Aug 30 22:11:14 2017
    11 %% Update Count     : 14
     10%% Last Modified On : Fri Apr  6 23:44:50 2018
     11%% Update Count     : 20
    1212%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1313
     
    3131\lstdefinelanguage{sml} {
    3232        morekeywords= {
    33                 EQUAL, GREATER, LESS, NONE, SOME, abstraction, abstype, and, andalso, array, as, before, bool,
    34                 case, char, datatype, do, else, end, eqtype, exception, exn, false, fn, fun, functor, handle,
    35                 if, in, include, infix, infixr, int, let, list, local, nil, nonfix, not, o, of, op, open,
    36                 option, orelse, overload, print, raise, real, rec, ref, sharing, sig, signature, string, struct,
    37                 structure, substring, then, true, type, unit, val, vector, where, while, with, withtype, word
    38         },
    39         morestring=[b]",
    40         morecomment=[s]{(*}{*)},
     33                EQUAL, GREATER, LESS, NONE, SOME, abstraction, abstype, and, andalso, array, as, before,
     34                bool, case, char, datatype, do, else, end, eqtype, exception, exn, false, fn, fun, functor,
     35                handle, if, in, include, infix, infixr, int, let, list, local, nil, nonfix, not, o, of, op,
     36                open, option, orelse, overload, print, raise, real, rec, ref, sharing, sig, signature,
     37                string, struct, structure, substring, then, true, type, unit, val, vector, where, while,
     38                with, withtype, word
     39    },
     40    morestring=[b]",
     41    morecomment=[s]{(*}{*)},
    4142}
    4243
     
    8283
    8384\lstdefinelanguage{rust}{
     85        % Keywords
    8486        morekeywords=[1]{
    8587                abstract, alignof, as, become, box, break, const, continue, crate, do, else, enum, extern,
    86         false, final, fn, for, if, impl, in, let, loop, macro, match, mod, move, mut, offsetof,
    87         override, priv, proc, pub, pure, ref, return, Self, self, sizeof, static, struct, super,
    88         trait, true, type, typeof, unsafe, unsized, use, virtual, where, while, yield
     88                false, final, fn, for, if, impl, in, let, loop, macro, match, mod, move, mut, offsetof,
     89                override, priv, proc, pub, pure, ref, return, Self, self, sizeof, static, struct, super,
     90                trait, true, type, typeof, unsafe, unsized, use, virtual, where, while, yield
    8991        },
     92        % Strings
    9093        morestring=[b]{"},
     94        % Comments
    9195        comment=[l]{//},
    9296        morecomment=[s]{/*}{*/},
     97        % Options
    9398        sensitive=true
    9499}
    95100
    96 \lstdefinelanguage{Pseudo}{
     101\lstdefinelanguage{pseudo}{
    97102        morekeywords={string,uint,int,bool,float},
    98103        sensitive=true,
     
    107112\lstdefinelanguage{CFA}[ANSI]{C}{
    108113        morekeywords={
    109                 _Alignas, _Alignof, __alignof, __alignof__, asm, __asm, __asm__, _At, __attribute,
    110                 __attribute__, auto, _Bool, catch, catchResume, choose, _Complex, __complex, __complex__,
    111                 __const, __const__, disable, dtype, enable, __extension__, fallthrough, fallthru,
    112                 finally, forall, ftype, _Generic, _Imaginary, inline, __label__, lvalue, _Noreturn, one_t,
    113                 otype, restrict, _Static_assert, throw, throwResume, trait, try, ttype, typeof, __typeof,
    114                 __typeof__, virtual, with, zero_t},
    115         morekeywords=[2]{
    116                 _Atomic, coroutine, is_coroutine, is_monitor, is_thread, monitor, mutex, nomutex, or,
    117                 resume, suspend, thread, _Thread_local, waitfor, when, yield},
     114                _Alignas, _Alignof, __alignof, __alignof__, asm, __asm, __asm__, __attribute, __attribute__,
     115                auto, _Bool, catch, catchResume, choose, _Complex, __complex, __complex__, __const, __const__,
     116                coroutine, disable, dtype, enable, __extension__, exception, fallthrough, fallthru, finally,
     117                __float80, float80, __float128, float128, forall, ftype, _Generic, _Imaginary, __imag, __imag__,
     118                inline, __inline, __inline__, __int128, int128, __label__, monitor, mutex, _Noreturn, one_t, or,
     119                otype, restrict, __restrict, __restrict__, __signed, __signed__, _Static_assert, thread,
     120                _Thread_local, throw, throwResume, timeout, trait, try, ttype, typeof, __typeof, __typeof__,
     121                virtual, __volatile, __volatile__, waitfor, when, with, zero_t,
     122    },
    118123        moredirectives={defined,include_next}%
    119124}
Note: See TracChangeset for help on using the changeset viewer.