\documentclass[10pt,a4paper,english]{article}
\usepackage{babel}
\usepackage{ae}
\usepackage{aeguill}
\usepackage{shortvrb}
\usepackage[latin1]{inputenc}
\usepackage{tabularx}
\usepackage{longtable}
\setlength{\extrarowheight}{2pt}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{color}
\usepackage{multirow}
\usepackage{ifthen}
\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
\usepackage[DIV12]{typearea}
%% generator Docutils: http://docutils.sourceforge.net/
\newlength{\admonitionwidth}
\setlength{\admonitionwidth}{0.9\textwidth}
\newlength{\docinfowidth}
\setlength{\docinfowidth}{0.9\textwidth}
\newlength{\locallinewidth}
\newcommand{\optionlistlabel}[1]{\bf #1 \hfill}
\newenvironment{optionlist}[1]
{\begin{list}{}
  {\setlength{\labelwidth}{#1}
   \setlength{\rightmargin}{1cm}
   \setlength{\leftmargin}{\rightmargin}
   \addtolength{\leftmargin}{\labelwidth}
   \addtolength{\leftmargin}{\labelsep}
   \renewcommand{\makelabel}{\optionlistlabel}}
}{\end{list}}
\newlength{\lineblockindentation}
\setlength{\lineblockindentation}{2.5em}
\newenvironment{lineblock}[1]
{\begin{list}{}
  {\setlength{\partopsep}{\parskip}
   \addtolength{\partopsep}{\baselineskip}
   \topsep0pt\itemsep0.15\baselineskip\parsep0pt
   \leftmargin#1}
 \raggedright}
{\end{list}}
% begin: floats for footnotes tweaking.
\setlength{\floatsep}{0.5em}
\setlength{\textfloatsep}{\fill}
\addtolength{\textfloatsep}{3em}
\renewcommand{\textfraction}{0.5}
\renewcommand{\topfraction}{0.5}
\renewcommand{\bottomfraction}{0.5}
\setcounter{totalnumber}{50}
\setcounter{topnumber}{50}
\setcounter{bottomnumber}{50}
% end floats for footnotes
% some commands, that could be overwritten in the style file.
\newcommand{\rubric}[1]{\subsection*{~\hfill {\it #1} \hfill ~}}
\newcommand{\titlereference}[1]{\textsl{#1}}
% end of "some commands"
\title{Latex README}
\author{}
\date{}
\hypersetup{
pdftitle={Latex README}
}
\raggedbottom
\begin{document}
\maketitle


\setlength{\locallinewidth}{\linewidth}
% Substitutions needed for TeX output 
% %s/raw:: latex/raw:: latex/g 
% .. role:: latex(raw) 
% :format: latex 
% .. role:: m(latex) 
% -------------------------------------------- 
% Substitutions needed for HTML output: 
% .. role:: m(latex) 


%___________________________________________________________________________

\hypertarget{overview}{}
\pdfbookmark[0]{Overview}{overview}
\section*{Overview}

The idea is to convert latex fragments into \emph{png} for display in html
model.


%___________________________________________________________________________

\hypertarget{role-and-directive}{}
\pdfbookmark[0]{Role and directive}{role-and-directive}
\section*{Role and directive}

There is a role called \texttt{latex} that can be used for inline
latex expressions: \texttt{:latex:`{\$}{\textbackslash}psi(r) = {\textbackslash}exp(-2r){\$}`} will
produce $\psi(r)=\exp(-2r)$.  Inside the back-tics you can write
anything you would write in a LaTeX ducument.

For producing displayed math (like an \texttt{equation*} environment in a
LaTeX document) there is a \texttt{latex} role.  If you write:
\begin{quote}{\ttfamily \raggedright \noindent
..~latex-math::~\\
~\\
~~~{\$}{\textbackslash}psi(r)~=~e{\textasciicircum}{\{}-2r{\}}{\$}
}\end{quote}

you will get:
$\psi(r) = e^{-2r}$

%___________________________________________________________________________

\hypertarget{example}{}
\pdfbookmark[0]{Example}{example}
\section*{Example}


%___________________________________________________________________________

\hypertarget{role}{}
\pdfbookmark[1]{Role}{role}
\subsection*{Role}

You can use roles for inline stuff:  $e=mc^2$.  Lots of fun.

Or how about: $x = (-b \pm \sqrt{b^2 - 4ac}) / 2a$


%___________________________________________________________________________

\hypertarget{directive}{}
\pdfbookmark[1]{Directive}{directive}
\subsection*{Directive}
$$-1 = e^{i\pi}$$

%___________________________________________________________________________

\hypertarget{more-info}{}
\pdfbookmark[0]{More info}{more-info}
\section*{More info}

No more info at this time.
% vim:filetype=rst 

\end{document}
