Removed web directory.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1927 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2010-03-20 20:21:56 +00:00
parent 56f08b5f80
commit 8ed6865a8a
10 changed files with 0 additions and 386 deletions

View file

@ -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$

View file

@ -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
...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -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>

109
web/demos
View file

@ -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@@

View file

@ -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;
}

View file

@ -1,4 +0,0 @@
<div id="footer">
&copy; 2006-2007 <a href="http://johnmacfarlane.net/">John MacFarlane</a>
</div>

View file

@ -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/

View file

@ -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$

View file

@ -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;
}

View file

@ -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}