From abfe34304d7abe8f7549e3530209a83853aa9cc6 Mon Sep 17 00:00:00 2001 From: "Jiri (George) Lebl" Date: Wed, 10 Jun 2020 17:10:34 -0500 Subject: [PATCH] Fixes for HTML conversion, update README, move changes*html to web --- README.md | 4 ++++ changes-draft.html | 18 ------------------ changes2-draft.html | 19 ------------------- convert-to-mbx.pl | 8 ++++---- realanal-html.xsl | 13 +++++++++---- 5 files changed, 17 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index d29bdcd..f753c1c 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ Volume I and II are both in this directory * realanal2.tex is Volume II * The files above are just the "driver files", the actual contents are in the files ch-???.tex * realanal.tex must be complied first as realanal2.tex uses the realanal.aux file +* The file realanal12.tex does both volumes together, currently that is only used + for the HTML conversion Notes on figures: @@ -34,6 +36,8 @@ On the scripts: * publish.sh compiles the volume I file to pdf * publish2.sh compiles the volume II file to pdf * resizetocrownquatro.sh resize a PDF to crown quatro size using ghostscript +* convert-to-mbx.sh (runs convert-to-mbx.pl) does the conversion to HTML through + PreTeXt, this is the only place that realanal12.tex is currently used. *Note:* The tex sources require a very recent LaTeX. If your latex does not have a recent enough ocgx2 package, you can simply comment out that line in diff --git a/changes-draft.html b/changes-draft.html index d2e9056..0113bb2 100644 --- a/changes-draft.html +++ b/changes-draft.html @@ -1,19 +1 @@ This file is a draft of the new changes for http://www.jirka.org/ra/changes.html - - -

- -

diff --git a/changes2-draft.html b/changes2-draft.html index 771c32a..c8ee3f2 100644 --- a/changes2-draft.html +++ b/changes2-draft.html @@ -1,20 +1 @@ This file is a draft of the new changes for http://www.jirka.org/ra/changes2.html - -

- -

diff --git a/convert-to-mbx.pl b/convert-to-mbx.pl index 0ccef34..ca676b9 100755 --- a/convert-to-mbx.pl +++ b/convert-to-mbx.pl @@ -811,13 +811,13 @@ sub read_paragraph { my $theid = modify_id($1); open_paragraph_if_not_open (); print "(hyperref $theid $name)\n"; - print $out "$name"; + print $out "$name"; } elsif ($para =~ s/^\\hyperlink\{(.*?)\}\{(.*?)\}//) { my $name = do_line_subs($2); my $theid = modify_id($1); open_paragraph_if_not_open (); print "(hyperlink $theid $name)\n"; - print $out "$name"; + print $out "$name"; } elsif ($para =~ s/^\\emph\{//) { print "(em start)\n"; open_paragraph_if_not_open(); @@ -1211,7 +1211,7 @@ sub read_paragraph { $figure_num = $figure_num+1; $the_num = get_figure_number (); - print $out "
\n"; + print $out "
\n"; print $out " $caption\n"; do { @@ -1235,7 +1235,7 @@ sub read_paragraph { $num_errors++; } } while (not $figure eq ""); - print $out "
\n"; + print $out "
\n"; } else { print "\n\n\nHUH?\n\n\nNo end figure!\n\n$para\n\n"; $num_errors++; diff --git a/realanal-html.xsl b/realanal-html.xsl index c3ee8b2..de3237c 100644 --- a/realanal-html.xsl +++ b/realanal-html.xsl @@ -7,13 +7,13 @@ - + - + @@ -25,7 +25,7 @@ - + @@ -59,11 +59,16 @@ - +
+ + +
+
+