Compare commits

...

2 Commits

View File

@ -2019,6 +2019,7 @@ Links to Org-mode videos are:
3. [[yt:oJTwQvgfgMM][Emacs Org-mode: a system for note-taking and project planning]]
4. [[yt:SzA2YODtgK4][Getting Started With Org Mode]]
5. [[yt:zqAYHWv36X0][Org Mode Time and Task Tools]]
6. [[yt:WUsgmQjMB6Q][Orgmode Workflow 3 (with Python Source Blocks)]]
*** Setup Org
:PROPERTIES:
@ -3125,15 +3126,15 @@ make test > out.txt 2>&1
:CUSTOM_ID: sec:file-inclusion-and-noweb
:END:
Note: [[https://list.orgmode.org/87sfisf31o.fsf@posteo.net/][How to include LaTeX packages in a LaTeX export block]].
Listing [[lst:source-file-export-keyword-settings]] shows the preamble lines of this
[[file:README.org]] file. It lists the export keyword settings, the definition of
the [[https://orgmode.org/][Org mode]] =kbd= macro and the source block that generates part of the LaTeX
preamble. Listing [[lst:latex-header-1]], [[lst:latex-header-2]], [[lst:latex-header-3]],
[[lst:latex-header-4]], and [[lst:latex-header-5]] show the LaTeX source blocks that
contain the LaTeX preamble. All LaTeX listings in this section *can be and are*
handled by [[info:org#Noweb Reference Syntax][noweb (info)]].
exporting adds to the LaTeX preamble.
Note: [[info:org#Noweb Reference Syntax][Noweb (info)]] handles all LaTeX preamble listings in this section. For
this idea and more, see: [[https://list.orgmode.org/878rsar880.fsf@posteo.net/][LaTeX header blocks or managing lots of LaTeX headers]].
#+caption[Source file export keyword settings]:
#+caption: The preamble lines of README.org containing the export keyword
@ -3145,12 +3146,13 @@ handled by [[info:org#Noweb Reference Syntax][noweb (info)]].
#+name: latex-header-1
#+begin_src latex -n :exports none
% Begin of the LaTeX preamble:
% See: https://list.orgmode.org/87o807r7fr.fsf@posteo.net/
% See: https://list.orgmode.org/878rsar880.fsf@posteo.net/
% From: "Juan Manuel Macías" <maciaschain@posteo.net>
% To: orgmode <emacs-orgmode@gnu.org>
% Subject: [tip] Insert arbitrary LaTeX code at the beginning of any float environment
% Date: Sun, 08 May 2022 22:22:16 +0000
% Message-ID: <87o807r7fr.fsf@posteo.net>
% To: William Denton <wtd@pobox.com>
% Cc: orgmode <emacs-orgmode@gnu.org>
% Subject: Re: #+latex_header blocks, or, managing lots of LaTeX headers
% Date: Tue, 12 Apr 2022 08:55:59 +0000 [thread overview]
% Message-ID: <878rsar880.fsf@posteo.net> (raw)
% LuaLaTeX-, PdfLaTeX-, or XeTeX-COMPILER COMPATIBILITY:
% Prevent collisions by using font packages before compiler specific packages.
\usepackage{ifthen,ifluatex,ifxetex}
@ -3180,8 +3182,8 @@ handled by [[info:org#Noweb Reference Syntax][noweb (info)]].
% End of the 1st LaTeX header block.
#+end_src
#+caption[LaTeX preamble: replacing the =Org-mode= default packages]:
#+caption: LaTeX preamble: replacing the =Org-mode= default packages.
#+caption[LaTeX preamble: adding to the =Org-mode= default preamble]:
#+caption: LaTeX preamble: adding to the =Org-mode= default preamble.
#+name: lst:latex-header-1
#+begin_src latex -n :exports code :noweb yes
<<latex-header-1>>