c419aa4
diff -up texinfo-6.5/doc/texinfo.tex.old texinfo-6.5/doc/texinfo.tex
c419aa4
--- texinfo-6.5/doc/texinfo.tex.old	2017-08-27 05:21:32.000000000 -0400
c419aa4
+++ texinfo-6.5/doc/texinfo.tex	2018-03-10 08:40:29.000000000 -0500
c419aa4
@@ -3,11 +3,11 @@
c419aa4
 % Load plain if necessary, i.e., if running under initex.
c419aa4
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
c419aa4
 %
c419aa4
-\def\texinfoversion{2017-08-23.19}
c419aa4
+\def\texinfoversion{2018-03-10.14}
c419aa4
 %
c419aa4
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
c419aa4
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
c419aa4
-% 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
c419aa4
+% 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
c419aa4
 % Free Software Foundation, Inc.
c419aa4
 %
c419aa4
 % This texinfo.tex file is free software: you can redistribute it and/or
c419aa4
@@ -21,7 +21,7 @@
c419aa4
 % General Public License for more details.
c419aa4
 %
c419aa4
 % You should have received a copy of the GNU General Public License
c419aa4
-% along with this program.  If not, see <http://www.gnu.org/licenses/>.
c419aa4
+% along with this program.  If not, see <https://www.gnu.org/licenses/>.
c419aa4
 %
c419aa4
 % As a special exception, when this file is read by TeX when processing
c419aa4
 % a Texinfo source document, you may use the result without
c419aa4
@@ -30,9 +30,9 @@
c419aa4
 %
c419aa4
 % Please try the latest version of texinfo.tex before submitting bug
c419aa4
 % reports; you can get the latest version from:
c419aa4
-%   http://ftp.gnu.org/gnu/texinfo/ (the Texinfo release area), or
c419aa4
-%   http://ftpmirror.gnu.org/texinfo/ (same, via a mirror), or
c419aa4
-%   http://www.gnu.org/software/texinfo/ (the Texinfo home page)
c419aa4
+%   https://ftp.gnu.org/gnu/texinfo/ (the Texinfo release area), or
c419aa4
+%   https://ftpmirror.gnu.org/texinfo/ (same, via a mirror), or
c419aa4
+%   https://www.gnu.org/software/texinfo/ (the Texinfo home page)
c419aa4
 % The texinfo.tex in any given distribution could well be out
c419aa4
 % of date, so if that's what you're using, please check.
c419aa4
 %
c419aa4
@@ -56,7 +56,7 @@
c419aa4
 % extent.  You can get the existing language-specific files from the
c419aa4
 % full Texinfo distribution.
c419aa4
 %
c419aa4
-% The GNU Texinfo home page is http://www.gnu.org/software/texinfo.
c419aa4
+% The GNU Texinfo home page is https://www.gnu.org/software/texinfo.
c419aa4
 
c419aa4
 
c419aa4
 \message{Loading texinfo [version \texinfoversion]:}
c419aa4
@@ -2235,6 +2235,20 @@ end
c419aa4
 \font\smallersy=cmsy8
c419aa4
 \def\smallerecsize{0800}
c419aa4
 
c419aa4
+% Fonts for math mode superscripts (7pt).
c419aa4
+\def\sevennominalsize{7pt}
c419aa4
+\setfont\sevenrm\rmshape{7}{1000}{OT1}
c419aa4
+\setfont\seventt\ttshape{10}{700}{OT1TT}
c419aa4
+\setfont\sevenbf\bfshape{10}{700}{OT1}
c419aa4
+\setfont\sevenit\itshape{7}{1000}{OT1IT}
c419aa4
+\setfont\sevensl\slshape{10}{700}{OT1}
c419aa4
+\setfont\sevensf\sfshape{10}{700}{OT1}
c419aa4
+\setfont\sevensc\scshape{10}{700}{OT1}
c419aa4
+\setfont\seventtsl\ttslshape{10}{700}{OT1TT}
c419aa4
+\font\seveni=cmmi7
c419aa4
+\font\sevensy=cmsy7
c419aa4
+\def\sevenecsize{0700}
c419aa4
+
c419aa4
 % Fonts for title page (20.4pt):
c419aa4
 \def\titlenominalsize{20pt}
c419aa4
 \setfont\titlerm\rmbshape{12}{\magstep3}{OT1}
c419aa4
@@ -2369,6 +2383,20 @@ end
c419aa4
 \font\smallersy=cmsy8
c419aa4
 \def\smallerecsize{0800}
c419aa4
 
c419aa4
+% Fonts for math mode superscripts (7pt).
c419aa4
+\def\sevennominalsize{7pt}
c419aa4
+\setfont\sevenrm\rmshape{7}{1000}{OT1}
c419aa4
+\setfont\seventt\ttshape{10}{700}{OT1TT}
c419aa4
+\setfont\sevenbf\bfshape{10}{700}{OT1}
c419aa4
+\setfont\sevenit\itshape{7}{1000}{OT1IT}
c419aa4
+\setfont\sevensl\slshape{10}{700}{OT1}
c419aa4
+\setfont\sevensf\sfshape{10}{700}{OT1}
c419aa4
+\setfont\sevensc\scshape{10}{700}{OT1}
c419aa4
+\setfont\seventtsl\ttslshape{10}{700}{OT1TT}
c419aa4
+\font\seveni=cmmi7
c419aa4
+\font\sevensy=cmsy7
c419aa4
+\def\sevenecsize{0700}
c419aa4
+
c419aa4
 % Fonts for title page (20.4pt):
c419aa4
 \def\titlenominalsize{20pt}
c419aa4
 \setfont\titlerm\rmbshape{12}{\magstep3}{OT1}
c419aa4
@@ -2503,13 +2531,20 @@ end
c419aa4
 
c419aa4
 
c419aa4
 % In order for the font changes to affect most math symbols and letters,
c419aa4
-% we have to define the \textfont of the standard families.  We don't
c419aa4
-% bother to reset \scriptfont and \scriptscriptfont; awaiting user need.
c419aa4
+% we have to define the \textfont of the standard families.
c419aa4
+% We don't bother to reset \scriptscriptfont; awaiting user need.
c419aa4
 %
c419aa4
 \def\resetmathfonts{%
c419aa4
   \textfont0=\rmfont \textfont1=\ifont \textfont2=\syfont
c419aa4
   \textfont\itfam=\itfont \textfont\slfam=\slfont \textfont\bffam=\bffont
c419aa4
   \textfont\ttfam=\ttfont \textfont\sffam=\sffont
c419aa4
+  %
c419aa4
+  % Fonts for superscript.  Note that the 7pt fonts are used regardless
c419aa4
+  % of the current font size.
c419aa4
+  \scriptfont0=\sevenrm \scriptfont1=\seveni \scriptfont2=\sevensy
c419aa4
+  \scriptfont\itfam=\sevenit \scriptfont\slfam=\sevensl
c419aa4
+  \scriptfont\bffam=\sevenbf \scriptfont\ttfam=\seventt
c419aa4
+  \scriptfont\sffam=\sevensf
c419aa4
 }
c419aa4
 
c419aa4
 %
c419aa4
@@ -2519,6 +2554,9 @@ end
c419aa4
 % to also set the current \fam for math mode.  Our \STYLE (e.g., \rm)
c419aa4
 % commands hardwire \STYLEfont to set the current font.
c419aa4
 %
c419aa4
+% The fonts used for \ifont are for "math italics"  (\itfont is for italics
c419aa4
+% in regular text).  \syfont is also used in math mode only.
c419aa4
+%
c419aa4
 % Each font-changing command also sets the names \lsize (one size lower)
c419aa4
 % and \lllsize (three sizes lower).  These relative commands are used
c419aa4
 % in, e.g., the LaTeX logo and acronyms.
c419aa4
@@ -2619,26 +2657,11 @@ end
c419aa4
 % Markup style infrastructure.  \defmarkupstylesetup\INITMACRO will
c419aa4
 % define and register \INITMACRO to be called on markup style changes.
c419aa4
 % \INITMACRO can check \currentmarkupstyle for the innermost
c419aa4
-% style and the set of \ifmarkupSTYLE switches for all styles
c419aa4
-% currently in effect.
c419aa4
-\newif\ifmarkupvar
c419aa4
-\newif\ifmarkupsamp
c419aa4
-\newif\ifmarkupkey
c419aa4
-%\newif\ifmarkupfile % @file == @samp.
c419aa4
-%\newif\ifmarkupoption % @option == @samp.
c419aa4
-\newif\ifmarkupcode
c419aa4
-\newif\ifmarkupkbd
c419aa4
-%\newif\ifmarkupenv % @env == @code.
c419aa4
-%\newif\ifmarkupcommand % @command == @code.
c419aa4
-\newif\ifmarkuptex % @tex (and part of @math, for now).
c419aa4
-\newif\ifmarkupexample
c419aa4
-\newif\ifmarkupverb
c419aa4
-\newif\ifmarkupverbatim
c419aa4
+% style.
c419aa4
 
c419aa4
 \let\currentmarkupstyle\empty
