Changeset 4e2a57ff for doc/LaTeXmacros


Ignore:
Timestamp:
Oct 2, 2023, 3:10:11 PM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
5b4dacf
Parents:
adaf062
Message:

add command setgcolumn to set lstlisting comment-column alignment, change size of lstlisting character

Location:
doc/LaTeXmacros
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.sty

    radaf062 r4e2a57ff  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Sun Jul 16 08:28:52 2023
    14 %% Update Count     : 586
     13%% Last Modified On : Fri Sep 29 16:48:59 2023
     14%% Update Count     : 587
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    272272\setlength{\gcolumnposn}{2.75in}
    273273\setlength{\columnposn}{\gcolumnposn}
     274\newcommand{\setgcolumn}[1]{\global\gcolumnposn=#1\global\columnposn=\gcolumnposn}
    274275\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}}}}
    275276\newcommand{\CRT}{\global\columnposn=\gcolumnposn}
     
    302303literate=
    303304  {-}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.75ex}{0.1ex}}}}1
    304   {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1
     305  {^}{\raisebox{0.6ex}{$\scriptstyle\land\,$}}1
    305306  {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1
    306307  {`}{\ttfamily\upshape\hspace*{-0.3ex}`}1
  • doc/LaTeXmacros/common.tex

    radaf062 r4e2a57ff  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Fri Jul 21 09:02:00 2023
    14 %% Update Count     : 576
     13%% Last Modified On : Fri Sep 29 16:49:02 2023
     14%% Update Count     : 590
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    275275\setlength{\gcolumnposn}{2.75in}
    276276\setlength{\columnposn}{\gcolumnposn}
     277\newcommand{\setgcolumn}[1]{\global\gcolumnposn=#1\global\columnposn=\gcolumnposn}
    277278\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}}}}
    278279\newcommand{\CRT}{\global\columnposn=\gcolumnposn}
     
    301302showlines=true,                                                 % show blank lines at end of code
    302303aboveskip=4pt,                                                  % spacing above/below code block
    303 belowskip=0pt,
     304belowskip=2pt,
    304305numberstyle=\footnotesize\sf,                   % numbering style
    305306% replace/adjust listing characters that look bad in sanserif
    306307literate=
    307308  {-}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.75ex}{0.1ex}}}}1
    308   {^}{\raisebox{0.6ex}{$\scriptscriptstyle\land\,$}}1
     309  {^}{\raisebox{0.6ex}{$\scriptstyle\land\,$}}1
    309310  {~}{\raisebox{0.3ex}{$\scriptstyle\sim\,$}}1
    310311  {`}{\ttfamily\upshape\hspace*{-0.3ex}`}1
Note: See TracChangeset for help on using the changeset viewer.