Changeset b1bdc7d6 for doc/LaTeXmacros
- Timestamp:
- Oct 20, 2016, 12:06:38 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:
- d1fbaa78
- Parents:
- c2183a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
rc2183a3 rb1bdc7d6 228 228 229 229 % CFA programming language, based on ANSI C (with some gcc additions) 230 \lstdefinelanguage{Pseudo}{ 231 morekeywords={string,uint,int,bool,float},% 232 sensitive=true,% 233 morecomment=[l]{//},% 234 morecomment=[s]{/*}{*/},% 235 morestring=[b]',% 236 morestring=[b]",% 237 morestring=[s]{`}{`},% 238 }% 239 240 \lstset{ 241 language=Pseudo, 242 columns=fullflexible, 243 basicstyle=\linespread{0.9}\tt\small, % reduce line spacing and use typewriter font 244 stringstyle=\sf\color{Mahogany}, % use sanserif font 245 commentstyle=\itshape\color{OliveGreen}, % green and italic comments 246 tabsize=4, % 4 space tabbing 247 xleftmargin=\parindentlnth, % indent code to paragraph indentation 248 extendedchars=true, % allow ASCII characters in the range 128-255 249 escapechar=§, % escape to latex in CFA code 250 mathescape=true, % allow $...$ LaTeX math escapes in code 251 %keepspaces=true, % 252 showstringspaces=false, % do not show spaces with cup 253 showlines=true, % show blank lines at end of code 254 aboveskip=4pt, % spacing above/below code block 255 belowskip=3pt, 256 moredelim=**[is][\color{red}]{®}{®}, % red highlighting 257 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting 258 moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting 259 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords 260 % replace/adjust listing characters that look bad in sanserif 261 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 {©}{{\"u}}1 262 {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {_}{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1 263 {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2, 264 }% 265 266 % CFA programming language, based on ANSI C (with some gcc additions) 230 267 \lstdefinelanguage{CFA}[ANSI]{C}{ 231 268 morekeywords=[1]{_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto, … … 265 302 \lstMakeShortInline© % single-character for \lstinline 266 303 304 267 305 \let\Oldthebibliography\thebibliography 268 306 \renewcommand\thebibliography[1]{
Note: See TracChangeset
for help on using the changeset viewer.