git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation: Add target to build PDF manpages

From
Philip Oakley <philipoakley@iee.org>
Date
Mar 20, 2015, 22:12 UTC
Message-ID
<3037A3ADECA54FB2B56348E4F6F04A95@PhilipOakley>
In-Reply-To
<xmqq4mpfe7xm.fsf@gitster.dls.corp.google.com>
From: "Junio C Hamano" <gitster@pobox.com>
Show 10 quoted lines
> Stefan Beller <sbeller@google.com> writes:
>
>> ... though how would I read man pages in pdf
>> format? I tried searching the web and all I can find is how
>> to convert the a man page to pdf. So is there a conveniant
>> way to tell `man` to prefer opening pdfs when available?
>
> I presume that "man -Tpdf git.1" is not what you are looking for, as
> that would literally be how you get the manpages in PDF format?
>

I'd expect 'git help --pdf git' to simply feed the path of git.pdf (probably in the same directory as the .html versions) to the web browser and let it determine the users prefered reader.

Show 6 quoted lines
> Personally, I honestly am not quite sure why anybody wants to
> generate manpages in the PDF format like this patch does, unless
> they are planning to print them on paper, in which case the existing
> manpages (git.1 and friends) or html pages (git.html and friends)
> should be an already available source format.
> --

Despite the scare stories and problems that pdf format can bring it is quite popular as a way of 'freezing' what is displayed (I use it a lot to capture web confirmations;-), so I don't see it as being too outlandish, though I wouldn't expect the project to automatically generate the pdfs in the same way the man and web pages are.

-- Philip

Previous: Thomas SchneiderNext: Stefan Beller
Message 8 of 14 in “Documentation: Add target to build PDF manpages”
  1. Documentation: Add target to build PDF manpagesThomas Schneider, Mar 20, 2015
  2. Stefan BellerMar 20, 2015
  3. Philip OakleyMar 20, 2015
  4. Junio C HamanoMar 20, 2015
  5. Thomas SchneiderMar 20, 2015
  6. Junio C HamanoMar 20, 2015
  7. Thomas SchneiderMar 20, 2015
  8. Philip OakleyMar 20, 2015
  9. Stefan BellerMar 20, 2015
  10. Junio C HamanoMar 20, 2015
  11. Michael J GruberMar 23, 2015
  12. Philip OakleyMar 24, 2015
  13. Thomas SchneiderMar 25, 2015
  14. Junio C HamanoMar 20, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.