From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sIYzGJuQeWV0MAAAkFu2QA (envelope-from ) for ; Wed, 13 Dec 2023 12:08:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EM9sE5uQeWXTFwEA62LTzQ (envelope-from ) for ; Wed, 13 Dec 2023 12:08:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=DtoaOw1D; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702465690; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vh+bFBUZtobzTlnD6QaeTyIhbeTJw9aQnmGqn8XBh5E=; b=Bu5iHeN8F7REC158RQA/EQ4uPDseaJS0GLwHc7uahmYhmkvjvzimWgpZ4ZqJjHicz5tRHQ 51CiOKikzD0ARFaUk6GqvQ+YagT9iOVX5MojKUuJC0die25FgxmBxd3EFpqDGER+mMPUdC ys5/c5mLfcAPyOVJGk4aWrAhpOT3Mpk82kVUjwsyJ7ZZU5JYTyPOwEI0tyVdwTVtKuJzH5 3pYiSpXWIXf76BPfDUrlN/xus8BGuK3+HwphArHabK7gWUu9pWsoMqL9ACMuMb7npBZym2 nw0be0j+dOknZFp+kYwwvH6u+MJq9DKhYKQAhJ2YPnYafujMdh/jYch6HAUxYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702465690; a=rsa-sha256; cv=none; b=qnZYh6G16guKfj8JD4I6W2HZrtqXXdKtxM8ggy5wJD8LTwkgeoSBSl20k148pLC7Uc9dyS jRF5CaxCAgHqxgXA5MY6RwI3D5xCGeoaAF88Pdtr7DY/36k6w0/MOxPga/EI06mokzeNHF L2xcpx27OZrdx8vDgrhKRcvFddmodXcikCXP2YiUs1+xIyUJ/EZLws1RiGtL9Tu95r09eA ZRRVVV0zcBDFPZ5FMyO0nScUCq4LEP+sIjMVgkChnFz/uWnl69QuHXkt5OHBVdLJwxwWZW aCROzaBYaF7uvdY/EYGZJa4nvL3wOUVY4s50KvTm0KcfZMjqEsbsh75FvgQMXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=DtoaOw1D; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 456935B3CC for ; Wed, 13 Dec 2023 12:08:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDN4L-00062v-VS; Wed, 13 Dec 2023 06:06:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rDN4E-000629-Pz for emacs-orgmode@gnu.org; Wed, 13 Dec 2023 06:06:19 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rDN3x-0003Z8-RI for emacs-orgmode@gnu.org; Wed, 13 Dec 2023 06:06:18 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40c3ca9472dso46965025e9.2 for ; Wed, 13 Dec 2023 03:06:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702465559; x=1703070359; darn=gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=vh+bFBUZtobzTlnD6QaeTyIhbeTJw9aQnmGqn8XBh5E=; b=DtoaOw1Dd8dwe2PV1lgtbwc4BD9fVvR/YSRpqqCgEo3PzL2ubI07ar6Pfk8NPQc9Fn GFj5ec7IZu3uw5ifGq1Ri9URqnOsvNMBuQ33wP3jM8kFdgck2x1+ttoL1UkIoZA1a2cw CnliQxZumwOuprPhqTeAK2osfgePw+twlS753jsJMFgzMc5Fp7OYKLETMrCPkseDJ2bS 6zo4V17Zfj8rvDSck5hrs3Z6YKbWYui+e+QngMCN7eLAbYYm2i8I0H4cv0oh6++tbZJ4 C2k7QxW8+Otr+RctcHFKB3UnAdq5EAOQTLKPO3X3kZ9mu9bxk9bAE2fGl1dHQPoBSZbU lZ0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702465559; x=1703070359; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vh+bFBUZtobzTlnD6QaeTyIhbeTJw9aQnmGqn8XBh5E=; b=UWbsQ5rmY6Ic7pcDB1XG6i+XrsNFkOEbyWEbuQYK/V3UBR/wQNG2MlB6ScDtIPj9P8 lTnygLkS5uTKwf8DyS3CL+H7fKNEGoCGjurnAObQK57I4ugWxlUa7BxwSyUD7cGgplH/ X2HJE8xO09JzTBoZQm9rqRT5OAeTjwaTU+SNuMXH7h1gZSFpl98ccvF9shY2ecIM/Kbo L4CVN3UnECeMlqvzkD1vSj7Aqdc5HkOXtqA2vj22+VlSKupgcrLHpGZhLTPQFkIXkcId X8Xrnms60k9Ylu11u4PfWNKWSMgUeZO3gGbNRdP4L4IWy3EiuZ0r3ATiTYRFb3xpYvoq bmDA== X-Gm-Message-State: AOJu0Yx2TZpYq58mDuf9GCEuQS/c7ms8NbIt+rvo3nMK4+vlT0AKC8Ex 5lS1NuTdyHwQEJxt2pfV5EOy3eO7Rxdpcg== X-Google-Smtp-Source: AGHT+IF+LTAWFV96URp6of9/TfZBQ7bhCYwJYOtOM10kHq0DfAKq2pJiPmFfdlw6gZBo4ikeDt/4UQ== X-Received: by 2002:a05:600c:c1b:b0:40b:3fc7:c88a with SMTP id fm27-20020a05600c0c1b00b0040b3fc7c88amr2546343wmb.39.1702465558594; Wed, 13 Dec 2023 03:05:58 -0800 (PST) Received: from smtpclient.apple (92.red-79-148-38.dynamicip.rima-tde.net. [79.148.38.92]) by smtp.gmail.com with ESMTPSA id be9-20020a05600c1e8900b0040596352951sm22403028wmb.5.2023.12.13.03.05.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2023 03:05:57 -0800 (PST) From: Pedro Andres Aranda Gutierrez Message-Id: <7BC0DEA1-7B67-46AE-993E-624BEB90C03C@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_DE0D1745-D40F-47B8-8AEB-EE359F1AADBD" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: Strange behaviour detected today Date: Wed, 13 Dec 2023 12:05:56 +0100 In-Reply-To: <87wmtiwejh.fsf@localhost> Cc: Org Mode List To: Ihor Radchenko References: <87wmtiwejh.fsf@localhost> X-Mailer: Apple Mail (2.3696.120.41.1.4) Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=paaguti@gmail.com; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.11 X-Spam-Score: -2.11 X-Migadu-Queue-Id: 456935B3CC X-Migadu-Scanner: mx11.migadu.com X-TUID: bGYwRWkH414p --Apple-Mail=_DE0D1745-D40F-47B8-8AEB-EE359F1AADBD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Strange=E2=80=A6 here is the output of calling in batch mode Emacs -Q -l org-export.el --batch p5.org --eval = '(org-beamer-export-to-pdf)' Error: error ("Invalid face box" :line-width 1 :color grey40) mapbacktrace(#f(compiled-function (evald func args flags) #)) debug-early-backtrace() debug-early(error (error "Invalid face box" :line-width 1 :color = grey40)) internal-set-lisp-face-attribute(org-beamer-tag :box (:line-width 1 = :color grey40) #) set-face-attribute(org-beamer-tag # :box = (:line-width 1 :color grey40)) apply(set-face-attribute org-beamer-tag # = (:box (:line-width 1 :color grey40))) face-spec-set-2(org-beamer-tag # (:box = (:line-width 1 :color grey40))) face-spec-recalc(org-beamer-tag #) face-spec-set(org-beamer-tag ((t (:box (:line-width 1 :color = grey40)))) face-defface-spec) custom-declare-face(org-beamer-tag ((t (:box (:line-width 1 :color = grey40)))) "The special face for beamer tags." :group org-export-beamer) (org-beamer-export-to-pdf) eval((org-beamer-export-to-pdf) t) command-line-1(("-l" "org-export.el" "p5.org" "--eval" = "(org-beamer-export-to-pdf)")) command-line() normal-top-level() Invalid face box: :line-width, 1, :color, grey40 make: *** [p5.pdf] Error 255 With my org-export.el being: ;; ;; Auxiliar script for GNUmakefile ;; Export to PDF from org ;; Automatically detects presentations using the beamer class ;; The rest are assumed to be documents ;; (require 'org) (require 'ox-latex) (require 'ob-python) (eval-after-load "org" (progn (let ((citeless t)) ;; set to nil if no bibliography in the pptx (org-babel-do-load-languages 'org-babel-load-languages '((python . t) (shell . t))) (add-to-list 'org-latex-packages-alist '("" "listings")) (add-to-list 'org-latex-packages-alist '("" "xcolor")) (add-to-list 'org-latex-classes '("letter" "\\documentclass{letter}")) ;; Add KOMA script based books (add-to-list 'org-latex-classes '("scrbook" "\\documentclass{scrbook}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) (add-to-list 'org-latex-classes '("scrreprt" "\\documentclass{scrreprt}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) ;; (add-to-list 'org-export-filter-src-block-functions ;; 'my-latex-src-block-filter) (if citeless (setq org-cite-export-processors nil) (setq org-cite-export-processors '((beamer . biblatex) (latex . biblatex)) org-cite-biblatex-options = "backend=3Dbiber,style=3Dnumeric,sorting=3Dnone,isbn=3Dfalse,doi=3Dfalse,u= rl=3Dtrue")) (setq python-indent-offset 4 org-confirm-babel-evaluate nil org-src-preserve-indentation t org-src-fontify-natively t org-export-latex-listings t org-latex-listings 'listings ;; Make sure you have bibtex integrated in the production = loop org-latex-pdf-process '("latexmk -bibtex -pdflatex=3D'pdflatex --shell-escape = --interaction=3Dnonstopmode' -pdf -f %f") org-babel-python-command "python3")))) (defun org-export () "Save the current buffer and export it to latex if the underlying file contents hints a LaTeX document or a Beamer presentation" (hack-local-variables) ;; (print org-cite-export-processors) (goto-char (point-min)) ;; (print (format "org-cite-export-processors is %s" = org-cite-export-processors)) (when (re-search-forward "^#\\+LATEX_CLASS: \\([^ ]+\\)$" (point-max) = t 1) (let ((class (match-string-no-properties 1))) (message "Exporting to LaTeX [class: %s]..." class) (if (string=3D class "beamer") (org-beamer-export-to-pdf) (org-latex-export-to-pdf))))) Emacs -Q and no place where I set faces in the setup (at least that = I=E2=80=99m aware of). /PA > El 13 dic 2023, a las 12:02, Ihor Radchenko = escribi=C3=B3: >=20 > Pedro Andres Aranda Gutierrez writes: >=20 >> I've recompiled emacs master today and when I try to export an org >> presentation to latex and I get the following error: >>=20 >> Exporting to LaTeX [class: beamer]... >> set-face-attribute: Invalid face box: :line-width, 1, :color, grey40 >>=20 >> This happens when calling >>=20 >> (org-beamer-export-to-latex) >=20 > Org mode does not call `set-face-attribute'. It is something else. > Probably in your config. >=20 > --=20 > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at --Apple-Mail=_DE0D1745-D40F-47B8-8AEB-EE359F1AADBD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Strange=E2=80=A6 here is the output of calling in batch = mode

Emacs -Q -l org-export.el --batch p5.org --eval = '(org-beamer-export-to-pdf)'

Error: error ("Invalid face box" :line-width 1 :color = grey40)
  = mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode = -0x1fee891e37008046>))
  debug-early-backtrace()
  debug-early(error (error "Invalid face box" = :line-width 1 :color grey40))
  internal-set-lisp-face-attribute(org-beamer-tag :box = (:line-width 1 :color grey40) #<frame F1 = 0x7fab2c056910>)
  set-face-attribute(org-beamer-tag #<frame F1 = 0x7fab2c056910> :box (:line-width 1 :color = grey40))
  = apply(set-face-attribute org-beamer-tag #<frame F1 0x7fab2c056910> = (:box (:line-width 1 :color grey40)))
  face-spec-set-2(org-beamer-tag #<frame F1 = 0x7fab2c056910> (:box (:line-width 1 :color = grey40)))
  = face-spec-recalc(org-beamer-tag #<frame F1 = 0x7fab2c056910>)
  face-spec-set(org-beamer-tag ((t (:box (:line-width 1 = :color grey40)))) face-defface-spec)
  custom-declare-face(org-beamer-tag ((t (:box = (:line-width 1 :color grey40)))) "The special face for beamer tags." = :group org-export-beamer)
  (org-beamer-export-to-pdf)
  eval((org-beamer-export-to-pdf) = t)
  = command-line-1(("-l" "org-export.el" "p5.org" "--eval" = "(org-beamer-export-to-pdf)"))
  command-line()
  normal-top-level()
Invalid face box: :line-width, 1, :color, = grey40
make: *** = [p5.pdf] Error 255

With my org-export.el being:

;;
;; Auxiliar = script for GNUmakefile
;;  Export to PDF from org
;;  Automatically detects presentations using = the beamer class
;;  The = rest are assumed to be documents
;;
(require = 'org)
(require = 'ox-latex)
(require = 'ob-python)

(eval-after-load= "org"

  = (progn
    = (let ((citeless t)) ;; set to nil if no bibliography in the = pptx

    =   (org-babel-do-load-languages = 'org-babel-load-languages
                =                   =  '((python . t)
                =                     =  (shell . t)))
      (add-to-list = 'org-latex-packages-alist
                =    '("" "listings"))
      (add-to-list = 'org-latex-packages-alist
                =    '("" "xcolor"))
      (add-to-list = 'org-latex-classes
                =    '("letter"
                =      "\\documentclass{letter}"))
      ;; Add KOMA script based = books
    =   (add-to-list 'org-latex-classes
              =      '("scrbook"
                =      "\\documentclass{scrbook}"
              =        ("\\chapter{%s}" . = "\\chapter*{%s}")
    =                 =  ("\\section{%s}" . "\\section*{%s}")
              =        ("\\subsection{%s}" . = "\\subsection*{%s}")
                =      ("\\subsubsection{%s}" . = "\\subsubsection*{%s}")
                =      ("\\paragraph{%s}" . = "\\paragraph*{%s}")
                =      ("\\subparagraph{%s}" . = "\\subparagraph*{%s}")))
      (add-to-list = 'org-latex-classes
                =    '("scrreprt"
                =      "\\documentclass{scrreprt}"
              =        ("\\chapter{%s}" . = "\\chapter*{%s}")
    =                 =  ("\\section{%s}" . "\\section*{%s}")
              =        ("\\subsection{%s}" . = "\\subsection*{%s}")
                =      ("\\subsubsection{%s}" . = "\\subsubsection*{%s}")
                =      ("\\paragraph{%s}" . = "\\paragraph*{%s}")
                =      ("\\subparagraph{%s}" . = "\\subparagraph*{%s}")))

      ;; (add-to-list = 'org-export-filter-src-block-functions
      ;;         =      'my-latex-src-block-filter)

      (if = citeless
    =       (setq org-cite-export-processors = nil)
    =     (setq org-cite-export-processors '((beamer . = biblatex)
    =                     =                   =  (latex .  biblatex))
            = org-cite-biblatex-options
            = "backend=3Dbiber,style=3Dnumeric,sorting=3Dnone,isbn=3Dfalse,doi=3Dfalse,u= rl=3Dtrue"))
    =   (setq python-indent-offset 4
            = org-confirm-babel-evaluate nil
=        org-src-preserve-indentation = t
  =      org-src-fontify-natively t
      =  org-export-latex-listings t
=        org-latex-listings = 'listings
    =         ;; Make sure you have bibtex integrated in = the production loop
            = org-latex-pdf-process
            '("latexmk -bibtex = -pdflatex=3D'pdflatex --shell-escape --interaction=3Dnonstopmode' -pdf = -f %f")
    =         org-babel-python-command = "python3"))))

(defun = org-export ()
  "Save = the current buffer and
export it to latex if the underlying file = contents
hints a LaTeX = document or a Beamer presentation"
  = (hack-local-variables)
  ;; (print = org-cite-export-processors)
  (goto-char (point-min))
  ;; (print (format "org-cite-export-processors = is %s" org-cite-export-processors))
  (when (re-search-forward "^#\\+LATEX_CLASS: = \\([^ ]+\\)$" (point-max) t 1)
= (let ((class (match-string-no-properties = 1)))
=  (message "Exporting to LaTeX [class: %s]..." = class)
=  (if (string=3D class "beamer")
=  (org-beamer-export-to-pdf)
= (org-latex-export-to-pdf)))))


Emacs -Q = and no place where I set faces in the setup (at least that I=E2=80=99m = aware of).

/PA

El 13 = dic 2023, a las 12:02, Ihor Radchenko <yantar92@posteo.net>= escribi=C3=B3:

Pedro Andres Aranda Gutierrez <paaguti@gmail.com> = writes:

I've recompiled emacs master today and when I try to export = an org
presentation to latex and I get the following = error:

Exporting to LaTeX [class: = beamer]...
set-face-attribute: Invalid face box: = :line-width, 1, :color, grey40

This happens = when calling

(org-beamer-export-to-latex)

Org mode does not call = `set-face-attribute'. It is something else.
Probably in = your config.

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

= --Apple-Mail=_DE0D1745-D40F-47B8-8AEB-EE359F1AADBD--