Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.sty

    r022bce0 r01fb70a  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Sun Feb 25 17:37:46 2024
    14 %% Update Count     : 640
     13%% Last Modified On : Sun Jan 21 13:17:48 2024
     14%% Update Count     : 633
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    4040\newcommand{\CFA}{\protect\CFAIcon\xspace}                              % CFA symbolic name
    4141\newcommand{\CFL}{\textrm{Cforall}\xspace}                              % Cforall non-icon name
    42 \newcommand{\Celeven}{\textrm{C1\!1}\xspace}                    % C11 symbolic name
    43 
     42\newcommand{\Celeven}{\textrm{C11}\xspace}                              % C11 symbolic name
    4443\newcommand{\CCIcon}{\textrm{C}\kern-.1em\hbox{+\kern-.25em+}} % C++ icon
     44\newcommand{\CC}[1][]{\protect\CCIcon{#1}\xspace}               % C++ symbolic name
     45\newcommand{\Cpp}[1][]{\CC{#1}}                                                 % C++ synonym
    4546% numbers disallowed in latex variables names => use number names
    46 \newcommand{\CCeleven}{\protect\CCIcon{1\!1}\xspace}    % C++11 symbolic name
     47\newcommand{\CCeleven}{\protect\CCIcon{11}\xspace}              % C++11 symbolic name
    4748\newcommand{\CCfourteen}{\protect\CCIcon{14}\xspace}    % C++14 symbolic name
    4849\newcommand{\CCseventeen}{\protect\CCIcon{17}\xspace}   % C++17 symbolic name
    4950\newcommand{\CCtwenty}{\protect\CCIcon{20}\xspace}              % C++20 symbolic name
    50 \newcommand{\CC}[1][]{\protect\CCIcon{#1}\xspace}               % C++ symbolic name
    51 \newcommand{\Cpp}[1][]{\CC{#1}}                                                 % C++ synonym
    52 
    5351\newcommand{\Csharp}{C\raisebox{-0.7ex}{\relsize{2}$^\sharp$}\xspace} % C# symbolic name
    5452
     
    295293xleftmargin=\parindentlnth,                             % indent code to paragraph indentation
    296294extendedchars=true,                                             % allow ASCII characters in the range 128-255
     295escapechar=§,                                                   % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-'
    297296mathescape=false,                                               % disable LaTeX math escape in CFA code $...$
    298297keepspaces=true,                                                %
     
    305304literate=
    306305%  {-}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.75ex}{0.1ex}}}}1
    307   {-}{\raisebox{-1pt}{\ttfamily-}}1
     306  {-}{\raisebox{-1pt}{\texttt{-}}}1
    308307  {^}{\raisebox{0.6ex}{$\scriptstyle\land\,$}}1
    309308  {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1
    310   {'}{\ttfamily'\!}1
    311309  {`}{\ttfamily\upshape\hspace*{-0.3ex}`}1
    312310  {<-}{$\leftarrow$}2
     
    320318\lstset{
    321319language=CFA,
    322 escapechar=§,                                                   % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-'
     320%moredelim=**[is][\color{red}]{@}{@},   % red highlighting @...@
    323321moredelim=**[is][\color{red}]{®}{®},    % red highlighting ®...® (registered trademark symbol) emacs: C-q M-.
    324322%moredelim=**[is][\color{blue}]{ß}{ß},  % blue highlighting ß...ß (sharp s symbol) emacs: C-q M-_
     
    330328% inline code ©...© (copyright symbol) emacs: C-q M-)
    331329\lstMakeShortInline©                                    % single-character for \lstinline
    332 
    333330\else% regular ASCI characters
    334 
    335331\lstnewenvironment{cfa}[1][]{% necessary
    336332\lstset{
    337333language=CFA,
    338334escapechar=\$,                                                  % LaTeX escape in CFA code
     335mathescape=false,                                               % LaTeX math escape in CFA code $...$
    339336moredelim=**[is][\color{red}]{@}{@},    % red highlighting @...@
    340337}% lstset
Note: See TracChangeset for help on using the changeset viewer.