PDF形式のGNU文書はどのように生成されますか?

PDF形式のGNU文書はどのように生成されますか?

一部のGNUソフトウェアはPDFファイルをマニュアルで提供していません。http://www.gnu.org/software/findutils/manual/find.html

一部はそうです。 PDFファイルにはブックマーク/概要があります。https://www.gnu.org/software/bash/manual/

  1. PDF形式のGNU文書はどのように生成されますか?
  2. PDFマニュアルを提供していないGNUソフトウェア用に同じまたは類似のスタイルのPDFファイルを作成する方法は?

    たとえば、texinfoソースファイルから生成することは可能で良い考えですか?試しましたがtexi2pdf find.texi動作しません。

    $  texi2pdf find.texi 
    This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdfetex)
     restricted \write18 enabled.
    entering extended mode
    (./find.texi (/usr/local/texlive/2014/texmf-dist/tex/texinfo/texinfo.tex
    Loading texinfo [version 2014-12-03.16]: pdf, fonts, markup, glyphs,
    page headings, tables, conditionals, indexing, sectioning, toc, environments,
    defuns, macros, cross references, insertions,
    (/usr/local/texlive/2014/texmf-dist/tex/generic/epsf/epsf.tex
    This is `epsf.tex' v2.7.4 <14 February 2011>
    ) localization, formatting, and turning on texinfo input format.) (./find.aux)
    (./version.texi)
    ./find.texi:10: I can't find file `../locate/dblocation.texi'.
    @temp ->@input ../locate/dblocation.texi
    
    @includezzz ...and @input #1 }@expandafter }@temp
                                                      @popthisfilestack
    l.10 @include ../locate/dblocation.texi
    
    (Press Enter to retry, or Control-D to exit)
    

ベストアンサー1

PDFファイルはさまざまな方法で生成されます。時にはDVIファイル変換を介してdvipdfm、時にはgs...

の場合、findutils提供されたビルドスクリプトが正しくありません。以下は、ソースコードを抽出した後の短縮バージョンです(4.6.0の場合)。

cd findutils-4.6.0
./configure
make -C lib
make -C gl/lib
make -C locate

(こうすればdblocation.texi

cd doc
texi2pdf -I ../locate find.texi

通常、ファイルからリンクなどを含むPDFを生成することは常に可能です.infoが、必要なすべての入力ファイルを生成する方法を理解する必要があります。

おすすめ記事