Changeset 2b93c5a
- Timestamp:
- Oct 19, 2016, 3:40:28 PM (8 years ago)
- 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, resolv-new, with_gc
- Children:
- c2183a3
- Parents:
- ab84e8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
rab84e8a r2b93c5a 1 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 %% 2 %% 3 3 %% Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 4 4 %% 5 5 %% The contents of this file are covered under the licence agreement in the 6 6 %% file "LICENCE" distributed with Cforall. 7 %% 8 %% common.tex -- 9 %% 7 %% 8 %% common.tex -- 9 %% 10 10 %% Author : Peter A. Buhr 11 11 %% Created On : Sat Apr 9 10:06:17 2016 … … 41 41 \newcommand{\CCeleven}{\rm C\kern-.1em\hbox{+\kern-.25em+}11\xspace} % C++11 symbolic name 42 42 \newcommand{\Celeven}{C11\xspace} % C11 symbolic name 43 \newcommand{\Csharp}{\rm C\hbox{\#}\xspace} % C# symbolic name 44 43 45 44 46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 124 126 \newcommand{\@sIndex}[2][\@empty]{#2\ifx#1\@empty\index{#2}\else\index{#1@{\protect#2}}\fi} 125 127 126 % inline text and code index (cannot use ©)128 % inline text and code index (cannot use �) 127 129 \newcommand{\Indexc}[1]{\lstinline$#1$\index{#1@\lstinline$#1$}} 128 % code index (cannot use ©)130 % code index (cannot use �) 129 131 \newcommand{\indexc}[1]{\index{#1@\lstinline$#1$}} 130 132 … … 227 229 % CFA programming language, based on ANSI C (with some gcc additions) 228 230 \lstdefinelanguage{CFA}[ANSI]{C}{ 229 morekeywords= {_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto,231 morekeywords=[1]{_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto, 230 232 _Bool,catch,catchResume,choose,_Complex,__complex,__complex__,__const,__const__,disable,dtype,enable,__extension__, 231 233 fallthrough,fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,_Noreturn,otype,restrict,_Static_assert, 232 234 _Thread_local,throw,throwResume,trait,try,typeof,__typeof,__typeof__,}, 235 morekeywords=[2]{mutex,nomutex,thread,wait,signal,accept,monitor} 233 236 }% 234 237 … … 236 239 language=CFA, 237 240 columns=fullflexible, 238 basicstyle=\linespread{0.9}\sf, % reduce line spacing and use sanserif font 239 stringstyle=\tt, % use typewriter font 240 tabsize=4, % 4 space tabbing 241 basicstyle=\linespread{0.9}\tt\small, % reduce line spacing and use typewriter font 242 keywordstyle=[2]\color{blue}, % second set of keywords for concurency 243 stringstyle=\sf\color{Mahogany}, % use sanserif font 244 commentstyle=\itshape\color{OliveGreen}, % green and italic comments 245 tabsize=4, % 4 space tabbing 241 246 xleftmargin=\parindentlnth, % indent code to paragraph indentation 242 extendedchars=true, 243 escapechar= §,% escape to latex in CFA code247 extendedchars=true, % allow ASCII characters in the range 128-255 248 escapechar=�, % escape to latex in CFA code 244 249 mathescape=true, % allow $...$ LaTeX math escapes in code 245 %keepspaces=true, % 250 %keepspaces=true, % 246 251 showstringspaces=false, % do not show spaces with cup 247 showlines=true, 248 aboveskip=4pt, 252 showlines=true, % show blank lines at end of code 253 aboveskip=4pt, % spacing above/below code block 249 254 belowskip=3pt, 250 255 moredelim=**[is][\color{red}]{®}{®}, % red highlighting … … 253 258 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords 254 259 % replace/adjust listing characters that look bad in sanserif 255 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 260 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 {©}{{\"u}}1 256 261 {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {_}{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1 257 262 {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2,
Note: See TracChangeset
for help on using the changeset viewer.