[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 6178 Revision 6179
1################################################################################ 1################################################################################
2# WeBWorK Program Generation Language 2# WeBWorK Program Generation Language
3# Copyright  2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright  2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader: pg/macros/PGbasicmacros.pl,v 1.61 2009/07/12 23:39:20 gage Exp $ 4# $CVSHeader: pg/macros/PGbasicmacros.pl,v 1.62 2009/07/18 02:50:50 gage Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 6# This program is free software; you can redistribute it and/or modify it under
7# the terms of either: (a) the GNU General Public License as published by the 7# the terms of either: (a) the GNU General Public License as published by the
8# Free Software Foundation; either version 2, or (at your option) any later 8# Free Software Foundation; either version 2, or (at your option) any later
9# version, or (b) the "Artistic License" which comes with this package. 9# version, or (b) the "Artistic License" which comes with this package.
59 $SPACE, 59 $SPACE,
60 $BBOLD, 60 $BBOLD,
61 $EBOLD, 61 $EBOLD,
62 $BITALIC, 62 $BITALIC,
63 $EITALIC, 63 $EITALIC,
64 $BUL,
65 $EUL,
64 $BCENTER, 66 $BCENTER,
65 $ECENTER, 67 $ECENTER,
66 $HR, 68 $HR,
67 $LBRACE, 69 $LBRACE,
68 $RBRACE, 70 $RBRACE,
118 $main::SPACE = SPACE(); 120 $main::SPACE = SPACE();
119 $main::BBOLD = BBOLD(); 121 $main::BBOLD = BBOLD();
120 $main::EBOLD = EBOLD(); 122 $main::EBOLD = EBOLD();
121 $main::BITALIC = BITALIC(); 123 $main::BITALIC = BITALIC();
122 $main::EITALIC = EITALIC(); 124 $main::EITALIC = EITALIC();
125 $main::BUL = BUL();
126 $main::EUL = EUL();
123 $main::BCENTER = BCENTER(); 127 $main::BCENTER = BCENTER();
124 $main::ECENTER = ECENTER(); 128 $main::ECENTER = ECENTER();
125 $main::HR = HR(); 129 $main::HR = HR();
126 $main::LBRACE = LBRACE(); 130 $main::LBRACE = LBRACE();
127 $main::RBRACE = RBRACE(); 131 $main::RBRACE = RBRACE();
163 $SPACE = SPACE(); 167 $SPACE = SPACE();
164 $BBOLD = BBOLD(); 168 $BBOLD = BBOLD();
165 $EBOLD = EBOLD(); 169 $EBOLD = EBOLD();
166 $BITALIC = BITALIC(); 170 $BITALIC = BITALIC();
167 $EITALIC = EITALIC(); 171 $EITALIC = EITALIC();
172 $BUL = BUL();
173 $EUL = EUL();
168 $BCENTER = BCENTER(); 174 $BCENTER = BCENTER();
169 $ECENTER = ECENTER(); 175 $ECENTER = ECENTER();
170 $HR = HR(); 176 $HR = HR();
171 $LBRACE = LBRACE(); 177 $LBRACE = LBRACE();
172 $RBRACE = RBRACE(); 178 $RBRACE = RBRACE();
1217 $SPACE SPACE() space character (tex and latex only) 1223 $SPACE SPACE() space character (tex and latex only)
1218 $BBOLD BBOLD() begin bold typeface 1224 $BBOLD BBOLD() begin bold typeface
1219 $EBOLD EBOLD() end bold typeface 1225 $EBOLD EBOLD() end bold typeface
1220 $BITALIC BITALIC() begin italic typeface 1226 $BITALIC BITALIC() begin italic typeface
1221 $EITALIC EITALIC() end italic typeface 1227 $EITALIC EITALIC() end italic typeface
1228 $BUL BUL() begin underlined type
1229 $EUL EUL() end underlined type
1222 $BCENTER BCENTER() begin centered environment 1230 $BCENTER BCENTER() begin centered environment
1223 $ECENTER ECENTER() end centered environment 1231 $ECENTER ECENTER() end centered environment
1224 $HR HR() horizontal rule 1232 $HR HR() horizontal rule
1225 $LBRACE LBRACE() left brace 1233 $LBRACE LBRACE() left brace
1226 $LB LB () left brace 1234 $LB LB () left brace
1279sub SPACE { MODES(TeX => '\\ ', Latex2HTML => '\\ ', HTML => ' ');}; # force a space in latex, doesn't force extra space in html 1287sub SPACE { MODES(TeX => '\\ ', Latex2HTML => '\\ ', HTML => ' ');}; # force a space in latex, doesn't force extra space in html
1280sub BBOLD { MODES(TeX => '{\\bf ', Latex2HTML => '{\\bf ', HTML => '<B>'); }; 1288sub BBOLD { MODES(TeX => '{\\bf ', Latex2HTML => '{\\bf ', HTML => '<B>'); };
1281sub EBOLD { MODES( TeX => '}', Latex2HTML => '}',HTML => '</B>'); }; 1289sub EBOLD { MODES( TeX => '}', Latex2HTML => '}',HTML => '</B>'); };
1282sub BITALIC { MODES(TeX => '{\\it ', Latex2HTML => '{\\it ', HTML => '<I>'); }; 1290sub BITALIC { MODES(TeX => '{\\it ', Latex2HTML => '{\\it ', HTML => '<I>'); };
1283sub EITALIC { MODES(TeX => '} ', Latex2HTML => '} ', HTML => '</I>'); }; 1291sub EITALIC { MODES(TeX => '} ', Latex2HTML => '} ', HTML => '</I>'); };
1292sub BUL { MODES(TeX => '\\underline{', Latex2HTML => '\\underline{', HTML => '<U>'); };
1293sub EUL { MODES(TeX => '}', Latex2HTML => '}', HTML => '</U>'); };
1284sub BCENTER { MODES(TeX => '\\begin{center} ', Latex2HTML => ' \\begin{rawhtml} <div align="center"> \\end{rawhtml} ', HTML => '<div align="center">'); }; 1294sub BCENTER { MODES(TeX => '\\begin{center} ', Latex2HTML => ' \\begin{rawhtml} <div align="center"> \\end{rawhtml} ', HTML => '<div align="center">'); };
1285sub ECENTER { MODES(TeX => '\\end{center} ', Latex2HTML => ' \\begin{rawhtml} </div> \\end{rawhtml} ', HTML => '</div>'); }; 1295sub ECENTER { MODES(TeX => '\\end{center} ', Latex2HTML => ' \\begin{rawhtml} </div> \\end{rawhtml} ', HTML => '</div>'); };
1286sub HR { MODES(TeX => '\\par\\hrulefill\\par ', Latex2HTML => '\\begin{rawhtml} <HR> \\end{rawhtml}', HTML => '<HR>'); }; 1296sub HR { MODES(TeX => '\\par\\hrulefill\\par ', Latex2HTML => '\\begin{rawhtml} <HR> \\end{rawhtml}', HTML => '<HR>'); };
1287sub LBRACE { MODES( TeX => '\{', Latex2HTML => '\\lbrace', HTML => '{' , HTML_tth=> '\\lbrace' ); }; 1297sub LBRACE { MODES( TeX => '\{', Latex2HTML => '\\lbrace', HTML => '{' , HTML_tth=> '\\lbrace' ); };
1288sub RBRACE { MODES( TeX => '\}', Latex2HTML => '\\rbrace', HTML => '}' , HTML_tth=> '\\rbrace',); }; 1298sub RBRACE { MODES( TeX => '\}', Latex2HTML => '\\rbrace', HTML => '}' , HTML_tth=> '\\rbrace',); };

Legend:
Removed from v.6178  
changed lines
  Added in v.6179

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9