Changeset e9a3c69d


Ignore:
Timestamp:
Jul 13, 2017, 11:48:01 AM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
35b06a8, 578e603
Parents:
3f5a28b
Message:

allow lstinline in section headings with PDF TOC

Location:
doc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r3f5a28b re9a3c69d  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Wed Jul 12 23:01:58 2017
    14 %% Update Count     : 327
     13%% Last Modified On : Thu Jul 13 11:44:59 2017
     14%% Update Count     : 335
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    5555\setlength{\parindentlnth}{\parindent}
    5656
     57\newcommand{\LstKeywordStyle}[1]{{\lst@basicstyle{\lst@keywordstyle{#1}}}}
     58\newcommand{\LstCommentStyle}[1]{{\lst@basicstyle{\lst@commentstyle{#1}}}}
     59
    5760\newlength{\gcolumnposn}                                % temporary hack because lstlisting does not handle tabs correctly
    5861\newlength{\columnposn}
    5962\setlength{\gcolumnposn}{2.5in}
    6063\setlength{\columnposn}{\gcolumnposn}
    61 \newcommand{\C}[2][\@empty]{\ifx#1\@empty\else\global\setlength{\columnposn}{#1}\global\columnposn=\columnposn\fi\hfill\makebox[\textwidth-\columnposn][l]{\lst@commentstyle{#2}}}
     64\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}}}}
    6265\newcommand{\CRT}{\global\columnposn=\gcolumnposn}
    6366
  • doc/user/user.tex

    r3f5a28b re9a3c69d  
    1111%% Created On       : Wed Apr  6 14:53:29 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Thu Jul 13 07:08:58 2017
    14 %% Update Count     : 2673
     13%% Last Modified On : Thu Jul 13 11:44:57 2017
     14%% Update Count     : 2690
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    501501
    502502
    503 \section{Labelled Continue/Break}
     503\section{\texorpdfstring{Labelled \LstKeywordStyle{continue} / \LstKeywordStyle{break}}{Labelled continue / break}}
    504504
    505505While C provides ©continue© and ©break© statements for altering control flow, both are restricted to one level of nesting for a particular control structure.
     
    633633
    634634
    635 \section{Switch Statement}
     635\section{\texorpdfstring{\LstKeywordStyle{switch} Statement}{switch Statement}}
    636636
    637637C allows a number of questionable forms for the ©switch© statement:
     
    838838
    839839
    840 \section{Case Clause}
     840\section{\texorpdfstring{\LstKeywordStyle{case} Clause}{case Clause}}
    841841
    842842C restricts the ©case© clause of a ©switch© statement to a single value.
     
    914914
    915915
    916 \section{\protect\lstinline{with} Clause / Statement}
     916\section{\texorpdfstring{\LstKeywordStyle{with} Clause / Statement}{with Clause / Statement}}
    917917\label{s:WithClauseStatement}
    918918
     
    921921class C {
    922922        int i, j;
    923         int mem() {
     923        int mem() {              ®// implicit "this" parameter
    924924                i = 1;          ®// this->i
    925925®               j = 3;          ®// this->j
     
    932932        int i, j;
    933933};
    934 int mem( C &this ) {
    935         ®this.®i = 1;   // "this" is not elided
     934int mem( C &this ) {    // explicit "this" parameter
     935        ®this.®i = 1;                     // "this" is not elided
    936936        ®this.®j = 2;
    937937}
     
    964964        ®with s1® {
    965965                // access fields of s1 without qualification
    966                 ®with s2® { // nesting
     966                ®with s2® {  // nesting
    967967                        // access fields of s2 without qualification
    968968                }
     
    987987}
    988988\end{cfa}
     989
    989990
    990991\section{Exception Handling}
     
    12211222
    12221223
    1223 \section{Pointer/Reference}
     1224\section{Pointer / Reference}
    12241225
    12251226C provides a \newterm{pointer type};
     
    53435344
    53445345
    5345 \section{\CFA Keywords}
     5346\section{\texorpdfstring{\CFA Keywords}{Cforall Keywords}}
    53465347\label{s:CFAKeywords}
    53475348
Note: See TracChangeset for help on using the changeset viewer.