Dan Davison <davi...@stats.ox.ac.uk> writes: > Can you point me to an example that shows how to make source code in > latex look (almost) as nice as html?
That is supposed to work with the `listings' package. I havent tried that yet. I still use my old LaTeX headers and write verbatim LaTeX code. I'd like to switch though, since it's a lot to type. Here is an example:
\begin{codeblock} \keyword{public function}~\func{\_\_construct}~(\increaseindent[15]\doindent \variable{\$instance}~=~\konstante{MAP\_STANDARD\_JS\_INSTANCE},\doindent \variable{\$z}~=~\konstante{MAP\_STANDARD\_ZOOM},\doindent \variable{\$centerX}~=~-1,\doindent \variable{\$centerY}~=~-1,\doindent \variable{\$highlights}~=~\keyword{true},\doindent \variable{\$spots}~=~\keyword{false}\doindent )\resetindent \end{codeblock}
Looks horrible, does it? You can find the "listings.pdf" documentation here: http://www.ctan.org/tex-archive/macros/latex/contrib/listings/ Best wishes Sebastian
_______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode