emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Change resolution of LaTeX formulas in HTML output?


From: Sebastian Rose
Subject: [Orgmode] Re: Change resolution of LaTeX formulas in HTML output?
Date: Fri, 06 Aug 2010 00:14:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Dan Davison <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]