Karakas Online

4.6. Adapt the preample

Put the following lines in the preample (menue Layout-->Preample) of your LyX document:

<!entity index SYSTEM "index.sgml">
<!entity bibliography SYSTEM "bibliography.sgml"> 
<!entity appendix SYSTEM "appendix.sgml">
<!ENTITY % output.print.png "IGNORE"> 
<!ENTITY % output.print.pdf "IGNORE"> 
<!ENTITY % output.print.eps "IGNORE">
<!ENTITY % output.print.bmp "IGNORE">

If you don't want to do this for each and every document you write in LyX, you can put the above lines at the very start of the template file docbook_article.lyx (located in /usr/share/lyx/templates in my system) as follows:

#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass docbook
\begin_preamble
<!entity index SYSTEM "index.sgml">
<!entity bibliography SYSTEM "bibliography.sgml"> 
<!entity appendix SYSTEM "appendix.sgml">
<!ENTITY % output.print.png "IGNORE">
<!ENTITY % output.print.pdf "IGNORE">
<!ENTITY % output.print.eps "IGNORE">
<!ENTITY % output.print.bmp "IGNORE">
\end_preamble
\language english
\inputencoding latin1
\fontscheme default
\graphics default
...
Important IMPORTANT:
 

If you use RefDB (Section 3.11), you have to change the bibliography entity to basename.bib.sgml, where basename is the name of your file, without the ending. Example: if your file is myTemplate.lyx and you use RefDB, then the bibliography entity should be declared as follows in the preample:

<!entity bibliography SYSTEM "myTemplate.bib.sgml">

See Section 7.1.9, Section 7.1.10, Section 7.1.11 and Section 7.2.2 for an explanation of this magic regarding the Appendix, Bibliography, Index and the figures respectively.

Last updated Mon Sep 24 01:19:25 CEST 2007 Permalink: http://www.karakas-online.de/mySGML/preample.html All contents © 2002-2007 Chris Karakas