all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug: org-latex--format-spec does not support documented SUBTITLE/%s substitution [9.3.4 (9.3.4-elpa @ /home/seth/.emacs.d/elpa/org-20200206/)]
@ 2020-02-07 19:30 Robertson, Seth
  2020-02-08  6:55 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Robertson, Seth @ 2020-02-07 19:30 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org


------------------------------------------------------------------------

org-latex-title-command does not honor the document SUBTITLE or %s
substitution, and throws an error invalid format character %s.

Investigation showed that org-latex--format-spec did not have an entry
for %s.  Making the obvious change appeared to resolve the issue:

#+BEGIN_SRC emacs-lisp
--- ox-latex.el~	2020-02-07 13:59:34.804141887 -0500
+++ ox-latex.el	2020-02-07 14:00:18.836895973 -0500
@@ -1586,6 +1586,7 @@
 			lang))))
     `((?a . ,(org-export-data (plist-get info :author) info))
       (?t . ,(org-export-data (plist-get info :title) info))
+      (?s . ,(org-export-data (plist-get info :subtitle) info))
       (?k . ,(org-export-data (org-latex--wrap-latex-math-block
 			       (plist-get info :keywords) info)
 			      info))
#+END_SRC



Emacs  : GNU Emacs 26.3 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.13)
 of 2019-12-10
Package: Org mode version 9.3.4 (9.3.4-elpa @ /home/srobertson/.emacs.d/elpa/org-20200206/)

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

* Re: Bug: org-latex--format-spec does not support documented SUBTITLE/%s substitution [9.3.4 (9.3.4-elpa @ /home/seth/.emacs.d/elpa/org-20200206/)]
  2020-02-07 19:30 Bug: org-latex--format-spec does not support documented SUBTITLE/%s substitution [9.3.4 (9.3.4-elpa @ /home/seth/.emacs.d/elpa/org-20200206/)] Robertson, Seth
@ 2020-02-08  6:55 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2020-02-08  6:55 UTC (permalink / raw)
  To: Robertson, Seth; +Cc: emacs-orgmode@gnu.org

Hi Seth,

I applied your change on the maint branch:
https://code.orgmode.org/bzg/org-mode/commit/7e4e34db

Thanks!

-- 
 Bastien

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

end of thread, other threads:[~2020-02-08  6:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-07 19:30 Bug: org-latex--format-spec does not support documented SUBTITLE/%s substitution [9.3.4 (9.3.4-elpa @ /home/seth/.emacs.d/elpa/org-20200206/)] Robertson, Seth
2020-02-08  6:55 ` Bastien

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.