summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2013-09-09 04:23:06 +0200
committerMartin Herkt <lachs0r@srsfckn.biz>2013-09-09 04:34:56 +0200
commit005407338d8943cbb5ce551ee7f6ae9ac94091a6 (patch)
tree2f99f1d72826648cc962566ee0e2106f98f2e2bf /DOCS
parent1b4d9b26cbd582e71cfb0e45c95a2d27d91db602 (diff)
downloadmpv-005407338d8943cbb5ce551ee7f6ae9ac94091a6.tar.bz2
mpv-005407338d8943cbb5ce551ee7f6ae9ac94091a6.tar.xz
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.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/docutils.conf20
-rw-r--r--DOCS/man/en/mpv.rst11
2 files changed, 25 insertions, 6 deletions
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
========