Remove the backend dependent execution tikz example
This commit is contained in:
parent
48bf9678ce
commit
5281d178ea
45
README.org
45
README.org
@ -2349,51 +2349,6 @@ exporting from Org-mode to LaTeX.
|
|||||||
\end{titlepage}
|
\end{titlepage}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** [[https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#orgcc214c1][Worg: backend dependent execution]]
|
|
||||||
:PROPERTIES:
|
|
||||||
:CUSTOM_ID: sec:backend-dependent-execution-update
|
|
||||||
:END:
|
|
||||||
|
|
||||||
#+caption[Worg update: backend dependent header arguments]:
|
|
||||||
#+caption: Worg update: backend dependent header arguments.
|
|
||||||
#+name: lst:backend-dependent-execution-update
|
|
||||||
#+begin_src org :tangle worg-backend-dependent-execution-update.org
|
|
||||||
,#+latex_header: \usepackage{tikz}
|
|
||||||
|
|
||||||
,#+header: :file (by-backend (html "tree.svg") (latex nil))
|
|
||||||
,#+header: :results (by-backend (html "raw file") (latex "latex replace"))
|
|
||||||
,#+header: :headers '("\\usepackage{tikz}\n")
|
|
||||||
,#+begin_src latex
|
|
||||||
\usetikzlibrary{trees}
|
|
||||||
\begin{tikzpicture}
|
|
||||||
\node [circle, draw, fill=red!20] at (0,0) {1}
|
|
||||||
child { node [circle, draw, fill=blue!30] {2}
|
|
||||||
child { node [circle, draw, fill=green!30] {3} }
|
|
||||||
child { node [circle, draw, fill=yellow!30] {4} }};
|
|
||||||
\end{tikzpicture}
|
|
||||||
,#+end_src
|
|
||||||
|
|
||||||
# Setup
|
|
||||||
,#+begin_src emacs-lisp :exports none
|
|
||||||
(with-eval-after-load 'ox
|
|
||||||
(setq org-babel-latex-htlatex "htlatex")
|
|
||||||
(defmacro by-backend (&rest body)
|
|
||||||
`(cl-case org-export-current-backend ,@body)))
|
|
||||||
,#+end_src
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
This section updates the outdated [[https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#orgcc214c1][Worg: backend dependent execution]] example to
|
|
||||||
Emacs-27.2 and Org-9.5.2. It shows how to export [[https://en.wikipedia.org/wiki/PGF/TikZ][PGF/TikZ]] images to:
|
|
||||||
1. [[https://en.wikipedia.org/wiki/PDF][PDF]] by embedding in [[https://www.latex-project.org/][LaTeX]].
|
|
||||||
2. [[https://en.wikipedia.org/wiki/HTML][HTML]] by passing from [[https://www.latex-project.org/][LaTeX]] by [[https://en.wikipedia.org/wiki/PDF][PDF]] and to [[https://en.wikipedia.org/wiki/Scalable_Vector_Graphics][SVG]].
|
|
||||||
Listing [[lst:backend-dependent-execution-update]] tangles to
|
|
||||||
[[file:worg-backend-dependent-execution-update.org][worg-backend-dependent-execution-update.org]] as either a standalone example or an
|
|
||||||
example for inclusion. Finally, inclusion of
|
|
||||||
[[file:worg-backend-dependent-execution-update.org][worg-backend-dependent-execution-update.org]] produces here the figure with the
|
|
||||||
nodes 1, 2, 3, and 4:\\
|
|
||||||
#+include: worg-backend-dependent-execution-update.org
|
|
||||||
How to include such figures as floats remains an open question.
|
|
||||||
|
|
||||||
*** [[https://orgmode.org/worg/dev/org-syntax-edited.html][Org Syntax]]
|
*** [[https://orgmode.org/worg/dev/org-syntax-edited.html][Org Syntax]]
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: sec:org-syntax
|
:CUSTOM_ID: sec:org-syntax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user