-
-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading textcomp
turns LaTeX Info
messages into Package textcomp Info
messages
#1333
Comments
Initially LaTeX defines Lines 297 to 306 in 4b00f33
Lines 1560 to 1571 in 4b00f33
Except for One choice is to remove |
I wonder if it would be better if Also, I think that the version test at the beginning of \providecommand\DeclareRelease[3]{}
\providecommand\DeclareCurrentRelease[2]{}
\DeclareRelease{}{2018-08-11}{textcomp-2018-08-11.sty}
\DeclareCurrentRelease{}{2020-02-02} If you manage to compile the above \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}
\IfFormatAtLeastTF{2020-02-02}{}{\input{textcomp-2018-08-11.sty}\endinput}
\DeclareRelease{}{2018-08-11}{textcomp-2018-08-11.sty}
\DeclareCurrentRelease{}{2020-02-02} |
loading We do a lot of backwards compatibility, but I don't think packages need to account for LaTeX distributions that are very old, ie older than 2015. In such a distribution there is a textcomp that would fit the distribution and that somebody keeps such a distribution but updates individual packages to their 2024 version is in my opinion unsupported. So I'm not really in favor of trying to support that even if the change seems simple. It just adds a sense of availablity that is really not there, and such a mix is bound to fail in other places. So it can't serve as a model for how to do this. I also think one should keep the errors, warnings, ... as package warnings (if issued by package code). I don't want to see kernel messages there as it gives somebody who just takes a quick look into the package the wrong ideas how such messages should or could be provided in a package. But I agree with dropping the |
In preparing the pull request, I found ltnews31 for release 2020-02 says Lines 459 to 468 in d694edf
|
I don't think this is a contradition. Yes, it says LaTeX warning and perhaps it should have been precise and said LaTeX package warning, but LaTeX warning is just the generic term in my view, which could be kernel, package or class warnings if not further specified and it is pretty much often used this way in writing. |
@FrankMittelbach Wouldn't it then be better to drop the lines \providecommand\DeclareRelease[3]{}
\providecommand\DeclareCurrentRelease[2]{} altogether? Rolling back to a date before 2018-08-11 with
and if using the new |
You are right that one could drop those provide lines these days, they are there in case you natively run the package in a format that doesn't yet know about latexrelease commands which initially was the right thing to do when these declarations were fairly new. However, in that case you get a low-level error with such an old format. but regardless of this, I think we should add
so that a real rollback to something before 2018 is is not generating this "suspicious" error. after all the package was around even though in a slighlty different version (butthe 2018 version approx that well enough). @muzimuzhi could you perhaps add this to the pr? |
@FrankMittelbach I think getting the low-level error
is actually preferable in such a case, as you will then quickly find out that it is caused by the LaTeX kernel being too old. If, on the other hand, the file contains \providecommand\DeclareRelease[3]{}
\providecommand\DeclareCurrentRelease[2]{} then loading the file with an old kernel that does not know
The problem that rollback does not work also affects other packages. For example \RequirePackage[2020-01-01]{latexrelease}
\documentclass{article}
\usepackage{longtable}
\begin{document}
Text
\end{document} also fails with
although the |
as I said these days it could be taken out, it was there for the first years after latexrelease was introduced.
perhaps. I don't think it is anything of high importance, but yes we could find out when packages came into existance and try to use that as the first release info to avoid this error. It is a lot of footwork though, so to make this happen I guess we would need some help. |
.. could be taken out ... (not couldn't) |
@FrankMittelbach Added. |
* Drop default option "info" of textcomp Closes #1333. * Fix changes.txt indent * Tighten up wording, use phrase "kernel info" * Use initial release date in date rollback * Add back the line declaring release 2018-08-11 * Rename new test file
We usually keep them open unitl the the code moves from dev to the main release |
Not directly relevant, but should this policy on closure be reviewed perhaps? Pragmatically, it is much easier to close an issue as part of dealing with it and, if necessary scary, adding code to develop: (Also, the current policy does seem to cause surprises/confusion for many of us:-). |
@car222222 maybe it does, maybe it doesn't (for many, as there aren't many people that close or can close issues).
So from my perspective it is the right approach given that we have delays of up to 6 months until a minor fixed bug is fixed in the main format that people can use. |
@FrankMittelbach Should a new issue be opened for this? The following files from doc.sty These files could be improved by removing the lines \providecommand\DeclareRelease[3]{}
\providecommand\DeclareCurrentRelease[2]{} and potentially by adding an additional |
yes, I think it should be a separate issue, and yes, it would reqiure a bit of detective work to find a reasonable starting point (even though 0000 would probably work well enough for the above, it might be better if we really put in the date when they got first released). |
I have opened a new issue: #1336 |
they all predate latex2e so could use 0000-00-00 as far as rollback is concerned. |
not sure about varioref but that could get 0000-00-00 too or perhaps better all could get 1994-06-01 matching the first release of LaTeX 2e |
@FrankMittelbach The copyright notice in |
unbelievable :-) could have sworn I've done that later, so much the better. |
'92 fits with my (very flaky) memory of those days! |
Brief outline of the enhancement
If you use a
TS1
symbol that is not provided by the current font, you get aLaTeX Info
message by default:However, if you load the package
textcomp
, you get aPackage textcomp Info
message instead:I find this inconsistent and it does not correspond to the description in LaTeX News 31, which explicitly mentions LaTeX warnings and LaTeX errors:
As described above, the functionality of the
textcomp
package has been moved to the LaTeX kernel, so that the processes that generate the messages are now executed by the LaTeX kernel. The package itself is only there to change the status of the messages to "warning" or "error". However, even if thetextcomp
package is loaded without options (as in the example above), theLaTeX Info
messages turn intopackage textcomp Info
messages, as thetextcomp
code contains\ExecuteOptions{info}
.At least if the package
textcomp
is loaded without options, theLaTeX Info
messages should not turn intoPackage textcomp Info
messages, as the package really does nothing in this case. This often happens in real documents, as many packages still contain\RequirePackage{textcomp}
just for compatibility.The text was updated successfully, but these errors were encountered: