emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Guillaume MULLER <guillaume.muller@emse.fr>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: org beamer strange behaviour
Date: Mon, 9 Oct 2023 17:28:40 +0200	[thread overview]
Message-ID: <ffd46c60-adc9-4a08-ac83-00d1e06e7e2c@emse.fr> (raw)
In-Reply-To: <87zg0r96js.fsf@ucl.ac.uk>


[-- 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 --]

  reply	other threads:[~2023-10-09 15:30 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 [this message]
2023-10-10  6:20     ` Fraga, Eric
2023-10-10 11:35     ` Ihor Radchenko
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

  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=ffd46c60-adc9-4a08-ac83-00d1e06e7e2c@emse.fr \
    --to=guillaume.muller@emse.fr \
    --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).