From 3b15bf59bbc191eb9b94fab0e6e1620cb47a38d8 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Mon, 14 Apr 2008 15:26:14 +0200 Subject: [PATCH] Prevent latex from adding empty pages. --- debian/fix_latex | 9 +++++++++ debian/rules | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 debian/fix_latex diff --git a/debian/fix_latex b/debian/fix_latex new file mode 100755 index 0000000..96179e0 --- /dev/null +++ b/debian/fix_latex @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$1" = "-l" ]; then + # ignore lang settings + shift 2 +fi + +# prevent latex from adding empty pages +sed '1s|^\(\\documentclass\[.*\)\(\]{book}\)|\1,openany\2|' <$1 >$2 diff --git a/debian/rules b/debian/rules index 15f214a..acf3b06 100755 --- a/debian/rules +++ b/debian/rules @@ -25,7 +25,7 @@ build-stamp: doc/carnet-upgrade.sgml mv doc/index.html doc/carnet-upgrade.html # Build pdf docs - (cd doc; debiandoc2pdf -l hr_HR.UTF-8 carnet-upgrade.sgml) + (cd doc; debiandoc2pdf -l hr_HR.UTF-8 -s ../debian/fix_latex carnet-upgrade.sgml) rm doc/carnet-upgrade.tpt touch $@ -- 1.7.10.4