Changeset cad8c88


Ignore:
Timestamp:
May 24, 2024, 2:21:37 PM (6 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
dc74231
Parents:
a4808ad
Message:

change xleftmargin spacing for lstinput, add code formatting macro for C++

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/uw-ethesis.tex

    ra4808ad rcad8c88  
    9696
    9797\makeatletter
    98 \newcommand{\lstinput}[3][]{\lstinputlisting[#1,linerange={#2},xleftmargin=4pt,escapechar={\$},moredelim={**[is][\color{red}]{@}{@}}]{#3}}
     98\newcommand{\lstinput}[3][]{\lstinputlisting[#1,linerange={#2},xleftmargin=\parindentlnth,escapechar={\$},moredelim={**[is][\color{red}]{@}{@}}]{#3}}
    9999\makeatother
    100100% cfa macros used in the document
     
    103103\CFAStyle                                               % CFA code-style
    104104\lstset{language=cfa,belowskip=-1pt} % set default language to CFA
     105\lstnewenvironment{c++}[1][]{\lstset{language=[GNU]C++,escapechar=\$,moredelim=**[is][\color{red}]{@}{@},}\lstset{#1}}{}
    105106\lstset{inputpath={programs}}
    106107
Note: See TracChangeset for help on using the changeset viewer.