Ignore:
Timestamp:
Jan 14, 2024, 8:51:10 PM (3 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
38951c31
Parents:
479fbe3
Message:

change shape of latex minus sign, change lstlisting escapechar from $ to section symbol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r479fbe3 r739495a  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Fri Sep 29 16:49:02 2023
    14 %% Update Count     : 590
     13%% Last Modified On : Sun Jan 14 17:59:02 2024
     14%% Update Count     : 592
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    276276\setlength{\columnposn}{\gcolumnposn}
    277277\newcommand{\setgcolumn}[1]{\global\gcolumnposn=#1\global\columnposn=\gcolumnposn}
    278 \newcommand{\C}[2][\@empty]{\ifx#1\@empty\else\global\setlength{\columnposn}{#1}\global\columnposn=\columnposn\fi\hfill\makebox[\textwidth-\columnposn][l]{\lst@basicstyle{\LstCommentStyle{#2}}}}
     278\newcommand{\C}[2][\@empty]{\ifx#1\@empty\else\global\setlength{\columnposn}{#1}\global\columnposn=\columnposn\fi\hfill\makebox[\textwidth-\columnposn][l]{\LstCommentStyle{#2}}}
     279\newcommand{\CD}[2][\@empty]{\ifx#1\@empty\else\global\setlength{\columnposn}{#1}\global\columnposn=\columnposn\fi\hfill\makebox[\textwidth-\columnposn][l]{\LstBasicStyle{#2}}}
    279280\newcommand{\CRT}{\global\columnposn=\gcolumnposn}
    280281
     
    296297xleftmargin=\parindentlnth,                             % indent code to paragraph indentation
    297298extendedchars=true,                                             % allow ASCII characters in the range 128-255
    298 escapechar=\$,                                                  % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-'
     299escapechar=§,                                                   % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-'
    299300mathescape=false,                                               % disable LaTeX math escape in CFA code $...$
    300301keepspaces=true,                                                %
     
    306307% replace/adjust listing characters that look bad in sanserif
    307308literate=
    308   {-}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.75ex}{0.1ex}}}}1
     309%  {-}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.75ex}{0.1ex}}}}1
     310  {-}{\raisebox{-1pt}{\texttt{-}}}1
    309311  {^}{\raisebox{0.6ex}{$\scriptstyle\land\,$}}1
    310312  {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1
     
    312314  {<-}{$\leftarrow$}2
    313315  {=>}{$\Rightarrow$}2
    314   {->}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.8ex}{0.075ex}}}\kern-0.2ex\textgreater}2,
     316%  {->}{\raisebox{-1pt}{\texttt{-}}\kern-0.1ex\textgreater}2,
    315317}% lstset
    316318}% CFAStyle
Note: See TracChangeset for help on using the changeset viewer.