Changeset e94eeb9 for doc


Ignore:
Timestamp:
Feb 15, 2021, 10:44:55 AM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
17d6214
Parents:
10c7f40
Message:

protect newterm macro for use in section, delimit cfa macro to remove spurious horizontal space at start

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r10c7f40 re94eeb9  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Mon Feb  8 21:45:41 2021
    14 %% Update Count     : 522
     13%% Last Modified On : Sun Feb 14 15:52:46 2021
     14%% Update Count     : 524
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    146146% The star version does not lowercase the index information, e.g., \newterm*{IBM}.
    147147\newcommand{\newtermFontInline}{\emph}
    148 \newcommand{\newterm}{\@ifstar\@snewterm\@newterm}
     148\newcommand{\newterm}{\protect\@ifstar\@snewterm\@newterm}
    149149\newcommand{\@newterm}[2][\@empty]{\lowercase{\def\temp{#2}}{\newtermFontInline{#2}}\ifx#1\@empty\index{\temp}\else\index{#1@{\protect#2}}\fi}
    150150\newcommand{\@snewterm}[2][\@empty]{{\newtermFontInline{#2}}\ifx#1\@empty\index{#2}\else\index{#1@{\protect#2}}\fi}
     
    294294
    295295\ifdefined\CFALatin% extra Latin-1 escape characters
    296 \lstnewenvironment{cfa}[1][]{
     296\lstnewenvironment{cfa}[1][]{% necessary
    297297\lstset{
    298298language=CFA,
     
    303303%moredelim=[is][\lstset{keywords={}}]{¶}{¶}, % keyword escape ¶...¶ (pilcrow symbol) emacs: C-q M-^
    304304}% lstset
    305 \lstset{#1}
     305\lstset{#1}% necessary
    306306}{}
    307307% inline code ©...© (copyright symbol) emacs: C-q M-)
    308308\lstMakeShortInline©                                    % single-character for \lstinline
    309309\else% regular ASCI characters
    310 \lstnewenvironment{cfa}[1][]{
     310\lstnewenvironment{cfa}[1][]{% necessary
    311311\lstset{
    312312language=CFA,
     
    315315moredelim=**[is][\color{red}]{@}{@},    % red highlighting @...@
    316316}% lstset
    317 \lstset{#1}
     317\lstset{#1}% necessary
    318318}{}
    319319% inline code @...@ (at symbol)
Note: See TracChangeset for help on using the changeset viewer.