Darwin Help

Back to Index

latex

Function latex - convert a document or part of it to latex

Calling Sequence  latex(a,titl,auth)
LaTeX(a,titl,auth)
LaTeXC(a)
Parameters
NameTypeDescription

a {string,structure}object to convert to latex
titl string(optional) title of the document
auth string(optional) author(s) of the document
Return Type  string
Synopsis The latex function converts an object, typically a Document or a part thereof, to latex. LaTeX is a synonym of latex, much more difficult to type but according to Leslie Lamport. LaTeXC is used for a component, that is no headers/trailers will be produced.
Examples
> t := Table( center, border, Row('abc','cde')):

> prints(LaTeXC(t));
\begin{table}[!ht]
\begin{center}
\begin{tabular}{|c|c|}
\hline
abc & cde\\
\hline
\end{tabular}
\end{center}
\end{table}

> d := Document('Species evolve, that''s it.'):

> prints(latex(d,'The origin of species','Charles Darwin'));
% automatically generated by Darwin
%  prepared on Fri Jun 18 17:10:34 2010
%  running on linneus62
%  by user darwin
\documentclass{article}
\usepackage{html,color,epsfig}
\setlength{\parindent}{5pt}

\begin{document}
\title{The origin of species}
\author{Charles Darwin}
\maketitle
Species evolve, that's it.
\end{document}



See also Code,   Color,   Copyright,   Document,   HTML,   HyperLink,   Indent,   LastUpdatedBy,   List,   Paragraph,   PostscriptFigure,   print,   Roman,   RunDarwinSession,   screenwidth,   Table,   TT,   View