-
Notifications
You must be signed in to change notification settings - Fork 2
/
history
4966 lines (3140 loc) · 117 KB
/
history
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
Last change 2022-07-04
2022 Jul 4
Ported to Clasp.
2020 Nov 15
For LaTeX, emitting to HTML shd be turned off between \documentclass &
\begin{document}, not from the very start!
Have \usepackage find & load its arg, but only if it's in cwd or
TEX2PAGEINPUTS.
find-tex-file gets optarg to skip kpathsea.
It also has TEX2PAGEINPUTS only shadow kpathsea, not displace it completely.
2020 Nov 14
bibtex & makeindex refuse to work if arg is given as absolute pathname.
Causes problem if .tex2page.hdir has abs pathname. Work around it.
Added LaTeX Companion 2/e to bibliog.
Def of \epsfbox in luatex needs changed:
check for \directlua not \pdfoutput;
\input miniltx, graphicx, not supp-pdf.
tex2page.lisp: Rewrite scm-output-verbaitm-comment's loop so Racket translation is correct.
The if-stack entries have three values now:
- #t if currently in the true branch of a running \if;
- #f if currently in the false branch of a running \if;
- 'skip if currently in a non-running \if (i.e., in the false branch of wider \if).
This avoids problems if even the minimal parsing of a skippable nested \if could cause error.
tgtermes.tex: Don't set math fonts -- the encoding doesn't match (e.g., \Gamma fails).
Don't make GitHub pages from docs/ directory; keeps repo sparer.
2020 May 06
Use macros {string-append, list->string, string->list,
string-length} in tex2page.lisp instead of {concatenate, length}.
Makes for less clumsy translation to Racket.
2020 Apr 14
tex2page.rkt: Simplify #! line: avoid -m; use (current-command-line-arguments)
in body of code instead.
2020 Mar 29
If LaTeX format can be determined (which it will before second run), do not render preamble
(stuff before \begin{document}).
2020 Jan 31
tex2page.lisp: Replace case with tags t/nil to cond to avoid problem translating to Racket.
do-cr can have *tabular-stack* when \\ is used outside an environment (as in \title).
2019 Nov 25
Cleaner def for system-with-visual so SBCL doesn't show unnecessary diagnostic.
./configure --dialect=sbcl should at least make $LISP unnecessary.
2019 Nov 22
Accept fancyvrb's \Verbatim[*], \DefineShortVerb.
Move loop return in do-verb-braced to tail-call position to prevent error in Racket translation.
2019 Jan 26
Ignore \set{main,sans,mono}font with args.
2018 Jul 3
Make index.tex processable by LuaTeX without recourse to external
MetaPost.
2018 Jun 29
Added \mplibcode ... \endmplibcode.
Default TeX program used by TeX2page (for making images) is
LuaTeX.
2018 Jun 28
color.sty won't define 'hsb' model for LuaTeX, which is a basis
for defining several new models in coloraug.tex. Added two
subsidiary files for coloraug.tex: colorlua.tex for LuaTeX, and
colorxe.tex for others (eg, XeTeX).
Move Lua portion of coloraug.tex ot colormodels.tex.
Allow index.tex to be processable by LuaTeX.
2018 Jun 14
Don't set _ catcode to 13 as it messes with loading of some
standard files. Instead let user optionally call
\allowunderscoreintext.
tgtermes.tex: font features separated by semicolon, not colon.
(embolden=1 doesn't seem to work.)
2017 Dec 22
Footnote counter shouldn't be 0'd for each chapter in single-page
mode.
2017 Dec 14
Properly qualify <img src=...> (aux file dir could be set).
2017 Dec 13
Put generated HTML doc in docs/ subdirectory.
2017 Dec 4
\bordermatrix = \pmatrix, for now.
Ignore \chapter etc.'s optional arg for now.
\hbox, \mbox can be followed by a single character token, i.e., not necessarily
a group.
2017 Dec 3
Accept \left. and \right. as null delimiters.
When finding \parindent (do-indent, do-plain-item, do-textindent), use
the-dimen, not find-dimen!
When \TZPsinglepage: (1) Embed basic CSS style within document instead of
generating CSS file. (2) Embed images as data URIs instead of pointing to
files. This allows for single-page HTMLs to be self-sufficient when emailing to
a Kindle.
do-end-equation: Make sure correct environment name is identified and matched.
$$: Allow for single $ to occur even when not nested instead braces. This is
because {tabular} allows this situation.
2017 Feb 7
Setting \TZPsinglepage and \TZPslides shouldn't be persistent in the aux file.
2017 Jan 29
Keep \write18's arg in one line to satisfy ECL's 'system'.
2017 Jan 28
Added color models 'hsl', 'Hsl', even though standard LaTeX packages don't have
them.
2017 Jan 27
'system' won't work to open visual editor in ECL, MKCL; use run-program
instead.
2017 Jan 26
Convert HSB, gray, and wave colors to HSL rather than RGB.
2017 Jan 25
Rewrote count/dimen/box/toks/stream code to use numbered registers (more
TeX-like). Defining names for these (\countdef, etc) allocates a new register.
2017 Jan 23
Added \lower, \raise. These expect a box, and signal error if box not found.
2017 Jan 22
do-para: Use output-port's spacing buffer to avoid most of the empty <p></p>'s.
2017 Jan 21
Add \wlog, which writes only to log file, not to console.
Like TeX, write current time on startup only to log file, not to console.
When outputting to HTML, use a buffered stream. Buffer stores only spaces,
which user can nix with \unskip.
2017 Jan 20
tex-def-pat-prim added to facilitate adding standard defs with parameters.
\loop, \iterate, \repeat added.
do-let inside false world should take care that both lhs and rhs are skipped
completely.
get-def-parameters (better name than get-def-arguments) is now a properly
tail-recursive loop.
Since get-ctl-seq doesn't read newline, it's now on primitive control sequences
to read past such newlines if necessary.
\colorbox takes optional model argument.
Use CSS for <sup> as otherwise numbered footnotes break leading. GIMP should be
all-uppercase.
2017 Jan 19
Consecutive \space, '\ ' shouldn't collapse: Use U+200B (zero-width space) to
this end.
Clean up ignorespaces: Four scenarios:
1. Eat space upto first newline (exclusive).
2. Eat upto first newline (inclusive).
3. Eat upto second newline (exclusive): indeed double it if second
newline encountered.
4. Eat all space.
Added flag \TZPlang (default 'en').
Make index.tex output satisfy validator.w3.org. Suggested by Paulo Ney de
Souza.
2017 Jan 16
Renamed aux files to jobname-Z-L.lisp and jobname-Z-A.lisp. (Previously these
were *.scm.)
2017 Jan 16
eval4tex.tex: Changed aux file name to jobname-Z-E.lisp (from
jobname.eval4tex), in keeping with TeX2page's other aux files. Made it loadable
in both CL and Scheme, so flag \TZPcommonlisp no longer needed.
Added \evalq: like \eval but doesn't insert into document. (q = quiet. Useful
for adding definitions. \eval that has nothing to insert has the same behavior,
but \evalq is slightly more efficient.)
2017 Jan 15
Rewrote catcodes to be more like TeX. They are now associated with texframes
(groups) and are closed by definitions, so a macro body is expanded with the
defining texframe's catcodes rather than the calling texframe's. In other
words, catcodes are lexically scoped.
Pseudo-characters :eof-object, *invisible-space* dropped. Use Lispy nil for the
former and trust CLiiScm to translate appropriately for Scheme. #\nul (catcode
9) is fine as invisible space; even TeX allows this.
2017 Jan 14
\global assignment shouldn't just add the new def to the global texframe but
also purge any existing def from local frames.
2017 Jan 9
\activettchar should read arg of form \<c> correctly.
Expand 0-ary defs even inside false world as they could contain a \fi that ends
the falseness.
(Re)allow \let's RHS to be math prim.
Support \cal (math font switch).
Clean up Texinfo translation a bit, but more needs to be done.
2017 Jan 7
get-ctl-seq shouldn't read spaces past one newline. Leave it to read-macro-args
to pick up such space. Have read-macro-args pick up this space even if macro
has no parameters.
2017 Jan 4
Allow \title to take its argument to next \par (like \beginsection). This
happens only if first character isn't lbrace.
2017 Jan 3
Avoid having to maintain tex2page.rkt in additino to tex2page.lisp by having
CLiiScm create former from latter.
In tex2page.lisp: ensure all loop returns are in the tail-call position of an
immediate subform of the loop. This is an easy enough rule to follow and the
payoff is efficient translation to Scheme.
2016 Dec 25
Added \settabs, \+ (\tabalign) (TeXbk, ch 22). Recognize “n \columns”
argument for \settabs, but not sample line.
2016 Dec 22
Cleaned up read-macro-args: It shouldn't match space with maximal sequence of
spaces; rather it should match undelimited parameter by ignoring spaces first.
(TeXbook, p. 204)
Added tex-let-general (internal use). More closely matches \let by allowing rhs
to be token. In particular, this fixes bug in \futurenonspacelet.
2016 Dec 19
Simplify installation process and instructions.
2016 Dec 18
Setting \TZPslides now uses Slidy to create a Web presentation.
2016 Dec 17
Added support for ManKai Common Lisp.
Added \pagecolor. Cleaned up color code.
2016 Dec 14
Recognize color models "cmy", "Gray", "hsb", "Hsb", "HSB", "wave" (xcolor.sty).
2016 Dec 12
Don't have TeX2page generate little subfiles for \eval. Previously these
subfiles were also generated by eval4tex, but it was possible for TeX2page and
TeX to have different sequences of subfiles (depending on \if). The previous
solution to the skew was to have the user explicitly mark TeX2page-only \eval's
with \htmlonly, or use \evalh. Now: just let TeX2page avoid subfiles
altogether. TeX continues to generate subfiles via jobname.eval4tex, and these
can continue to be processed by loading jobname.eval4tex in Scheme or Common
Lisp.
As a convenience, have TeX2page process jobname.eval4tex if it finds it.
This should make the confusing extra machinery of \htmlonly (on top of things
like \ifx\shipout) obsolete. \htmlonly was really only being used to avoid
skewing the \eval subfile sequence. It was already useless in preventing a \fi
inside a \rawhtml from messing things up. This is still a problem that should
be solved by writing \fi inside \rawhtml (should you ever need to!) in a
circuitous way, e.g., if it's in a string, use string-append.
2016 Dec 11
Escape occurrences of {",@,!} in OPmac's \ii{,d,s} when translating to
MakeIndex.
Recognize color model "HTML" (xcolor.sty).
2016 Dec 10
Added \llap, \indent, \oldstyle.
2016 Dec 9
\item, \itemitem: Use relative positioning instead of tables, which looks
'orrible on lynx.
2016 Dec 8
Added OPmac's \iid, manmac's \subsection.
2016 Dec 7
Added OPmac's \iis.
Added \begintts: like \begintt but SLaTeXes enclosed Scheme/Lisp code.
Added \proclaim.
\char`\ as visible space only works in cmtt. Define alternate visible space in
tgtermes.tex which uses a Unicode mononspace font.
Improve catcode manipulation, esp. the setting of catcode to 0. Allow multiple
simultaneous 0-catcode chars.
\begintt...\endtt like manmac. (Set \tthook if you want to make it really
manmac-like.)
2016 Dec 5
\inputcss sheets should be linked before \cssblock's so latter can
refer to any fonts loaded by the former.
Special-case \item(...) without losing plain's version.
\TZPcommonlisp can be set by user to require Scheme or CL version of TeX2page
for their document. Warning (but not error) if wrong version is used.
2016 Dec 4
Added tbdek.jpg to the doc.
2016 Dec 3
Reorg TZP boolean flag names so that their default values are 0. (\TZPmathtext,
\TZPcolophondisabletimestamp, \TZPcolophondisablecredit,
\TZPcolophondisableweblink, \TZPrightjustify.)
Added OPmac's \ii, \makeindex.
2016 Nov 28
Added OPmac's \cite, \rcite, \nocite, \bib, \usebibtex. OPmac shares the names
\cite and \nocite with LaTeX, but uses brackets instead of braces. Use
heuristic or the boolean flag \TZPopmac to disambiguate.
2016 Nov 23
tex2page.tex: \ulink.
tex2pagedeprecated.tex: LaTeX {itemize}, OPmac's \{beg,end}items, user-settable
\labelitem{i,ii,iii,iv}.
2016 Nov 17
\verbatiminput, \verbinput should scan TEXINPUTS.
2016 Nov 16
Added some shell scripts to help tex2page.lisp and tex2page not skew. User
doesn't need these.
2016 Nov 15
tex2page.tex: Added \pagewidth \{left,top,spine}margin. Redefined \sidemargin
to respect \pagewidth.
2016 Nov 14
Added OPmac's \tit.
Have \sec translate to OPmac's section only outside math mode; inside math
mode, it's trig sec.
Add the formulas in TeXbook, 18.2. (Math image gets triggered when math mode
doesn't find a TeX2page definition for a ctrl seq. This prevents it.)
2016 Nov 13
Added OPmac's \setcmykcolor.
Translate OPmac list \style arg to appropriate CSS list-style-type.
2016 Nov 12
OPmac's \style (for \{beg,end}items). Broadly distinguish between just ordered
and unordered for now.
\TZPhsize.
2016 Nov 11
Accept \XeTeXpdffile, \XeTeXpicfile. Preset count \shellescape to 1.
\obeylines's <p class=nopadding> should have margin-bottom 0.
tex2page.tex: Added a flavor of \activettchar if not already available via OPmac.
2016 Nov 10
Added tgtermes.tex (sets up TeX Gyre Termes as text font). Use XeTeX
for document index.tex, which now has nice Unicode quotes & dashes.
tex2page.tex: add a definition for \epsfbox for XeTeX, as relying on epsf.tex
produces off-kilter images.
2016 Nov 8
Added OPmac's \{beg,end}items, *.
2016 Nov 7
Added OPmac's \chap, \sec, \secc, \maketoc, \nonum, \notoc, \verbinput.
Use *bool-var-p* (instead of *bool-var?*) in Scheme version so it matches
CL version. (Prevents maintenance hassle.)
2016 Nov 6
Added OPmac's \ulink, \{beg,end}tt, \activettchar.
Ignore \input opmac[.tex].
2016 Feb 16
All doc-internal hrefs get class=hrefinternal.
All internal anchor ids start with ‘TAG:__tex2page_’.
2015 Dec 1
Added \newcounter, \stepcounter, \arabic, and a placeholder for
\marginnote. Report by Stefan Husmann.
2015 Nov 19
tex2page.tex: Flag \TZPurlhdebugmode. Use it to cause \urlh to
print its URL (for debugging). Feature request by Michael Matson.
Use (hex) numbers rather than names for HTML entities. Suggested
by Michael Matson.
Nested \enquote* shouldn't act as toggle. Reported by Michael Matson.
2015 Jul 1
Process amstex.tex without error. Reported by Wolfgang Tintemann.
Added \lowercase (cf. \uppercase), \lccode, \uccode. Recognize
quicknums \@ne \tw@ \thr@@ \sixt@@n \@cclv \@cclvi \@m \@M \@MM.
Corrected get-real to skip empty strings (useful in
get-scaled-points)
2015 Jun 23
Process webmac.tex without error. Reported by @razvanm. For this:
Read \magstep<number> as a number. Ignore \fontdimen and \setbox
cleanly. Recognize \chardef.
2015 May 26
tex2page.tex: \inputepsf makes an \epsfbox that doesn't error if
the eps file doesn't exist.
2015 Mar 1
Be better at ignoring new-style \font commands.
In no-ligature mode, ` and ' should print as themselves not as
‘ and ’.
2015 Jan 12
Setting flag \TZPsinglepage forces creation of a single output
HTML file. Suggested by Michael Matson.
2014 Dec 13
Added basic support for \enquote (LaTeX's csquotes package).
Suggested by Michael Matson.
2014 Dec 7
Better \{i,j}math, arrows. latexsym chars (the shaded symbols in
sec 3.3 of the latex manual).
2014 Dec 3
Use standard file:line error format in addition to default TeX
efm. This allows, e.g., use of quickfix when tex2page is called
from vim.
2014 Dec 1
\left, \right can take |.
Don't load amsmath for math snippets as it breaks \matrix{...}
(monitor if not loading it breaks something else).
\frac{...}{...} made similar to ...\over.... Suggested by Paulo
Ney de Souza.
{array}: like {tabular} but in math mode.
Use Unicode for \dots, \cdots, \vdots, \ddots.
Added \leqslant, \geqslant. Suggested by Paulo Ney de Souza.
Nov 30, 2014
Have \mathbb, \mathcal, \mathfrak exploit Unicode. Issue brought
up by Paulo Ney de Souza.
Sep 23, 2014
Use HTML5 doctype and boilerplate
Aug 21, 2014
Put tex2page on github
Jun 19, 2014
For SBCL, have both straight and compiled code use *posix-argv*
Feb 8, 2013
\nocite citations, if not supplied, should trigger unresolved
message.
Jan 25, 2013
Added bvfonts.tex, for the Arkandis Baskervald font.
May 4, 2012
Setting flag \TZPredirect now allows reader to explicitly click
target URL if browser (viz., IE) fails to automatically redirect.
Flag \TZPredirectseconds specifies seconds until automatic redirect.
Internal change: Use proc name ctl-seq-no-arg-expand-once instead
of the inscrutable find-def-0arg (which doesn't have the same
signature as find-def anyway).
Apr 27, 2012
Added config for Allegro Common Lisp.
Apr 26, 2012
configure: no need to modify source to change how argument file
is determined when creating compiled executable for SBCL. Embed
the difference within source itself via eval-when.
Apr 25, 2012
Have the version string for CL TeX2page be ascii, and ergo, the
entire tex2page.lisp file be ascii, so it doesn't cause error
when loading in an environment where the user did not or could
not set LANG appropriately.
Apr 21, 2012
s/MzScheme/Racket/g
dialects/chicken-tex2page: s/getenv/get-environment-variable.
Rpt by Timothy Beyer.
configure suggests SBCL if available.
Nov 26, 2011
No need to change font-family when going italic inside monospace.
Added a tex2page.css for font experimentation. (Can't use
@import inside \cssblock within document source because @import
has to precede all other css within a css file.)
NB: @font-face with ../-style urls works in Chrome but not in
Firefox.
NB: Non-breaking hyphen in monospace (Ubuntu Mono, Inconsolata,
Droid Sans Mono, maybe all monospace fonts) works in Firefox but
not in Chrome. I could use regular hyphens thruout I guess, but
hopefully Chrome will improve.
Aug 28, 2010
Guile config updated (works with ver 1.8.7).
\hyperref[label]{text} from hyperref.sty (Volkan Yazici). LaTeX2HTML's
\hyperref should be probably be retired, as it conflicts with another instance
of \hyperref from hyperref.sty.
Dec 20, 2009
\TZPtextext. Set to 0 to disable TeX's pseudoligatures for quotes and
dashes. Useful if using XeTeX with a Unicode font without mapping=tex-text.
Oct 10, 2009
initialize-globals should be called before first call to
actual-tex-filename, because latter relies on *global-texframe* for
reading hdir. Fix from Mike Sperber.
Aug 28, 2009
Put all required globalization inside a single procedure
initialize-globals, so tex2page-string can be called without error on
small strings by users (such as Shriram Krishnamurthi).
June 6, 2009
Use better definition for system for SBCL. (Nikodemus Siivola)
May 13, 2009
configure: Make an executable fasl for SBCL.
May 7, 2009
\TZPredirect
May 5, 2009
Make tex2page.tex leaner. Shunt unnecessary stuff into
tex2pagedeprecated.tex.
Apr 29, 2009
Delay determination of *latex-prog-name* and *tex-output-format* until
first use (which is inside call-tex), so user has chance to reset
*tex-prog-name* -- either through \eval or by setting \TZPtexprogname.
Apr 24, 2009
Use flag \TZPslides to trigger slides. t2pslides.tex: Make it work for
CL too. Introduce a flag \TZPcommonlisp as a conditional when
calling CL and Scheme code.
Apr 22, 2009
configure script bugs fixed: (rpt by Taylor Venable)
Apr 21, 2009
Improve text translations of math, viz. matrices, \over, \left/\right.
Apr 16, 2009
Bring config up-to-date for Petite (and presumably full) Chez Scheme.
Apr 14, 2009
\i \j \l \L (\j = #x237 doesn't render on lynx yet.)
\t.
Apr 13, 2009
Use combining diacritical marks for \" \^ etc.
\, \> \; \! \thinspace \negthinspace (dimens from TeXbook, p 167)
Apr 12, 2009
\textindent
Apr 11, 2009
Use #x2388 (a character that somewhat signals "at work" and also renders
on lynx) to flag missing pieces in the output HTML (xrefs, toc, bib,
index) that will presumably be picked up by running TeX2page again.
Translate \hskip properly, for both +ve and -ve args, by moving a zwnj
inside a span. (Previously was outputting a integral number of nbsp's
for +ve arg.) But text-based browsers (lynx) can't see the effect.
Make \kern == \hskip. Should do \lower and \raise too: Later.
When outputting content within \htmlheadonly to aux file, sub #\space
for #\newline. This is because (most?) Schemes write out a newline
within a string as \n, which CL reads as n. (Again: This wouldn't be a
problem if only the Scheme or the CL version of TeX2page is used on any
given doc, but see entry from Apr 10, 2009.)
Code displays should use horiz scrollbar when wider than (<body>'s)
max-width.
Bring config up-to-date for Chicken Scheme.
Visible space is now rendered as a lowered counterbore (#x2334, looks
like sq cup but with shorter sides), as in TeX. (Was red middot.)
Consolidate translation of TeX logos: Use 'position: relative' when
lowering or raising, so HTML interlineskip is respected.
Apr 10, 2009
Added support for Armed Bear Common Lisp.
Last-modification-time is written to aux file along with epoch year
(typically 1970 for Scheme and always 1900 for CL), so Scheme and CL can
use their own time procedures without offsets, and only need to add/sub
70 years when reading an aux file created by the other language (which
nobody would, I guess, except me, as I test the same document with
different versions of TeX2page). Since last-mod-time is read from the
aux file only once during each run, doing the calculation here is more
efficient than contaminating TeX2page's every time calculation with it.
Bring config up-to-date for Gauche and Gambit.
Use fontch.tex's names such as \TM \degree. But see also xunicode.sty.
Translate manmac.tex's \bull as #x25fe.
Apr 9, 2009
In-text verbatim should not line-break on hyphen: so use #x2011 there
instead of the usual #x2d.
Translate \imath and \jmath as italicized #x131 and #x237 for now, as
the correct translations #x1d6a4 and #x1d6a5 are not palatable to
browsers yet.
Apr 8, 2009
When setting <p>'s CSS property text-indent from \parindent, use points
(= pixels) instead of ems, so that the <td> width (which can only be
specified in pixels) used by plain TeX's \item can perfectly match
\parindent.
scmxlate-generated CL version of tex2page also puts everything in
package "TEX2PAGE".
Apr 7, 2009
plain's \item and \itemitem should not indent first line of paragraph
(beyond what the whole paragraph is already indented).
Add \beginchapter for convenience. The first \beginchapter causes an
HTML pagebreak only if the doc uses a titling macro. Every subsequent
\beginchapter causes an HTML pagebreak. (No such implicit pagebreaks in
print.)
tex2page.lisp: Package-ize it. Add an appendix in the manual describing
the CL version of tex2page.
More Unicode, using charts from
http://www.unicode.org/charts/index.html .
TeXbook, Appendix F, sec 4: \hbar \imath (?) \jmath (?) \ell (looped)
\top \bot \| (better) \flat \natural \sharp (more musical) \diamondsuit
(white) \heartsuit (white)
App F6: \coprod \oint \bigcap \bigcup \bigsqcup \bigvee \bigwedge
\bigodot \bigotimes \bigoplus \biguplus
App F7: \mp \setminus (better) \star \diamond \uplus \sqcap \sqcup
\triangleleft \triangleright \wr \oslash \odot \amalg
App F8: \prec \preceq \sqsubseteq \vdash \smile \frown \succ \succeq \sqsupseteq \dashv \mid
(better) \parallel (better) \asymp \bowtie \propto \models \doteq
App F10: \mapsto \hookleftarrow \leftharpoonup \leftharpoondown
\rightleftharpoons \longmapsto \hookrightarrow \rightharpoonup
\rightharpoondown \updownarrow \Updownarrow \nearrow \searrow \swarrow
\nwarrow
App F14: \owns
Variegated \not
Apr 6, 2009
Better Unicode translations for \varphi \ll \gg \simeq \circ
Apr 5, 2009
At long last, TeX2page once again works out of the box in PLT Scheme,
viz. mzscheme 4.1.5 [3m]. Thanks to Sam Tobin-Hochstadt for patiently
explaining the new PLT command-line in person.
Apr 3, 2009
Add user-settable *tex-prog-name* (can be "tex", "etex", "pdftex",
"pdfetex", "xetex", "luatex"). From this, the LaTeX program name can be
deduced, and we can also avoid a call to dvips (for image aux files) if
the output is known to be PDF.
Apr 2, 2009
Introduce a variable *outer-p* that is true only when a macro is called
at "top level". This is useful for \eval because its behavior at the
TeX top level is different from its behavior inside a macro body, and we
need to eventually duplicate this behavior in TeX2page. (This is not
quite TeX's \outer, which causes a macro to bomb if used anywhere but
the top level.)
In TeX, when \eval is called inside a macro body, it cannot make its
contents verbatim, and so must use \controlsequences that convert to
special characters.
Apr 1, 2009
If no blank line after code displays, implicitly \noindent.
When calling kpsewhich use the option-ender "--", as the options given
to tex2page (--help, --version) are not intended as options for
kpsewhich.
Default stylesheet: Use a light gray background for <pre>. Highlight
links in yellow when hovering over them.
Prefer TEX2PAGEINPUTS as environment variable for path for TeX2page over
TIIPINPUTS. (Didn't realize env vars *could* contain digits!)
Mar 29, 2009
Fork off a CL-specific version, tex2page.lisp, whose version number is
suffixed with λ².
Add lmfonts.tex to allow UTF-8 in source docs when XeTeX is used.
Mar 21, 2009
Making {lstlisting} like {verbatim} for now. Ignore \lstset.
When math fragments are LaTeXed, use package amsmath.
\providecommand should be given proper defn instead of a non-robust one
when processing {thebibliography}. Was causing error if sensitive
material found in optional argument. (rpt by Volkan Yazici)
Mar 20, 2009
Removed some uses of mutable pairs in preparation for port to PLT 4.
Mar 19, 2009
Added defn for \ifhmode to avoid "Extra \fi" error. (rpt by Volkan Yazici)
Also improved 'system' translation for SBCL. Moved defn of
tex-string->html-string ahead of number->footnote-symbol because latter
uses it as an argument, and scmxlate doesn't know to put #' for a
forward-referenced function name.
Added support for Clozure CL.
Mar 2, 2008
tex2page.tex: SLaTeX-compatible definitions weren't being
loaded in LaTeX. (Leslie Polzer)
Aug 3, 2007
Every generated HTML page (not just the first) should have
robots content=index. (Eli Barzilay)
Jun 9, 2007
Separate chapter ToC entries (if subentries present) by
medskip only if using TeX-like layout. Otherwise just use
regular <p> as that is plenty wide for HTML.
May 22, 2007
Mike Sperber: Keep \htmlonly \endhtmlonly \imgdef in the
always-loaded area of tex2page.tex
Feb 21, 2007
t2pslides.tex: Make right mouse click go to previous slide.
Feb 17, 2007
Allow \includegraphics to pick up .jpeg as it does .jpg. (The TeX source
must say \DeclareGraphicsRule{.jpeg}{jpg}{*}{}. tex2page currently will
skip \DeclareGraphicsRule.)
Jun 23, 2006
Use just one flag \TZPmathimage (instead of one for
displayed and another for in-text math). (Since TeX2page
already uses ascii for in-text math whenever it can, having
two flags is excessive.)
\cong \ni \propto \in \notin \approx
Math displays use <div class=mathdisplay>, whose top and
bottom margin values are copied from
\{above,below}displayskip when using TeX-like layout.
TeX2page boolean flags treat 0, n, N, f, F as false and
everything else as true.
Jun 21, 2006
Translate ' and '' as prime and double-prime in math mode.
Add a definition for \textdegree (for non-LaTeX) in
tex2page.tex.
Jun 18, 2006
Even if \TZPtextmathimage is set, emit in-text math as text (i.e.,
non-image) if it can be deduced that it is simple enough.
Jun 16, 2006
An empty \halign line (i.e., simply "\cr") should produce
some vertical space. To this end, insert a trailing
in an \halign line that has no &.
May 27, 2006
do-write-to-toc-aux: set up \TIIPcurrentnodename and \@currentlabel so
subsequent \label can DTRT.
HTML-only macro \TIIPanchor: Sets up an anchor so a subsequent \label can
resolve to it.
May 26, 2006
\futurenonspacelet
May 23, 2006
At \bye, store \headline and \footline in jobname-Z-A.scm,
so the first page (in particular the header of the first
page) can get benefit of them in the next run.
May 22, 2006
If text immediately follows $$display math$$ with no blank
lines in between, it should not be indented.
TeX-like layout (happens when \let\TZPtexlayout=1) also
involves headlines and footlines being somewhat TeX-like,
i.e., simple page numbers, but using \TIIPfolio for \folio.
HTML-only command \TIIPfolio is used like \folio, but typesets twin links
to the adjacent pages.