From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Ridolfi Subject: Re: About entering latex code in an org file Date: Fri, 10 Dec 2010 16:50:32 +0100 Message-ID: <83bp4thbjr.fsf@yahoo.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=43286 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR5ES-00076l-Tl for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 10:50:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PR5EE-0000j9-56 for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 10:50:04 -0500 Received: from nm10-vm0.bullet.mail.ukl.yahoo.com ([217.146.183.242]:33976) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PR5ED-0000in-QB for emacs-orgmode@gnu.org; Fri, 10 Dec 2010 10:49:50 -0500 In-Reply-To: (curiouslearn@gmail.com's message of "Fri, 10 Dec 2010 10:17:26 -0500") 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: Curiouslearn Cc: emacs-orgmode@gnu.org Curiouslearn writes: > > I am new to both emacs and org-mode. Org-mode sounds really cool and I > am trying to use it to make notes for a project. welcome! > I have some latex > symbols that I need to enter in the file. > As a background: > (1) I read in the manual that for latex code I do not need to enclose > math inside $ $. > (2) I have many words with "_" in the their names, so as mentioned in > the manual, I added > #+OPTIONS: ^:{} _:{} > to my .org file. > > In fact, the my file is > ----------------------------------------------------------------------------------------------------- > #+OPTIONS: ^:{} > #+OPTIONS: _:{} > #+LATEX_HEADER: \setlength{\parskip}{2ex plus 0.5ex minus 0.2ex} > #+LATEX_HEADER: \setlength{\parindent}{0in} > > * TODO Write an aspiration_review function > The function should do the following: > 1. Investigates if \pi_{g} \geq 0.05 and \bar{\pi} \geq ASP_LEVEL > > > ** Investigate if > > ----------------------------------------------------------------------------------------------------- > The problem is that when I export this using 'C-c C- e l' to latex, > some parts that should be enclosed in $ $ sign are not enclosed. This > is the relevant line copied and pasted from the exported .tex file > > \item Investigates if $\pi$$_\{g\}$ \geq 0.05 and \bar{\pi} \geq > ASP\_{}LEVEL > > Can someone please let me know what is happening? You can't have the cake and eat it. I suggest you to enclose LaTeX parts in \( \) (that are better handled than $'s) and keep the option #+OPTIONS: ^:{} _:{} 1. Investigates if \( \pi_{g} \geq \) 0.05 and \(\bar{\pi} \geq \) ASP_LEVEL gives: Investigates if \( \pi_{g} \geq \) 0.05 and \(\bar{\pi} \geq \) ASP\_{}LEVEL cheers, Giovanni