From e9a9ca7ae9c10f92e23c2a4d27a7237df93bc563 Mon Sep 17 00:00:00 2001 From: Andreas Meyer Date: Sun, 19 Mar 2006 21:44:38 +0000 Subject: [PATCH] emanate an empty bibliography page, if there are no \cite commands. prevents dead links --- .../src/latex_converter_config/html/latex.sty | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Manual_tools/src/latex_converter_config/html/latex.sty b/Manual_tools/src/latex_converter_config/html/latex.sty index fa7f73d80dd..8080e49c07f 100644 --- a/Manual_tools/src/latex_converter_config/html/latex.sty +++ b/Manual_tools/src/latex_converter_config/html/latex.sty @@ -195,8 +195,18 @@ \lciIfFileExists{#GXC1#GXC2.auxtmp}{\lciInclude{#GXC1#GXC2.auxtmp}}{}} % Args: main-path, main-rootname: reads *.bbl file if it exists +% if it does not exist, at least prepare a dummy bib page +% to prevent dead links \newcommand{\lciReadBbl}[2]{% - \lciIfFileExists{#GXC1#GXC2.bbl}{\lciInclude{#GXC1#GXC2.bbl}}{}} + \lciIfFileExists{#GXC1#GXC2.bbl}% + {\lciInclude{#GXC1#GXC2.bbl}}% + {\lciOpenTmpFile{\lciBibFilename}% + \lciBibFileHeader% + The empty bibliography. + \lciBibFileFooter% + \lciCloseFile% + }% +} % ___________________________________________________________________________