emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX Formulas and Publishing to HTML Error
@ 2011-06-30 19:50 Colin Grey
  2011-07-01  7:46 ` Pierre de Buyl
  2011-07-01  8:01 ` Eric S Fraga
  0 siblings, 2 replies; 3+ messages in thread
From: Colin Grey @ 2011-06-30 19:50 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I'm having a weird problem trying to write formulas using latex in org mode.  Here is a sample file with just two formulas:

#+TITLE: Title
#+OPTIONS: H:3 num:t toc:t 
#+OPTIONS: author:nil timestamp:nil creator:nil
#+OPTIONS: ^:t skip:t LaTeX:t

$A$

$B$



When I export to HTML, the result is where 'A' should be is a link to 'file' and where 'B' should be is rendered 'A'.  The output HTML is below.  Any ideas?  (I'm using Aquamacs on OS X)



<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2011-06-30 20:46:43 BST"/>
<meta name="author" content="Grey"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
</head>
<body>
<div id="content">
<h1 class="title">Title</h1>
<p><a href="#file:">file:</a>
</p>
<p>
<img src="ltxpng/test.org_f7cded5a4adea768e121f84d85028c24f7cddf58.png"/> 
</p><div id="postamble">
</div>
</div>
</body>
</html

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

* Re: LaTeX Formulas and Publishing to HTML Error
  2011-06-30 19:50 LaTeX Formulas and Publishing to HTML Error Colin Grey
@ 2011-07-01  7:46 ` Pierre de Buyl
  2011-07-01  8:01 ` Eric S Fraga
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre de Buyl @ 2011-07-01  7:46 UTC (permalink / raw)
  To: Colin Grey; +Cc: emacs-orgmode

Hello,

Did you try putting some text before the first formula ?
It is not recognized as latex (there is only one img included in the  
html).

Anyway, your version of org-mode may be outdated, it works fine on my  
computer (org-mode version 7.5).

http://orgmode.org/manual/Installation.html#Installation

will give you the steps required to install. On the mac, you need to  
give the full path the the emacs binary in the Makefile.
It should look similar to /Applications/Aquamacs.app/Contents/MacOS/ 
Emacs
Do not forget to set up the load path so that emacs will pick the new  
version of emacs.

Pierre

Le 30 juin 11 à 21:50, Colin Grey a écrit :

> Hello,
>
> I'm having a weird problem trying to write formulas using latex in  
> org mode.  Here is a sample file with just two formulas:
>
> #+TITLE: Title
> #+OPTIONS: H:3 num:t toc:t
> #+OPTIONS: author:nil timestamp:nil creator:nil
> #+OPTIONS: ^:t skip:t LaTeX:t
>
> $A$
>
> $B$
>
>
>
> When I export to HTML, the result is where 'A' should be is a link  
> to 'file' and where 'B' should be is rendered 'A'.  The output HTML  
> is below.  Any ideas?  (I'm using Aquamacs on OS X)
>
>
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> lang="en" xml:lang="en">
> <head>
> <title>Title</title>
> <meta http-equiv="Content-Type" content="text/ 
> html;charset=iso-8859-1"/>
> <meta name="generator" content="Org-mode"/>
> <meta name="generated" content="2011-06-30 20:46:43 BST"/>
> <meta name="author" content="Grey"/>
> <meta name="description" content=""/>
> <meta name="keywords" content=""/>
> </head>
> <body>
> <div id="content">
> <h1 class="title">Title</h1>
> <p><a href="#file:">file:</a>
> </p>
> <p>
> <img src="ltxpng/ 
> test.org_f7cded5a4adea768e121f84d85028c24f7cddf58.png"/>
> </p><div id="postamble">
> </div>
> </div>
> </body>
> </html
>
>
>

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

* Re: LaTeX Formulas and Publishing to HTML Error
  2011-06-30 19:50 LaTeX Formulas and Publishing to HTML Error Colin Grey
  2011-07-01  7:46 ` Pierre de Buyl
@ 2011-07-01  8:01 ` Eric S Fraga
  1 sibling, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2011-07-01  8:01 UTC (permalink / raw)
  To: Colin Grey; +Cc: emacs-orgmode

Colin Grey <cgpgrey@gmail.com> writes:

> Hello,
>
> I'm having a weird problem trying to write formulas using latex in org
> mode.  Here is a sample file with just two formulas:
>
> #+TITLE: Title
> #+OPTIONS: H:3 num:t toc:t 
> #+OPTIONS: author:nil timestamp:nil creator:nil
> #+OPTIONS: ^:t skip:t LaTeX:t
>
> $A$
>
> $B$

This didn't work for me either.  Adding a top leaving heading, such
as:

--8<---------------cut here---------------start------------->8---
* Introduction
--8<---------------cut here---------------end--------------->8---

before the first equation at least made latex export work.  HTML export
still doesn't do what I believe you wanted, however, but this I know
less about...

HTH.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.526.g311b0.dirty)

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

end of thread, other threads:[~2011-07-01  8:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-30 19:50 LaTeX Formulas and Publishing to HTML Error Colin Grey
2011-07-01  7:46 ` Pierre de Buyl
2011-07-01  8:01 ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).