From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: LaTeX export works but not in HTML Date: Wed, 30 Jun 2010 02:58:41 -0400 Message-ID: <16492.1277881121@gamaville.dokosmarshall.org> References: <291097.63371.qm@web65511.mail.ac4.yahoo.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=58647 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTrFs-0007BO-Ij for emacs-orgmode@gnu.org; Wed, 30 Jun 2010 02:58:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTrFr-00044n-CY for emacs-orgmode@gnu.org; Wed, 30 Jun 2010 02:58:44 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:40904) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTrFr-00044h-9M for emacs-orgmode@gnu.org; Wed, 30 Jun 2010 02:58:43 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L4T00G17FDTUXA0@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 30 Jun 2010 01:58:42 -0500 (CDT) In-reply-to: Message from Uri Avalos of "Tue, 29 Jun 2010 10:51:48 PDT." <291097.63371.qm@web65511.mail.ac4.yahoo.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Uri Avalos Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Uri Avalos wrote: > The following latex options produce the right format (an article scaled up to 20pts using the "arev" font): > > #+LaTeX_CLASS: article > #+LaTeX_CLASS_OPTIONS: [12pt] > #+LATEX_HEADER: \usepackage{amsmath,amsthm,amssymb} \usepackage[T1]{fontenc} \usepackage[20pt]{extsizes} \usepackage{arev} \usepackage[utf8]{inputenc} > > However, when I export to HTML, the math equations fail to export. And yes, I set the right variable for exporting latex snippets in HTML. > > Ideas? The culprit seems to be the arev package. Export works fine if I remove that. However, why would that cause a problem? > > Using org-mode 6.36 arev.sty conflicts with a couple of packages that are included by default when latex fragments are converted into images: o \usepackage[mathscr]{eucal} o \usepackage{wasysym} Since the latex compilation of the fragment fails, no .dvi and no .png files are produced. If you delete arev from your header, the conflicts go away and everything works. The conflict with eucal elicits the message: ,---- | (/usr/share/texmf-texlive/tex/latex/arev/arevmath.sty | (/usr/share/texmf-texlive/tex/latex/arev/ams-mdbch.sty) | (/usr/share/texmf-texlive/tex/latex/base/ifthen.sty) | | ! LaTeX Error: Command `\mathscr' already defined. | | See the LaTeX manual or LaTeX Companion for explanation. | Type H for immediate help. | ... | | l.95 ...Alphabet{\mathscr} {U} {rsfs}{m}{n} | % Ralph Smith Formal Script | ? `---- Then the conflict with wasysym elicits the message: ,---- | (/usr/share/texmf-texlive/tex/latex/arev/arevsymbols.tex | | ! LaTeX Error: Command `\quarternote' already defined. | | See the LaTeX manual or LaTeX Companion for explanation. | Type H for immediate help. | ... | | l.43 ...bol{\quarternote}{\mathalpha}{extraup}{90} | % uni2669 | ? `---- If I comment those two out of the (temporary) fragment latex file, the compilation goes through without any problems, so these are the only conflicts. Now that I've made the diagnosis, I'll let you worry about the cure ;-) HTH, Nick