You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to open a package documentation from powershell typing texdoc packagename, the URL of the html file which should be opened is wrong because of a slash / instead of a backslash \.
AFAIK, it happens for every package.
For example,
texdoc geometry
tries to open c:\Users\USER01\scoop\apps\miktex\current\texmfs/data\miktex\mthelp\geometry.html. Please note the wrong slash between texmfs and data.
Please also note that the issue is visible in Firefox but it is not visible with google chrome only because chrome automatically fixes the URL.
As verification, this is the related log in texdoc.log:
2023-07-07 19:33:49,441+0200 INFO texdoc.core - start process: firefox C:\Users\USER01\scoop\apps\miktex\current\texmfs/data\miktex\mthelp\siunitx.html
I think that the issue is linked to this one #551 where, if you carefully read the file URL c:\Program Files\MiKTeX 2.9\doc/latex/koma-script\scrartcl.html you will find the same problem, i.e. the slash.
FYI, I made a minimum installation of TeXLive on another pc and the command texdoc scrletter works well.
As a side note, why does texdoc in TeXLive tend to open pdf doc directly while texdoc in MikTeX always opens html files?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Note that texdoc in MiKTeX is actually a shim to @edocevoli's mthelp, so this is a duplicate of #637.
I don't use Windows for development, but was able to replicate this on a local machine with a portable install. @edocevoli was also able to replicate it a long time ago in this comment. Note that they have missed it in the past (as in your linked issue) because their use of Chrome transparently replaces the slashes to correct the broken file path.
The real texdoc has fixed this issue in this portion of it's utilities by converting the path to all lowercase and replacing all forward slashes with back slashes before attempting to view the file.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
When I try to open a package documentation from powershell typing
texdoc packagename
, the URL of the html file which should be opened is wrong because of a slash/
instead of a backslash\
.AFAIK, it happens for every package.
For example,
tries to open
c:\Users\USER01\scoop\apps\miktex\current\texmfs/data\miktex\mthelp\geometry.html
. Please note the wrong slash betweentexmfs
anddata
.Please also note that the issue is visible in Firefox but it is not visible with google chrome only because chrome automatically fixes the URL.
As verification, this is the related log in
texdoc.log
:I think that the issue is linked to this one #551 where, if you carefully read the file URL
c:\Program Files\MiKTeX 2.9\doc/latex/koma-script\scrartcl.html
you will find the same problem, i.e. the slash.FYI, I made a minimum installation of TeXLive on another pc and the command
texdoc scrletter
works well.As a side note, why does texdoc in TeXLive tend to open pdf doc directly while texdoc in MikTeX always opens html files?
Submitting a MiKTeX problem report
initexmf
report:The text was updated successfully, but these errors were encountered: