[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [ox, patch] #+SUBTITLE
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [ox, patch] #+SUBTITLE |
Date: |
Sat, 28 Mar 2015 16:40:52 +0100 |
Hello,
Rasmus <address@hidden> writes:
> Note: *the patch does not touch ox.el*. SUBTITLE is *only* supported in a
> tiny fraction of the backends, namely ox-latex, ox-ascii, ox-html, and
> ox-odt.
For some definition of "tiny".
> + ;; TODO: format-spec isn't great for missing details.
Could you elaborate a bit in the comment?
> address@hidden SUBTITLE
> address@hidden #+SUBTITLE
> +The document subtitle. The keyword is supported by by @LaTeX{}-backends,
^^^
Typo.
> +HTML backends, ASCII backends, the texinfo backend, and the ODT
> backend. You
"Texinfo"
> +can use several such keywords for long subtitles.
However this section is not for back-end specific keywords. It should be
moved within their own chapter.
> + (when formatted-subtitle
> + (concat "\n" formatted-subtitle))
Nitpick:
(and formatted-subtitle ...)
> + (:latex-subtitle-format nil nil "\\subtitle{%s}")
If it is meant to be changed it should be coupled to a defcustom.
Otherwise, you can hard-code it in `org-beamer-template'.
> @@ -1209,6 +1215,7 @@ The second element of each list is a format string to
> format the
> postamble itself. This format string can contain these elements:
>
> %t stands for the title.
> + %s will be replaced by the export subtitle.
"stands for", for the sake of consistency.
> %a stands for the author's name.
> %e stands for the author's email.
> %d stands for the date.
> @@ -1273,6 +1280,7 @@ The second element of each list is a format string to
> format the
> preamble itself. This format string can contain these elements:
>
> %t stands for the title.
> + %s will be replaced by the export subtitle.
Ditto.
> (:latex-class-options "LATEX_CLASS_OPTIONS" nil nil t)
> (:latex-header "LATEX_HEADER" nil nil newline)
> (:latex-header-extra "LATEX_HEADER_EXTRA" nil nil newline)
> + (:subtitle "SUBTITLE" nil nil space)
> ;; Other variables.
> (:latex-active-timestamp-format nil nil
> org-latex-active-timestamp-format)
> (:latex-caption-above nil nil org-latex-caption-above)
> @@ -135,6 +136,8 @@
> (:latex-listings-options nil nil org-latex-listings-options)
> (:latex-minted-langs nil nil org-latex-minted-langs)
> (:latex-minted-options nil nil org-latex-minted-options)
> + (:latex-subtitle-format nil nil org-latex-subtitle-format)
> + (:latex-subtitle-separate nil nil org-latex-subtitle-separate)
They need to be added to Publishing options in manual.
> +(defcustom org-latex-subtitle-format "\\\\\\smallskip\n\\large %s"
> + "Format string used for transcoded subtitle.
> +The format string should have at most one \"%s\"-expression,
> +which is replaced with the subtitle.")
Missing keywords: :version, :package-version, :type, :group
> +(defcustom org-latex-subtitle-separate nil
> + "Non-nil means the subtitle is not typeset as part of title.")
Ditto.
> --- a/lisp/ox-org.el
> +++ b/lisp/ox-org.el
> @@ -102,6 +102,7 @@ setting of `org-html-htmlize-output-type' is 'css."
> (underline . org-org-identity)
> (verbatim . org-org-identity)
> (verse-block . org-org-identity))
> + :options-alist '((:subtitle "SUBTITLE" nil nil space))
I don't see a valid reason to treat #+SUBTITLE specially in `org'
back-end. It will appear anyway as a regular keyword. You can ignore
that part altogether.
Also, assuming you keep :subtitle instead of :BACKEND-subtitle, these
should also be documented in Publishing options.
Thank you.
Regards,
--
Nicolas Goaziou
- [O] [ox, patch] #+SUBTITLE, Rasmus, 2015/03/27
- Re: [O] [ox, patch] #+SUBTITLE, Andreas Leha, 2015/03/27
- Re: [O] [ox, patch] #+SUBTITLE,
Nicolas Goaziou <=
- Re: [O] [ox, patch] #+SUBTITLE, Rasmus, 2015/03/28
- Re: [O] [ox, patch] #+SUBTITLE, Thomas S. Dye, 2015/03/28
- Re: [O] [ox, patch] #+SUBTITLE, Nicolas Goaziou, 2015/03/29
- Re: [O] [ox, patch] #+SUBTITLE, Rasmus, 2015/03/29
- Re: [O] [ox, patch] #+SUBTITLE, Nicolas Goaziou, 2015/03/29
- Re: [O] [ox, patch] #+SUBTITLE, Rasmus, 2015/03/29
- Re: [O] [ox, patch] #+SUBTITLE, Nicolas Goaziou, 2015/03/30
- Re: [O] [ox, patch] #+SUBTITLE, Rasmus, 2015/03/30
- Re: [O] [ox, patch] #+SUBTITLE, Nicolas Goaziou, 2015/03/31
- Re: [O] [ox, patch] #+SUBTITLE, Rasmus, 2015/03/31