comparison build-aux/texinfo.tex @ 39192:fb1fbd01c790

autoupdate
author Karl Berry <karl@freefriends.org>
date Wed, 27 Dec 2017 16:05:51 -0800
parents c8f877414114
children 639e2d427625
comparison
equal deleted inserted replaced
39191:1a07ab062d06 39192:fb1fbd01c790
1 % texinfo.tex -- TeX macros to handle Texinfo files. 1 % texinfo.tex -- TeX macros to handle Texinfo files.
2 % 2 %
3 % Load plain if necessary, i.e., if running under initex. 3 % Load plain if necessary, i.e., if running under initex.
4 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi 4 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
5 % 5 %
6 \def\texinfoversion{2017-12-18.20} 6 \def\texinfoversion{2017-12-26.21}
7 % 7 %
8 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 8 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
9 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 9 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
10 % 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 10 % 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
11 % Free Software Foundation, Inc. 11 % Free Software Foundation, Inc.
2617 \def\ifmonospace{\ifdim\fontdimen3\font=0pt } 2617 \def\ifmonospace{\ifdim\fontdimen3\font=0pt }
2618 2618
2619 % Markup style infrastructure. \defmarkupstylesetup\INITMACRO will 2619 % Markup style infrastructure. \defmarkupstylesetup\INITMACRO will
2620 % define and register \INITMACRO to be called on markup style changes. 2620 % define and register \INITMACRO to be called on markup style changes.
2621 % \INITMACRO can check \currentmarkupstyle for the innermost 2621 % \INITMACRO can check \currentmarkupstyle for the innermost
2622 % style and the set of \ifmarkupSTYLE switches for all styles 2622 % style.
2623 % currently in effect.
2624 \newif\ifmarkupvar
2625 \newif\ifmarkupsamp
2626 \newif\ifmarkupkey
2627 %\newif\ifmarkupfile % @file == @samp.
2628 %\newif\ifmarkupoption % @option == @samp.
2629 \newif\ifmarkupcode
2630 \newif\ifmarkupkbd
2631 %\newif\ifmarkupenv % @env == @code.
2632 %\newif\ifmarkupcommand % @command == @code.
2633 \newif\ifmarkuptex % @tex (and part of @math, for now).
2634 \newif\ifmarkupexample
2635 \newif\ifmarkupverb
2636 \newif\ifmarkupverbatim
2637 2623
2638 \let\currentmarkupstyle\empty 2624 \let\currentmarkupstyle\empty
2639 2625
2640 \def\setupmarkupstyle#1{% 2626 \def\setupmarkupstyle#1{%
2641 \csname markup#1true\endcsname
2642 \def\currentmarkupstyle{#1}% 2627 \def\currentmarkupstyle{#1}%
2643 \markupstylesetup 2628 \markupstylesetup
2644 } 2629 }
2645 2630
2646 \let\markupstylesetup\empty 2631 \let\markupstylesetup\empty
2698 % The undirected quote is ugly, so don't make it the default, but it 2683 % The undirected quote is ugly, so don't make it the default, but it
2699 % works for pasting with more pdf viewers (at least evince), the 2684 % works for pasting with more pdf viewers (at least evince), the
2700 % lilypond developers report. xpdf does work with the regular 0x27. 2685 % lilypond developers report. xpdf does work with the regular 0x27.
2701 % 2686 %
2702 \def\codequoteright{% 2687 \def\codequoteright{%
2703 \expandafter\ifx\csname SETtxicodequoteundirected\endcsname\relax 2688 \ifmonospace
2704 \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax 2689 \expandafter\ifx\csname SETtxicodequoteundirected\endcsname\relax
2705 '% 2690 \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax
2691 '%
2692 \else \char'15 \fi
2706 \else \char'15 \fi 2693 \else \char'15 \fi
2707 \else \char'15 \fi 2694 \else
2695 '%
2696 \fi
2708 } 2697 }
2709 % 2698 %
2710 % and a similar option for the left quote char vs. a grave accent. 2699 % and a similar option for the left quote char vs. a grave accent.
2711 % Modern fonts display ASCII 0x60 as a grave accent, so some people like 2700 % Modern fonts display ASCII 0x60 as a grave accent, so some people like
2712 % the code environments to do likewise. 2701 % the code environments to do likewise.
2713 % 2702 %
2714 \def\codequoteleft{% 2703 \def\codequoteleft{%
2715 \expandafter\ifx\csname SETtxicodequotebacktick\endcsname\relax 2704 \ifmonospace
2716 \expandafter\ifx\csname SETcodequotebacktick\endcsname\relax 2705 \expandafter\ifx\csname SETtxicodequotebacktick\endcsname\relax
2717 % [Knuth] pp. 380,381,391 2706 \expandafter\ifx\csname SETcodequotebacktick\endcsname\relax
2718 % \relax disables Spanish ligatures ?` and !` of \tt font. 2707 % [Knuth] pp. 380,381,391
2719 \relax`% 2708 % \relax disables Spanish ligatures ?` and !` of \tt font.
2709 \relax`%
2710 \else \char'22 \fi
2720 \else \char'22 \fi 2711 \else \char'22 \fi
2721 \else \char'22 \fi 2712 \else
2713 \relax`%
2714 \fi
2722 } 2715 }
2723 2716
2724 % Commands to set the quote options. 2717 % Commands to set the quote options.
2725 % 2718 %
2726 \parseargdef\codequoteundirected{% 2719 \parseargdef\codequoteundirected{%