Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r218aecf rc850687  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Sun May 14 18:17:09 2017
    14 %% Update Count     : 295
     13%% Last Modified On : Tue Apr 18 17:16:13 2017
     14%% Update Count     : 270
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    3636% Names used in the document.
    3737
    38 \newcommand{\CFA}{C\raisebox{\depth}{\rotatebox{180}{\textscale{1.05}{\textsf{A}}}}\xspace} % Cforall symbolic name
     38\newcommand{\CFA}{C$\mathbf\forall$\xspace} % Cforall symbolic name
    3939\newcommand{\CFL}{Cforall\xspace} % Cforall symbolic name
    40 \newcommand{\Celeven}{C11\xspace} % C11 symbolic name
    4140\newcommand{\CC}{\rm C\kern-.1em\hbox{+\kern-.25em+}\xspace} % C++ symbolic name
    4241\newcommand{\CCeleven}{\rm C\kern-.1em\hbox{+\kern-.25em+}11\xspace} % C++11 symbolic name
     
    4443\newcommand{\CCseventeen}{\rm C\kern-.1em\hbox{+\kern-.25em+}17\xspace} % C++17 symbolic name
    4544\newcommand{\CCtwenty}{\rm C\kern-.1em\hbox{+\kern-.25em+}20\xspace} % C++20 symbolic name
     45\newcommand{\Celeven}{C11\xspace} % C11 symbolic name
    4646\newcommand{\Csharp}{C\raisebox{-0.7ex}{\Large$^\sharp$}\xspace} % C# symbolic name
    4747
     
    6767\usepackage{pslatex}                                    % reduce size of san serif font
    6868\usepackage{relsize}                                    % must be after change to small or selects old size
    69 \usepackage{rotating}
    7069
    7170% reduce size of chapter/section titles
     
    9897\newcommand{\italic}[1]{\emph{\hyperpage{#1}}}
    9998\newcommand{\definition}[1]{\textbf{\hyperpage{#1}}}
    100 \newcommand{\see}[1]{\emph{see}~#1}
     99\newcommand{\see}[1]{\emph{see} #1}
    101100
    102101% Define some commands that produce formatted index entries suitable for cross-references.
     
    222221}%
    223222
    224 \usepackage{lstlang}
     223% Go programming language: https://github.com/julienc91/listings-golang/blob/master/listings-golang.sty
     224\lstdefinelanguage{Golang}{
     225        morekeywords=[1]{package,import,func,type,struct,return,defer,panic,recover,select,var,const,iota,},%
     226        morekeywords=[2]{string,uint,uint8,uint16,uint32,uint64,int,int8,int16,int32,int64,
     227                bool,float32,float64,complex64,complex128,byte,rune,uintptr, error,interface},%
     228        morekeywords=[3]{map,slice,make,new,nil,len,cap,copy,close,true,false,delete,append,real,imag,complex,chan,},%
     229        morekeywords=[4]{for,break,continue,range,goto,switch,case,fallthrough,if,else,default,},%
     230        morekeywords=[5]{Println,Printf,Error,},%
     231        sensitive=true,%
     232        morecomment=[l]{//},%
     233        morecomment=[s]{/*}{*/},%
     234        morestring=[b]',%
     235        morestring=[b]",%
     236        morestring=[s]{`}{`},%
     237}
     238
     239% CFA programming language, based on ANSI C (with some gcc additions)
     240\lstdefinelanguage{Pseudo}{
     241        morekeywords={string,uint,int,bool,float},%
     242        sensitive=true,%
     243        morecomment=[l]{//},%
     244        morecomment=[s]{/*}{*/},%
     245        morestring=[b]',%
     246        morestring=[b]",%
     247        morestring=[s]{`}{`},%
     248}%
     249
     250% CFA programming language, based on ANSI C (with some gcc additions)
     251\lstdefinelanguage{CFA}[ANSI]{C}{
     252        morekeywords={_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto,
     253                _Bool,catch,catchResume,choose,_Complex,__complex,__complex__,__const,__const__,coroutine,disable,dtype,enable,__extension__,
     254                fallthrough,fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,monitor,mutex,_Noreturn,one_t,otype,restrict,_Static_assert,
     255                thread,_Thread_local,throw,throwResume,trait,try,ttype,typeof,__typeof,__typeof__,zero_t},
     256}%
    225257
    226258\newcommand{\CFADefaults}{%
     
    260292{}
    261293
     294
    262295% Local Variables: %
    263296% tab-width: 4 %
Note: See TracChangeset for help on using the changeset viewer.