all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Export literally but convert math equations?
@ 2010-05-28 15:32 Uriel Avalos
  2010-05-28 15:36 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Uriel Avalos @ 2010-05-28 15:32 UTC (permalink / raw)
  To: emacs-orgmode

Is there a way to convert latex equations and math inside of EXAMPLE and HTML blocks?

For example, I would like to the following equation to display as an equation in the HTML:

#+BEGIN_EXAMPLE
   Hello world
   $2^2+\sqrt(2) = 2$
#+END_EXAMPLE

The current behavior just gives me the literal example. I would use other blocks (like BLOCKQUOTE); except that I need to preserve the extra whitespace. 

Alternatively: is there a way to preserve whitespace in the HTML export?-- 
--Thanks!
Uriel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Export literally but convert math equations?
  2010-05-28 15:32 Export literally but convert math equations? Uriel Avalos
@ 2010-05-28 15:36 ` Carsten Dominik
  2010-05-28 16:10   ` Uriel Avalos
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2010-05-28 15:36 UTC (permalink / raw)
  To: Uriel Avalos; +Cc: emacs-orgmode


On May 28, 2010, at 5:32 PM, Uriel Avalos wrote:

> Is there a way to convert latex equations and math inside of EXAMPLE  
> and HTML blocks?


Well, the whole idea of example blocks is to *not* do this.  What is  
the application for this?

- Carsten

>
> For example, I would like to the following equation to display as an  
> equation in the HTML:
>
> #+BEGIN_EXAMPLE
>   Hello world
>   $2^2+\sqrt(2) = 2$
> #+END_EXAMPLE
>
> The current behavior just gives me the literal example. I would use  
> other blocks (like BLOCKQUOTE); except that I need to preserve the  
> extra whitespace.
>
> Alternatively: is there a way to preserve whitespace in the HTML  
> export?--
> --Thanks!
> Uriel
>
> _______________________________________________
> 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

- Carsten

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Export literally but convert math equations?
  2010-05-28 15:36 ` Carsten Dominik
@ 2010-05-28 16:10   ` Uriel Avalos
  0 siblings, 0 replies; 3+ messages in thread
From: Uriel Avalos @ 2010-05-28 16:10 UTC (permalink / raw)
  To: emacs-orgmode

It would be nice to have that feature available as an option :-) Or is there a way to preserve whitespace in other blocks? I set the variable org-src-preserve-indentation for SRC blocks but that had no effect.

I'm typing up an HTML doc with lots of (simple) math. However, I'm trying to avoid using latex as much as possible. I thus need a way to align equations (incidentally, whitespace is good enough). 

Why not use latex/tex? Because I work for a publisher that uses MathType. And unfortunately, the current version of MathType is buggy when it comes to converting latex/tex, so I need to minimize it's use. 

Thanks for the reply!

--Uriel

On Fri, 28 May 2010 17:36:00 +0200
Carsten Dominik <carsten.dominik@gmail.com> wrote:

> 
> On May 28, 2010, at 5:32 PM, Uriel Avalos wrote:
> 
> > Is there a way to convert latex equations and math inside of EXAMPLE  
> > and HTML blocks?
> 
> 
> Well, the whole idea of example blocks is to *not* do this.  What is  
> the application for this?
> 
> - Carsten
> 
> >
> > For example, I would like to the following equation to display as an  
> > equation in the HTML:
> >
> > #+BEGIN_EXAMPLE
> >   Hello world
> >   $2^2+\sqrt(2) = 2$
> > #+END_EXAMPLE
> >
> > The current behavior just gives me the literal example. I would use  
> > other blocks (like BLOCKQUOTE); except that I need to preserve the  
> > extra whitespace.
> >
> > Alternatively: is there a way to preserve whitespace in the HTML  
> > export?--
> > --Thanks!
> > Uriel
> >
> > _______________________________________________
> > 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
> 
> - Carsten
> 
> 
> 


-- 
--Thanks!
Uriel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-28 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28 15:32 Export literally but convert math equations? Uriel Avalos
2010-05-28 15:36 ` Carsten Dominik
2010-05-28 16:10   ` Uriel Avalos

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.