aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/S5DEMO19
-rw-r--r--web/code.text45
-rw-r--r--web/config.xsl9
-rw-r--r--web/demos109
-rw-r--r--web/docbook.css29
-rw-r--r--web/footer.html4
-rw-r--r--web/html2x.txt55
-rw-r--r--web/math.text17
-rwxr-xr-xweb/mkdemos.pl32
-rw-r--r--web/mytemplate.tex67
10 files changed, 0 insertions, 386 deletions
diff --git a/web/S5DEMO b/web/S5DEMO
deleted file mode 100644
index e61ecf853..000000000
--- a/web/S5DEMO
+++ /dev/null
@@ -1,19 +0,0 @@
-% Eating Habits
-% John Doe
-% March 22, 2005
-
-# In the morning
-
-- Eat eggs
-- Drink coffee
-
-# In the evening
-
-- Eat spaghetti
-- Drink wine
-
-# Conclusion
-
-- And the answer is...
-- $f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(a)}{n!}(x-a)^n$
-
diff --git a/web/code.text b/web/code.text
deleted file mode 100644
index c15ccfc9b..000000000
--- a/web/code.text
+++ /dev/null
@@ -1,45 +0,0 @@
-% Code with syntax highlighting
-
-Here's what a delimited code block looks like:
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell}
- -- | Inefficient quicksort in haskell.
- qsort :: (Enum a) => [a] -> [a]
- qsort [] = []
- qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
- qsort (filter (>= x) xs)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-And here's how it looks after syntax highlighting:
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell}
--- | Inefficient quicksort in haskell.
-qsort :: (Enum a) => [a] -> [a]
-qsort [] = []
-qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
- qsort (filter (>= x) xs)
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Here's some python, with numbered lines (specify `{.python .numberLines}`):
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.python .numberLines}
-class FSM(object):
-
-"""This is a Finite State Machine (FSM).
-"""
-
-def __init__(self, initial_state, memory=None):
-
- """This creates the FSM. You set the initial state here. The "memory"
- attribute is any object that you want to pass along to the action
- functions. It is not used by the FSM. For parsing you would typically
- pass a list to be used as a stack. """
-
- # Map (input_symbol, current_state) --> (action, next_state).
- self.state_transitions = {}
- # Map (current_state) --> (action, next_state).
- self.state_transitions_any = {}
- self.default_transition = None
- ...
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
diff --git a/web/config.xsl b/web/config.xsl
deleted file mode 100644
index a4436e24c..000000000
--- a/web/config.xsl
+++ /dev/null
@@ -1,9 +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"
- version="1.0">
- <xsl:param name="use.id.as.filename" select="'1'"/>
- <xsl:param name="admon.graphics" select="'1'"/>
- <xsl:param name="admon.graphics.path"></xsl:param>
- <xsl:param name="html.stylesheet" select="'../docbook.css'"/>
-</xsl:stylesheet>
diff --git a/web/demos b/web/demos
deleted file mode 100644
index fda8f1fa3..000000000
--- a/web/demos
+++ /dev/null
@@ -1,109 +0,0 @@
-% Pandoc examples
-
-To see the output created by each of the commands below,
-click on the name of the output file:
-
-1. HTML fragment:
-
-@ pandoc @@README@@ -o @@example1.html@@
-
-2. Standalone HTML file:
-
-@ pandoc -s @@README@@ -o @@example2.html@@
-
-3. HTML with smart quotes, table of contents, CSS, and custom footer:
-
-@ pandoc -s -S --toc -c @@pandoc.css@@ -A @@footer.html@@ @@README@@ -o @@example3.html@@
-
-4. LaTeX:
-
-@ pandoc -s @@README@@ -o @@example4.tex@@
-
-5. From LaTeX to markdown:
-
-@ pandoc -s @@example4.tex@@ -o @@example5.text@@
-
-6. reStructuredText:
-
-@ pandoc -s -w rst --toc @@README@@ -o @@example6.text@@
-
-7. Rich text format (RTF):
-
-@ pandoc -s @@README@@ -o @@example7.rtf@@
-
-8. S5 HTML slide show (all in one file):
-
-@ pandoc -s -m -i -w s5 @@S5DEMO@@ -o @@example8.html@@
-
-9. DocBook XML:
-
-@ pandoc -s -S -w docbook @@README@@ -o @@example9.db@@
-
- Chunked XHTML via DocBook and [xmlto]:
-
-@ xmlto xhtml -m @@config.xsl@@ @@example9.db@@ -o @@example9/@@
-
-10. Man page:
-
-@ pandoc -s -w man @@pandoc.1.md@@ -o @@example10.1@@
-
-11. ConTeXt:
-
-@ pandoc -s -w context @@README@@ -o @@example11.tex@@
-
- PDF via pandoc and ConTeXt's `texexec`:
-
-@ texexec --pdf @@example11.tex@@ # produces @@example11.pdf@@
-
-12. Converting a web page to markdown:
-
-@ pandoc -s -r html @@http://www.gnu.org/software/make/@@ -o @@example12.text@@
-
-13. From markdown to PDF:
-
-@ markdown2pdf @@README@@ -o @@example13.pdf@@
-
-14. PDF with numbered sections and a custom LaTeX header:
-
-@ markdown2pdf -N --template=@@mytemplate.tex@@ --variable version=1.4 @@README@@ --xetex --toc -o @@example14.pdf@@
-
-[xmlto]: http://cyberelk.net/tim/xmlto/
-
-15. A wiki program using [Happstack](http://happstack.com) and pandoc:
- [gitit](http://gitit.net)
-
-16. A web application that uses pandoc to convert web pages to any of eight different
- formats: [html2x](html2x.html).
-
-17. TeX math in HTML:
-
-@ pandoc @@math.text@@ -s -o @@mathDefault.html@@
-@ pandoc @@math.text@@ -s --mathml -o @@mathMathML.html@@
-@ pandoc @@math.text@@ -s -m -o @@mathLaTeXMathML.html@@
-@ pandoc @@math.text@@ -s --mimetex=/cgi-bin/mimetex.cgi -o @@mathMimetex.html@@
-@ pandoc @@math.text@@ -s --gladtex -o mathGladtex.htex
-@ gladtex @@mathGladtex.htex@@ # produces @@mathGladtex.html@@
-
-18. Syntax highlighting of delimited code blocks:
-
-@ pandoc @@code.text@@ -s -o @@example18.html@@
-
-19. GNU Texinfo, converted to info, HTML, and PDF formats:
-
-@ pandoc @@README@@ -s -o @@example19.texi@@
-@ makeinfo @@example19.texi@@ -o @@example19.info@@
-@ makeinfo @@example19.texi@@ --html -o @@example19@@
-@ texi2pdf @@example19.texi@@ # produces @@example19.pdf@@
-
-20. OpenDocument XML:
-
-@ pandoc @@README@@ -s -w opendocument -o @@example20.xml@@
-
-21. ODT (OpenDocument Text, readable by OpenOffice):
-
-@ pandoc @@README@@ -o @@example21.odt@@
-
-22. MediaWiki markup:
-
-@ pandoc -s -S -w mediawiki --toc @@README@@ -o @@example22.wiki@@
-
diff --git a/web/docbook.css b/web/docbook.css
deleted file mode 100644
index bf58461d5..000000000
--- a/web/docbook.css
+++ /dev/null
@@ -1,29 +0,0 @@
-body {
- font-family: Verdana, sans-serif;
-}
-
-.screen {
- font-family: monospace;
- font-size: 1em;
- display: block;
- padding: 10px;
- border: 1px solid #bbb;
- background-color: #eee;
- color: #000;
- overflow: auto;
- border-radius: 2.5px;
- -moz-border-radius: 2.5px;
- margin: 0.5em 2em;
-}
-
-a {
- text-decoration: none;
- border-bottom: 1px dotted #000;
-}
-
-a:hover {
- background-color: #777;
- color: #fff;
-}
-
-
diff --git a/web/footer.html b/web/footer.html
deleted file mode 100644
index 5cf54329f..000000000
--- a/web/footer.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<div id="footer">
- &copy; 2006-2007 <a href="http://johnmacfarlane.net/">John MacFarlane</a>
-</div>
-
diff --git a/web/html2x.txt b/web/html2x.txt
deleted file mode 100644
index cb35c1393..000000000
--- a/web/html2x.txt
+++ /dev/null
@@ -1,55 +0,0 @@
-% html2x
-
-<form action="/cgi-bin/html2x.pl" method="get">
-<p>
-<label for="url">URL:</label>
-<input type="text" size="60" name="url" value="http://johnmacfarlane.net/pandoc" />
-<input type="submit" value="Convert" />
-</p>
-<table>
-<tr>
-<th>Convert to:</th>
-<th style="padding-left: 1em;">Bookmarklets<br/>(right-click, add bookmark)</th>
-</tr>
-<tr>
-<td style="border-right: 1px solid gray; padding-right: 2em;">
-<input type="radio" name="format" value="markdown" checked="checked" />Markdown<br/>
-<input type="radio" name="format" value="markdown+" />Markdown with
-<a href="/pandoc/README.html#pandocs-markdown-vs-standard-markdown">pandoc extensions</a><br/>
-<input type="radio" name="format" value="rst" />reStructuredText<br/>
-<input type="radio" name="format" value="docbook" />DocBook XML<br/>
-<input type="radio" name="format" value="latex" />LaTeX<br/>
-<input type="radio" name="format" value="context" />ConTeXt<br/>
-<input type="radio" name="format" value="rtf" />Rich Text Format (RTF)<br/>
-<input type="radio" name="format" value="man" />Groff man page
-</td>
-<td style="padding-left: 1em;">
-- [2markdown]
-- [2markdown+]
-- [2rst]
-- [2docbook]
-- [2LaTeX]
-- [2ConTeXt]
-- [2RTF]
-- [2man]
-</td>
-</table>
-</form>
-
-<center>
-Powered by [pandoc]. Inspired by [the Asciinator].
-
-</center>
-
-[2markdown]: javascript:location.href='http://johnmacfarlane.net/cgi-bin/html2x.pl?format=markdown&url='+document.location.href;
-[2markdown+]: javascript:location.href='http://johnmacfarlane.net/cgi-bin/html2x.pl?format=markdown+&url='+document.location.href;
-[2rst]: javascript:location.href='http://johnmacfarlane.net/cgi-bin/html2x.pl?format=rst&url='+document.location.href;
-[2docbook]: javascript:location.href='http://johnmacfarlane.net/cgi-bin/html2x.pl?format=docbook&url='+document.location.href;
-[2LaTeX]: javascript:location.href='http://johnmacfarlane.net/cgi-bin/html2x.pl?format=latex&url='+document.location.href;
-[2ConTeXt]: javascript:location.href='http://johnmacfarlane.net/cgi-bin/html2x.pl?format=context&url='+document.location.href;
-[2RTF]: javascript:location.href='http://johnmacfarlane.net/cgi-bin/html2x.pl?format=rtf&url='+document.location.href;
-[2man]: javascript:location.href='http://johnmacfarlane.net/cgi-bin/html2x.pl?format=man&url='+document.location.href;
-
-[pandoc]: /pandoc/
-[the Asciinator]: http://www.aaronsw.com/2002/html2text/
-
diff --git a/web/math.text b/web/math.text
deleted file mode 100644
index aa52eae5e..000000000
--- a/web/math.text
+++ /dev/null
@@ -1,17 +0,0 @@
-% Pandoc math demos
-
-$a^2 + b^2 = c^2$
-
-$v(t) = v_0 + \frac{1}{2}at^2$
-
-$\gamma = \frac{1}{\sqrt{1 - v^2/c^2}}$
-
-$\exists x \forall y (Rxy \equiv Ryx)$
-
-$p \wedge q \models p$
-
-$\Box\diamond p\equiv\diamond p$
-
-$\int_{0}^{1} x dx = \left[ \frac{1}{2}x^2 \right]_{0}^{1} = \frac{1}{2}$
-
-$e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n$
diff --git a/web/mkdemos.pl b/web/mkdemos.pl
deleted file mode 100755
index 5009bd965..000000000
--- a/web/mkdemos.pl
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/perl -w
-# first argument is input filename - a demo template.
-# second argument is output filename.
-
-my $infile=$ARGV[0];
-my $outfile=$ARGV[1];
-
-open( IN, "< $infile" );
-open( OUT, "> $outfile" );
-
-while (<IN>) {
-
- my $line = $_;
- my $firstchar = substr ($line,0,1);
- if ( $firstchar eq '@' ) {
- my $command = substr ($line,4);
- my $commandExec = $command;
- $commandExec =~ s/[#].*$//g; # strip off comments
- $commandExec =~ s/@@//g; # strip off hotlink markers
- print STDERR "$commandExec";
- system "$commandExec";
- $line = $command;
- $line =~ s/@@([^@]*)@@/<a href="$1">$1<\/a>/g;
- $line =~ s/^(.*)$/ <pre><code>$1<\/code><\/pre>/g;
- if ( $line =~ /(example\d+\.html)<\/a><\/code>/m ) {
- $line .= "\n (View [`$1` as a web page]($1).)\n";
- }
- }
- print OUT $line;
-
-}
-
diff --git a/web/mytemplate.tex b/web/mytemplate.tex
deleted file mode 100644
index c2043164e..000000000
--- a/web/mytemplate.tex
+++ /dev/null
@@ -1,67 +0,0 @@
-\documentclass[12pt]{article}
-\usepackage{amsmath}
-\usepackage{ifxetex}
-\ifxetex
- \usepackage{fontspec,xltxtra,xunicode}
- \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
- \setromanfont{Georgia}
- \setsansfont{Arial}
- \setmonofont{Bitstream Vera Sans Mono}
-\else
- \usepackage[mathletters]{ucs}
- \usepackage[utf8x]{inputenc}
-\fi
-\usepackage{microtype}
-\usepackage{fancyhdr}
-\pagestyle{fancy}
-\pagenumbering{arabic}
-\lhead{\itshape Pandoc User's Guide}
-\chead{}
-\rhead{\itshape{\nouppercase{\leftmark}}}
-\lfoot{v $version$}
-\cfoot{}
-\rfoot{\thepage}
-\usepackage{listings}
-\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
-\setlength{\parindent}{0pt}
-\setlength{\parskip}{6pt plus 2pt minus 1pt}
-\usepackage{fancyvrb}
-\usepackage{enumerate}
-\usepackage{array}
-% This is needed because raggedright in table elements redefines \\:
-\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
-\let\PBS=\PreserveBackslash
-\usepackage[normalem]{ulem}
-\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
-\usepackage[breaklinks=true,linktocpage,pdftitle={$title$},pdfauthor={$for(author)$$author$$sep$; $endfor$},xetex,colorlinks]{hyperref}
-\usepackage{url}
-\usepackage{graphicx}
-$if(numbersections)$
-$else$
-\setcounter{secnumdepth}{0}
-$endif$
-\VerbatimFootnotes % allows verbatim text in footnotes
-$for(header-includes)$
-$header-includes$
-$endfor$
-
-$if(title)$
-\title{$title$}
-$endif$
-\author{$for(author)$$author$$sep$\\$endfor$}
-$if(date)$
-\date{$date$}
-$endif$
-
-\begin{document}
-$if(title)$
-\maketitle
-$if(toc)$
-\tableofcontents
-\newpage
-$endif$
-$endif$
-
-$body$
-
-\end{document}