Ignore:
Timestamp:
Oct 5, 2020, 9:39:05 AM (13 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
079ed52
Parents:
6b93634
Message:

rename macro CFADefaults to CFAStyle, clean up macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r6b93634 r8d627d9  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Wed Sep 23 21:21:55 2020
    14 %% Update Count     : 454
     13%% Last Modified On : Mon Oct  5 09:34:46 2020
     14%% Update Count     : 464
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    251251\makeatother
    252252
    253 \newcommand{\CFADefaults}{%
     253\newcommand{\CFAStyle}{%
    254254\lstset{
    255 language=CFA,
    256255columns=fullflexible,
    257256basicstyle=\linespread{0.9}\sf,                 % reduce line spacing and use sanserif font
     
    272271        {<-}{$\leftarrow$}2 {=>}{$\Rightarrow$}2 {->}{\makebox[1ex][c]{\raisebox{0.4ex}{\rule{0.8ex}{0.075ex}}}\kern-0.2ex\textgreater}2,
    273272}% lstset
    274 }% CFADefaults
    275 
    276 \ifdefined\CFALatin%
    277 \lstnewenvironment{cfa}[1][]{\CFADefaults
     273}% CFAStyle
     274
     275\ifdefined\CFALatin% extra Latin-1 escape characters
     276\lstnewenvironment{cfa}[1][]{
    278277\lstset{
    279278language=CFA,
     
    289288% inline code ©...© (copyright symbol) emacs: C-q M-)
    290289\lstMakeShortInline©                                    % single-character for \lstinline
    291 \else% extra Latin-1 escape characters
     290\else% regular ASCI characters
     291\lstnewenvironment{cfa}[1][]{
    292292\lstset{
    293293language=CFA,
    294294escapechar=\$,                                                  % LaTeX escape in CFA code
    295 moredelim=**[is][\color{red}]{@}{@},    % red highlighting `...` (backtick symbol)
    296 }% lstset
    297 \lstnewenvironment{cfa}[1][]{\CFADefaults
    298 \lstset{
    299 language=CFA,
    300 escapechar=\$,                                                  % LaTeX escape in CFA code
    301 moredelim=**[is][\color{red}]{@}{@},    % red highlighting `...` (backtick symbol)
     295moredelim=**[is][\color{red}]{@}{@},    % red highlighting @...@
    302296}% lstset
    303297\lstset{#1}
Note: See TracChangeset for help on using the changeset viewer.