emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Mike Benfield <mike.benfield@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: cdlatex, previewing LaTeX, and dollar signs
Date: Wed, 14 Jul 2010 20:41:53 +0200	[thread overview]
Message-ID: <F611D42D-ACB4-4BEE-A286-4DCC546EFB43@gmail.com> (raw)
In-Reply-To: <loom.20100714T193345-694@post.gmane.org>


On Jul 14, 2010, at 7:55 PM, Mike Benfield wrote:

>
> org-cdlatex-mode subverts cdlatex's normal behavior
> in that it doesn't give dollar signs when they're not there.
> And on the other hand, org-preview-latex-fragment only displays
> rendered LaTeX when the dollar signs are there. I don't know
> what other people's usage pattern is, but I read my notes in
> emacs with the LaTeX rendered, so I never write LaTeX
> outside of dollar signs because that is useless to me.
>
> Could one or the other of these behaviors change?
>
> For me, the ideal situation would be for org-preview-latex-fragment
> to work even when dollar signs aren't present,

This would be very difficult to achieve.  But note that you can part  
of it
by setting

    (setq org-pretty-entities t)

This will give UTF8 display of many math symbols - imperfect
though for your example....

To get dollars from org-cdlatex-mode, you could cheat by setting

(setq org-cdlatex-texmathp-advice-is-done t)

very early in .emacs, before any Org mode stuff gets loaded....


HTH

- Carsten

> so that for instance
> \int_a^b f would render \int_a^b as LaTeX math and leave f alone.
> (By the way, right now such an expression renders correctly when
> exporting to HTML but not when exporting to LaTeX.)
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2010-07-14 18:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-14 17:55 cdlatex, previewing LaTeX, and dollar signs Mike Benfield
2010-07-14 18:41 ` Carsten Dominik [this message]
2010-07-15 14:15   ` Michael Benfield

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=F611D42D-ACB4-4BEE-A286-4DCC546EFB43@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mike.benfield@gmail.com \
    /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).