From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geralt Subject: Re: Bug in LaTeX export of org-html-entities? Date: Tue, 2 Mar 2010 12:59:55 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmQlp-0001eu-Mu for emacs-orgmode@gnu.org; Tue, 02 Mar 2010 07:00:13 -0500 Received: from [140.186.70.92] (port=38460 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmQlo-0001dU-01 for emacs-orgmode@gnu.org; Tue, 02 Mar 2010 07:00:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmQlY-0008V4-OR for emacs-orgmode@gnu.org; Tue, 02 Mar 2010 06:59:57 -0500 Received: from mail-fx0-f222.google.com ([209.85.220.222]:64660) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmQlY-0008V0-Gc for emacs-orgmode@gnu.org; Tue, 02 Mar 2010 06:59:56 -0500 Received: by fxm22 with SMTP id 22so180362fxm.26 for ; Tue, 02 Mar 2010 03:59:55 -0800 (PST) In-Reply-To: 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: emacs-orgmode@gnu.org I think I forgot to state the actual problem, cosider the following org-file: * An example \Rightarrow foobar some text The produced LaTeX code is: % Created 2010-03-02 Tue 12:53 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{longtable} \usepackage{hyperref} \providecommand{\alert}[1]{\textbf{#1}} \title{test} \author{} \date{02 March 2010} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{An example \Rightarrow foobar} \label{sec-1} some text \end{document} As you can see it includes \Rightarrow instead of $\Rightarrow$ and the check in the export function to accomplish that is the first one, but that one uses member to check for an entry of the form ("Rightarrow") in the org-html-entities list which does not exist and even if it would exist the elisp-code to procude the LaTeX code would call cdar on the list ("Rightarrow") which results in nil and the second part of the or-statement is executed, i.e. it always executes the second part of the or-statement. Geralt.