[system] / trunk / pg / macros / PGbasicmacros.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PGbasicmacros.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1385 Revision 1390
1127} 1127}
1128 1128
1129############################################################### 1129###############################################################
1130# Some constants which are different in tex and in HTML 1130# Some constants which are different in tex and in HTML
1131# The order of arguments is TeX, Latex2HTML, HTML 1131# The order of arguments is TeX, Latex2HTML, HTML
1132# Adopted Davide Cervone's improvements to PAR, BR, LTS, GTS, LTE, GTE, LBRACE, RBRACE, LB, RB. 7-14-03 AKP 1132# Adopted Davide Cervone's improvements to PAR, LTS, GTS, LTE, GTE, LBRACE, RBRACE, LB, RB. 7-14-03 AKP
1133sub PAR { MODES( TeX => '\\par ', Latex2HTML => '\\begin{rawhtml}<P>\\end{rawhtml}', HTML => '<P>'); }; 1133sub PAR { MODES( TeX => '\\par ', Latex2HTML => '\\begin{rawhtml}<P>\\end{rawhtml}', HTML => '<P>'); };
1134sub BR { MODES( TeX => '\\par\\noindent ', Latex2HTML => '\\begin{rawhtml}<BR>\\end{rawhtml}', HTML => '<BR>'); };
1135# Alternate definition of BR which is slightly more flexible and gives more white space in printed output
1136# which looks better but kills more trees.
1134sub BR { MODES( TeX => '\\\\', Latex2HTML => '\\begin{rawhtml}<BR>\\end{rawhtml}', HTML => '<BR>'); }; 1137#sub BR { MODES( TeX => '\\\\', Latex2HTML => '\\begin{rawhtml}<BR>\\end{rawhtml}', HTML => '<BR>'); };
1135sub LQ { MODES( TeX => "``", Latex2HTML => '"', HTML => '&quot;' ); }; 1138sub LQ { MODES( TeX => "``", Latex2HTML => '"', HTML => '&quot;' ); };
1136sub RQ { MODES( TeX => "''", Latex2HTML => '"', HTML => '&quot;' ); }; 1139sub RQ { MODES( TeX => "''", Latex2HTML => '"', HTML => '&quot;' ); };
1137sub BM { MODES(TeX => '\\(', Latex2HTML => '\\(', HTML => ''); }; # begin math mode 1140sub BM { MODES(TeX => '\\(', Latex2HTML => '\\(', HTML => ''); }; # begin math mode
1138sub EM { MODES(TeX => '\\)', Latex2HTML => '\\)', HTML => ''); }; # end math mode 1141sub EM { MODES(TeX => '\\)', Latex2HTML => '\\)', HTML => ''); }; # end math mode
1139sub BDM { MODES(TeX => '\\[', Latex2HTML => '\\[', HTML => '<P ALIGN=CENTER>'); }; #begin displayMath mode 1142sub BDM { MODES(TeX => '\\[', Latex2HTML => '\\[', HTML => '<P ALIGN=CENTER>'); }; #begin displayMath mode

Legend:
Removed from v.1385  
changed lines
  Added in v.1390

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9