0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Doc: Generate clickable PDF

This commit is contained in:
Pavel Tvrdik 2016-09-29 14:05:25 +02:00
parent 9faf72c8cc
commit a2df7c0303
2 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,7 @@ endif
docs: progdocs userdocs docs: progdocs userdocs
progdocs: prog.html prog.ps progdocs: prog.html prog.ps
userdocs: bird.html bird.ps userdocs: bird.html bird.pdf
prog.sgml: prog.sgml:
$(srcdir)/tools/progdoc $(srcdir_abs) $(srcdir)/tools/progdoc $(srcdir_abs)
@ -28,6 +28,10 @@ prog.sgml:
%.ps: %.dvi %.ps: %.dvi
dvips -D600 -ta4 -o $@ $< dvips -D600 -ta4 -o $@ $<
%.pdf: %.tex
pdflatex $<
pdflatex $<
%.tex: %.sgml %.tex: %.sgml
./sgml2latex --output=tex $< ./sgml2latex --output=tex $<

View File

@ -3,6 +3,7 @@
% The \relax is there to avoid sgml2latex rewriting the class % The \relax is there to avoid sgml2latex rewriting the class
<book> + "\\relax\\documentclass\[a4paper,10pt,openany\]{book}\n" <book> + "\\relax\\documentclass\[a4paper,10pt,openany\]{book}\n"
"\\usepackage\[colorlinks=true,linkcolor=blue,pdftitle={BIRD User's Guide}\]{hyperref}\n"
"\\usepackage{birddoc}\n" "\\usepackage{birddoc}\n"
"\\usepackage{qwertz}\n" "\\usepackage{qwertz}\n"
"\\usepackage{url}\n" "\\usepackage{url}\n"