texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: \sl for @var


From: Gavin D. Smith
Subject: branch master updated: \sl for @var
Date: Sat, 13 Aug 2022 08:22:32 -0400

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new b3abe7731d \sl for @var
b3abe7731d is described below

commit b3abe7731dd2aaaf33007155d0bbeeb53bcae141
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Aug 13 13:22:22 2022 +0100

    \sl for @var
    
    * doc/texinfo.tex (@var): Use slanted unconditionally, not
    slanted typewriter.  This is for consistency between def header
    lines and def bodies.  This change has been made already for LaTeX,
    on 2022-08-10.
    (\ttslanted): Remove unused.
---
 ChangeLog       | 10 ++++++++++
 doc/texinfo.tex | 14 +++++++-------
 2 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0418a76b8e..253f39b3ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2022-08-13  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       \sl for @var
+
+       * doc/texinfo.tex (@var): Use slanted unconditionally, not
+       slanted typewriter.  This is for consistency between def header
+       lines and def bodies.  This change has been made already for LaTeX,
+       on 2022-08-10.
+       (\ttslanted): Remove unused.
+
 2022-08-13  Gavin Smith  <gavinsmith0123@gmail.com>
 
        * doc/texinfo-tex-test.texi (Style commands):
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index 51a92da0bb..68c43e1590 100644
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2022-08-13.11}
+\def\texinfoversion{2022-08-13.12}
 %
 % Copyright 1985, 1986, 1988, 1990-2022 Free Software Foundation, Inc.
 %
@@ -2798,18 +2798,18 @@ end
   \aftersmartic
 }
 
-% Unconditional use \ttsl, and no ic.  @var is set to this for defuns.
-\def\ttslanted#1{{\ttsl #1}}
-
-% @cite is like \smartslanted except unconditionally use \sl.  We never want
-% ttsl for book titles, do we?
+% @cite unconditionally uses \sl with \smartitaliccorrection.
 \def\cite#1{{\sl #1}\futurelet\next\smartitaliccorrection}
 
+% @var unconditionally uses \sl.  This gives consistency for
+% parameter names whether they are in @def, @table @code or a
+% regular paragraph.
+% The \null is to reset \spacefactor.
 \def\aftersmartic{}
 \def\var#1{%
   \let\saveaftersmartic = \aftersmartic
   \def\aftersmartic{\null\let\aftersmartic=\saveaftersmartic}%
-  \smartslanted{#1}%
+  {\sl #1}\futurelet\next\smartitaliccorrection
 }
 
 \let\i=\smartitalic



reply via email to

[Prev in Thread] Current Thread [Next in Thread]