# AFT Output Elements. # !!DO NOT EDIT!! This file was automatically generated by aft-compile v2.07 on Sun Jan 13 03:55:57 2008 # See http://www.maplefish.com/todd/aft.html for details. package AFT_OUTPUT; use vars qw ($file_preamble $file_postamble %elem %pragma_postvar); $file_preamble = ''; # Holds preamble for output file. $file_postamble = ''; # Holds postamble for output file. %elem = (); # Element commands for producing output file.%pragma_postvar = (); # Variables for substitution post-filtering. sub init_elements { %pragma_postvar = ( ); %elem = ( 'StartFilteredVerbatim' => qq'\n\@ID \@F \@Verbatim \@Begin', 'NumberedListElement' => qq'\n\@LI {\n', 'EndParagraph' => qq'', 'EndSect3' => qq'\n\@End \@SubSubSection ', 'CommentLine' => qq'# \%line\% ', '***' => qq'\n\@SubSubSection \@Title {\%section\%} \@Tag {\%section\%} \@Begin ', 'Target' => qq'\%text\% \@PageMark {\%target\%} ', 'EndVerbatim' => qq'}', 'StartBulletList' => qq'\n\@BL ', 'EndSect1' => qq'\n\@End \@Section ', 'LineBreak' => qq'\n\@LLP ', 'StartNamedList' => qq'\n\@TL ', 'StartTable' => qq'### WARNING: AFT doesn\'t support Lout tables yet! ###', 'StartSmall' => qq'\@S {', 'EndQuote' => qq'} ', 'EndSectLevel2' => qq'\n\@EndSubSections ', 'NBSPACE' => qq'\" \"', 'StartBlockedVerbatim' => qq'\n\@ID \@F \@Verbatim \@Begin', '****' => qq'', 'NamedListElement' => qq'\n\@DTI {\%name\%} {\n', 'Image' => qq'\n\@IncludeGraphic \%image\%', 'FullFilterFilteredVerbatim?' => qq'No', 'StartStrong' => qq'\@B {', 'EndEmphasis' => qq'}', 'StartQuote' => qq'\n\@QD { ', 'prefilter' => qq'\014 \@NP ', 'StartNumberedList' => qq'\n\@PNL ', 'EndSmall' => qq'}', 'EndBulletList' => qq'\n\@EndList ', 'PreFilterVerbatim?' => qq'No', 'NoteRef' => qq'\@Sup {\%ref\%} ', 'StartVerbatim' => qq'\n\@ID \@F \@Verbatim {', 'Center' => qq'\n\@CD {\%center\%} ', 'Image-right' => qq'\n\@RightDisplay \@IncludeGraphic \%image\% ', 'EndBulletListElement' => qq'\n}', 'EndFilteredVerbatim' => qq'\n\@End \@Verbatim ', 'BulletListElement' => qq'\n\@LI {\n', 'InternalReference' => qq'\%text\% (p. \@PageOf {\%target\%}) ', 'URL' => qq'\@F {<\%target\%>} ', 'EndSectLevel3' => qq'\n\@EndSubSubSections ', 'EndNumberedList' => qq'\n\@EndList ', 'EndStrong' => qq'}', 'StartParagraph' => qq'\n\@PP\n ', 'EndNamedListElement' => qq'\n}', 'StartEmphasis' => qq'\@I {', 'Subscript' => qq'\@Sub {\%stuff\%} ', '**' => qq'\n\@SubSection \@Title {\%section\%} \@Tag {\%section\%} \@Begin ', 'EndSect2' => qq'\n\@End \@SubSection ', 'ID' => qq'LOUTREPORT', 'EndTeletype' => qq'} ', 'Superscript' => qq'\@Sup {\%stuff\%} ', 'EndSect4' => qq'', 'StartTeletype' => qq'\@F {', '*' => qq'\n\@Section \@Title {\%section\%} \@Tag {\%section\%} \@Begin ', 'EndNumberedListElement' => qq'\n}', 'HorizontalLine' => qq'\n\@D \@FullWidthRule ', 'EndNamedList' => qq'\n\@EndList ', 'BeginSectLevel3' => qq'\n\@BeginSubSubSections ', 'Image-center' => qq'\n\@CD \@IncludeGraphic \%image\% ', 'ParagraphBreak' => qq'', 'TOC' => qq'# TOC must be made from your lout file. ', 'BeginSectLevel2' => qq'\n\@BeginSubSections ', 'StrikeLine' => qq'# \%line\% ', 'Image-left' => qq'\n\@LD \@IncludeGraphic \%image\% ', 'EndBlockedVerbatim' => qq'\n\@End \@Verbatim ', ); ## Preamble: $file_preamble = '# Basser Lout Version 3.24 output generated by AFT #@SysInclude {tbl} # Table formatting #@SysInclude {eq} # Equations #@SysInclude {graph} # Graphs #@SysInclude {diag} # Diagrams @SysInclude {report} # @SysInclude @Include @Report @Title {%title%} @Author {%author%} #@Institution { } #@DateLine {No} # Date, Yes (present), No #@AtEnd { } # To include a back cover #@CoverSheet {No} # Make a cover sheet #@ContentsSeparate {No} # Make a TOC on a separate page #@InitialFont {Times Base 12p} # Courier Helvetica Palatino Times ... #@InitialBreak {hyphen adjust 1.2fx} # hyphen nohyphen; adjust ragged ... @InitialSpace {tex} # lout tex troff #@InitialLanguage {English} # English French German Spanish ... #@PageOrientation {Portrait} # Portrait Landscape #@PageHeaders {Simple} # None Simple Titles NoTitles #@ColumnNumber {1} #@FirstPageNumber {1} @OptimizePages {Yes} # Use TeX optimal paragraph breaking #@AbstractDisplay {No} # Show the abstract #@AbstractTitle {Abstract} # Type whatever abstract title you want #@Abstract { } # Type your abstract between braces // '; ## Postamble: $file_postamble = ''; } ## Prefilter subroutine: sub prefilter { my ($line) = @_; $line=~s/\\/-BSlAsH-/g; $line=~s/\"/\"\\\"\"/g; $line=~s/-BSlAsH-/\"\\\\"/g; $line=~s/\{\-([^\}]+)\@([^\}]+)\-\}/%LeFtB%NeG$1-AtChAr-$2%NeG%RiGhTB/g; $line=~s/\{\+([^\}]+)\+\}/%LeFtB%PlUs$1%PlUs%RiGhTB/g; $line=~s/\}\+([^\}]+)\+\{/%RiGhTB%PlUs$1%PlUs%LeFtB/g; $line=~s/\{\-([^\}]+)\-\}/%LeFtB%NeG$1%NeG%RiGhTB/g; $line=~s/\}\-([^\}]+)\-\{/%RiGhTB%NeG$1%NeG%LeFtB/g; $line=~s/[\{\}\@]/\"$&\"/g; $line=~s/%LeFtB/{/g; $line=~s/%RiGhTB/}/g; $line=~s/%PlUs/+/g; $line=~s/%NeG/-/g; $line=~s/-AtChAr-/@/g; $line=~s/\`\`([^\']+)\'\'\'\'/``$1-4QuOtEs-/g; $line=~s/\`\`([^\']+)\'\'/``$1-2QuOtEs-/g; $line=~s/-4QuOtEs-/''''/g; $line=~s/-2QuOtEs-/''''/g; $line=~s/[\#\&\^\/]/\"$&\"/g; $line=~s/\~\~/-DTiLdE-/g; return $line; } ## Postfilter subroutine: sub postfilter { my ($line) = @_; $line=~s/\~/\"~\"/g; $line=~s/-DTiLdE-/~/g; $line=~s/\|/\"|\"/g; return $line; } 1;