[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Minor texdoc call patch
From: |
Arash Esbati |
Subject: |
Re: Minor texdoc call patch |
Date: |
Tue, 01 Oct 2024 00:07:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Keita,
Ikumi Keita <ikumi@ikumi.que.jp> writes:
> The reason is that asynchronous call to texdoc terminates immediately
> and doesn't launch pdf viewer at all for my setup. Let me explain the
> detail. I set PDFVIEWER environment variable to "evince %s &". I
> attach the final ampersand so that I can freely use shell prompt
> after "texdoc SOMENAME" on a terminal (outside of emacs) while evince
> shows the pdf document.
> Though it is possible to omit the ampersand in PDFVIEWER and add one to
> texdoc call like "texdoc SOMENAME &" on a terminal, it fails when texdoc
> can't find a match for SOMENAME like this:
> ,----
> | Unfortunately, there are no good matches for "xxxyyyzzz".
> |
> | There may be online documentation available for "xxxyyyzzz" at
> | https://texdoc.org/serve/xxxyyyzzz/0
> | This documentation may be for a different version than you have installed.
> |
> | Would you like to search online? (y/N) fish: Job 1, 'env
> | PDFVIEWER="evince %s" texdo…' has stopped
> `----
> Thus I don't want to take that way.
What happens if you adjust the entry for viewer_pdf in your personal
texdoc.cnf? The one shipped with texlive says:
# Defaults depend on what is available on your system, as well as your desktop
# environment. Here are a few examples.
#
# %s is optional and stands for the filename.
#
# viewer_pdf = xpdf # works
# viewer_pdf = xpdf %s & # works even better
Maybe that helps getting rid of the env variable.
Best, Arash