diff options
author | Blendoit <blendoit@gmail.com> | 2020-11-23 12:43:39 -0800 |
---|---|---|
committer | Blendoit <blendoit@gmail.com> | 2020-11-23 12:43:39 -0800 |
commit | 854f60ef0e1cdbb0cc2bb86ba7d2177a2f520e63 (patch) | |
tree | 5596cc0d72c938f7d5af873a629db33da8643309 | |
parent | 1a3eda56f91058facdf5554c98884b521a317d8c (diff) |
Code block in templates.
-rw-r--r-- | templates/documents/default.org | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/documents/default.org b/templates/documents/default.org index c5bbdf8..6415af7 100644 --- a/templates/documents/default.org +++ b/templates/documents/default.org @@ -35,3 +35,18 @@ #+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate} #+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.5pt} #+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em]\footnotesize Compiled with \includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/...\\ Copyright \copyright~2020 Marius Peter. All rights reserved.} + +#+BEGIN_SRC emacs-lisp :exports none :cache no :results raw + (concat "#+LATEX_HEADER_EXTRA:" + "\\fancyfoot[C]{\\hrulefill\\\\[0.8em] " + "Page \\thepage/\\pageref*{LastPage}\\\\[0.8em] " + "\\footnotesize Compiled with" + "\\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/" + "\\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/" + "\\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/..." + " On \\texttt{" (with-temp-buffer (org-insert-time-stamp (current-time))) + "}\\\\ Copyright \\copyright~2020 Marius Peter. All rights reserved.}") +#+END_SRC + +# #+RESULTS: +# #+LATEX_HEADER_EXTRA:\fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em] \footnotesize Compiled with\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/... On \texttt{<2020-11-23 Mon>}\\ Copyright \copyright~2020 Marius Peter. All rights reserved.} |