emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: startup latexpreview [9.0.5 (9.0.5-elpa @ /gnu/store/...-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/)]
@ 2017-03-19 21:52 Diego Nicola Barbato
  2017-03-30 10:49 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Diego Nicola Barbato @ 2017-03-19 21:52 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]

Hello,

When opening an org-file in emacs which contains the in-buffer setting

"#+STARTUP: latexpreview"

the minibuffer displays

"Creating images for section...done"

instead of

"Creating images for buffer...done"

and the LaTeX fragments in the buffer are not converted to
images. However, if I type

"C-u C-u C-c C-x C-l"

or

"C-u C-u M-x org-toggle-latex-fragment RET"

Org behaves as expected, by converting all LaTeX fragments to images.

I believe this happens because in org.el on line 5682 the function
org-toggle-latex-fragment is called with no argument, which does only
create images for the current section. AFAICT org-toggle-latex-fragment
should be called with '(16) as argument.

The enclosed documents are a minimal setup for loading nothing but
orgmode (emacs -Q -l /path/to/minimal-org.el) and a simple test file
which produces the error I describe above.

Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.6)
 of 2017-03-04
Package: Org mode version 9.0.5 (9.0.5-elpa @ /gnu/store/ky6z4kg7lq5g5w2ylyq692sc4ypx9vmr-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/)

I hope you'll find this bug-report helpful

Diego N. Barbato

[-- Attachment #2: minimal setup --]
[-- Type: application/emacs-lisp, Size: 338 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: test file --]
[-- Type: text/x-org, Size: 129 bytes --]

#+STARTUP: latexpreview
* Formula 1
** a
   \[ \int\limits_a^b f(x) \, \mathrm{d}x \]
** b
   \[ \int_a^b f(x) \, \mathrm{d}x \]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Bug: startup latexpreview [9.0.5 (9.0.5-elpa @ /gnu/store/...-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/)]
@ 2017-03-19 22:00 Diego Nicola Barbato
  0 siblings, 0 replies; 3+ messages in thread
From: Diego Nicola Barbato @ 2017-03-19 22:00 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1309 bytes --]

Hello,

When opening an org-file in emacs which contains the in-buffer setting

"#+STARTUP: latexpreview"

the minibuffer displays

"Creating images for section...done"

instead of

"Creating images for buffer...done"

and the LaTeX fragments in the buffer are not converted to
images. However, if I type

"C-u C-u C-c C-x C-l"

or

"C-u C-u M-x org-toggle-latex-fragment RET"

Org behaves as expected, by converting all LaTeX fragments to images.

I believe this happens because in org.el on line 5682 the function
org-toggle-latex-fragment is called with no argument, which does only
create images for the current section. AFAICT org-toggle-latex-fragment
should be called with '(16) as argument.

The enclosed documents are a minimal setup for loading nothing but
orgmode (emacs -Q -l /path/to/minimal-org.el) and a simple test file
which produces the error I describe above.

Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.6)
 of 2017-03-04
Package: Org mode version 9.0.5 (9.0.5-elpa @ /gnu/store/ky6z4kg7lq5g5w2ylyq692sc4ypx9vmr-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/)

I hope you'll find this bug-report helpful

Diego N. Barbato

P.S. I apologise for sending this report twice. The first time I forgot
to write a meaningful address into the From: field.

[-- Attachment #2: minimal setup --]
[-- Type: application/emacs-lisp, Size: 338 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: test file --]
[-- Type: text/x-org, Size: 129 bytes --]

#+STARTUP: latexpreview
* Formula 1
** a
   \[ \int\limits_a^b f(x) \, \mathrm{d}x \]
** b
   \[ \int_a^b f(x) \, \mathrm{d}x \]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: startup latexpreview [9.0.5 (9.0.5-elpa @ /gnu/store/...-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/)]
  2017-03-19 21:52 Diego Nicola Barbato
@ 2017-03-30 10:49 ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2017-03-30 10:49 UTC (permalink / raw)
  To: Diego Nicola Barbato; +Cc: emacs-orgmode

Hello,

Diego Nicola Barbato
<diego@GLaDOS.i-did-not-set--mail-host-address--so-tickle-me> writes:

> Hello,
>
> When opening an org-file in emacs which contains the in-buffer setting
>
> "#+STARTUP: latexpreview"
>
> the minibuffer displays
>
> "Creating images for section...done"
>
> instead of
>
> "Creating images for buffer...done"
>
> and the LaTeX fragments in the buffer are not converted to
> images.

Fixed. Thank you for the report and the analysis.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-30 10:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-19 22:00 Bug: startup latexpreview [9.0.5 (9.0.5-elpa @ /gnu/store/...-emacs-org-20170210/share/emacs/site-lisp/guix.d/org-20170210/)] Diego Nicola Barbato
  -- strict thread matches above, loose matches on Subject: below --
2017-03-19 21:52 Diego Nicola Barbato
2017-03-30 10:49 ` Nicolas Goaziou

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).