[latexrefman-commits] [SCM] latexrefman updated: r681 - trunk

karl at gnu.org.ua karl at gnu.org.ua
Sun Jul 8 01:01:19 CEST 2018


Author: karl
Date: 2018-07-08 02:01:19 +0300 (Sun, 08 Jul 2018)
New Revision: 681

Modified:
   trunk/Makefile
   trunk/latex2e.css
   trunk/latex2e.texi
Log:
* Makefile: attempt (and fail) to use About button instead of footer
for our home page link.
(htmlopts): factor out options.
(distname,htmlsplit): new variables, plus zip.
(dist,htmlsplit): use vars instead of the long directory names.

* latex2e.css: comment.
(BODY): add margins, max-width.
(hr): remove because I'm a curmudgeon.
(referencetitle): remove because where was it used?

* latex2e.texi: typo.


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2018-07-05 16:55:30 UTC (rev 680)
+++ trunk/Makefile	2018-07-07 23:01:19 UTC (rev 681)
@@ -24,13 +24,25 @@
 #
 makeinfo = makeinfo
 texi2docbook = $(makeinfo) --docbook
-texi2html = $(makeinfo) --html --no-split --css-include=latex2e.css $(texi2html_top)
+texi2html = $(makeinfo) --no-split $(htmlopts)
 texi2info = $(makeinfo) --no-split
 texi2txt = $(makeinfo) --plaintext --no-split
 texi2xml = $(makeinfo) --xml
 #
-# Go somewhere useful from Top.
-texi2html_top = -c TOP_NODE_UP_URL=http://tug.org/texinfohtml/
+htmlopts = --html --css-include=latex2e.css $(t2html_top) $(t2html_home)
+#
+# Go somewhere useful from Top:
+t2html_top = -c TOP_NODE_UP_URL=http://tug.org/texinfohtml/
+#
+# Use an About link:
+t2html_home = -c DO_ABOUT=1 -c PRE_ABOUT="<a\
+href='https://puszcza.gnu.org.ua/software/latexrefman/'><i>Unofficial\
+LaTeX2e reference manual</i></a>"
+#
+## Put a link in the footer:
+#t2html_home = -c PRE_BODY_CLOSE="<div class='referenceinfo'>\
+#<a href='https://puszcza.gnu.org.ua/software/latexrefman/'>\
+#<i>Unofficial LaTeX2e reference manual</i></a></div>"
 
 %.pdf: %.texi
 	$(texi2pdf) $<
@@ -83,31 +95,34 @@
 txt_files = ChangeLog Makefile NEWS README aspell.en.pws ltx-help.el 
 figure_files = list.eps list.pdf list.png list.txt
 figure_source_files = asy/list.asy
-dist = latex2e-help-texinfo.zip
-# JH
-htmlsplit = latex2e-help-texinfo-tree.zip
+distname = latex2e-help-texinfo
+distzip = $(distname).zip
 #
+htmlsplit = $(distname)-tree
+htmlsplitzip = $(htmlsplit).zip
+#
 dist: en es
