emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Robertson, Seth" <srobertson@perspectalabs.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: 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/)]
Date: Fri, 7 Feb 2020 19:30:37 +0000	[thread overview]
Message-ID: <202002071930.017JUWM8126900@perspectalabs.com> (raw)


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

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

             reply	other threads:[~2020-02-07 19:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-07 19:30 Robertson, Seth [this message]
2020-02-08  6:55 ` 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/)] Bastien

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=202002071930.017JUWM8126900@perspectalabs.com \
    --to=srobertson@perspectalabs.com \
    --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).