From: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
To: Curiouslearn <curiouslearn@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: About entering latex code in an org file
Date: Fri, 10 Dec 2010 16:50:32 +0100 [thread overview]
Message-ID: <83bp4thbjr.fsf@yahoo.it> (raw)
In-Reply-To: <AANLkTikke06MG9mAMAp=C0A646=znsb7jayDZcagZnK3@mail.gmail.com> (curiouslearn@gmail.com's message of "Fri, 10 Dec 2010 10:17:26 -0500")
Curiouslearn <curiouslearn@gmail.com> 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
next prev parent reply other threads:[~2010-12-10 15:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-10 15:17 About entering latex code in an org file Curiouslearn
2010-12-10 15:50 ` Giovanni Ridolfi [this message]
2010-12-10 16:19 ` Curiouslearn
2010-12-10 15:57 ` Pierre de Buyl
2010-12-10 16:22 ` Curiouslearn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83bp4thbjr.fsf@yahoo.it \
--to=giovanni.ridolfi@yahoo.it \
--cc=curiouslearn@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).