% Sample document author: Michal Kebrt date: august 2005 % \documentclass[a4paper,11pt]{article} \usepackage{ulem} \usepackage{a4wide} \usepackage[dvipsnames,svgnames]{xcolor} \usepackage[pdftex]{graphicx} \title{Sample document} \usepackage{hyperref} % commands generated by html2latex \newcommand{\MYsl}[1]{ {\color{Maroon}\textsl{\textbf{#1}}} } \newcommand{\MYcode}[1]{ \texttt{#1} } \newcommand{\MYp}[1]{ {\color[rgb]{0.392,0.392,0.392}#1} } \newcommand{\MYxx}[1]{ \begin{flushright} #1 \end{flushright} } \newcommand{\MYright}[1]{ {\color{black} \begin{flushright} #1 \end{flushright}} } \newcommand{\MYdiv}[1]{ {\color{orange}#1} } \newcommand{\MYover}[1]{ {\color{Fuchsia}$\overline{#1}$} } \newcommand{\MYdivmoje}[1]{ {\color{yellow}#1} } \newcommand{\MYpcenter}[1]{ \texttt{{\color{red} \begin{center} #1 \end{center}}} } \newcommand{\MYbigred}[1]{ {\color{red}{\LARGE#1}} } \newcommand{\MYsc}[1]{ {\color[rgb]{0.667,0.078,0.157}\underline{\textsc{#1}}} } \newcommand{\MYpre}[1]{ \texttt{{\color{NavyBlue}#1}} } \newcommand{\MYunder}[1]{ {\color[rgb]{0.2,0.209,0.3}\underline{#1}} } \begin{document} % following text will be ignored \section{CSS} \MYp{Lorem ipsum \MYunder{dolor sit amet}, consectetuer adipiscing elit. Nulla ut lectus id velit aliquet semper. Proin vitae erat. Duis metus. Nam vel nisl. \MYover{Duis} lobortis mi at lorem. Etiam ornare nibh quis eros. Nam magna sem, adipiscing at, \MYsc{porttitor vitae}, interdum vitae, elit. Sed turpis mi, \MYsl{tincidunt eget} , euismod ac, molestie quis, wisi. } \MYp{\MYpcenter{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla ut lectus id velit aliquet semper. Proin vitae erat. Duis metus. Nam vel nisl. Duis lobortis mi at lorem. \MYover{Etiam ornare} nibh quis eros. Nam magna sem, adipiscing at, porttitor vitae, interdum vitae, elit. Sed turpis mi, tincidunt eget, euismod ac, molestie quis, wisi. }} \MYp{\MYright{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla ut lectus id velit aliquet semper. Proin vitae erat. Duis metus. Nam vel nisl. Duis lobortis mi at lorem. Etiam ornare nibh quis eros. Nam magna sem, adipiscing at, porttitor vitae, interdum vitae, elit. Sed turpis mi, tincidunt eget, euismod ac, molestie quis, wisi. Praesent nisl pede, hendrerit semper, accumsan ac, consequat id, nibh.}} \MYp{\MYpre{Lorem ipsum dolor sit amet, consectetuer adipiscing. Nulla ut lectus id velit aliquet semper. Proin vitae erat. Duis vel nisl. Duis lobortis mi at lorem. Etiam ornare nibh quis eros. sem, adipiscing at, porttitor vitae, interdum vitae, elit.}} \MYp{\MYdiv{\MYdivmoje{Should be yellow. }}\MYdiv{Should be orange. }\MYdiv{\MYcode{\MYxx{Should be orange on the right}}}} % little comment:
π π
\section{Special symbols} \subsection{Greek symbols} \MYp{\texttt{Alpha}: $A$ \\ $\Gamma$ $\Theta$ $\Xi$ $\Pi$ $\varsigma$ $\vartheta$ $\varpi$} \subsection{Other symbols} \MYp{\ldots $\prime$ / $\wp$ $\Im$ $\Re$ $\aleph$ $\bullet$ $^{\rm TM}$} \subsection{Arrows} \MYp{$\rightarrow$ $\Leftarrow$} \subsection{Numerically} \MYp{Both decimal and hexadecimal notations are supported.} \MYp{\texttt{\#163}: \pounds, \texttt{\#xA3}: \pounds, \\\texttt{\#169}: \copyright, \\\texttt{xA9}: \copyright } \subsection{LaTeX chars} \MYp{\{ \} \_ \textasciicircum @ \$ $\backslash$ \% \textasciitilde \#} \section{LaTeX commands in HTML} \MYp{It's easy to include LaTeX commands in \texttt{HTML}\footnote{HyperText MarkUp Language} comments. \LaTeX{} greets you. } \section{Different font styles and sizes.} \MYp{Lorem ipsum {\Huge dolor} sit amet, \textit{consectetuer} adipiscing elit. Nulla ut \textbf{lectus} id velit aliquet semper. \texttt{Proin vitae} erat. Duis metus. Nam vel nisl. Duis \scriptsize lobortis \normalsize mi at {\tiny lorem}.}\hypertarget{img}{} \section{Images} \MYp{ % atex: \LaTeX supports only JPG and PNG images.} \MYp{ \begin{center} \includegraphics{marley.jpg} \end{center}} \MYp{ \includegraphics{logo.png}} \section{Tables} \begin{tabular}{|l|p{5cm}|r|} \hline 1 1 & 1 hgf2 & hgfhf1 3 \\ \hline 2 1 & 2 2 & 2 3 \\ \hline 3 1 & 3 2 & 3 3 \\ \hline \end{tabular} \\ \begin{tabular}{p{10cm}|p{3cm}} Sparta Praha & 28 \\ Slovan Liberec & 25 \\ Dukla Praha & 24 \\ Slavia Praha & 20 \end{tabular} \section{Subscript, superscript} \MYp{H$_2$O, E = mc$^2$} \section{Hyperlinks} \MYp{I study at \href{http://www.mff.cuni.cz}{UK MFF}. And what about \hyperlink{img}{images}?} \section{Some texts} \MYp{ \begin{center} They went in single file, running like hounds on a strong scent,and an eager light was in their eyes. Nearly due west the broadswath of the marching \scriptsize Orcs tramped \normalsize its ugly slot; the sweet grassof Rohan had been bruised and blackened as they passed. \end{center}} \MYp{John said, \begin{quote}I saw Lucy at lunch\end{quote}, she told} \section{Lists and definitions} \begin{description} \item[Dweeb] young excitable person who may mature into a \emph{Nerd} or \emph{Geek} \item[Hacker] a clever programmer \item[Nerd] technically bright but socially inept person \end{description} \MYp{In this section, we discuss the lesser known forest elephants....this section continues...} \subsection{Habitat} \MYp{Forest elephants do not live in trees but among them....this subsection continues... } \subsubsection{Habitat} \MYp{Forest elephants do not live in trees but among them....this subsection continues... \textbf{\MYbigred{AND A LINE FOLLOWS}}} \line(1,0){300} \subsection{List} \begin{itemize} \item ... Level one, number one... \begin{enumerate} \item ... Level two, number one... \item ... Level two, number two... \begin{enumerate} \item ... Level three, number one... \end{enumerate} \item ... Level two, number three... \end{enumerate} \item ... Level one, number two... \end{itemize} \section{Preformated text} \begin{verbatim} public void commonElementEnd(ElementEnd element) throws IOException, NoItemException \{ String str = \_config.getItem(element.getElementName()).getEnd(); if (str.equals("")) return; if (element.getElementName().equals("pre")) isInPRE = false; \_writer.write(str); \} \end{verbatim} \end{document}