Skip to content

Instantly share code, notes, and snippets.

@tanimislam
Last active December 5, 2015 00:16
Show Gist options
  • Save tanimislam/322437941fb695406288 to your computer and use it in GitHub Desktop.
Save tanimislam/322437941fb695406288 to your computer and use it in GitHub Desktop.
demo LaTeX code to test Ryver
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
</head>
<body>
<p>Hello World! This is a demo to see how well <a href="http://pandoc.org/index.html">pandoc</a> can convert LaTeXinto <a href="https://en.wikipedia.org/wiki/Markdown">Markdown</a>, with <code>HTML</code> references.</p>
<ol>
<li><p>Here’s item #1. I hope you like it!</p></li>
<li><p>Here’s item #2. It contains a bulleted list.</p>
<ul>
<li><p>Here’s item #2a.</p></li>
<li><p>Here’s item #2b.</p></li>
<li><p>Here’s item #2c. I would normally put an equation here, but I don’t know if <a href="http://www.ryver.com/">Ryver</a> can display mathematical text. I spoke with a <a href="https://twitter.com/jhershauer">@jhershaur</a> at Ryver, and he mentioned that they are trying to integrate <a href="https://en.wikipedia.org/wiki/MathJax">MathJax</a> into Ryver.</p>
<p>Actually, let me just bite the bullet and write it out. <span class="math display">\[\begin{aligned}
&amp;&amp;f(x) = \oint \frac{4}{3 + \tan x}\,dx
\end{aligned}\]</span></p></li>
</ul></li>
</ol>
<p>So there you have it, a fairly straightforward, no-equation, no-figure, no-table demonstration of Pandoc’s conversion to Markdown, and pasting into the Ryver chat tool.</p>
</body>
</html>

Hello World! This is a demo to see how well pandoc can convert LaTeXinto Markdown, with HTML references.

  1. Here’s item #1. I hope you like it!

  2. Here’s item #2. It contains a bulleted list.

    • Here’s item #2a.

    • Here’s item #2b.

    • Here’s item #2c. I would normally put an equation here, but I don’t know if Ryver can display mathematical text. I spoke with a @jhershaur at Ryver, and he mentioned that they are trying to integrate MathJax into Ryver.

      Actually, let me just bite the bullet and write it out. $$\begin{aligned} &&f(x) = \oint \frac{4}{3 + \tan x},dx \end{aligned}$$

So there you have it, a fairly straightforward, no-equation, no-figure, no-table demonstration of Pandoc’s conversion to Markdown, and pasting into the Ryver chat tool.

\documentclass[12pt, fleqn]{article}
\usepackage{amsmath, amsfonts, graphicx, hyperref}
\begin{document}
Hello World! This is a demo to see how well
\href{http://pandoc.org/index.html}{pandoc} can convert \LaTeX into
\href{https://en.wikipedia.org/wiki/Markdown}{Markdown}, with
\texttt{HTML} references.
\begin{enumerate}
\item Here's item \#1. I hope you like it!
\item Here's item \#2. It contains a bulleted list.
\begin{itemize}
\item Here's item \#2a.
\item Here's item \#2b.
\item Here's item \#2c. I would normally put an equation here,
but I don't know if \href{http://www.ryver.com/}{Ryver} can
display mathematical text. I spoke with a
\href{https://twitter.com/jhershauer}{@jhershaur} at Ryver,
and he mentioned that they are trying to integrate
\href{https://en.wikipedia.org/wiki/MathJax}{MathJax} into Ryver.
Actually, let me just bite the bullet and write it out.
\begin{eqnarray}
&&f(x) = \oint \frac{4}{3 + \tan x}\,dx
\end{eqnarray}
\end{itemize}
\end{enumerate}
So there you have it, a fairly straightforward, no-equation,
no-figure, no-table demonstration of Pandoc's conversion to
Markdown, and pasting into the Ryver chat tool.
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment