texlive[58477] Master/texmf-dist: texdoc (17mar21)
commits+karl at tug.org
commits+karl at tug.org
Wed Mar 17 22:45:41 CET 2021
Revision: 58477
http://tug.org/svn/texlive?view=revision&revision=58477
Author: karl
Date: 2021-03-17 22:45:41 +0100 (Wed, 17 Mar 2021)
Log Message:
-----------
texdoc (17mar21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/man/man1/texdoc.1
trunk/Master/texmf-dist/doc/man/man1/texdoc.man1.pdf
trunk/Master/texmf-dist/doc/support/texdoc/NEWS
trunk/Master/texmf-dist/doc/support/texdoc/README.md
trunk/Master/texmf-dist/doc/support/texdoc/texdoc.pdf
trunk/Master/texmf-dist/doc/support/texdoc/texdoc.tex
trunk/Master/texmf-dist/scripts/texdoc/texdoclib-config.tlu
trunk/Master/texmf-dist/scripts/texdoc/texdoclib-const.tlu
trunk/Master/texmf-dist/scripts/texdoc/texdoclib-search.tlu
trunk/Master/texmf-dist/scripts/texdoc/texdoclib-view.tlu
trunk/Master/texmf-dist/scripts/texdoc/texdoclib.tlu
trunk/Master/texmf-dist/texdoc/texdoc.cnf
Modified: trunk/Master/texmf-dist/doc/man/man1/texdoc.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/texdoc.1 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/doc/man/man1/texdoc.1 2021-03-17 21:45:41 UTC (rev 58477)
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "TEXDOC" "1" "September 2020" "Texdoc 3.2.2" "Texdoc manual"
+.TH "TEXDOC" "1" "March 2021" "Texdoc 3.3" "Texdoc manual"
.
.SH "NAME"
\fBtexdoc\fR \- find & view documentation in TeX Live
@@ -156,7 +156,7 @@
Source: \fIhttps://github\.com/TeX\-Live/texdoc\fR
.
.SH "COPYRIGHT"
-Copyright 2008\-2020 Manuel Pe\'gourie\'\-Gonnard, Takuto Asakura, the TeX Live Team\.
+Copyright 2008\-2021 Manuel Pe\'gourie\'\-Gonnard, Takuto Asakura, the TeX Live Team\.
.
.br
License: GNU GPL version 3 or later \fIhttp://gnu\.org/licenses/gpl\.html\fR\.
Modified: trunk/Master/texmf-dist/doc/man/man1/texdoc.man1.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/texdoc/NEWS
===================================================================
--- trunk/Master/texmf-dist/doc/support/texdoc/NEWS 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/doc/support/texdoc/NEWS 2021-03-17 21:45:41 UTC (rev 58477)
@@ -2,6 +2,13 @@
===============
(This file public domain.)
+Version 3.3 (TeX Live 2021)
+===========================
+- Show all possible config files for -vf
+- Show diagnostic message of DISPLAY only if viewer failed
+- Alias adjustments
+- Documentation tweaks
+
Version 3.2.2
-------------
- Several aliases are added
Modified: trunk/Master/texmf-dist/doc/support/texdoc/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/support/texdoc/README.md 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/doc/support/texdoc/README.md 2021-03-17 21:45:41 UTC (rev 58477)
@@ -1,4 +1,4 @@
-# Texdoc 3.2.2 (2020-09-16)
+# Texdoc 3.3 (2021-03-17)
[![Build Status](https://travis-ci.org/TeX-Live/texdoc.svg?branch=master)](https://travis-ci.org/TeX-Live/texdoc)
[![Build status](https://ci.appveyor.com/api/projects/status/uq28ms7eba7ns6d3/branch/master?svg=true)](https://ci.appveyor.com/project/wtsnjp/texdoc/branch/master)
@@ -106,7 +106,7 @@
## Copyright and License
-Copyright 2008-2020 Manuel Pégourié-Gonnard, Takuto Asakura, the TeX Live Team.
+Copyright 2008-2021 Manuel Pégourié-Gonnard, Takuto Asakura, the TeX Live Team.
This package is distributed under the terms of the GNU General Public License as published by the Free Software Foundation, either [version 3](./COPYING) of the License, or (at your option) any later version.
Modified: trunk/Master/texmf-dist/doc/support/texdoc/texdoc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/texdoc/texdoc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/support/texdoc/texdoc.tex 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/doc/support/texdoc/texdoc.tex 2021-03-17 21:45:41 UTC (rev 58477)
@@ -1,6 +1,6 @@
%#!xelatex
% Texdoc user manual
-% Copyright 2008-2020 Manuel Pégourié-Gonnard and Takuto Asakura
+% Copyright 2008-2021 Manuel Pégourié-Gonnard and Takuto Asakura
% distributed under the terms of GPL v3 or later
\documentclass{texdoc-doc}
@@ -8,7 +8,7 @@
\subtitle{Find \& view documentation in \TL}
\pkgurl{https://tug.org/texdoc/}
\author{Manuel Pégourié-Gonnard\and Takuto Asakura}
-\date{v3.2.2\quad \today}
+\date{v3.3\quad \today}
\begin{document}
@@ -281,7 +281,7 @@
\begin{enumerate}
\item |texdoc-«platform».cnf| where |«platform»| is the name of the current
platform (defined as the name of the directories where the {\TL}
- binaries are located, for example |x86-64-linux|). This may be useful when
+ binaries are located, for example |x86_64-linux|). This may be useful when
an installation is shared across machines with different architectures
needing different settings, for example for viewers. Their use is not
recommended in any other situation.
@@ -499,7 +499,7 @@
input |«keyword»|. The results of the fuzzy search are shown in an info
message, which can be seen by using the command-line option |-v|.
-The default allowance of Levenshtein distance is |5|. You can change this
+The default allowance of Levenshtein distance is |3|. You can change this
allowance by using the configuration item \ci{fuzzy\_level}. Results of fuzzy
search could be different among executions if multiple package names have the
same Levenshtein distance to the input.
@@ -731,7 +731,7 @@
\label{sec:licence}
The current version of Texdoc program and its documentation are copyright
-2008--2020 Manuel Pégourié-Gonnard, Takuto Asakura, the {\TL} Team.
+2008--2021 Manuel Pégourié-Gonnard, Takuto Asakura, the {\TL} Team.
They are free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Modified: trunk/Master/texmf-dist/scripts/texdoc/texdoclib-config.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/texdoc/texdoclib-config.tlu 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/scripts/texdoc/texdoclib-config.tlu 2021-03-17 21:45:41 UTC (rev 58477)
@@ -274,15 +274,15 @@
}
-- get dirs
- local sep = (os.type == 'windows') and ';' or ':'
- local texmf_texdoc = kpse.expand_path('$TEXMF/texdoc')
- local dirs = texmf_texdoc:explode(sep)
+ local kpse_texmf = kpse.expand_var('$TEXMF')
+ local texmfs = kpse.expand_braces(kpse_texmf):explode(C.kpse_sep)
-- merge them
local ret = {}
- for _, dir in ipairs(dirs) do
+ for _, dir in ipairs(texmfs) do
+ local path = dir:gsub('^!!', '')
for _, name in ipairs(names) do
- local pathname = dir .. '/' .. name
+ local pathname = path .. '/texdoc/' .. name
table.insert(ret, pathname)
end
end
@@ -344,9 +344,8 @@
-- show the recommendation (only for the "files" action)
if is_action then
print_func('Recommended file(s) for personal settings:')
- local sep = (os.type == 'windows') and ';' or ':'
-- here TEXMFHOMEs do not have to exist, and thus use kpse.var_value
- local texmfhomes = string.explode(kpse.var_value('TEXMFHOME'), sep)
+ local texmfhomes = kpse.var_value('TEXMFHOME'):explode(C.kpse_sep)
for _, home in ipairs(texmfhomes) do
print_func(indent .. w32_path(home .. '/texdoc/texdoc.cnf'))
end
Modified: trunk/Master/texmf-dist/scripts/texdoc/texdoclib-const.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/texdoc/texdoclib-const.tlu 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/scripts/texdoc/texdoclib-const.tlu 2021-03-17 21:45:41 UTC (rev 58477)
@@ -5,6 +5,7 @@
-- use an empty environment that will become texdoc_env.C (see EOF)
local constants = {}
local kpse = kpse or require 'kpse'
+local os = os or require 'os'
local setfenv = setfenv
local texdoc_env
@@ -21,8 +22,8 @@
-- progname and version
fullname = kpse.find_file('texdoc/texdoclib', 'lua')
progname = 'Texdoc'
-version = '3.2.2'
-release_date = '2020-09-16'
+version = '3.3'
+release_date = '2021-03-17'
-- make sure to update setup_config_from_cl() accordingly
-- and set a default value in setup_config_from_defaults() if relevant
@@ -63,7 +64,7 @@
Please email bugs to <texdoc at tug.org>.]]
copyright_msg = [[
-Copyright 2008-2020 Manuel Pégourié-Gonnard, Takuto Asakura, the TeX Live Team.
+Copyright 2008-2021 Manuel Pégourié-Gonnard, Takuto Asakura, the TeX Live Team.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.]]
@@ -133,6 +134,9 @@
place_holder = '%%s' -- used for viewer commands
+-- kpse path separator
+kpse_sep = (os.type == 'windows') and ';' or ':'
+
-- END constants
-- get our previous environment back
Modified: trunk/Master/texmf-dist/scripts/texdoc/texdoclib-search.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/texdoc/texdoclib-search.tlu 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/scripts/texdoc/texdoclib-search.tlu 2021-03-17 21:45:41 UTC (rev 58477)
@@ -280,7 +280,7 @@
end
end
---------------------- manage TEXDOCS trees à la kpse ----------------------
+--------------------- manage TEXDOCS trees of the kpse ----------------------
-- build a db from a ls-R file
local function init_lsr_db(root, shift)
@@ -371,11 +371,10 @@
end
doc_roots = {}
- local sep = (os.type == 'windows') and ';' or ':'
local kpse_texdocs = kpse.expand_var('$TEXDOCS')
-- expand the path and turn it into a lua list
- local raw_doc_roots = kpse.expand_braces(kpse_texdocs):explode(sep)
+ local raw_doc_roots = kpse.expand_braces(kpse_texdocs):explode(C.kpse_sep)
local max = #raw_doc_roots + 1
for j, dir in ipairs(raw_doc_roots) do
Modified: trunk/Master/texmf-dist/scripts/texdoc/texdoclib-view.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/texdoc/texdoclib-view.tlu 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/scripts/texdoc/texdoclib-view.tlu 2021-03-17 21:45:41 UTC (rev 58477)
@@ -32,14 +32,6 @@
view_command = view_command .. ' ' .. viewer_replacement
end
- -- try to catch problems with missing DISPLAY on Unix
- if os.type == 'unix' and not (os.name == 'macosx')
- and os.getenv('DISPLAY') == nil then
- err_print('warning',
- 'DISPLAY is not set; your viewer will likely have problems.')
- err_print('warning',
- 'Try --list to list results instead of displaying them.')
- end
err_print('info', 'View command: ' .. view_command)
-- See long comment below this function for the LC_CTYPE story.
@@ -55,6 +47,12 @@
-- the big casino: run the external command.
if os.execute(view_command) > 0 then
err_print('error', 'Failed to execute: ' .. view_command)
+ -- try to catch problems with missing DISPLAY on Unix
+ if os.type == 'unix' and not (os.name == 'macosx')
+ and os.getenv('DISPLAY') == nil then
+ err_print('error',
+ 'Maybe your viewer failed because DISPLAY is not set.')
+ end
os.exit(C.exit_error)
end
Modified: trunk/Master/texmf-dist/scripts/texdoc/texdoclib.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/texdoc/texdoclib.tlu 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/scripts/texdoc/texdoclib.tlu 2021-03-17 21:45:41 UTC (rev 58477)
@@ -1,7 +1,7 @@
-- texdoclib.tlu: the texdoc library
--[[
-Copyright 2008-2020 Manuel Pégourié-Gonnard, Takuto Asakura, the TeX Live Team.
+Copyright 2008-2021 Manuel Pégourié-Gonnard, Takuto Asakura, the TeX Live Team.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Modified: trunk/Master/texmf-dist/texdoc/texdoc.cnf
===================================================================
--- trunk/Master/texmf-dist/texdoc/texdoc.cnf 2021-03-17 21:45:17 UTC (rev 58476)
+++ trunk/Master/texmf-dist/texdoc/texdoc.cnf 2021-03-17 21:45:41 UTC (rev 58477)
@@ -450,7 +450,6 @@
alias einfuehrung = einfuehrung/README # tl should get "readme" tag
alias elsarticle = elsdoc
alias(0.1) fontinst = fontinstallationguide
-alias hyperref = hyperref/manual.pdf
alias hyperref-dev = hyperref.pdf
alias iso = isoman
alias kvoptions-patch = kvoptions # XXX?
@@ -460,6 +459,9 @@
alias(2) llmk = light-latex-make/README
alias mls = montex
alias musixtex = musixdoc
+alias newcm = newcomputermodern/README
+alias(5) newcm = newcomputermodern/newcomputermodern-sample.pdf
+alias(5) newcm = newcomputermodern/newcm-unimath-symbols.pdf
alias newtxtext = newtxdoc
alias newtxmath = newtxdoc
alias nonfloat = nonfloat-en
More information about the tex-live-commits
mailing list.