1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
|
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="../webstyle/mxh.css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="../webstyle/mxh.css" />
<meta name="surtitle" content="GELLMU: Introductory User's Guide" />
<meta name="title" content="Introductory User's Guide to Regular GELLMU" />
<meta name="subtitle" content="Version 0.8.4 release, July 2007" />
<meta name="author" content="William F. Hammond" />
<title>GELLMU: Introductory User's Guide</title>
</head>
<body>
<h1 class="display">Introductory User's Guide to <em>Regular</em> GELLMU</h1>
<h4 class="display">Version 0.8.4 release, July 2007</h4>
<h2 class="display">William F. Hammond</h2>
<h4 class="display">
Dept. of Mathematics & Statistics <br
/> University at Albany <br
/> Albany, New York 12222 (USA)</h4>
<h4 class="display">revision of July 6, 2007</h4>
<div class="tableofcontents">
<h3>Table of Contents</h3>
<dl class="tableofcontents">
<dd>1  Introduction... <a href="#SU-1">*</a>
</dd><dd>
2  First Steps... <a href="#SU-2">*</a>
<dl><dd>
2.1  Acquiring and Installing... <a href="#SU-2.1">*</a>
</dd><dd>
2.2  Writing an Article... <a href="#SU-2.2">*</a>
</dd></dl></dd><dd>
3  Basic Markup Within Sentences... <a href="#SU-3">*</a>
</dd><dd>
4  Sectioning... <a href="#SU-4">*</a>
</dd><dd>
5  Lists... <a href="#SU-5">*</a>
</dd><dd>
6  <em>Tabular</em> Environment Emulation... <a href="#SU-6">*</a>
</dd><dd>
7  Labels, Cross References, and Anchors... <a href="#SU-7">*</a>
</dd><dd>
8  Mathematics... <a href="#SU-8">*</a>
</dd><dd>
9  Beyond this Introductory Guide... <a href="#SU-9">*</a>
</dd></dl>
</div>
<div class="section">
<h3>1.  <a id="SU-1"></a><a id="intro"></a>Introduction</h3>
<p>Regular GELLMU is the part of the GELLMU Project under which
source language markup most closely resembles actual <em>LaTeX</em> source
markup. Much of the markup vocabulary is the same as that of
actual <em>LaTeX</em>. The differences — and, indeed, the whole reason
for the GELLMU Project — arises from the author's conclusion in
1998 that it would not be possible in a robust way to write rules
for actual <em>LaTeX</em> source markup so that the collection of documents
in the <em>article</em> document class prepared under such rules would
admit fully reliable automatic translation to other formats<sup><a id="revfnote1" href="#fnote1">1</a></sup>. </p>
<p>The version 0.8 release of the GELLMU Project was the first
release providing an output stream for the XML form of HTML extended
by the World Wide Web Consortium's
<a href="http://www.w3.org/Math/">Mathematical Markup Language (MathML)</a>.
The driver script <kbd>mmkg</kbd> provides translations of regular GELLMU
articles to (1) actual <em>LaTeX</em> (and from there to DVI and
PDF), (2) classic HTML, and (3) XHTML+MathML, while the driver
script <kbd>mkg</kbd> omits XHTML+MathML. Though the
PDF output may be read on a screen, it is intended primarily
for printing by end consumers. </p>
<p>While one could provide a landscape version of the PDF output with
live anchors for screen consumption, the XHTML+MathML version
would still be superior for screen reading since, as with ordinary
HTML, the text is re-formatted to conform naturally both to
magnification and window-resizing actions by the end user. The
quality of the rendering of mathematics in the XHTML+MathML
version is very nearly as good as that in the PDF version. </p>
<p>Indeed the author, as an author, finds that the best venue for proof
reading what he writes is XHTML+MathML when displayed in a suitable web
browser<sup><a id="revfnote2" href="#fnote2">2</a></sup>
with larger than normal font size and narrower than normal
line length. </p>
<p>Moreover, the XHTML+MathML version is fully compliant with the
<a href="http://www.w3.org/WAI/">Accessibility Guidelines</a> of the
<a href="http://www.w3.org/">World Wide Web Consortium</a>. </p>
<p>This document is an introductory user guide. The relation of regular
GELLMU to the GELLMU Project overall is explained in the <a href="glman.html">Manual</a>, and
advanced user information on regular GELLMU is found there as well.
This document covers fundamentals not mentioned in the manual. It is
available in <a href="userdoc.pdf">PDF</a>, <a href="userdoc.xhtml">XHTML+MathML</a>,
and <a href="userdoc.html">classical HTML</a> versions. Online copies of
this Introductory Guide and of the Manual may be found at
<a href="http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/gellmu.html
">CTAN</a> and the <a href="http://www.albany.edu/~hammond/gellmu/">GELLMU web site</a>. </p>
<p>To use this document as an example for learning refer to its
<a href="userdoc.glm">source markup</a> and to use the project manual
as an example refer to the
<a href="glman.glm">manual's source markup</a>.
</p>
</div>
<div class="section">
<h3>2.  <a id="SU-2"></a><a id="firststeps"></a>First Steps</h3>
<div class="subsection">
<h4>2.1.  <a id="SU-2.1"></a>Acquiring and Installing</h4>
<p>GELLMU is implemented as cross-platform free software licensed under
the GNU <a href="http://www.gnu.org/copyleft/">General Public
License</a>. Its package is available from the
<a href="http://www.ctan.org">Comprehensive TeX Archive Network</a> (CTAN)
and from the <a href="http://www.albany.edu/~hammond/gellmu/">GELLMU web site</a>. </p>
<p>The package requires a number of other cross-platform free software
packages including GNU Emacs, <em>Perl</em>, and some standard items of
SGML/XML software, chiefly <em>Open SP</em>. Locations may be
found in the <a href="glman.html#requiredsoftware">Manual (key “<kbd>requiredsoftware</kbd>”)</a>. </p>
<p><b>Linux:</b> The required packages are generally part of a full
GNU/<em>Linux</em> distribution. The package should be installed in
<kbd>/usr/local/gellmu</kbd> and symlinks to driver scripts should be
made from a suitable place in one's command path. </p>
<p><b>MacOS-X and other Unix variants:</b> The only difference from
GNU/<em>Linux</em> is that some of the supporting packages may need
to be acquired and installed. </p>
<p><b>MS Windows:</b> The best strategy is to acquire and install a
<b>full</b> <a href="http://www.cygwin.com/"><em>Cygwin</em></a> distribution.
Then proceed as with <em>Linux</em>. </p>
<p>Additional information may be found in the <a href="glman.html">Manual</a>.
</p>
</div>
<div class="subsection">
<h4>2.2.  <a id="SU-2.2"></a>Writing an Article</h4>
<p>The minimal form of a regular GELLMU article is this:</p>
<p></p>
<dl class="verblist">
<dd><kbd>
\documenttype{article}</kbd></dd>
<dd><kbd>
\title{Some title}</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
\begin{document}</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
First Paragraph.</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
Second Paragraph.</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
. . .</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
\end{document}</kbd></dd>
</dl>
<p></p>
<p>An article must begin with <kbd>\documenttype{article}</kbd>. The initial
part of an article up to the required <kbd>\begin{document}</kbd> is the
article's <em>preamble</em>, and the rest of the article is the
article's <em>body</em>. </p>
<p>Almost everything in the <em>body</em> of an article must be part of
a paragraph. Most typically a paragraph is begun with a blank line.
Paragraphs themselves may be parts of sectional units. </p>
<p>Beware special characters. For example ‘<kbd>%</kbd>’ converts the rest
of its line to comment status. To use ‘<kbd>%</kbd>’ in text write
“<kbd>\%</kbd>”. The special characters are with small exceptions
the same as those in <em>LaTeX</em>. Note, however, that in dealing with
multiple downstream formats any character that is not alpha-numeric
becomes potentially special. Therefore, there is a named form for
every non-alphanumeric ASCII character. For example,
“<kbd>\tld;</kbd>” is the name of ASCII ‘<kbd>~</kbd>’,
which is sometimes handy when forming a URL.<sup><a id="revfnote3" href="#fnote3">3</a></sup></p>
<p>The names of special characters may be found by browsing the SGML
document type definition in the file <kbd>gellmu.dtd</kbd> at the top of
the distribution tree.<sup><a id="revfnote4" href="#fnote4">4</a></sup>
</p>
</div>
</div>
<div class="section">
<h3>3.  <a id="SU-3"></a><a id="sentences"></a>Basic Markup Within Sentences</h3>
<p>Although there is no markup for a sentence as a unit, there is markup
for the end of a sentence or a “full stop”. The normal way to
indicate the end of a sentence is to use an ASCII period
‘<kbd>.</kbd>’ followed by either a newline or two or more blank spaces.
An end of sentence is marked up as the SGML empty element <em>eos</em>.
This is automatically generated under the condition indicated above.
For most purposes it will not matter if an ASCII period is followed
by only a single blank space, but in that case no <em>eos</em> will be
generated. </p>
<p>The foregoing paragraph provides several instances of markup within
sentences other than <em>eos</em>. There are (1) a quoted phrase,
(2) two abbreviations, (3) a quoted character, and (4) two instances
of emphasized text. The source for that paragraph is:</p>
<p></p>
<dl class="verblist">
<dd><kbd>
Although there is no markup for a sentence as a unit, there is markup</kbd></dd>
<dd><kbd>
for the end of a sentence or a ``full stop''.  The normal way to</kbd></dd>
<dd><kbd>
indicate the end of a sentence is to use an \abbr{ASCII} period</kbd></dd>
<dd><kbd>
\quochar{.}  followed by either a newline or two or more blank spaces.</kbd></dd>
<dd><kbd>
An end of sentence is marked up as the \sgml empty element \emph{eos}.</kbd></dd>
<dd><kbd>
This is automatically generated under the condition indicated above.</kbd></dd>
<dd><kbd>
For most purposes it will not matter if an \ascii period is followed</kbd></dd>
<dd><kbd>
by only a single blank space, but in that case no \emph{eos} will be</kbd></dd>
<dd><kbd>
generated.</kbd></dd>
</dl>
<p></p>
<p>The <kbd>``full stop''</kbd> is a marked up quoted phrase. The named form of a
quoted phrase is <em>quophrase</em>. The markup <kbd>\quophrase{full stop}</kbd>
is the equivalent expanded form. An abbreviation is indicated with the
command <em>abbr</em>. There is, of course, no requirement that an
abbreviation be marked up; it is merely good practice. </p>
<p>The name of markup for emphasized text is <em>emph</em>. A common
alternate form of emphasis is called <em>bold</em>. One way the two
differ is that <em>emph</em> has order two effect, i.e., <em>emph</em>
within <em>emph</em> removes emphasis while <em>bold</em> is not permitted
within itself. Note that <em><b>bold</b></em> may be emphasized. </p>
<p>In the cited marked up text above the instances <kbd>\sgml</kbd> and <kbd>\ascii</kbd>
are user-defined <em>newcommands</em> occurring in the preamble (or at least
before the invocations):
</p>
<dl class="verblist">
<dd><kbd>
\newcommand{\ascii}{\abbr{ASCII}}</kbd></dd>
<dd><kbd>
\newcommand{\sgml}{\abbr{SGML}}</kbd></dd>
</dl>
<p>
The command <em>newcommand</em> is a meta-command in GELLMU source.
All <em>newcommand</em> instances are fully expanded by the syntactic
translator before it writes any output. </p>
<p>The markup <kbd>\quochar{x}</kbd> produces a quoted character: in this case
‘<kbd>x</kbd>’. There is no compelling reason why <em>quophrase</em> could
not have been used instead of <em>quochar</em>, but it is customary in
technical documentation to use a different presentation style for
quoted characters than for quoted phrases. Beyond that for
non-traditional forms of processing it can be very useful to provide
for semantic distinctions such as the distinction between a quoted
phrase in normal discourse and a quoted string in technical discourse.
More particularly, it is significant that in some languages for
computer programming there is an important distinction between a
character and a string of unit length. Some of the markup commands
useful with technical documentation are
</p>
<div class="display"><table class="gdisplay"><tbody><tr><td>
<table><tbody>
<tr><td align="left"><b>command</b></td><td align="left"><b>example in source</b></td><td align="left"><b>example rendered</b></td></tr
><tr><td align="left"><em>quochar</em></td><td align="left"><kbd>use \quochar{\%} to comment</kbd></td><td align="left">use ‘<kbd>%</kbd>’ to comment</td></tr
><tr><td align="left"><em>quostr</em></td><td align="left"><kbd>\quostr{unsigned long num;}</kbd></td><td align="left"><kbd>unsigned long num;</kbd></td></tr
><tr><td align="left"><em>qquostr</em></td><td align="left"><kbd>type \qquostr{done} to exit</kbd></td><td align="left">type “<kbd>done</kbd>” to exit</td></tr
><tr><td align="left"><em>path</em></td><td align="left"><kbd>\path{C:\bsl;TEX\bsl;TEXMF}</kbd></td><td align="left"><kbd>C:\TEX\TEXMF</kbd></td></tr
><tr><td align="left"><em>urlanch</em></td><td align="left"><kbd>see \urlanch{userdoc.glm}  </kbd></td><td align="left">see <a href="userdoc.glm"><kbd>userdoc.glm</kbd></a></td></tr
></tbody></table>
</td></tr></tbody></table></div>
<p>
With regular <em>LaTeX</em> standard practice is to use <em>texttt</em> for the
examples just cited involving <em>quochar</em>, <em>quostr</em>,
<em>path</em>, and, apart from web-related considerations,
<em>urlanch</em>. The name <em>url</em> has been used variously in
regular <em>LaTeX</em>; therefore, <em>url</em> has not been introduced as a
name in regular GELLMU so that an author may safely use it, if
desired, as a macro name.
</p>
</div>
<div class="section">
<h3>4.  <a id="SU-4"></a><a id="sectioning"></a>Sectioning</h3>
<p>Unless one wants fancy non-default behavior, one may provide
sections, subsections, and subsubsections as in <em>LaTeX</em>. Thus,
for example,</p>
<p></p>
<dl class="verblist">
<dd><kbd>
\documenttype{article}</kbd></dd>
<dd><kbd>
\title{Some title}</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
\begin{document}</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
\section{Title of first section}</kbd></dd>
<dd><kbd>
First Paragraph.</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
Second Paragraph.</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
. . .</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
\section{Title of second section}</kbd></dd>
<dd><kbd>
First Paragraph.</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
Second Paragraph.</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
. . .</kbd></dd>
<dd><kbd>
 </kbd></dd>
