Changeset 739495a for doc


Ignore:
Timestamp:
Jan 14, 2024, 8:51:10 PM (5 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

Location:
doc/LaTeXmacros
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.sty

    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:48:59 2023
    14 %% Update Count     : 587
     13%% Last Modified On : Sun Jan 14 12:28:26 2024
     14%% Update Count     : 631
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    273273\setlength{\columnposn}{\gcolumnposn}
    274274\newcommand{\setgcolumn}[1]{\global\gcolumnposn=#1\global\columnposn=\gcolumnposn}
    275 \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}}}}
     275\newcommand{\C}[2][\@empty]{\ifx#1\@empty\else\global\setlength{\columnposn}{#1}\global\columnposn=\columnposn\fi\hfill\makebox[\textwidth-\columnposn][l]{\LstCommentStyle{#2}}}
     276\newcommand{\CD}[2][\@empty]{\ifx#1\@empty\else\global\setlength{\columnposn}{#1}\global\columnposn=\columnposn\fi\hfill\makebox[\textwidth-\columnposn][l]{\LstBasicStyle{#2}}}
    276277\newcommand{\CRT}{\global\columnposn=\gcolumnposn}
    277278
     
    292293xleftmargin=\parindentlnth,                             % indent code to paragraph indentation
    293294extendedchars=true,                                             % allow ASCII characters in the range 128-255
    294 escapechar=\$,                                                  % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-'
     295escapechar=§,                                                   % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-'
    295296mathescape=false,                                               % disable LaTeX math escape in CFA code $...$
    296297keepspaces=true,                                                %
     
    302303% replace/adjust listing characters that look bad in sanserif
    303304literate=
    304   {-}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.75ex}{0.1ex}}}}1
     305%  {-}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.75ex}{0.1ex}}}}1
     306  {-}{\raisebox{-1pt}{\texttt{-}}}1
    305307  {^}{\raisebox{0.6ex}{$\scriptstyle\land\,$}}1
    306308  {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1
     
    308310  {<-}{$\leftarrow$}2
    309311  {=>}{$\Rightarrow$}2
    310   {->}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.8ex}{0.075ex}}}\kern-0.2ex\textgreater}2,
     312%  {->}{\raisebox{-1pt}{\texttt{-}}\kern-0.1ex\textgreater}2,
    311313}% lstset
    312314}% CFAStyle
  • 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.