Changeset e945826 for doc/LaTeXmacros


Ignore:
Timestamp:
Apr 30, 2016, 2:05:06 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
0638c44, 1048b31, fbfde843
Parents:
8bc4ef8
Message:

formatting in iostream.c, and change escape sequences in documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r8bc4ef8 re945826  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Thu Apr 28 14:41:09 2016
    14 %% Update Count     : 5
     13%% Last Modified On : Sat Apr 30 13:52:12 2016
     14%% Update Count     : 41
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    1919% Names used in the document.
    2020
    21 \newcommand{\CFA}{C$\mathbf\forall$\xspace}                             % set language symbolic name
    22 \newcommand{\CFL}{Cforall\xspace}                                               % set language text name
     21\newcommand{\CFA}{C$\mathbf\forall$\xspace}              % set language symbolic name
     22\newcommand{\CFL}{Cforall\xspace}                        % set language text name
    2323\newcommand{\CC}{C\kern-.1em\hbox{+\kern-.25em+}\xspace} % CC symbolic name
    2424\def\c11{ISO/IEC C} % C11 name (cannot have numbers in latex command name)
     
    4343   \belowdisplayskip \abovedisplayskip
    4444}
    45 \usepackage{relsize}                                                                    % must be after change to small or selects old size
     45\usepackage{relsize}                                    % must be after change to small or selects old size
    4646
    4747% reduce size of chapter/section titles
     
    108108\newcommand{\@Index}[2][\@empty]{\lowercase{\def\temp{#2}}#2\ifx#1\@empty\index{\temp}\else\index{#1@{\protect#2}}\fi}
    109109\newcommand{\@sIndex}[2][\@empty]{#2\ifx#1\@empty\index{#2}\else\index{#1@{\protect#2}}\fi}
     110
     111\newcommand{\Indexc}[1]{\lstinline$#1$\index{#1@\lstinline$#1$}}
    110112\newcommand{\indexc}[1]{\index{#1@\lstinline$#1$}}
    111113
     
    189191tabsize=4,
    190192xleftmargin=\parindent,
    191 escapechar=@,
     193extendedchars=true,
     194escapechar=§,
    192195mathescape=true,
    193196keepspaces=true,
     
    196199aboveskip=4pt,
    197200belowskip=2pt,
    198 moredelim=**[is][\color{red}]{`}{`}, % red highlighting of program text
    199 literate={\\`}{\raisebox{0.3ex}{\ttfamily\upshape \hspace*{-2pt}`}}1, % escape \`, otherwise used for red highlighting
     201moredelim=**[is][\color{red}]{®}{®}, % red highlighting
     202moredelim=**[is][\color{blue}]{©}{©}, % blue highlighting
     203moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % temporarily turn off keywords
     204% literate={\\`}{\raisebox{0.3ex}{\ttfamily\upshape \hspace*{-2pt}`}}1, % escape \`, otherwise used for red highlighting
    200205}%
    201206
     
    205210\lst@ProcessOther{"22}{\lst@ttfamily{"}{\raisebox{0.3ex}{\ttfamily\upshape "}}} % replace double quote
    206211\lst@ProcessOther{"27}{\lst@ttfamily{'}{\raisebox{0.3ex}{\ttfamily\upshape '\hspace*{-2pt}}}} % replace single quote
    207 \lst@ProcessOther{"2D}{\lst@ttfamily{-}{\ttfamily\upshape -}} % replace minus
    208 \lst@ProcessOther{"3C}{\lst@ttfamily{<}{\texttt{<}}} % replace less than
    209 \lst@ProcessOther{"3E}{\lst@ttfamily{<}{\texttt{>}}} % replace greater than
     212\lst@ProcessOther{"2D}{\lst@ttfamily{-}{\textbf{\texttt{-}}}} % replace minus
     213\lst@ProcessOther{"3C}{\lst@ttfamily{<}{\textbf{\texttt{<}}}} % replace less than
     214\lst@ProcessOther{"3E}{\lst@ttfamily{>}{\textbf{\texttt{>}}}} % replace greater than
    210215\lst@ProcessOther{"5E}{\raisebox{0.4ex}{$\scriptstyle\land\,$}} % replace circumflex
    211216\lst@ProcessOther{"5F}{\lst@ttfamily{\char95}{{\makebox[1.2ex][c]{\rule{1ex}{0.1ex}}}}} % replace underscore
Note: See TracChangeset for help on using the changeset viewer.