Get rid of weird ":var title-page=lst/title-page"
This commit is contained in:
parent
8990152ebb
commit
d686dc0b3b
49
README.org
49
README.org
@ -4109,15 +4109,11 @@ with LaTeX export.
|
||||
|
||||
Listing [[lst:ox-latex-emacs-lisp-setup]] initializes the buffer local variables
|
||||
=org-latex-classes=, =org-latex-title-command=, =org-latex-toc-command=, and
|
||||
=org-latex-subtitle-format=. Listing [[lst/title-page]] is a template to initialize
|
||||
=org-latex-title-command=. Type {{{kbd(C-h v org-latex-classes)}}}, {{{kbd(C-h
|
||||
v org-latex-subtitle-format)}}}, {{{kbd(C-h v org-latex-title-command)}}}, and
|
||||
{{{kbd(C-h v org-latex-toc-command)}}} to read how those variables control
|
||||
exporting from Org-mode to LaTeX.
|
||||
=org-latex-subtitle-format=. Read the documentation strings to understand how
|
||||
those variables control exporting from Org-mode to LaTeX.
|
||||
|
||||
#+caption[Define buffer local =ox-latex= variables]:
|
||||
#+caption: Define buffer local =ox-latex= variables.
|
||||
#+header: :var title-page=lst/title-page
|
||||
#+name: lst:ox-latex-emacs-lisp-setup
|
||||
#+begin_src emacs-lisp -n :exports code :results none :tangle no
|
||||
(when (require 'ox-latex nil 'noerror)
|
||||
@ -4136,7 +4132,23 @@ exporting from Org-mode to LaTeX.
|
||||
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
|
||||
org-latex-classes :key #'car :test #'equal)
|
||||
|
||||
(setq-local org-latex-title-command (concat title-page))
|
||||
(setq-local org-latex-title-command "\\begin{titlepage}
|
||||
%% https://tex.stackexchange.com/questions/506102/
|
||||
%% adding-header-and-footer-to-custom-titlepage
|
||||
\\thispagestyle{titlepage}
|
||||
\\begin{center}
|
||||
%% Title
|
||||
\\begin{Huge}
|
||||
{\\bf %t} \\\\
|
||||
\\vspace{1em}
|
||||
\\end{Huge}
|
||||
%% Author
|
||||
\\begin{Large}
|
||||
{\\bf %a} \\\\
|
||||
\\vspace{1em}
|
||||
\\end{Large}
|
||||
\\end{center}
|
||||
\\end{titlepage}")
|
||||
(setq-local org-latex-toc-command "
|
||||
\\tableofcontents\\label{toc}
|
||||
\\listoflistings
|
||||
@ -4146,29 +4158,6 @@ exporting from Org-mode to LaTeX.
|
||||
(setq-local org-latex-subtitle-format ""))
|
||||
#+end_src
|
||||
|
||||
#+caption[Show a title-page example for =org-latex-title-command=]:
|
||||
#+caption: Show a title-page example for =org-latex-title-command=.
|
||||
#+name: lst/title-page
|
||||
#+begin_src latex -n :exports code :results silent :tangle no
|
||||
\begin{titlepage}
|
||||
%% https://tex.stackexchange.com/questions/506102/
|
||||
%% adding-header-and-footer-to-custom-titlepage
|
||||
\thispagestyle{titlepage}
|
||||
\begin{center}
|
||||
%% Title
|
||||
\begin{Huge}
|
||||
{\bf %t} \\
|
||||
\vspace{1em}
|
||||
\end{Huge}
|
||||
%% Author
|
||||
\begin{Large}
|
||||
{\bf %a} \\
|
||||
\vspace{1em}
|
||||
\end{Large}
|
||||
\end{center}
|
||||
\end{titlepage}
|
||||
#+end_src
|
||||
|
||||
*** [[https://orgmode.org/worg/dev/org-syntax-edited.html][Org Syntax]]
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: sec:org-syntax
|
||||
|
Loading…
Reference in New Issue
Block a user