]> matita.cs.unibo.it Git - helm.git/commitdiff
added (TODO) section on tacticals)
authorStefano Zacchiroli <zack@upsilon.cc>
Mon, 29 May 2006 11:56:28 +0000 (11:56 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Mon, 29 May 2006 11:56:28 +0000 (11:56 +0000)
matita/help/C/Makefile
matita/help/C/matita-tex.xsl [new file with mode: 0644]
matita/help/C/sec_tacticals.xml [new file with mode: 0644]

index dccc62ed6f74cee2f9a6d7369bf78b074fdd6b3c..b370567def24ba2a9a5ae804b9fa6d11961b5e00 100644 (file)
@@ -1,10 +1,21 @@
 XSLTPROC=xsltproc
 XHTML_XSL=matita-xhtml.xsl
 FO_XSL=matita-fo.xsl
+TEX_XSL=matita-tex.xsl
 MAIN=matita.xml
 
+# one of "fop", "pdflatex"
+PDF_METHOD=pdflatex
+
 all: html txt
 
+clean:
+       rm -f *.html *.fo *.pdf
+       rm -rf $(filter-out version.txt,$(wildcard *.txt))
+       rm -f *-stamp
+       rm -f matita.out matita.log matita.glo matita.dvi matita.idx
+       rm -f matita.aux matita.tex
+
 # XHTMLs generation
 
 .PHONY: html
@@ -29,12 +40,17 @@ txt-stamp: html-stamp
 pdf: pdf-stamp
 pdf-stamp: $(patsubst %.xml,%.pdf,$(MAIN))
        touch $@
+
 %.fo: %.xml
        xsltproc $(FO_XSL) $< | xmllint --format - > $@
+%.tex: %.xml
+       xsltproc $(TEX_XSL) $< > $@
+
+ifeq ($(PDF_METHOD),fop)
 %.pdf: %.fo
        fop $< $@
-clean:
-       rm -f *.html *.fo *.pdf
-       rm -rf $(filter-out version.txt,$(wildcard *.txt))
-       rm -f *-stamp
+else ifeq ($(PDF_METHOD),pdflatex)
+%.pdf: %.tex
+       pdflatex $<
+endif
 
diff --git a/matita/help/C/matita-tex.xsl b/matita/help/C/matita-tex.xsl
new file mode 100644 (file)
index 0000000..94129a3
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+  <xsl:import href="http://db2latex.sourceforge.net/xsl/docbook.xsl"/>
+  <xsl:output method="text" encoding="utf-8" indent="yes"/>
+
+  <xsl:param name="admon.graphics.path">/usr/share/xml/docbook/stylesheet/db2latex/latex/figures</xsl:param>
+
+</xsl:stylesheet>
diff --git a/matita/help/C/sec_tacticals.xml b/matita/help/C/sec_tacticals.xml
new file mode 100644 (file)
index 0000000..870feed
--- /dev/null
@@ -0,0 +1,7 @@
+
+<!-- ============ Tacticals ====================== -->
+<chapter id="sec_tacticals">
+ <title>Tacticals</title>
+ &TODO;
+</chapter>
+