Ignore:
Timestamp:
Apr 6, 2017, 10:53:11 AM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
115a868
Parents:
80cdb2f
Message:

create cfa lstnewenvironment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r80cdb2f r2264c11  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Fri Feb 10 11:32:36 2017
    14 %% Update Count     : 249
     13%% Last Modified On : Wed Apr  5 23:19:42 2017
     14%% Update Count     : 255
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    256256}%
    257257
    258 \newcommand{\CFADefaultStyle}{%
     258\newcommand{\CFADefaults}{%
    259259\lstset{
    260260language=CFA,
     
    267267escapechar=§,                                                                                   % LaTeX escape in CFA code §...§ (section symbol), emacs: C-q M-'
    268268mathescape=true,                                                                                % LaTeX math escape in CFA code $...$
    269 %keepspaces=true,                                                                               %
     269keepspaces=true,                                                                                %
    270270showstringspaces=false,                                                                 % do not show spaces with cup
    271271showlines=true,                                                                                 % show blank lines at end of code
     
    281281moredelim=[is][\lstset{keywords={}}]{¶}{¶},                     % keyword escape ¶...¶ (pilcrow symbol) emacs: C-q M-^
    282282}% lstset
     283}% CFADefaults
     284\newcommand{\CFAStyle}{%
     285\CFADefaults
    283286% inline code ©...© (copyright symbol) emacs: C-q M-)
    284287\lstMakeShortInline©                                                                    % single-character for \lstinline
    285 }%CFADefaultStyle
     288}% CFAStyle
     289
     290\lstnewenvironment{cfa}[1][]
     291{\CFADefaults\lstset{#1}}
     292{}
     293
    286294
    287295% Local Variables: %
Note: See TracChangeset for help on using the changeset viewer.