emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Adam Sneller <adam@earth2adam.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-preview-latex-fragment on Retina display?
Date: Tue, 2 Jun 2015 08:41:25 +0100	[thread overview]
Message-ID: <87zj4i36ca.fsf@delle7240.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <CDC11CBE-2FB1-483F-BCC0-E786BDD09E4E@earth2adam.com> (Adam Sneller's message of "Fri, 29 May 2015 21:45:27 +0200")

On Friday, 29 May 2015 at 21:45, Adam Sneller wrote:
> Recently, I upgraded to a macbook pro with retina display, and now all
> my latex previews in org-mode are... fuzzy. These are generated with
> org-preview-latex-fragment command, using dvipng.
>
> Is there a setting I can change to up-res these? Maybe something in org.el?

Maybe have a look at

,----[ C-h v org-format-latex-options RET ]
| org-format-latex-options is a variable defined in `org.el'.
| Its value is (:foreground default :background default :scale 1.0 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers
|              ("begin" "$1" "$" "$$" "\\(" "\\["))
| 
| 
| Documentation:
| Options for creating images from LaTeX fragments.
| This is a property list with the following properties:
| :foreground  the foreground color for images embedded in Emacs, e.g. "Black".
|              `default' means use the foreground of the default face.
|              `auto' means use the foreground from the text face.
| :background  the background color, or "Transparent".
|              `default' means use the background of the default face.
|              `auto' means use the background from the text face.
| :scale       a scaling factor for the size of the images, to get more pixels
| :html-foreground, :html-background, :html-scale
|              the same numbers for HTML export.
| :matchers    a list indicating which matchers should be used to
|              find LaTeX fragments.  Valid members of this list are:
|              "begin" find environments
|              "$1"    find single characters surrounded by $.$
|              "$"     find math expressions surrounded by $...$
|              "$$"    find math expressions surrounded by $$....$$
|              "\("    find math expressions surrounded by \(...\)
|              "\["    find math expressions surrounded by \[...\]
| 
| You can customize this variable.
| 
| [back]
`----

The :scale option may be what you want.  I have used this in the past
with a value of 3 for creating org based slides for presentations with
LaTeX fragments.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1195-g1a7364

      parent reply	other threads:[~2015-06-02  7:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-29 19:45 org-preview-latex-fragment on Retina display? Adam Sneller
2015-05-29 21:07 ` Nick Dokos
2015-06-02  7:41 ` Eric S Fraga [this message]

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=87zj4i36ca.fsf@delle7240.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=adam@earth2adam.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).