Changes in doc/LaTeXmacros/common.tex [315f634:b1bdc7d6]
- File:
-
- 1 edited
-
doc/LaTeXmacros/common.tex (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
r315f634 rb1bdc7d6 11 11 %% Created On : Sat Apr 9 10:06:17 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Tue Oct 25 22:04:19 201614 %% Update Count : 23 413 %% Last Modified On : Sun Aug 14 08:27:29 2016 14 %% Update Count : 231 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 … … 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}{C\raisebox{0.4ex}{\#}\xspace} % C# symbolic name 43 \newcommand{\Csharp}{\rm C\hbox{\#}\xspace} % C# symbolic name 44 44 45 45 46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 125 126 \newcommand{\@sIndex}[2][\@empty]{#2\ifx#1\@empty\index{#2}\else\index{#1@{\protect#2}}\fi} 126 127 127 % inline text and code index (cannot use ©)128 % inline text and code index (cannot use �) 128 129 \newcommand{\Indexc}[1]{\lstinline$#1$\index{#1@\lstinline$#1$}} 129 % code index (cannot use ©)130 % code index (cannot use �) 130 131 \newcommand{\indexc}[1]{\index{#1@\lstinline$#1$}} 131 132 … … 227 228 228 229 % CFA programming language, based on ANSI C (with some gcc additions) 229 \lstdefinelanguage{CFA}[ANSI]{C}{ 230 morekeywords={_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto, 231 _Bool,catch,catchResume,choose,_Complex,__complex,__complex__,__const,__const__,disable,dtype,enable,__extension__, 232 fallthrough,fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,_Noreturn,otype,restrict,_Static_assert, 233 _Thread_local,throw,throwResume,trait,try,typeof,__typeof,__typeof__,}, 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]{`}{`},% 234 238 }% 235 239 236 240 \lstset{ 237 language= CFA,241 language=Pseudo, 238 242 columns=fullflexible, 239 basicstyle=\linespread{0.9}\sf, % reduce line spacing and use sanserif font 240 stringstyle=\tt, % use typewriter font 241 tabsize=4, % 4 space tabbing 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 242 247 xleftmargin=\parindentlnth, % indent code to paragraph indentation 243 extendedchars=true, % allow ASCII characters in the range 128-255244 escapechar=§, % escape to latex in CFA code248 extendedchars=true, % allow ASCII characters in the range 128-255 249 escapechar=§, % escape to latex in CFA code 245 250 mathescape=true, % allow $...$ LaTeX math escapes in code 246 %keepspaces=true, % 251 %keepspaces=true, % 247 252 showstringspaces=false, % do not show spaces with cup 248 showlines=true, % show blank lines at end of code249 aboveskip=4pt, % spacing above/below code block253 showlines=true, % show blank lines at end of code 254 aboveskip=4pt, % spacing above/below code block 250 255 belowskip=3pt, 251 256 moredelim=**[is][\color{red}]{®}{®}, % red highlighting … … 254 259 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords 255 260 % replace/adjust listing characters that look bad in sanserif 256 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 261 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 {©}{{\"u}}1 257 262 {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {_}{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1 258 263 {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2, 259 264 }% 260 265 266 % CFA programming language, based on ANSI C (with some gcc additions) 267 \lstdefinelanguage{CFA}[ANSI]{C}{ 268 morekeywords=[1]{_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto, 269 _Bool,catch,catchResume,choose,_Complex,__complex,__complex__,__const,__const__,disable,dtype,enable,__extension__, 270 fallthrough,fallthru,finally,forall,ftype,_Generic,_Imaginary,inline,__label__,lvalue,_Noreturn,otype,restrict,_Static_assert, 271 _Thread_local,throw,throwResume,trait,try,typeof,__typeof,__typeof__,}, 272 morekeywords=[2]{mutex,nomutex,thread,wait,signal,accept,monitor} 273 }% 274 275 \lstset{ 276 language=CFA, 277 columns=fullflexible, 278 basicstyle=\linespread{0.9}\tt\small, % reduce line spacing and use typewriter font 279 keywordstyle=[2]\color{blue}, % second set of keywords for concurency 280 stringstyle=\sf\color{Mahogany}, % use sanserif font 281 commentstyle=\itshape\color{OliveGreen}, % green and italic comments 282 tabsize=4, % 4 space tabbing 283 xleftmargin=\parindentlnth, % indent code to paragraph indentation 284 extendedchars=true, % allow ASCII characters in the range 128-255 285 escapechar=§, % escape to latex in CFA code 286 mathescape=true, % allow $...$ LaTeX math escapes in code 287 %keepspaces=true, % 288 showstringspaces=false, % do not show spaces with cup 289 showlines=true, % show blank lines at end of code 290 aboveskip=4pt, % spacing above/below code block 291 belowskip=3pt, 292 moredelim=**[is][\color{red}]{®}{®}, % red highlighting 293 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting 294 moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting 295 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords 296 % replace/adjust listing characters that look bad in sanserif 297 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 {©}{{\"u}}1 298 {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {_}{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1 299 {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2, 300 }% 301 261 302 \lstMakeShortInline© % single-character for \lstinline 303 262 304 263 305 \let\Oldthebibliography\thebibliography
Note:
See TracChangeset
for help on using the changeset viewer.