emacs-config/misc/org-latex-clever-preamble.svg
TEC 55212eae28
Org: make LaTeX conditional preamble a bit fancier
Introduced to org-latex-feature-implementations in this commit:
+ :when keyword
+ :prevents keyword
+ special treatment of features starting with !

No more universal preamble.

Moved all latex template content other than font into preamble features.

Added xkcd feature implications.

Refactored org-latex-generate-features-preamble.

Update org-latex-clever-preamble graphic to better illustrate the
functionality.
2021-03-26 02:48:33 +08:00

150 lines
8.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.42.3 (0)
-->
<!-- Title: %3 Pages: 1 -->
<svg width="407pt" height="260pt"
viewBox="0.00 0.00 407.10 260.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 256)">
<title>%3</title>
<!-- file:*.jpeg -->
<g id="node1" class="node">
<title>file:*.jpeg</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="94,-252 0,-252 0,-216 94,-216 94,-252"/>
<polyline fill="none" stroke="#2ec27e" stroke-width="2" points="0,-216 94,-216 "/>
<text text-anchor="middle" x="47" y="-230.3" font-family="overpass" font-size="14.00" fill="#000000">file:*.jpeg</text>
</g>
<!-- image -->
<g id="node6" class="node">
<title>image</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="224,-198 130,-198 130,-162 224,-162 224,-198"/>
<polyline fill="none" stroke="#f5c211" stroke-width="2" points="130,-162 224,-162 "/>
<text text-anchor="middle" x="177" y="-176.3" font-family="overpass" font-size="14.00" fill="#000000">image</text>
</g>
<!-- file:*.jpeg&#45;&gt;image -->
<g id="edge1" class="edge">
<title>file:*.jpeg&#45;&gt;image</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M90.98,-215.87C101.43,-211.46 112.72,-206.7 123.55,-202.13"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="125.06,-205.29 132.92,-198.18 122.34,-198.84 125.06,-205.29"/>
</g>
<!-- file:*.png -->
<g id="node2" class="node">
<title>file:*.png</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="94,-198 0,-198 0,-162 94,-162 94,-198"/>
<polyline fill="none" stroke="#2ec27e" stroke-width="2" points="0,-162 94,-162 "/>
<text text-anchor="middle" x="47" y="-176.3" font-family="overpass" font-size="14.00" fill="#000000">file:*.png</text>
</g>
<!-- file:*.png&#45;&gt;image -->
<g id="edge3" class="edge">
<title>file:*.png&#45;&gt;image</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M94.21,-180C102.46,-180 111.13,-180 119.63,-180"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="119.86,-183.5 129.86,-180 119.86,-176.5 119.86,-183.5"/>
</g>
<!-- file:*.svg -->
<g id="node3" class="node">
<title>file:*.svg</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="94,-36 0,-36 0,0 94,0 94,-36"/>
<polyline fill="none" stroke="#2ec27e" stroke-width="2" points="0,0 94,0 "/>
<text text-anchor="middle" x="47" y="-14.3" font-family="overpass" font-size="14.00" fill="#000000">file:*.svg</text>
</g>
<!-- svg -->
<g id="node7" class="node">
<title>svg</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="224,-36 130,-36 130,0 224,0 224,-36"/>
<polyline fill="none" stroke="#f5c211" stroke-width="2" points="130,0 224,0 "/>
<text text-anchor="middle" x="177" y="-14.3" font-family="overpass" font-size="14.00" fill="#000000">svg</text>
</g>
<!-- file:*.svg&#45;&gt;svg -->
<g id="edge4" class="edge">
<title>file:*.svg&#45;&gt;svg</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M94.21,-18C102.46,-18 111.13,-18 119.63,-18"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="119.86,-21.5 129.86,-18 119.86,-14.5 119.86,-21.5"/>
</g>
<!-- #+caption -->
<g id="node4" class="node">
<title>#+caption</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="94,-90 0,-90 0,-54 94,-54 94,-90"/>
<polyline fill="none" stroke="#2ec27e" stroke-width="2" points="0,-54 94,-54 "/>
<text text-anchor="middle" x="47" y="-68.3" font-family="overpass" font-size="14.00" fill="#000000">#+caption</text>
</g>
<!-- caption -->
<g id="node8" class="node">
<title>caption</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="224,-117 130,-117 130,-81 224,-81 224,-117"/>
<polyline fill="none" stroke="#f5c211" stroke-width="2" points="130,-81 224,-81 "/>
<text text-anchor="middle" x="177" y="-95.3" font-family="overpass" font-size="14.00" fill="#000000">caption</text>
</g>
<!-- #+caption&#45;&gt;caption -->
<g id="edge7" class="edge">
<title>#+caption&#45;&gt;caption</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M94.21,-81.75C102.55,-83.51 111.32,-85.36 119.91,-87.17"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="119.35,-90.63 129.86,-89.27 120.79,-83.78 119.35,-90.63"/>
</g>
<!-- xkcd:* -->
<g id="node5" class="node">
<title>xkcd:*</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="94,-144 0,-144 0,-108 94,-108 94,-144"/>
<polyline fill="none" stroke="#2ec27e" stroke-width="2" points="0,-108 94,-108 "/>
<text text-anchor="middle" x="47" y="-122.3" font-family="overpass" font-size="14.00" fill="#000000">xkcd:*</text>
</g>
<!-- xkcd:*&#45;&gt;image -->
<g id="edge9" class="edge">
<title>xkcd:*&#45;&gt;image</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M90.98,-144.13C101.43,-148.54 112.72,-153.3 123.55,-157.87"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="122.34,-161.16 132.92,-161.82 125.06,-154.71 122.34,-161.16"/>
</g>
<!-- xkcd:*&#45;&gt;caption -->
<g id="edge10" class="edge">
<title>xkcd:*&#45;&gt;caption</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M94.21,-116.25C102.55,-114.49 111.32,-112.64 119.91,-110.83"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="120.79,-114.22 129.86,-108.73 119.35,-107.37 120.79,-114.22"/>
</g>
<!-- (TeX) graphicx -->
<g id="node9" class="node">
<title>(TeX) graphicx</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="366,-198 260,-198 260,-162 366,-162 366,-198"/>
<polyline fill="none" stroke="#813d9c" stroke-width="2" points="260,-162 366,-162 "/>
<text text-anchor="middle" x="313" y="-176.3" font-family="overpass" font-size="14.00" fill="#000000">(TeX) graphicx</text>
</g>
<!-- image&#45;&gt;(TeX) graphicx -->
<g id="edge2" class="edge">
<title>image&#45;&gt;(TeX) graphicx</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M224.12,-180C232.39,-180 241.13,-180 249.77,-180"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="249.82,-183.5 259.82,-180 249.82,-176.5 249.82,-183.5"/>
</g>
<!-- (TeX) svg -->
<g id="node10" class="node">
<title>(TeX) svg</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="360,-36 266,-36 266,0 360,0 360,-36"/>
<polyline fill="none" stroke="#813d9c" stroke-width="2" points="266,0 360,0 "/>
<text text-anchor="middle" x="313" y="-14.3" font-family="overpass" font-size="14.00" fill="#000000">(TeX) svg</text>
</g>
<!-- svg&#45;&gt;(TeX) svg -->
<g id="edge5" class="edge">
<title>svg&#45;&gt;(TeX) svg</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M224.12,-18C234.22,-18 245.03,-18 255.49,-18"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="255.8,-21.5 265.8,-18 255.8,-14.5 255.8,-21.5"/>
</g>
<!-- (TeX) caption -->
<g id="node11" class="node">
<title>(TeX) caption</title>
<polygon fill="#efefef" stroke="transparent" stroke-width="2" points="362,-117 264,-117 264,-81 362,-81 362,-117"/>
<polyline fill="none" stroke="#813d9c" stroke-width="2" points="264,-81 362,-81 "/>
<text text-anchor="middle" x="313" y="-95.3" font-family="overpass" font-size="14.00" fill="#000000">(TeX) caption</text>
</g>
<!-- caption&#45;&gt;(TeX) caption -->
<g id="edge8" class="edge">
<title>caption&#45;&gt;(TeX) caption</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M224.12,-99C233.67,-99 243.85,-99 253.77,-99"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="253.97,-102.5 263.97,-99 253.97,-95.5 253.97,-102.5"/>
</g>
<!-- (TeX) svg&#45;&gt;(TeX) graphicx -->
<g id="edge6" class="edge">
<title>(TeX) svg:e&#45;&gt;(TeX) graphicx:s</title>
<path fill="none" stroke="#aaaaaa" stroke-width="1.2" d="M361,-18C406.17,-18 405.97,-77.53 384,-117 367.92,-145.89 324.16,-128.77 314.79,-150.91"/>
<polygon fill="#aaaaaa" stroke="#aaaaaa" stroke-width="1.2" points="311.3,-150.54 313,-161 318.19,-151.76 311.3,-150.54"/>
</g>
</g>
</svg>