c419aa4
 
c419aa4
 \def\setupmarkupstyle#1{%
c419aa4
-  \csname markup#1true\endcsname
c419aa4
   \def\currentmarkupstyle{#1}%
c419aa4
   \markupstylesetup
c419aa4
 }
c419aa4
@@ -2700,11 +2723,15 @@ end
c419aa4
 % lilypond developers report.  xpdf does work with the regular 0x27.
c419aa4
 %
c419aa4
 \def\codequoteright{%
c419aa4
-  \expandafter\ifx\csname SETtxicodequoteundirected\endcsname\relax
c419aa4
-    \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax
c419aa4
-      '%
c419aa4
+  \ifmonospace
c419aa4
+    \expandafter\ifx\csname SETtxicodequoteundirected\endcsname\relax
c419aa4
+      \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax
c419aa4
+        '%
c419aa4
+      \else \char'15 \fi
c419aa4
     \else \char'15 \fi
c419aa4
-  \else \char'15 \fi
c419aa4
+   \else
c419aa4
+     '%
c419aa4
+   \fi
c419aa4
 }
c419aa4
 %
c419aa4
 % and a similar option for the left quote char vs. a grave accent.
c419aa4
@@ -2712,13 +2739,17 @@ end
c419aa4
 % the code environments to do likewise.
c419aa4
 %
