Ignore:
Timestamp:
Oct 2, 2023, 3:10:11 PM (10 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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.