Changeset 3bff885 for doc/LaTeXmacros/common.tex
- Timestamp:
- Feb 20, 2017, 12:29:43 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:
- 210587b
- Parents:
- bd9bcc8 (diff), a98b2cc (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/common.tex
rbd9bcc8 r3bff885 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 : 2 3413 %% Last Modified On : Fri Feb 10 11:32:36 2017 14 %% Update Count : 249 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 … … 210 210 \newcommand{\VPageref}[2][page]{\ifx#1\@empty\else{#1}\nobreakspace\fi\pageref{#2}} 211 211 212 \let\Oldthebibliography\thebibliography 213 \renewcommand\thebibliography[1]{ 214 \Oldthebibliography{#1} 215 \setlength{\parskip}{0pt} % reduce vertical spacing between references 216 \setlength{\itemsep}{5pt plus 0.3ex} 217 }% 218 212 219 % Go programming language: https://github.com/julienc91/listings-golang/blob/master/listings-golang.sty 213 220 \lstdefinelanguage{Golang}{ 214 morekeywords=[1]{package,import,func,type,struct,return,defer,panic, 215 morekeywords=[2]{string,uint,uint8,uint16,uint32,uint64,int,int8,int16, 221 morekeywords=[1]{package,import,func,type,struct,return,defer,panic,recover,select,var,const,iota,},% 222 morekeywords=[2]{string,uint,uint8,uint16,uint32,uint64,int,int8,int16,int32,int64, 216 223 bool,float32,float64,complex64,complex128,byte,rune,uintptr, error,interface},% 217 morekeywords=[3]{map,slice,make,new,nil,len,cap,copy,close,true,false, 218 morekeywords=[4]{for,break,continue,range,goto,switch,case,fallthrough,if, 224 morekeywords=[3]{map,slice,make,new,nil,len,cap,copy,close,true,false,delete,append,real,imag,complex,chan,},% 225 morekeywords=[4]{for,break,continue,range,goto,switch,case,fallthrough,if,else,default,},% 219 226 morekeywords=[5]{Println,Printf,Error,},% 220 227 sensitive=true,% … … 237 244 }% 238 245 239 \lstset{240 language=Pseudo,241 columns=fullflexible,242 basicstyle=\linespread{0.9}\tt\small, % reduce line spacing and use typewriter font243 stringstyle=\sf\color{Mahogany}, % use sanserif font244 commentstyle=\itshape\color{OliveGreen}, % green and italic comments245 tabsize=4, % 4 space tabbing246 xleftmargin=\parindentlnth, % indent code to paragraph indentation247 extendedchars=true, % allow ASCII characters in the range 128-255248 escapechar=§, % escape to latex in CFA code249 mathescape=true, % allow $...$ LaTeX math escapes in code250 %keepspaces=true, %251 showstringspaces=false, % do not show spaces with cup252 showlines=true, % show blank lines at end of code253 aboveskip=4pt, % spacing above/below code block254 belowskip=3pt,255 moredelim=**[is][\color{red}]{®}{®}, % red highlighting256 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting257 moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting258 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords259 % replace/adjust listing characters that look bad in sanserif260 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 {©}{{\"u}}1261 {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {_}{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1262 {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2,263 }%264 265 246 % CFA programming language, based on ANSI C (with some gcc additions) 266 247 \lstdefinelanguage{CFA}[ANSI]{C}{ … … 271 252 }% 272 253 254 \newcommand{\CFADefaultStyle}{% 273 255 \lstset{ 274 256 language=CFA, 275 257 columns=fullflexible, 276 basicstyle=\linespread{0.9}\sf, % reduce line spacing and use sanserif font277 stringstyle=\tt, % use typewriter font278 tabsize=4, % 4 space tabbing279 xleftmargin=\parindentlnth, % indent code to paragraph indentation280 extendedchars=true, % allow ASCII characters in the range 128-255281 escapechar=§, % escape to latex in CFA code282 mathescape=true, % allow $...$ LaTeX math escapes in code283 %keepspaces=true, %284 showstringspaces=false, % do not show spaces with cup285 showlines=true, % show blank lines at end of code286 aboveskip=4pt, % spacing above/below code block258 basicstyle=\linespread{0.9}\sf, % reduce line spacing and use sanserif font 259 stringstyle=\tt, % use typewriter font 260 tabsize=4, % 4 space tabbing 261 xleftmargin=\parindentlnth, % indent code to paragraph indentation 262 extendedchars=true, % allow ASCII characters in the range 128-255 263 escapechar=§, % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-' 264 mathescape=true, % LaTeX math escape in CFA code $...$ 265 %keepspaces=true, % 266 showstringspaces=false, % do not show spaces with cup 267 showlines=true, % show blank lines at end of code 268 aboveskip=4pt, % spacing above/below code block 287 269 belowskip=3pt, 288 moredelim=**[is][\color{red}]{®}{®}, % red highlighting289 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting290 moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting291 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords292 270 % replace/adjust listing characters that look bad in sanserif 293 271 literate={-}{\raisebox{-0.15ex}{\texttt{-}}}1 {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1 294 272 {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1 {_}{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}1 {`}{\ttfamily\upshape\hspace*{-0.1ex}`}1 295 273 {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2, 296 }% 297 298 \lstMakeShortInline© % single-character for \lstinline 299 300 301 \let\Oldthebibliography\thebibliography 302 \renewcommand\thebibliography[1]{ 303 \Oldthebibliography{#1} 304 \setlength{\parskip}{0pt} % reduce vertical spacing between references 305 \setlength{\itemsep}{5pt plus 0.3ex} 306 }% 274 moredelim=**[is][\color{red}]{®}{®}, % red highlighting ®...® (registered trademark symbol) emacs: C-q M-. 275 moredelim=**[is][\color{blue}]{ß}{ß}, % blue highlighting ß...ß (sharp s symbol) emacs: C-q M-_ 276 moredelim=**[is][\color{OliveGreen}]{¢}{¢}, % green highlighting ¢...¢ (cent symbol) emacs: C-q M-" 277 moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % keyword escape ¶...¶ (pilcrow symbol) emacs: C-q M-^ 278 }% lstset 279 % inline code ©...© (copyright symbol) emacs: C-q M-) 280 \lstMakeShortInline© % single-character for \lstinline 281 }%CFADefaultStyle 307 282 308 283 % Local Variables: %
Note: See TracChangeset
for help on using the changeset viewer.