c419aa4
 \def\codequoteleft{%
c419aa4
-  \expandafter\ifx\csname SETtxicodequotebacktick\endcsname\relax
c419aa4
-    \expandafter\ifx\csname SETcodequotebacktick\endcsname\relax
c419aa4
-      % [Knuth] pp. 380,381,391
c419aa4
-      % \relax disables Spanish ligatures ?` and !` of \tt font.
c419aa4
-      \relax`%
c419aa4
+  \ifmonospace
c419aa4
+    \expandafter\ifx\csname SETtxicodequotebacktick\endcsname\relax
c419aa4
+      \expandafter\ifx\csname SETcodequotebacktick\endcsname\relax
c419aa4
+        % [Knuth] pp. 380,381,391
c419aa4
+        % \relax disables Spanish ligatures ?` and !` of \tt font.
c419aa4
+        \relax`%
c419aa4
+      \else \char'22 \fi
c419aa4
     \else \char'22 \fi
c419aa4
-  \else \char'22 \fi
c419aa4
+   \else
c419aa4
+     \relax`%
c419aa4
+   \fi
c419aa4
 }
c419aa4
 
c419aa4
 % Commands to set the quote options.
c419aa4
@@ -5969,24 +6000,30 @@ end
c419aa4
     % Split the last of the double-column material.
c419aa4
     \savemarks
c419aa4
     \balancecolumns
c419aa4
-    %
c419aa4
+  }%
c419aa4
+  \eject % call the \output just set
c419aa4
+  \ifdim\pagetotal=0pt
c419aa4
     % Having called \balancecolumns once, we do not
c419aa4
     % want to call it again.  Therefore, reset \output to its normal
c419aa4
     % definition right away.
c419aa4
     \global\output = {\onepageout{\pagecontents\PAGE}}%
c419aa4
-  }%
c419aa4
-  \eject
c419aa4
-  \endgroup % started in \begindoublecolumns
c419aa4
-  \restoremarks
c419aa4
-  % Leave the double-column material on the current page, no automatic
c419aa4
-  % page break.
c419aa4
-  \box\balancedcolumns
c419aa4
-  %
c419aa4
-  % \pagegoal was set to the doubled \vsize above, since we restarted
c419aa4
-  % the current page.  We're now back to normal single-column
c419aa4
-  % typesetting, so reset \pagegoal to the normal \vsize.
c419aa4
-  \global\vsize = \txipageheight %
c419aa4
-  \pagegoal = \txipageheight %
c419aa4
+    %
c419aa4
+    \endgroup % started in \begindoublecolumns
c419aa4
+    \restoremarks
c419aa4
+    % Leave the double-column material on the current page, no automatic
c419aa4
+    % page break.
c419aa4
+    \box\balancedcolumns
c419aa4
+    %
c419aa4
+    % \pagegoal was set to the doubled \vsize above, since we restarted
c419aa4
+    % the current page.  We're now back to normal single-column
c419aa4
+    % typesetting, so reset \pagegoal to the normal \vsize.
c419aa4
+    \global\vsize = \txipageheight %
c419aa4
+    \pagegoal = \txipageheight %
c419aa4
+  \else
c419aa4
+    % We had some left-over material.  This might happen when \doublecolumnout
c419aa4
+    % is called in \balancecolumns.  Try again.
c419aa4
+    \expandafter\enddoublecolumns
c419aa4
+  \fi
c419aa4
 }
c419aa4
 \newbox\balancedcolumns
c419aa4
 \setbox\balancedcolumns=\vbox{shouldnt see this}%
c419aa4
@@ -6001,6 +6038,7 @@ end
c419aa4
   \ifdim\dimen@<5\baselineskip
c419aa4
     % Don't split a short final column in two.
c419aa4
     \setbox2=\vbox{}%
c419aa4
+    \global\setbox\balancedcolumns=\vbox{\pagesofar}%
c419aa4
   \else
c419aa4
     \divide\dimen@ by 2 % target to split to
c419aa4
     \dimen@ii = \dimen@
c419aa4
@@ -6016,15 +6054,15 @@ end
c419aa4
       \repeat
c419aa4
     }%
c419aa4
     % Now the left column is in box 1, and the right column in box 3.
c419aa4
+    %
c419aa4
     % Check whether the left column has come out higher than the page itself.  
c419aa4
     % (Note that we have doubled \vsize for the double columns, so
c419aa4
     % the actual height of the page is 0.5\vsize).
c419aa4
     \ifdim2\ht1>\vsize
c419aa4
-      % Just split the last of the double column material roughly in half.
c419aa4
-      \setbox2=\box0
c419aa4
-      \setbox0 = \vsplit2 to \dimen@ii
c419aa4
-      \setbox0=\vbox to \dimen@ii {\unvbox0\vfill}%
c419aa4
-      \setbox2=\vbox to \dimen@ii {\unvbox2\vfill}%
c419aa4
+      % It appears that we have been called upon to balance too much material.
c419aa4
+      % Output some of it with \doublecolumnout, leaving the rest on the page.
c419aa4
+      \setbox\PAGE=\box0
c419aa4
+      \doublecolumnout
c419aa4
     \else
c419aa4
       % Compare the heights of the two columns.
c419aa4
       \ifdim4\ht1>5\ht3
c419aa4
@@ -6037,10 +6075,10 @@ end
c419aa4
         \setbox2=\vbox to\ht1{\unvbox3\unskip}%
c419aa4
         \setbox0=\vbox to\ht1{\unvbox1\unskip}%
c419aa4
       \fi
c419aa4
+      \global\setbox\balancedcolumns=\vbox{\pagesofar}%
c419aa4
     \fi
c419aa4
   \fi
c419aa4
   %
c419aa4
-  \global\setbox\balancedcolumns=\vbox{\pagesofar}%
c419aa4
 }
c419aa4
 \catcode`\@ = \other
c419aa4
 
c419aa4
@@ -9446,7 +9484,7 @@ end
c419aa4
 \newif\ifwarnednoepsf
c419aa4
 \newhelp\noepsfhelp{epsf.tex must be installed for images to
c419aa4
   work.  It is also included in the Texinfo distribution, or you can get
c419aa4
-  it from ftp://tug.org/tex/epsf.tex.}
c419aa4
+  it from https://ctan.org/texarchive/macros/texinfo/texinfo/doc/epsf.tex.}
c419aa4
 %
c419aa4
 \def\image#1{%
c419aa4
   \ifx\epsfbox\thisisundefined
c419aa4
@@ -11425,9 +11463,11 @@ directory should work if nowhere else do
c419aa4
   %
c419aa4
   \dimen0 = #1\relax
c419aa4
   \advance\dimen0 by \voffset
c419aa4
+  \advance\dimen0 by 1in % reference point for DVI is 1 inch from top of page
c419aa4
   %
c419aa4
   \dimen2 = \hsize
c419aa4
   \advance\dimen2 by \normaloffset
c419aa4
+  \advance\dimen2 by 1in % reference point is 1 inch from left edge of page
c419aa4
   %
c419aa4
   \internalpagesizes{#1}{\hsize}%
c419aa4
                     {\voffset}{\normaloffset}%
c419aa4
@@ -11675,7 +11715,7 @@ directory should work if nowhere else do
c419aa4
 @markupsetuprqdefault
c419aa4
 
c419aa4
 @c Local variables:
c419aa4
-@c eval: (add-hook 'write-file-hooks 'time-stamp)
c419aa4
+@c eval: (add-hook 'before-save-hook 'time-stamp)
c419aa4
 @c page-delimiter: "^\\\\message\\|emacs-page"
c419aa4
 @c time-stamp-start: "def\\\\texinfoversion{"
c419aa4
 @c time-stamp-format: "%:y-%02m-%02d.%02H"