all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Guillaume MULLER <guillaume.muller@emse.fr>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: org beamer strange behaviour
Date: Tue, 10 Oct 2023 11:35:30 +0000	[thread overview]
Message-ID: <87a5sqaewt.fsf@localhost> (raw)
In-Reply-To: <ffd46c60-adc9-4a08-ac83-00d1e06e7e2c@emse.fr>

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>


  parent reply	other threads:[~2023-10-10 11:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2023-10-10 11:31 ` Ihor Radchenko

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5sqaewt.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=guillaume.muller@emse.fr \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.