-	mkdir latex2e-help-texinfo && cd latex2e-help-texinfo && ln -s ../* .	
-	mkdir latex2e-help-texinfo/spanish && cd latex2e-help-texinfo/spanish && ln -s ../../* .
-	rm -f $(dist)
-	zip -q $(dist) \
-$(addprefix latex2e-help-texinfo/, $(txt_files) \
-                          latex2e.texi common.texi $(en_mi_output) latex2e.pdf) \
-$(addprefix latex2e-help-texinfo/spanish/,  $(es_mi_output) latex2e-es.pdf) \
-$(addprefix latex2e-help-texinfo/latex2e-figures/,  $(figure_files)) \
-$(addprefix latex2e-help-texinfo/graphics/,  README $(figure_source_files))
-	rm -rf latex2e-help-texinfo
-	@ls -l $(dist); unzip -l $(dist)
+	rm -rf $(distname)
+	mkdir $(distname) && cd $(distname) && ln -s ../* .
+	mkdir $(distname)/spanish && cd $(distname)/spanish && ln -s ../../* .
+	rm -f $(distzip)
+	zip -q $(distzip) \
+$(addprefix $(distname)/, $(txt_files) \
+                      latex2e.texi common.texi $(en_mi_output) latex2e.pdf) \
+$(addprefix $(distname)/spanish/,  $(es_mi_output) latex2e-es.pdf) \
+$(addprefix $(distname)/latex2e-figures/,  $(figure_files)) \
+$(addprefix $(distname)/graphics/,  README $(figure_source_files))
+	rm -rf $(distname)
+	@ls -l $(distzip); unzip -l $(distzip)
 
 htmlsplit: en
-	mkdir latex2e-help-texinfo-tree && cd latex2e-help-texinfo-tree && ln -s ../* .	
-	rm -f $(htmlsplit)
-	cd latex2e-help-texinfo-tree && $(makeinfo) --html --css-include=latex2e.css --set-customization-variable PRE_BODY_CLOSE="<div class='referenceinfo'><a href='http://tug.org/texinfohtml/latex2e.html'><i>Unofficial LaTeX2e reference manual</i></a> 2018-July-05</div>" $(texi2html_top) latex2e.texi
-	cd latex2e-help-texinfo-tree && zip -q $(htmlsplit) -r latex2e
-	cd latex2e-help-texinfo-tree && cp $(htmlsplit) ..
-	rm -rf latex2e-help-texinfo-tree
-	@ls -l $(htmlsplit); unzip -l $(htmlsplit)
+	rm -rf $(htmlsplit)
+	mkdir $(htmlsplit) && cd $(htmlsplit) && ln -s ../* .	
+	rm -f $(htmlsplitzip)
+	cd $(htmlsplit) && $(makeinfo) $(htmlopts) latex2e.texi
+	cd $(htmlsplit) && zip -q ../$(htmlsplitzip) -r latex2e
+#	rm -rf $(htmlsplit)
+#	@ls -l $(htmlsplitzip); unzip -l $(htmlsplitzip)
 
 # A hacky spell check target.
 # Remove \commandnames to reduce exception list, but not {args} or

Modified: trunk/latex2e.css
===================================================================
--- trunk/latex2e.css	2018-07-05 16:55:30 UTC (rev 680)
+++ trunk/latex2e.css	2018-07-07 23:01:19 UTC (rev 681)
@@ -1,18 +1,26 @@
-code {font-style: normal; font-family: monospace}
+/* $Id$
+   Minor css for latexrefman. Public domain.
+   Originally written by Jim Hefferon and Karl Berry, 2018. */
 
-.header {font-size: small}
-h3 {color: #007849}
-a:link {color: #0375B4}
-a:visited {color: #004165}
-hr {
-    border: 0;
-    height: 1px;
-    background: #333;
-    background-image: linear-gradient(to right, #ccc, #333, #ccc);
+BODY {
+  margin-top: 1em;
+  margin-left: 1em; /* auto results in two-digit <ol> lost off left */
+  margin-right: 1em;
+  margin-bottom: 1em;
+  /* the idea is to use the whole window, unless it is ridiculously
+     wide, probably with too-small fonts, too.  */
+  max-width: 64em;
 }
-div.referencetitle {font-size: large;
-		   text-align: left;
-		   font-weight: bold}
-div.referenceinfo {font-size: small;
-		   text-align: right;
-		   display:block;margin-top:-30px;line-height:0px;}
+
+/* Because we want @math{... @code ...} to be upright, not slanted,
+   and Texinfo won't fix it. */
+code {font-style:normal; font-family:monospace; }
+
+/* Make the navigation header less obtrusive. */
+.header {font-size:small; }
+
+/* A little bit of color for fun. */
+h3 {color:#007849; }
+
+/* We put a link to our own home page at the bottom. */
+div.referenceinfo {font-size:small; text-align:right;}


Property changes on: trunk/latex2e.css
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property
Modified: trunk/latex2e.texi
===================================================================
--- trunk/latex2e.texi	2018-07-05 16:55:30 UTC (rev 680)
+++ trunk/latex2e.texi	2018-07-07 23:01:19 UTC (rev 681)
@@ -18586,8 +18586,8 @@
 @end example
 
 @noindent
-The simplest thing is to enter @code{<Contol>} and @samp{d} (holding
-them down at the same time), and just fix the command line.
+The simplest thing is to enter @code{<Control>} and @samp{d} (holding
+them down at the same time), and then retype the correct command line.
 
 
 @node Document templates



More information about the latexrefman-commits mailing list