<dd><kbd>
\end{document}</kbd></dd>
</dl>
<p></p>
<p>With this style of markup one does not indicate the end of a section
although there is a way described in the <a href="glman.html#secusage">Manual (key “<kbd>secusage</kbd>”)</a> to gain finer
control over sectional units.
</p>
</div>
<div class="section">
<h3>5.  <a id="SU-5"></a><a id="lists"></a>Lists</h3>
<p>As with <em>LaTeX</em> GELLMU <em>article</em> provides lists with the
names <em>description</em>, <em>enumerate</em>, and <em>itemize</em>.
For example, the markup
</p>
<dl class="verblist">
<dd><kbd>
\begin{enumerate}</kbd></dd>
<dd><kbd>
\item bird</kbd></dd>
<dd><kbd>
\item cat</kbd></dd>
<dd><kbd>
\item dog</kbd></dd>
<dd><kbd>
\end{enumerate}</kbd></dd>
</dl>
<p>
yields:
</p>
<dl>
<dd> <ol class="decimal">
<li><p> bird</p>
</li>
<li><p> cat</p>
</li>
<li><p> dog</p>
</li>
</ol>
</dd>
</dl>
<p>
while the markup
</p>
<dl class="verblist">
<dd><kbd>
\begin{description}</kbd></dd>
<dd><kbd>
\item[Parrot] a type of bird</kbd></dd>
<dd><kbd>
\item[Persian] a type of house cat</kbd></dd>
<dd><kbd>
\item[Pointer] a type of dog</kbd></dd>
<dd><kbd>
\end{description}</kbd></dd>
</dl>
<p>
yields:
</p>
<dl>
<dd> <dl>
<dt><b>
Parrot</b></dt>
<dd>a type of bird</dd><dt><b>
Persian</b></dt>
<dd>a type of house cat</dd><dt><b>
Pointer</b></dt>
<dd>a type of dog</dd></dl>
</dd>
</dl>
<p></p>
<p>A list is normally part of a paragraph, but a list may occur outside
of a paragraph in a sectional unit or even at the top level of
an article's body. </p>
<p>An <em>item</em> in a list may contain paragraphs but, as the foregoing
examples show, may contain loose text. </p>
<p>While <em>LaTeX</em> provides an excellent construction facility for customized
lists through its <em>list</em> environment, which may be used in
conjunction with its <em>newenvironment</em> command, there is no facility
for the provision of on-the-fly markup in SGML. Therefore, the
<em>article</em> document type provides several other kinds of list. </p>
<p>The lists called <em>menu</em> and <em>Menu</em> consist of
<em>items</em>. These lists have no item labels. They differ only
in intention for spacing in presentation formats. </p>
<p>It often makes sense for <em>menu</em> to be used inside an <em>item</em>
of another list. Moreover, a single item <em>menu</em> will render in
either the <em>LaTeX</em> or HTML formattings as “hanging indentation”. </p>
<p>A <em>defnlist</em> is intended to be more like the list called <em>dl</em>
in HTML than like <em>description</em>. It must consist of one or
more <em>term</em>, <em>desc</em> pairs with <em>term</em> mandatory and
<em>desc</em> optional. </p>
<p>There are also other lists that will not be mentioned here except to
point out that when the name <em>verbatim</em> is enabled as a
metacommand, rather than as a command, by calling the syntactic
translator with a non-default function<sup><a id="revfnote5" href="#fnote5">5</a></sup>
such as <kbd>verblist</kbd> or <kbd>latex-faq</kbd>, the verbatim material
is organized as a <em>verblist</em>. </p>
<p>For more information about lists browse the document type definitions
<kbd>gellmu.dtd</kbd> and <kbd>xml/xgellmu.dtd</kbd> being mindful that
default processing in the didactic production system sometimes does
a small amount of list manipulation between the SGML and XML versions
of an <em>article</em>.
</p>
</div>
<div class="section">
<h3>6.  <a id="SU-6"></a><a id="tabular"></a><em>Tabular</em> Environment Emulation</h3>
<p>Most users having a <em>LaTeX</em> background will find that <em>tabular</em>
with column arguments limited to ‘<kbd>l</kbd>’, ‘<kbd>r</kbd>’,
‘<kbd>c</kbd>’, and ‘<kbd>p</kbd>’ is reasonably functional.
Improvement made during 2006 were made possible by the increased
availability to users of web browsers supporting version 2 of the
cascading style sheets (CSS) specification. </p>
<p>For example, the following markup underlies a small
<a href="#mathzones"><em>lcc</em> table</a> in the section on mathematics.
</p>
<dl class="verblist">
<dd><kbd>
\display{\begin{tabular}{lcc}</kbd></dd>
<dd><kbd>
\bold{Name} & \bold{Opener}       & \bold{Closer}   \\</kbd></dd>
<dd><kbd>
math        & \quostr{\bsl;(}     & \quostr{\bsl;)} \\</kbd></dd>
<dd><kbd>
tmath       & \quostr{\$}         & \quostr{\$}     \\</kbd></dd>
<dd><kbd>
displaymath & \quostr{\bsl\lsb;}  & \quostr{\bsl\rsb;}</kbd></dd>
<dd><kbd>
\end{tabular}}</kbd></dd>
</dl>
<p>
(In this markup <em>bsl</em> is a name for the backslash character
and <em>lsb</em>, <em>rsb</em> the names of the square brackets.)</p>
<p>There is presently no concept of “float”. </p>
<p>More information is available in the <a href="glman.html#tabular">Manual (key “<kbd>tabular</kbd>”)</a>.
</p>
</div>
<div class="section">
<h3>7.  <a id="SU-7"></a><a id="links"></a>Labels, Cross References, and Anchors</h3>
<p>The basic idea is very simple. Use
</p>
<div class="display"><table class="gdisplay"><tbody><tr><td>
<kbd>\label{</kbd><em>mylabelkey</em><kbd>}</kbd></td></tr></tbody></table></div>
<p>
to <b>mark</b> a location that is associated with the named
label key, and use
</p>
<div class="display"><table class="gdisplay"><tbody><tr><td>
<kbd>\ref{</kbd><em>mylabelkey</em><kbd>}</kbd></td></tr></tbody></table></div>
<p>
or one of several other methods to reference that location.
The command <em>ref</em> may be regarded as the default method.
In an online version, however, it has <b>not</b> been designed to
create a selectable anchor but rather simply to indicate section
number. </p>
<p>For example, in this document there is a label with the key
“<kbd>math</kbd>” at the beginning of the section (8) on
mathematics. The previous sentence contains a reference with
the markup <kbd>\ref{math}</kbd> to that section. This markup results
in the number of that section appearing in the first sentence.
For clarity the markup for the entire first sentence of this
paragraph is:
</p>
<dl class="verblist">
<dd><kbd>
For example, in this document there is a label with the key</kbd></dd>
<dd><kbd>
\qquostr{math} at the beginning of the section (\ref{math}) on</kbd></dd>
<dd><kbd>
mathematics.</kbd></dd>
</dl>
<p></p>
<p>If, on the other hand, one wants an online version to contain
a <a href="#math">selectable anchor to section 8</a> to the
section on math, then
in the preamble of the document one might place the newcommand
definition
</p>
<div class="display"><table class="gdisplay"><tbody><tr><td>
<kbd>\newcommand{\iref}[2]{\anch[iref="#1"]{#2}}</kbd></td></tr></tbody></table></div>
<p>
and then, as in the foregoing portion of this sentence use
the markup
</p>
<div class="display"><table class="gdisplay"><tbody><tr><td>
<kbd>\iref{math}{selectable anchor to section \ref{math}}</kbd> .</td></tr></tbody></table></div>
<p>
Note that this markup uses the label key “<kbd>math</kbd>” twice:
once as the first argument to the newcommand called <em>iref</em>
and once as the sole argument of the command <em>ref</em> that
itself appears in the second argument of <em>iref</em>. </p>
<p>On the question of whether to use <em>ref</em> or one of several
other commands to make a reference, there are several considerations:
</p>
<ol class="decimal">
<li><p> How should the reference be indicated in an online format
that will be viewed in an ebook or a web browser? </p>
</li>
<li><p> How should the reference be indicated in a typeset format
where there is neither a cursor nor the possibility of automatic
scrolling? </p>
</li>
</ol>
<p>
More details on this subject may be found in the
<a href="glman.html#labelref">Manual (key “<kbd>labelref</kbd>”)</a>.
</p>
</div>
<div class="section">
<h3>8.  <a id="SU-8"></a><a id="math"></a>Mathematics</h3>
<p>GELLMU <em>article</em> provides 5 containers for mathematical
content: <em>math</em>, <em>tmath</em>, <em>displaymath</em>, <em>equation</em>,
<em>eqnarray</em>. All may be referenced by name. However,
<em>LaTeX</em>-like markup is supported:
<a id="mathzones"></a>
</p>
<div class="display"><table class="gdisplay"><tbody><tr><td>
<table><tbody>
<tr><td align="left"><b>Name</b></td><td align="center"><b>Opener</b></td><td align="center"><b>Closer</b></td></tr
><tr><td align="left">math</td><td align="center"><kbd>\(</kbd></td><td align="center"><kbd>\)</kbd></td></tr
><tr><td align="left">tmath</td><td align="center"><kbd>$</kbd></td><td align="center"><kbd>$</kbd></td></tr
><tr><td align="left">displaymath</td><td align="center"><kbd>\[</kbd></td><td align="center"><kbd>\]</kbd></td></tr
></tbody></table>
</td></tr></tbody></table></div>
<p></p>
<p>The containers <em>math</em> and <em>tmath</em> are essentially
equivalent non-displayed containers. The current <em>LaTeX</em> formatter
provides a tiny amount of extra horizontal space around <em>math</em>
but not around <em>tmath</em>. </p>
<p>Just as with ordinary <em>LaTeX</em> there can be difficulty locating
a missing ‘<kbd>$</kbd>’ if one uses these for <em>tmath</em>. Unbalanced
‘<kbd>$</kbd>’ characters usually lead the syntactic translator to
complain (correctly, though not with as much user-friendliness as one
might wish) about not being able to balance a brace. In this case
if <em>tmath</em> is seen in the displayed surrounding text, a missing
‘<kbd>$</kbd>’ is likely. </p>
<p>MathML rendering support (with MathML's presentation markup) in HTML
versions, i.e., the modern XML form of HTML extended with MathML, is
new in the summer of 2004. </p>
<p>A program to generate an output stream providing content-level MathML
markup, i.e., semantic markup transparent for computer algebra
systems, has not yet been written. </p>
<p>Those who use mathematics may find the following illustrations
instructive. </p>
<p>The markup
</p>
<dl class="verblist">
<dd><kbd>
Just as with \tex; or \latex; it is easy to provide a mathematical</kbd></dd>
<dd><kbd>
formula, such as $y = x^3/(x^2 + 1)$\aoc either inline or displayed.</kbd></dd>
</dl>
<p>
produces:
</p>
<dl>
<dd> Just as with <em>TeX</em> or <em>LaTeX</em> it is easy to provide a mathematical
formula, such as <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><mi>y</mi><mo>=</mo><msup><mi>x</mi><mn>3</mn></msup
><mo stretchy="true" lspace="0.3em" rspace="0.3em">⁄</mo><mfenced open="(" close =")"
><mrow><msup><mi>x</mi><mn>2</mn></msup
><mo>+</mo><mn>1</mn></mrow></mfenced
></math
>, either inline or displayed. </dd>
</dl>
<p></p>
<p>This markup
</p>
<dl class="verblist">
<dd><kbd>
Here the same formula is displayed.</kbd></dd>
<dd><kbd>
\[ y = \frac{x^3}{x^2 + 1} \eos\]</kbd></dd>
</dl>
<p>
yields:
</p>
<dl>
<dd> Here the same formula is displayed.
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mi>y</mi><mo>=</mo><mrow><mfrac
><mrow><msup><mi>x</mi><mn>3</mn></msup
></mrow
><mrow><msup><mi>x</mi><mn>2</mn></msup
><mo>+</mo><mn>1</mn></mrow
></mfrac></mrow
><mtext>.</mtext
></math>
</dd>
</dl>
<p>
The <em>eos</em> corresponds to an empty SGML element for “end of
sentence” (or “full stop”). Normally one simply uses ‘<kbd>.</kbd>’,
but inside a displayed math zone there is semantic-level risk of
confusion with various possible uses of ‘<kbd>.</kbd>’ as a mathematical
symbol. </p>
<p>Markup:
</p>
<dl class="verblist">
<dd><kbd>
The square root of a compound fraction:</kbd></dd>
<dd><kbd>
\[ \sqrt{\frac{\frac{a}{b}}{\frac{c}{d}}} \eos \]</kbd></dd>
</dl>
<p>
Rendered:
</p>
<dl>
<dd> The square root of a compound fraction:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><msqrt><mfrac
><mfrac
><mi>a</mi><mi>b</mi></mfrac
><mfrac
><mi>c</mi><mi>d</mi></mfrac
></mfrac
></msqrt
><mtext>.</mtext
></math>
</dd>
</dl>
<p></p>
<p>In the current XHTML+MathML formatting by default radical signs in
source markup are converted by default to fractional exponents because
of an intellectual property issue with fonts available for use by the
open source <em>Mozilla</em> browser and its spinoffs including
<em>Firefox</em>, <em>Galeon</em>, and <em>Nautilus</em>.<sup><a id="revfnote6" href="#fnote6">6</a></sup></p>
<p>Using the markup for numbered equations
</p>
<dl class="verblist">
<dd><kbd>
The quadratic equation</kbd></dd>
<dd><kbd>
\begin{equation} a x^2 + b x + c = 0 \end{equation}</kbd></dd>
<dd><kbd>
has roots</kbd></dd>
<dd><kbd>
\begin{equation}</kbd></dd>
<dd><kbd>
 x = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2 a} \ \eos</kbd></dd>
<dd><kbd>
\end{equation}</kbd></dd>
</dl>
<p>
one obtains the rendering:
</p>
<dl>
<dd> The quadratic equation
<a id="EqnKey-1"></a>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mtable><mtr class="labeled" id="EqnAutoEqnKey-1"><mtd><mtext>(1)</mtext></mtd
><mtd><mrow><mi>a</mi><msup><mi>x</mi><mn>2</mn></msup
><mo>+</mo><mi>b</mi><mi>x</mi><mo>+</mo><mi>c</mi><mo>=</mo><mn>0</mn></mrow></mtd></mtr></mtable></math
>
has roots
<a id="EqnKey-2"></a>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mtable><mtr class="labeled" id="EqnAutoEqnKey-2"><mtd><mtext>(2)</mtext></mtd
><mtd><mrow><mi>x</mi><mo>=</mo><mrow><mfrac
><mrow><mo>−</mo><mi>b</mi><mo>±</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup
><mo>−</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt
></mrow
><mrow><mn>2</mn><mi>a</mi></mrow
></mfrac></mrow
><mspace width="0.6em"/><mtext>.</mtext
></mrow></mtd></mtr></mtable></math
></dd>
</dl>
<p></p>
<p><b>Rule for subscripts and superscripts:</b> A subscript or
superscript must be braced if keyboarding it involves more than
one character. Thus, one <em>may</em> use <kbd>$C^2$</kbd> or <kbd>$C^{2}$</kbd>
to produce <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><msup><mi>C</mi><mn>2</mn></msup
></math
>, but one <em>must</em> use <kbd>$C^{\infty}$</kbd> to
generate <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><msup><mi>C</mi><mi>∞</mi></msup
></math
>. </p>
<p>The Taylor series of the <em>exponential</em> function is
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><msup><mi>e</mi><mi>t</mi></msup
><mo>=</mo><mrow><munderover><mo>∑</mo><mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow><mi>∞</mi></munderover><mrow><mspace width="0.3em"/><mfrac
><mrow><msup><mi>t</mi><mi>k</mi></msup
></mrow
><mrow><mi>k</mi><mo>!</mo></mrow
></mfrac
></mrow></mrow
><mspace width="0.6em"/><mtext>.</mtext
></math>
Note here that the <em>sum</em> markup <kbd>\sum</kbd> requires a formal
terminator <kbd>\sum:</kbd> (likewise with <kbd>\int</kbd> for integral and <kbd>\prod</kbd>
for product).
</p>
<dl class="verblist">
<dd><kbd>
\[ e^t = \sum_{k = 0}^{\infty} \, \frac{t^k}{k!} \sum: \ \eos \]</kbd></dd>
</dl>
<p></p>
<p>The markup
</p>
<dl class="verblist">
<dd><kbd>
The continued fraction expansion of the \emph{golden mean}:</kbd></dd>
<dd><kbd>
\[\frac{1 + \sqrt{5}}{2} =</kbd></dd>
<dd><kbd>
     1 + \frac{1}{1+\frac{1}{1+\frac{1}{1+\frac{1}{1+\ldots;}}}} \eos \]</kbd></dd>
</dl>
<p>
produces:
</p>
<dl>
<dd> The continued fraction expansion of the <em>golden mean</em>:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mrow><mfrac
><mrow><mn>1</mn><mo>+</mo><msqrt><mn>5</mn></msqrt
></mrow
><mn>2</mn></mfrac></mrow
><mo>=</mo><mn>1</mn><mo>+</mo><mrow><mfrac
><mn>1</mn><mrow><mn>1</mn><mo>+</mo><mrow><mfrac
><mn>1</mn><mrow><mn>1</mn><mo>+</mo><mrow><mfrac
><mn>1</mn><mrow><mn>1</mn><mo>+</mo><mrow><mfrac
><mn>1</mn><mrow><mn>1</mn><mo>+</mo><mi>…</mi></mrow
></mfrac></mrow
></mrow
></mfrac></mrow
></mrow
></mfrac></mrow
></mrow
></mfrac></mrow
><mtext>.</mtext
></math>
</dd>
</dl>
<p>
while the markup
</p>
<dl class="verblist">
<dd><kbd>
Mixed function application and multiplication:</kbd></dd>
<dd><kbd>
\[ {\func{sin}\aF;{ax}}\itimes;{\func{cos}\aF;{bx}} \eos \]</kbd></dd>
</dl>
<p>
yields
</p>
<dl>
<dd> Mixed function application and multiplication:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mrow><mrow><mspace width="0.2em"/><mi>sin</mi></mrow><mo class="invisible">⁡</mo><mrow><mi>a</mi><mi>x</mi></mrow></mrow><mo class="invisible">⁢</mo><mrow><mrow><mspace width="0.2em"/><mi>cos</mi></mrow><mo class="invisible">⁡</mo><mrow><mi>b</mi><mi>x</mi></mrow></mrow><mtext>.</mtext
></math>
</dd>
</dl>
<p></p>
<p>Markup:
</p>
<dl class="verblist">
<dd><kbd>
Newton's binomial series:</kbd></dd>
<dd><kbd>
\[ (1 + t)^r = \sum_{k=0}^{\infty} \,</kbd></dd>
<dd><kbd>
  \frac{r(r - 1)(r - 2)\ldots(r - k + 1)}{k!}\, t^k \sum: \eos \]</kbd></dd>
</dl>
<p>
rendering:
</p>
<dl>
<dd> Newton's binomial series:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><msup><mfenced open="(" close =")"
><mrow><mn>1</mn><mo>+</mo><mi>t</mi></mrow></mfenced
><mi>r</mi></msup
><mo>=</mo><mrow><munderover><mo>∑</mo><mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow><mi>∞</mi></munderover><mrow><mspace width="0.3em"/><mfrac
><mrow><mi>r</mi><mfenced open="(" close =")"
><mrow><mi>r</mi><mo>−</mo><mn>1</mn></mrow></mfenced
><mfenced open="(" close =")"
><mrow><mi>r</mi><mo>−</mo><mn>2</mn></mrow></mfenced
><mi>…</mi><mfenced open="(" close =")"
><mrow><mi>r</mi><mo>−</mo><mi>k</mi><mo>+</mo><mn>1</mn></mrow></mfenced
></mrow
><mrow><mi>k</mi><mo>!</mo></mrow
></mfrac
><mspace width="0.3em"/><msup><mi>t</mi><mi>k</mi></msup
></mrow></mrow
><mtext>.</mtext
></math>
</dd>
</dl>
<p></p>
<p>Markup:
</p>
<dl class="verblist">
<dd><kbd>
A differential equation:</kbd></dd>
<dd><kbd>
\[ D^2 y - 3 x (D y)^2 = x \func{cos} x \ \eos \]</kbd></dd>
</dl>
<p>
rendering:
</p>
<dl>
<dd> A differential equation:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><msup><mi>D</mi><mn>2</mn></msup
><mi>y</mi><mo>−</mo><mn>3</mn><mi>x</mi><msup><mfenced open="(" close =")"
><mrow><mi>D</mi><mi>y</mi></mrow></mfenced
><mn>2</mn></msup
><mo>=</mo><mi>x</mi><mrow><mspace width="0.2em"/><mi>cos</mi></mrow><mi>x</mi><mspace width="0.6em"/><mtext>.</mtext
></math>
</dd>
</dl>
<p></p>
<p>The statement of Stokes's Theorem in space
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mrow><mo>∫</mo><mrow><msub><mo>∫</mo><mi>S</mi></msub><mrow><mspace width="0.3em"/><mfenced open="(" close =")"
><mrow><mi mathvariant="bold" fontweight="bold" fontstyle="normal">curl</mi><mspace width="0.3em"/><mi mathvariant="bold" fontweight="bold" fontstyle="normal">F</mi><mspace width="0.3em"/><mo>·</mo><mspace width="0.3em"/><mi mathvariant="bold" fontweight="bold" fontstyle="normal">N</mi></mrow></mfenced
><mspace width="0.3em"/><mi>d</mi><mi>σ</mi></mrow></mrow
></mrow
><mo>=</mo><mrow><msub><mo>∫</mo><mrow><mi>∂</mi><mi>S</mi></mrow></msub><mrow><mspace width="0.3em"/><mfenced open="(" close =")"
><mrow><mi mathvariant="bold" fontweight="bold" fontstyle="normal">F</mi><mspace width="0.3em"/><mo>·</mo><mspace width="0.3em"/><mi mathvariant="bold" fontweight="bold" fontstyle="normal">T</mi></mrow></mfenced
><mspace width="0.3em"/><mi>d</mi><mi>s</mi></mrow></mrow
><mspace width="0.3em"/><mtext>.</mtext
></math>
may be generated by the markup
</p>
<dl class="verblist">
<dd><kbd>
\[ \int\int_S \, (\mbox{\bold{curl}}</kbd></dd>
<dd><kbd>
 \, \regch{\bold{F}} \,\cdot\, \regch{\bold{N}})\, d\sigma;</kbd></dd>
<dd><kbd>
\int:\int:</kbd></dd>
<dd><kbd>
 = </kbd></dd>
<dd><kbd>
\int_{\partial S} \, (\regch{\bold{F}}</kbd></dd>
<dd><kbd>
\,\cdot\, \regch{\bold{T}})\, ds \int:\, \eos \]</kbd></dd>
</dl>
<p>
Note that each <kbd>\int</kbd> integral opener must be followed eventually
by a <kbd>\int:</kbd> closer (or braces could be used, i.e., <kbd>\int{ ... }</kbd>,
or <kbd>\begin{int}</kbd> … <kbd>\end{int}</kbd> also could be used. </p>
<p>The branched definition of the absolute value of a real number may
be marked up with
</p>
<dl class="verblist">
<dd><kbd>
\[ \absval{x} = \lbalbr{\begin{array}{rl}</kbd></dd>
<dd><kbd>
                x & \text{\ if\ } x \geq 0 \\</kbd></dd>
<dd><kbd>
               -x & \text{\ if\ } x < 0</kbd></dd>
<dd><kbd>
               \end{array}} \ \eos \]</kbd></dd>
</dl>
<p>
to yield
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mfenced open="|" close="|"><mi>x</mi></mfenced><mo>=</mo><mfenced open="{" close =""
><mtable
><mtr><mtd columnalign="right"><mi>x</mi></mtd
><mtd columnalign="left"><mtext
> if </mtext
><mi>x</mi><mo>≥</mo><mn>0</mn></mtd
></mtr><mtr><mtd columnalign="right"><mo>−</mo><mi>x</mi></mtd
><mtd columnalign="left"><mtext
> if </mtext
><mi>x</mi><mo><</mo><mn>0</mn></mtd
></mtr></mtable
></mfenced
><mspace width="0.6em"/><mtext>.</mtext
></math>
</p>
<p>The <em>LaTeX</em>-like command <em>mathbf</em> is new in GELLMU
<em>article</em>. It may only be used in math. The command
<em>bold</em>, which indicates bold-style emphasis, parallel to
<em>strong</em> in HTML and <em>textbf</em> in <em>LaTeX</em>, may be
used inside mathematical content as well as outside. However,
<em>bold</em> may not contain math-special symbols such as that given by
<kbd>\alpha</kbd>, while <em>mathbf</em> may. </p>
<p>A certain amount of attention to semantics is required in order to
have robust generation of the XHTML+MathML output. An absolutely
basic part of this is having unambiguous determination of what is a
single symbol. By long convention in <em>TeX</em> the string “abcd” in
math is understood as the product (in whatever sense of “product”)
of four symbols. If a string with more than one character — for
example, “Hom” — is to be a single symbol, it may be marked up
with <em>mbox</em> or, in GELLMU source, be assigned a symbol name
having custom print representation using <em>mathsym</em> in the preamble.
In GELLMU source <em>mathbf</em> should only contain a single symbol.
</p>
<p>The markup
</p>
<dl class="verblist">
<dd><kbd>
\display{$\nabla\times\vec{\mbox{\bold{B}}}$</kbd></dd>
<dd><kbd>
         \ with ``mbox'' and ``bold'' versus</kbd></dd>
<dd><kbd>
         \ $\nabla\times\vec{\mathbf{B}}$ \ with ``mathbf''\,.}</kbd></dd>
</dl>
<p>
produces
</p>
<div class="display"><table class="gdisplay"><tbody><tr><td>
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><mi>∇</mi><mo lspace="0.25em" rspace="0.25em">×</mo><mover accent="true"><mi mathvariant="bold" fontweight="bold" fontstyle="normal">B</mi><mo>⇀</mo></mover
></math
>
with “mbox” and “bold” versus
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><mi>∇</mi><mo lspace="0.25em" rspace="0.25em">×</mo><mover accent="true"><mi mathvariant="bold-italic" fontweight="bold">B</mi
><mo>⇀</mo></mover
></math
> with “mathbf”.</td></tr></tbody></table></div>
<p></p>
<p>Diagrams are done using <em>array</em>. They must, therefore, be
rectangular. The markup
</p>
<dl class="verblist">
<dd><kbd>
\newcommand{\ra}{\rightarrow}</kbd></dd>
<dd><kbd>
\newcommand{\da}{\downarrow}</kbd></dd>
<dd><kbd>
\[ \begin{array}{ccccccccc}</kbd></dd>
<dd><kbd>
0 & \ra  & A'  & \ra  & A   & \ra &  A''  & \ra & 0 \\</kbd></dd>
<dd><kbd>
~ &      & \da &      & \da &     & \da   &     &   \\</kbd></dd>
<dd><kbd>
0 & \ra  & B'  & \ra  & B   & \ra &  B''  & \ra & 0</kbd></dd>
<dd><kbd>
\end{array} \]</kbd></dd>
</dl>
<p>
yields
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mtable
><mtr><mtd columnalign="center"><mn>0</mn></mtd
><mtd columnalign="center"><mo>→</mo></mtd
><mtd columnalign="center"><msup><mi>A</mi><mo>′</mo></msup
></mtd
><mtd columnalign="center"><mo>→</mo></mtd
><mtd columnalign="center"><mi>A</mi></mtd
><mtd columnalign="center"><mo>→</mo></mtd
><mtd columnalign="center"><msup><mi>A</mi><mo>′′</mo></msup
></mtd
><mtd columnalign="center"><mo>→</mo></mtd
><mtd columnalign="center"><mn>0</mn></mtd
></mtr><mtr><mtd columnalign="center"><mspace width="0.6em"/></mtd
><mtd columnalign="center"></mtd
><mtd columnalign="center"><mo>↓</mo></mtd
><mtd columnalign="center"></mtd
><mtd columnalign="center"><mo>↓</mo></mtd
><mtd columnalign="center"></mtd
><mtd columnalign="center"><mo>↓</mo></mtd
><mtd columnalign="center"></mtd
><mtd columnalign="center"></mtd
></mtr><mtr><mtd columnalign="center"><mn>0</mn></mtd
><mtd columnalign="center"><mo>→</mo></mtd
><mtd columnalign="center"><msup><mi>B</mi><mo>′</mo></msup
></mtd
><mtd columnalign="center"><mo>→</mo></mtd
><mtd columnalign="center"><mi>B</mi></mtd
><mtd columnalign="center"><mo>→</mo></mtd
><mtd columnalign="center"><msup><mi>B</mi><mo>′′</mo></msup
></mtd
><mtd columnalign="center"><mo>→</mo></mtd
><mtd columnalign="center"><mn>0</mn></mtd
></mtr></mtable
></math>
</p>
<dl>
<dd> <b>Comments about <em>array</em>, <em>eqnarray</em>, <em>tabular</em></b>
<ol class="decimal">
<li><p> In this markup note the appearance of the character ‘<kbd>~</kbd>’ at
the beginning of the second row of the array. The modular design of
the didactic production system requires that the syntactic translator
may only deal with markup syntax. The ‘<kbd>~</kbd>’, which is markup
in GELLMU source as in <em>LaTeX</em> for “non-breaking space”, in the
first cell of the second row serves to keep the first cell from being
empty. There is a technical error in the SGML output of the
syntactic translator when the first cell in an <em>array</em> or
<em>tabular</em> row is empty unless there is an explicit opentag for
the first cell. The technical error will trigger a validation error
though it should not interfere with the generation of a correct parsed
output.<sup><a id="revfnote7" href="#fnote7">7</a></sup>
</p>
</li>
<li><p> Also in the foregoing markup note that the <em>LaTeX</em>-like use of the
character ‘<kbd>&</kbd>’ as the introducer of a new cell must in GELLMU
source be followed by whitespace. Otherwise there is risk of
confusion with the alternative markup use of ‘<kbd>&</kbd>’ in GELLMU
source (though not in <em>LaTeX</em> source) to initiate an SGML entity
reference. </p>
</li>
</ol>
</dd>
</dl>
<p></p>
<p>There is multiscript support. The command <em>mscript</em> takes 5
arguments. The first is its base. The script order is counter-clockwise
beginning with upper-left. For example,
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mmultiscripts><mi mathvariant="bold-italic" fontweight="bold">C</mi
><mrow><mn>5</mn><mo>+</mo></mrow><mn>2</mn><mprescripts/><mn>2</mn><mn>14</mn></mmultiscripts
><mspace width="1.8em"/><mmultiscripts><mi>Hom</mi><mi>c</mi><mi>d</mi><mprescripts/><mi>b</mi><mi>a</mi></mmultiscripts
><mfenced open="(" close =")"
><mrow><mi>X</mi><mo>,</mo><mi>Y</mi></mrow></mfenced
></math>
is produced by
</p>
<dl class="verblist">
<dd><kbd>
\[</kbd></dd>
<dd><kbd>
\mscript{\mathbf{C}}{14}{2}{5+}{2}\quad</kbd></dd>
<dd><kbd>
\mscript{\mbox{Hom}}{a}{b}{c}{d}(X,Y)</kbd></dd>
<dd><kbd>
\]</kbd></dd>
</dl>
<p></p>
<p><em>AMSMath</em>-like overset and underset: <kbd>\overset{A}{B}</kbd>
then <kbd>\underset{A}{B}</kbd>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mover><mi>B</mi><mi>A</mi></mover
><mspace width="1.8em"/><munder><mi>B</mi><mi>A</mi></munder
></math>
</p>
<p>The command <em>overset</em> is the <em>AMSMath</em> replacement in <em>LaTeX</em>
for <em>LaTeX</em>'s native <em>stackrel</em>. </p>
<p></p>
<dl class="verblist">
<dd><kbd>
A map may be labeled using \emph{overset}:</kbd></dd>
<dd><kbd>
\[ X \overset{f}{\longrightarrow} Y \]</kbd></dd>
<dd><kbd>
or using \emph{underset}:</kbd></dd>
<dd><kbd>
\[ X \underset{f}{\longrightarrow} Y \]</kbd></dd>
</dl>
<p>
</p>
<dl>
<dd> A map may be labeled using <em>overset</em>:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mi>X</mi><mover><mo>→</mo><mi>f</mi></mover
><mi>Y</mi></math>
or using <em>underset</em>:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mi>X</mi><munder><mo>→</mo><mi>f</mi></munder
><mi>Y</mi></math>
</dd>
</dl>
<p></p>
<p>Binary or pseudo-binary operators:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mtext
>vee:</mtext
><mspace width="0.6em"/><mo>∨</mo><mspace width="1.8em"/><mtext
>setminus:</mtext
><mspace width="0.6em"/><mo>∖</mo><mspace width="1.8em"/><mtext
>ll:</mtext
><mspace width="0.6em"/><mo>≪</mo><mspace width="1.8em"/><mtext
>gg:</mtext
><mspace width="0.6em"/><mo>≫</mo><mspace width="1.8em"/><mtext
>approx:</mtext
><mspace width="0.6em"/><mo>≊</mo><mspace width="1.8em"/><mtext
>asymp:</mtext
><mspace width="0.6em"/><mo>≈</mo><mspace width="1.8em"/></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mtext
>rightarrow:</mtext
><mspace width="0.6em"/><mo>→</mo><mspace width="1.8em"/><mtext
>leftarrow:</mtext
><mspace width="0.6em"/><mo>←</mo><mspace width="1.8em"/><mtext
>implies:</mtext
><mspace width="0.6em"/><mo>⇒</mo><mspace width="1.8em"/><mtext
>revimplies:</mtext
><mspace width="0.6em"/><mo>⇐</mo><mspace width="1.8em"/><mtext
>iff:</mtext
><mspace width="0.6em"/><mo>⇔</mo><mspace width="1.8em"/></math>
</p>
<p>Other operators:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mtext
>uparrow:</mtext
><mspace width="0.6em"/><mo>↑</mo><mspace width="1.8em"/><mtext
>downarrow:</mtext
><mspace width="0.6em"/><mo>↓</mo><mspace width="1.8em"/><mtext
>triangle:</mtext
><mspace width="0.6em"/><mo>▵</mo><mspace width="1.8em"/><mtext
>abuts:</mtext
><mspace width="0.6em"/><mo>⇒</mo><mspace width="1.8em"/></math>
</p>
<p>The command <em>vect</em> is for vector generation. Its usage is:
</p>
<div class="display"><table class="gdisplay"><tbody><tr><td>
<kbd>\vect[</kbd><em>open-close-separator spec</em><kbd>]{</kbd><em>coordinate</em><kbd>}</kbd> …</td></tr></tbody></table></div>
<p>
Thus, the markup <kbd>\vect{x}{y}{z}</kbd> produces <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><mfenced><mi>x</mi><mi>y</mi><mi>z</mi></mfenced
></math
>.
On the other hand the markup <kbd>\vect[]{x}{y}{z}</kbd> produces
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><mfenced open="" close="" separators=""><mi>x</mi><mi>y</mi><mi>z</mi></mfenced
></math
>. This might be useful, for example, in
providing reasonably semantic (but visibly traditional) markup for a
tensor field. For example
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><msubsup><mi>T</mi><mfenced open="" close="" separators=""><mrow><msub><mi>j</mi><mn>1</mn></msub
></mrow><mrow><msub><mi>j</mi><mn>2</mn></msub
></mrow><mi>…</mi><mrow><msub><mi>j</mi><mi>q</mi></msub
></mrow></mfenced
><mfenced open="" close="" separators=""><mrow><msub><mi>i</mi><mn>1</mn></msub
></mrow><mrow><msub><mi>i</mi><mn>2</mn></msub
></mrow><mi>…</mi><mrow><msub><mi>i</mi><mi>p</mi></msub
></mrow></mfenced
></msubsup
></math>
When <em>vect</em>'s option is empty, vector opener, closer, and coordinate
separators are all nil. <em>vect</em> might be used to provide the stylized,
though semantically dubious,
inner product markup <kbd>\vect[<>;]{v}{w}</kbd> yielding
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mfenced open="<" close=">" separators=";"><mi>v</mi><mi>w</mi></mfenced
><mspace width="0.6em"/><mtext>,</mtext></math>
or with the markup <kbd>\vect[\lsb;\rsb;:]{a}{b}{c}</kbd>
to customize notation for the homogeneous coordinate triple
representing a point of <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><msup><mi mathvariant="bold-italic" fontweight="bold">P</mi
><mn>2</mn></msup
></math
>:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mfenced open="[" close="]" separators=":"><mi>a</mi><mi>b</mi><mi>c</mi></mfenced
><mspace width="0.6em"/><mtext>.</mtext
></math>
</p>
<p>Leray's spectral sequence:
</p>
<dl>
<dd> If
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mi>X</mi><mspace width="0.6em"/><mo>→</mo><mspace width="0.6em"/><mi>B</mi></math>
with fibre <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><mi>F</mi></math
>, then
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" mode="display"
><mrow><mmultiscripts><mi>E</mi><mn>2</mn><mfenced open="" close="" separators=""><mi>p</mi><mi>q</mi></mfenced
></mmultiscripts
><mo>=</mo><msup><mi>H</mi><mi>p</mi></msup
><mo class="invisible">⁡</mo><mfenced open="(" close =")"
><mrow><mi>B</mi><mo>,</mo><msup><mi>H</mi><mi>q</mi></msup
><mo class="invisible">⁡</mo><mfenced open="(" close =")"
><mi>F</mi></mfenced
></mrow></mfenced
></mrow><mo>⇒</mo><msup><mi>H</mi><mi>*</mi></msup
><mo class="invisible">⁡</mo><mfenced open="(" close =")"
><mi>X</mi></mfenced
><mspace width="0.6em"/><mtext>.</mtext
></math>
</dd>
</dl>
<p>
is produced by
</p>
<dl class="verblist">
<dd><kbd>
If</kbd></dd>
<dd><kbd>
\[ X \ \longrightarrow \  B \]</kbd></dd>
<dd><kbd>
with fibre $F$\@, then </kbd></dd>
<dd><kbd>
\[ {\mscript{E}{}{}{2}{\vect[]{p}{q}} = H^p\aF(B, H^q\aF(F))}</kbd></dd>
<dd><kbd>
   \abuts H^{*}\aF(X) \ \eos \]</kbd></dd>
</dl>
<p>
In this markup the command <kbd>\aF</kbd>, is not strictly necessary.
It provides a deliberate way to indicate that, in the second
instance above, the symbol <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><mi>X</mi></math
> is argument-like in relation to
the symbol <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><msup><mi>H</mi><mi>*</mi></msup
></math
>. In MathML rendering <em>aF</em> gives rise to
presentation-level MathML's invisible operator <em>ApplyFunction</em>.
</p>
</div>
<div class="section">
<h3>9.  <a id="SU-9"></a>Beyond this Introductory Guide</h3>
<p>More information about GELLMU is available in the <a href="glman.html">Manual</a>.
Some examples of topics to be found there include:
</p>
<ul>
<li><p> Inclusion of graphic objects: <a href="glman.html#graphics">Manual (key “<kbd>graphics</kbd>”)</a>. </p>
</li>
<li><p> Equations and equation arrays: <a href="glman.html#eqn">Manual (key “<kbd>eqn</kbd>”)</a>. </p>
</li>
<li><p> Emulation of <em>LaTeX</em>'s <em>newtheorem</em> environments: <a href="glman.html#assert">Manual (key “<kbd>assert</kbd>”)</a>. </p>
</li>
<li><p> Emulation of <em>LaTeX</em>'s counters: <a href="glman.html#counters">Manual (key “<kbd>counters</kbd>”)</a>. </p>
</li>
<li><p> The flowchart for regular GELLMU processing: <a href="glman.html#flow">Manual (key “<kbd>flow</kbd>”)</a>. </p>
</li>
</ul>
<p></p>
<p>The author tries to keep fresh information on the <a href="http://www.albany.edu/~hammond/gellmu/">GELLMU web site</a>.
</p>
</div>
<hr />
<h3>Footnotes</h3>
<ol>
<li><a id="fnote1" href="#revfnote1">*</a> This should not be construed to mean, however, that standard <em>LaTeX</em>
processing could not incorporate this type of source markup at some
time in the future. </li>
<li><a id="fnote2" href="#revfnote2">*</a> The author prefers the freely available cross-platform
browser <em>Firefox</em> (<a href="http://www.mozilla.com/"><kbd>http://www.mozilla.com/</kbd></a>) from the
<em>Mozilla</em> Project. </li>
<li><a id="fnote3" href="#revfnote3">*</a> In
GELLMU source, as in <em>LaTeX</em> source ‘<kbd>~</kbd>’ is markup for
“non-breaking space”. Note further that ASCII tilde
“<kbd>\tld;</kbd>” should not be confused with either the accent
command “<kbd>\tilde</kbd>” or the math command “<kbd>\sim</kbd>”
(rendered as <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"
><mo>∼</mo></math
>) that is typically used for mathematical
operators.</li>
<li><a id="fnote4" href="#revfnote4">*</a> The SGML document type definition is
more elaborately commented than its XML mirror found in the file
<kbd>xml/xgellmu.dtd</kbd>.</li>
<li><a id="fnote5" href="#revfnote5">*</a> The most convenient
way to call the syntactic translator with a non-default function is to
make the first line of the source file point to the name of the
special function. For example, the function “gellmu-verblist” will
be called if the first line of the source file is “<kbd>%!verblist</kbd>”.</li>
<li><a id="fnote6" href="#revfnote6">*</a> Similar intellectual property issues pertain more widely to fonts.
In particular, for this reason by default in the XHTML+MathML
output character coloring is used to cover possible font failures
for the blackboard bold, calligraphic, and fraktur math fonts; the
colors corresponding colors are, respectively, red, blue, and green.</li>
<li><a id="fnote7" href="#revfnote7">*</a> Beyond that in certain situations some web browsers
appear not to deal well with empty table cells, and placing an HTML
non-breaking space in such a cell is often a good thing for that
reason. Of course, the special character ‘<kbd>~</kbd>’ for
non-breaking space in GELLMU source gives rise in HTML output to the
SGML non-breaking space character denoted with the entity reference
“&#xA0;”.</li>
</ol>
</body>
</html>
|