From 005407338d8943cbb5ce551ee7f6ae9ac94091a6 Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Mon, 9 Sep 2013 04:23:06 +0200 Subject: Add PDF manual target This builds a PDF version of the manpage using rst2latex and pdflatex, and installs it to PREFIX/share/doc/mpv by default. --- DOCS/man/docutils.conf | 20 ++++++++++++++++++++ DOCS/man/en/mpv.rst | 11 +++++------ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 DOCS/man/docutils.conf (limited to 'DOCS') diff --git a/DOCS/man/docutils.conf b/DOCS/man/docutils.conf new file mode 100644 index 0000000000..cd6e3acd52 --- /dev/null +++ b/DOCS/man/docutils.conf @@ -0,0 +1,20 @@ +[latex2e writer] +use-latex-docinfo: yes +use-latex-toc: yes +hyperlink-color: Blue!30!RoyalPurple!70!Black +latex-preamble: \usepackage[usenames,dvipsnames]{xcolor} + \usepackage{fullpage} + \usepackage{graphicx} + \renewcommand{\familydefault}{\sfdefault} + + \makeatletter + \renewcommand{\maketitle}{ + \begin{center} + \includegraphics{etc/mpv-icon-8bit-64x64.png}\\ + \vspace*{-1.5em} + \begin{Huge} + \@title + \end{Huge} + \end{center} + } + \makeatother diff --git a/DOCS/man/en/mpv.rst b/DOCS/man/en/mpv.rst index d769d34b29..74cc70f1e5 100644 --- a/DOCS/man/en/mpv.rst +++ b/DOCS/man/en/mpv.rst @@ -1,9 +1,3 @@ -.. - Hint: To generate a nicely formatted XeLaTeX document from this file, use - rst2xetex --use-latex-docinfo --use-latex-toc --hyperlink-color=MidnightBlue --latex-preamble="\usepackage[usenames,dvipsnames]{xcolor}\usepackage{fullpage}\setmainfont{Droid Sans}\setsansfont{Linux Biolinum O}\setmonofont[HyphenChar=None]{DejaVu Sans Mono}" mpv.rst - - You might want to put the .. contents:: directive below to generate a TOC. - mpv ### @@ -18,6 +12,11 @@ a movie player :Manual section: 1 :Manual group: multimedia +.. raw:: latex + + \tableofcontents + \pagebreak + SYNOPSIS ======== -- cgit v1.2.3