Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    rb1bdc7d6 rc2183a3  
    228228
    229229% 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)
    267230\lstdefinelanguage{CFA}[ANSI]{C}{
    268231        morekeywords=[1]{_Alignas,_Alignof,__alignof,__alignof__,asm,__asm,__asm__,_At,_Atomic,__attribute,__attribute__,auto,
     
    302265\lstMakeShortInline©    % single-character for \lstinline
    303266
    304 
    305267\let\Oldthebibliography\thebibliography
    306268\renewcommand\thebibliography[1]{
Note: See TracChangeset for help on using the changeset viewer.