The attached patch removes the hard-coded \clear(double)page command when using 
the bib to TOC option.

fixes http://www.lyx.org/trac/ticket/1881

OK?

regards Uwe
Index: InsetBibtex.cpp
===================================================================
--- InsetBibtex.cpp	(revision 35564)
+++ InsetBibtex.cpp	(working copy)
@@ -380,13 +380,6 @@
 	// bibtotoc-Option
 	if (!bibtotoc.empty() && !buffer().params().use_bibtopic) {
 		if (buffer().params().documentClass().hasLaTeXLayout("chapter")) {
-			if (buffer().params().sides == OneSide) {
-				// oneside
-				os << "\\clearpage";
-			} else {
-				// twoside
-				os << "\\cleardoublepage";
-			}
 			os << "\\addcontentsline{toc}{chapter}{\\bibname}";
 		} else if (buffer().params().documentClass().hasLaTeXLayout("section"))
 			os << "\\addcontentsline{toc}{section}{\\refname}";

Reply via email to