git.iko.soy/typeable/pandoc
on master help sign in
Added two more demo cases to website. Put a footnote in

README for demonstration purposes. git-svn-id: https://pandoc.googlecode.com/svn/trunk@302 788f1e2b-df1e-0410-8736-df70ead52e1b

commit17837b343be94dfa1427786008576646d4a89dcf authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 28 Dec 2006, 07:22 (20 years ago) parent2d253ca
4 files changed+19−4
Makefile+1 README+5−3 web/demos.sh+2−1 web/myheader.tex+11
Makefile+1
@@ -365,6 +365,7 @@ $(web_dest)/: $(MAIN) html
365365 $(make_page) > $(web_dest)/index.html; \
366366 cp README $(web_dest)/ ; \
367367 ./$(MAIN) -s -w latex README > $(web_dest)/README.tex ; \
368+ cp $(web_src)/myheader.tex $(web_dest)/ ; \
368369 cp $(web_src)/S5DEMO $(web_dest)/ ; \
369370 cp $(web_src)/header.html $(web_dest)/ ; \
370371 cp $(web_src)/footer.html $(web_dest)/ ; \
README+5−3
@@ -57,9 +57,7 @@ The wrapper script `markdown2pdf` requires
5757 - a POSIX-compliant shell
5858 - `pdflatex`, which should be part of any [LaTeX] distribution
5959 - the [unicode] and [fancyvrb] LaTeX packages, which are included
60− in many LaTeX distributions. The [unicode] package allows LaTeX to
61− process UTF-8 characters. [fancyvrb] allows code blocks and verbatim
62− text to be used within footnotes. If your installation of LaTeX
60+ in many LaTeX distributions.[^1] If your installation of LaTeX
6361 does not include these packages, you will get an error (complaining
6462 about missing `ucs.sty` or `fancyvrb.sty`) when you try to compile
6563 a LaTeX file produced by Pandoc, or when you use the `markdown2pdf`
@@ -72,6 +70,10 @@ The wrapper script `markdown2pdf` requires
7270[unicode]: http://www.ctan.org/tex-archive/macros/latex/contrib/unicode/
7371[fancyvrb]: http://www.ctan.org/tex-archive/macros/latex/contrib/fancyvrb/
7472
73+[^1]: The [unicode] package allows LaTeX to process UTF-8 characters.
74+[fancyvrb] allows code blocks and verbatim text to be used within
75+footnotes.
76+
7577Using Pandoc
7678============
7779
web/demos.sh+2−1
@@ -15,7 +15,8 @@ pandoc -s -w rst README -o demo0.txt
1515pandoc -s README -o demo0.rtf
1616pandoc -s -m -i -w s5 S5DEMO -o demo0.html
1717web2markdown http://www.gnu.org/software/make/ -o demo0.txt
18−markdown2pdf README -o demo0.pdf'
18+markdown2pdf README -o demo0.pdf
19+markdown2pdf -C myheader.tex README -o demo0.pdf'
1920
2021oldifs=$IFS
2122IFS=$NEWLINE
web/myheader.texnew file+11
@@ -0,0 +1,11 @@
1+\documentclass[12pt]{article}
2+\usepackage{txfonts}
3+\usepackage{hyperref}
4+\usepackage{ucs}
5+\usepackage[utf8x]{inputenc}
6+\usepackage{graphicx}
7+\setlength{\parindent}{0pt}
8+\setlength{\parskip}{6pt plus 2pt minus 1pt}
9+% This is needed for code blocks in footnotes:
10+\usepackage{fancyvrb}
11+\VerbatimFootnotes