Commit 791422ba authored by sebastien's avatar sebastien

v4 doc: enhanced build system for all documents (except the userguide which we...

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
parent be352664
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
<?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>
<?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>
This diff is collapsed.
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)
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} *~
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/
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} *~
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment