* org beamer strange behaviour
@ 2023-10-09 14:44 Guillaume MULLER
2023-10-09 15:09 ` Fraga, Eric
2023-10-10 11:31 ` Ihor Radchenko
0 siblings, 2 replies; 6+ messages in thread
From: Guillaume MULLER @ 2023-10-09 14:44 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 584 bytes --]
Hi,
I'm writing a lot of my courses in Org with a final export to Beamer/PDF.
Recently, I tried to improve the slides for a course I gave last year. When I opened the org file, I got a very weird coloring, as if a section was not closed correctly. You can find the org file and a screenshot of the rendering here:
https://seafile.emse.fr/d/f689a4318aff4e12a72e/
What's VERY strange to me is that whatever (sub)sections of the org original file I extract and yank/paste in another org file, then everything is OK...
Any idea what could be wrong?
--
Guillaume MULLER
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 673 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org beamer strange behaviour
2023-10-09 14:44 org beamer strange behaviour Guillaume MULLER
@ 2023-10-09 15:09 ` Fraga, Eric
2023-10-09 15:28 ` Guillaume MULLER
2023-10-10 11:31 ` Ihor Radchenko
1 sibling, 1 reply; 6+ messages in thread
From: Fraga, Eric @ 2023-10-09 15:09 UTC (permalink / raw)
To: Guillaume MULLER; +Cc: emacs-orgmode@gnu.org
I haven't looked at your file but do consider running org-lint on the
file to see if it picks up anything.
--
: Eric S Fraga, with org release_9.6.6-418-g294a4d in Emacs 30.0.50
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org beamer strange behaviour
2023-10-09 15:09 ` Fraga, Eric
@ 2023-10-09 15:28 ` Guillaume MULLER
2023-10-10 6:20 ` Fraga, Eric
2023-10-10 11:35 ` Ihor Radchenko
0 siblings, 2 replies; 6+ messages in thread
From: Guillaume MULLER @ 2023-10-09 15:28 UTC (permalink / raw)
To: Org Mode List
[-- Attachment #1.1.1: Type: text/plain, Size: 2189 bytes --]
On 10/9/23 17:09, Fraga, Eric wrote:
> I haven't looked at your file but do consider running org-lint on the
> file to see if it picks up anything.
Thanks! I didn't know about org-lint!!!
Running it, I got these "errors":
221 low Unknown source block language: 'latex'
252 low Unknown source block language: 'bibtex'
268 low Unknown source block language: 'latex'
282 low Unknown source block language: 'sh'
329 low Unknown source block language: 'bibtex'
434 low Unknown source block language: 'latex'
...which is very strange as I have the following lines in my config.org file:
;; sh code in org-mode!
(setq org-babel-sh-command "bash")
(org-babel-do-load-languages
'org-babel-load-languages
'((shell . t))) ; this line activates Bash
;; LaTeX code in org-mode!
(org-babel-do-load-languages
'org-babel-load-languages
'((latex . t))) ; this line activates LaTeX
I also define lstlisting "keywords" for bibtex in the header (taken from some StackOverflow thread; removing it does not change anything):
#+BEAMER_HEADER: \def\BibTeX{Bib\TeX{}}
#+BEAMER_HEADER:\lstdefinelanguage{BibTeX}
#+BEAMER_HEADER: {keywords={%
#+BEAMER_HEADER: @article,@book,@collectedbook,@conference,@electronic,@ieeetranbstctl,%
#+BEAMER_HEADER: @inbook,@incollectedbook,@incollection,@injournal,@inproceedings,%
#+BEAMER_HEADER: @manual,@mastersthesis,@misc,@patent,@periodical,@phdthesis,@preamble,%
#+BEAMER_HEADER: @proceedings,@standard,@string,@techreport,@unpublished%
#+BEAMER_HEADER: },
#+BEAMER_HEADER: comment=[l][\itshape]{@comment},
#+BEAMER_HEADER: sensitive=false,
#+BEAMER_HEADER: }
And org is supposed to use lstlisting to render the blocks (also in my config.org):
(after! org
(setq org-latex-src-block-backend 'listings) ;; not always the best choice, but prevent DoomEmacs to go Berzerck (ask file to save to everytime) when using lstlistings-specific commands in org/beamer files
;;(setq org-export-allow-bind-keywords 1) ;; allows binding of emacs/lisp vars directly in .org files VERY INSECURE!!!
)
--
Guillaume MULLER
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 673 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org beamer strange behaviour
2023-10-09 15:28 ` Guillaume MULLER
@ 2023-10-10 6:20 ` Fraga, Eric
2023-10-10 11:35 ` Ihor Radchenko
1 sibling, 0 replies; 6+ messages in thread
From: Fraga, Eric @ 2023-10-10 6:20 UTC (permalink / raw)
To: Guillaume MULLER; +Cc: Org Mode List
I had a look at your file and it displays just fine on my system.
--
: Eric S Fraga, with org release_9.6.6-418-g294a4d in Emacs 30.0.50
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org beamer strange behaviour
2023-10-09 14:44 org beamer strange behaviour Guillaume MULLER
2023-10-09 15:09 ` Fraga, Eric
@ 2023-10-10 11:31 ` Ihor Radchenko
1 sibling, 0 replies; 6+ messages in thread
From: Ihor Radchenko @ 2023-10-10 11:31 UTC (permalink / raw)
To: Guillaume MULLER; +Cc: emacs-orgmode@gnu.org
Guillaume MULLER <guillaume.muller@emse.fr> writes:
> I'm writing a lot of my courses in Org with a final export to Beamer/PDF.
>
> Recently, I tried to improve the slides for a course I gave last year. When I opened the org file, I got a very weird coloring, as if a section was not closed correctly. You can find the org file and a screenshot of the rendering here:
> https://seafile.emse.fr/d/f689a4318aff4e12a72e/
>
> What's VERY strange to me is that whatever (sub)sections of the org original file I extract and yank/paste in another org file, then everything is OK...
>
> Any idea what could be wrong?
I cannot reproduce.
The screenshot looks like a problem with font-lock though.
You can try M-x font-lock-debug-fontify to check if there are errors.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org beamer strange behaviour
2023-10-09 15:28 ` Guillaume MULLER
2023-10-10 6:20 ` Fraga, Eric
@ 2023-10-10 11:35 ` Ihor Radchenko
1 sibling, 0 replies; 6+ messages in thread
From: Ihor Radchenko @ 2023-10-10 11:35 UTC (permalink / raw)
To: Guillaume MULLER; +Cc: Org Mode List
Guillaume MULLER <guillaume.muller@emse.fr> writes:
> Running it, I got these "errors":
> 221 low Unknown source block language: 'latex'
> 252 low Unknown source block language: 'bibtex'
> 268 low Unknown source block language: 'latex'
> 282 low Unknown source block language: 'sh'
> 329 low Unknown source block language: 'bibtex'
> 434 low Unknown source block language: 'latex'
>
> ...which is very strange as I have the following lines in my config.org file:
>
> ;; sh code in org-mode!
> (setq org-babel-sh-command "bash")
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((shell . t))) ; this line activates Bash
>
> ;; LaTeX code in org-mode!
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((latex . t))) ; this line activates LaTeX
`org-babel-do-load-languages' also unloads everything not listed in the
second argument. So, your config first loads shell and then unloads it,
while loading latex. Possibly, you also have yet another call that will
load something else, unloading latex.
> I also define lstlisting "keywords" for bibtex in the header (taken from some StackOverflow thread; removing it does not change anything):
>
> #+BEAMER_HEADER: \def\BibTeX{Bib\TeX{}}
> #+BEAMER_HEADER:\lstdefinelanguage{BibTeX}
> #+BEAMER_HEADER: {keywords={%
> #+BEAMER_HEADER: @article,@book,@collectedbook,@conference,@electronic,@ieeetranbstctl,%
> #+BEAMER_HEADER: @inbook,@incollectedbook,@incollection,@injournal,@inproceedings,%
> #+BEAMER_HEADER: @manual,@mastersthesis,@misc,@patent,@periodical,@phdthesis,@preamble,%
> #+BEAMER_HEADER: @proceedings,@standard,@string,@techreport,@unpublished%
> #+BEAMER_HEADER: },
> #+BEAMER_HEADER: comment=[l][\itshape]{@comment},
> #+BEAMER_HEADER: sensitive=false,
> #+BEAMER_HEADER: }
>
> And org is supposed to use lstlisting to render the blocks (also in my config.org):
> (after! org
> (setq org-latex-src-block-backend 'listings) ;; not always the best choice, but prevent DoomEmacs to go Berzerck (ask file to save to everytime) when using lstlistings-specific commands in org/beamer files
> ;;(setq org-export-allow-bind-keywords 1) ;; allows binding of emacs/lisp vars directly in .org files VERY INSECURE!!!
> )
Then, you can ignore this particular warning. Note that you will not be
able to execute "bibtex" blocks though - Org does not know how, which is
what the warning is about.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-10-10 11:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-09 14:44 org beamer strange behaviour Guillaume MULLER
2023-10-09 15:09 ` Fraga, Eric
2023-10-09 15:28 ` Guillaume MULLER
2023-10-10 6:20 ` Fraga, Eric
2023-10-10 11:35 ` Ihor Radchenko
2023-10-10 11:31 ` Ihor Radchenko
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).