[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * doc/texinfo.tex (\var): If 'txicodevaristt' is
From: |
Gavin D. Smith |
Subject: |
branch master updated: * doc/texinfo.tex (\var): If 'txicodevaristt' is @set, then use \ttsl font if in monospaced font. |
Date: |
Mon, 22 Aug 2022 16:55:52 -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 2378f3cee9 * doc/texinfo.tex (\var): If 'txicodevaristt' is @set, then
use \ttsl font if in monospaced font.
2378f3cee9 is described below
commit 2378f3cee9476aad875c3974cc557714a9dfb8ee
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Aug 22 21:53:19 2022 +0100
* doc/texinfo.tex (\var): If 'txicodevaristt' is @set, then
use \ttsl font if in monospaced font.
---
ChangeLog | 5 +++++
doc/texinfo.tex | 10 ++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 368a2bd6b9..a33ce29867 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-22 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * doc/texinfo.tex (\var): If 'txicodevaristt' is @set, then
+ use \ttsl font if in monospaced font.
+
2022-08-22 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Common.pm (%regular_font_style_commands): only @r
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index 4a5c74e6f4..b69c281693 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-20.19}
+\def\texinfoversion{2022-08-22.20}
%
% Copyright 1985, 1986, 1988, 1990-2022 Free Software Foundation, Inc.
%
@@ -2803,12 +2803,18 @@ end
% @var unconditionally uses \sl. This gives consistency for
% parameter names whether they are in @def, @table @code or a
% regular paragraph.
+% To get ttsl font for @var when used in code context, @set txicodevaristt.
% The \null is to reset \spacefactor.
\def\aftersmartic{}
\def\var#1{%
\let\saveaftersmartic = \aftersmartic
\def\aftersmartic{\null\let\aftersmartic=\saveaftersmartic}%
- {\sl #1}\smartitaliccorrection
+ \ifusingtt{%
+ \ifflagclear{txicodevaristt}%
+ {{\sl #1}}%
+ {{\ttsl #1}}%
+ }{{\sl #1}}%
+ \smartitaliccorrection
}
\let\i=\smartitalic
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * doc/texinfo.tex (\var): If 'txicodevaristt' is @set, then use \ttsl font if in monospaced font.,
Gavin D. Smith <=