v4 doc: enhanced build system for all documents (except the userguide which we can't recompile at this stage, since some components are lacking in the SVN)

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1948 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
sebastien 2008-07-09 20:36:40 +00:00
parent be352664fa
commit 791422ba66
11 changed files with 37 additions and 1338 deletions

25
doc/Makefile Normal file
View File

@ -0,0 +1,25 @@
all: guide.pdf manual-html/index.html manual.pdf bvar-a-la-sims.pdf
make -C preprocessor
make -C macroprocessor
guide.pdf: guide.tex guide.bbl bibmad.sty
pdflatex guide
pdflatex guide
bvar-a-la-sims.pdf: bvar-a-la-sims.tex
pdflatex bvar-a-la-sims
pdflatex bvar-a-la-sims
manual-html/index.html: manual.xml dynare_html.xsl
xsltproc -stringparam base.dir ./manual-html/ dynare_html.xsl manual.xml
manual.pdf: manual.xml
dblatex manual.xml
clean:
rm -f *~
rm -f guide.{pdf,log,aux}
rm -f bvar-a-la-sims.{pdf,log,aux}
rm -rf manual.pdf manual-html
make -C preprocessor clean
make -C macroprocessor clean

Binary file not shown.

View File

@ -1,28 +0,0 @@
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
exclude-result-prefixes="doc"
version='1.0'>
<!-- It is important to use indent="no" here, otherwise verbatim -->
<!-- environments get broken by indented tags...at least when the -->
<!-- callout extension is used...at least with some processors -->
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
<xsl:import href="dynare.xsl"/>
<xsl:import href="dynare_lists.xsl"/>
<xsl:param name="passivetex.extensions">1</xsl:param>
<xsl:attribute-set name="list.item.spacing">
<xsl:attribute name="line-height">0em</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="compact.list.item.spacing">
<xsl:attribute name="space-before.optimum">0em</xsl:attribute>
<xsl:attribute name="space-before.minimum">0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0em</xsl:attribute>
<xsl:attribute name="line-height">0em</xsl:attribute>
</xsl:attribute-set>
</xsl:stylesheet>

View File

@ -1,115 +0,0 @@
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
exclude-result-prefixes="doc"
version='1.0'>
<!-- It is important to use indent="no" here, otherwise verbatim -->
<!-- environments get broken by indented tags...at least when the -->
<!-- callout extension is used...at least with some processors -->
<!-- <xsl:import href="c:/cygwin/usr/share/docbook-xsl/fo/docbook.xsl"/> -->
<xsl:import href="e:/docbook-xsl-1.65.1/fo/docbook.xsl"/>
<xsl:param name="use.extensions">1</xsl:param>
<xsl:param name="fop.extensions">1</xsl:param>
<xsl:param name="refentry.generate.name">0</xsl:param>
<xsl:param name="refentry.generate.title">1</xsl:param>
<xsl:template match="refsynopsisdiv">
<fo:block font-weight="bold" font-size="16pt" font-family="sans-serif">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'RefSynopsisDiv'"/>
</xsl:call-template>
</fo:block>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="refnamediv">
<xsl:variable name="section.level">
<xsl:call-template name="refentry.level">
<xsl:with-param name="node" select="ancestor::refentry"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="reftitle">
<xsl:choose>
<xsl:when test="$refentry.generate.name != 0">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'RefName'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$refentry.generate.title != 0">
<xsl:choose>
<xsl:when test="../refmeta/refentrytitle">
<xsl:apply-templates select="../refmeta/refentrytitle"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="refname[1]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:variable>
<!-- xsl:use-attribute-sets takes only a Qname, not a variable -->
<fo:block>
<xsl:choose>
<xsl:when test="$section.level = 1">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level1.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:when test="$section.level = 2">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level2.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:when test="$section.level = 3">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level3.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:when test="$section.level = 4">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level4.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:when test="$section.level = 5">
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level5.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block xsl:use-attribute-sets="refentry.title.properties">
<fo:block xsl:use-attribute-sets="section.title.level6.properties">
<xsl:value-of select="$reftitle"/>
</fo:block>
</fo:block>
</xsl:otherwise>
</xsl:choose>
<fo:block space-after="1em">
<xsl:choose>
<xsl:when test="../refmeta/refentrytitle">
<xsl:apply-templates select="../refmeta/refentrytitle"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="refname[1]"/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="refpurpose"/>
</fo:block>
</fo:block>
</xsl:template>
</xsl:stylesheet>

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +0,0 @@
This is BibTeX, Version 0.99cThe top-level auxiliary file: guide.aux
The style file: Usmad.bst
Database file #1: michel.bib
I was expecting a `,' or a `}'---line 248 of file michel.bib
:
: journal = "Computational Economics",
(Error may have been on previous line)
I'm skipping whatever remains of this entry
(There was 1 error message)

View File

@ -0,0 +1,6 @@
macroprocessor.pdf: macroprocessor.tex old-design.pdf new-design.pdf
pdflatex macroprocessor
pdflatex macroprocessor
clean:
rm -f macroprocessor.{pdf,toc,aux,log,nav,snm,vrb,out} *~

View File

@ -1,17 +0,0 @@
all: guide.pdf manual/index.html #manual.pdf
guide.pdf: guide.tex
pdflatex guide
manual/index.html: manual.xml
xsltproc -stringparam base.dir ./manual/ dynare_html.xsl manual.xml
manual.pdf: manual.xml
xsltproc dynare_fo.xsl manual.xml >manual.fo
pdfxmltex manual.fo
pdfxmltex manual.fo
install: manual.pdf manual/index.html
scp manual.pdf pythie.cepremap.cnrs.fr:public_html/mambo/download/manual/
scp manual/* pythie.cepremap.cnrs.fr:public_html/mambo/download/manual/

View File

@ -0,0 +1,6 @@
preprocessor.pdf: preprocessor.tex expr.png expr-sharing.png matrices.png overview.png
pdflatex preprocessor
pdflatex preprocessor
clean:
rm -f preprocessor.{pdf,toc,aux,log,nav,snm,vrb,out} *~

Binary file not shown.