diff --git a/slides/chapter-04.de.md b/slides/chapter-04.de.md index 7ac0c69..477f47c 100644 --- a/slides/chapter-04.de.md +++ b/slides/chapter-04.de.md @@ -163,6 +163,28 @@ Dateipfade angeben 👣 ![](svg/chapter-04/relative-path-superdir-crop.svg) + +@slide(layout=content-and-preview-with-category) + +@category +Exkurs + +@title +Dateipfade angeben 👣 + +@content +

`task.tex` → `graphics.raw.tex` (wenn `task.tex` von `main.tex` importiert wird)

+ +
+
./exercises/graphics/graphics.raw.tex
+

Pfade sind immer relativ zum Wurzelelement, auch wenn dieses noch andere Dateien einbindet, die wiederum andere Dateien referenzieren.

+
+ +@preview +![](svg/chapter-04/relative-path-transitive-english-crop.svg) + + + @slide(layout=content-only-with-category) @category diff --git a/slides/chapter-04.en.md b/slides/chapter-04.en.md index 8cd7f9b..9834e60 100644 --- a/slides/chapter-04.en.md +++ b/slides/chapter-04.en.md @@ -160,6 +160,26 @@ Specifying file paths 👣 ![](svg/chapter-04/relative-path-superdir-english-crop.svg) +@slide(layout=content-and-preview-with-category) + +@category +Excursion + +@title +Specifying file paths 👣 + +@content +

`task.tex` → `graphics.raw.tex` (while `task.tex` is imported into `main.tex`)

+ +
+
./exercises/graphics/graphics.raw.tex
+

Paths are always relative to the root document that imports other files as fragments.

+
+ +@preview +![](svg/chapter-04/relative-path-transitive-english-crop.svg) + + @slide(layout=content-only-with-category) diff --git a/svg/chapter-04/relative-path-transitive-crop.svg b/svg/chapter-04/relative-path-transitive-crop.svg new file mode 100644 index 0000000..3efbb62 --- /dev/null +++ b/svg/chapter-04/relative-path-transitive-crop.svg @@ -0,0 +1,344 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/chapter-04/relative-path-transitive-english-crop.svg b/svg/chapter-04/relative-path-transitive-english-crop.svg new file mode 100644 index 0000000..5630fdc --- /dev/null +++ b/svg/chapter-04/relative-path-transitive-english-crop.svg @@ -0,0 +1,344 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/chapter-04/relative-path-transitive-english-orig.svg b/svg/chapter-04/relative-path-transitive-english-orig.svg new file mode 100644 index 0000000..45bb6d3 --- /dev/null +++ b/svg/chapter-04/relative-path-transitive-english-orig.svg @@ -0,0 +1,344 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/chapter-04/relative-path-transitive-english.tex b/svg/chapter-04/relative-path-transitive-english.tex new file mode 100644 index 0000000..3214425 --- /dev/null +++ b/svg/chapter-04/relative-path-transitive-english.tex @@ -0,0 +1,80 @@ +\documentclass{article} +\usepackage[ngerman]{babel} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{tikz} +\usetikzlibrary{trees} +\usepackage{verbatimbox} +\usepackage[active,tightpage]{preview} +\PreviewEnvironment{tikzpicture} +\setlength\PreviewBorder{5pt} +\begin{document} + \tikzstyle{every node}=[draw=black,thick,anchor=west] + \tikzstyle{selected}=[draw=red,fill=red!30] + \tikzstyle{foot}=[fill=gray!50] + \tikzstyle{rel}=[fill=blue!70] + \tikzstyle{intermediate}=[draw=blue,fill=blue!30] + \tikzstyle{partition}=[draw=white] + + % \begin{tikzpicture}[% + % grow via three points={one child at (0.5,-0.7) and + % two children at (0.5,-0.7) and (0.5,-1.4)}, + % edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}] + % \node {/ oder C:} + % child { node {home} + % child { node {knut} + % child { node {pictures}} + % child { node {docs} + % child { node [foot] {latex} + % child { node [foot] {main} + % child { node [rel] { main.tex}} + % } + % child [missing] {} + % child {node [foot] {sections} + % child { node [selected] {part1.tex}} + % } + % } + % } + % } + % }; + % \end{tikzpicture} + \begin{tikzpicture}[% + grow via three points={one child at (0.5,-0.7) and + two children at (0.5,-0.7) and (0.5,-1.4)}, + edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}] + \node [foot] { latex-skript } + child { node [rel] { main.tex} } + child { node { praeamble.tex}} + % child { node { listings}} + child {node [foot] {content} + child { node { basic-document-structure.tex}} + child { node [intermediate] { basic-functionality.tex}} + child { node { ... }} + } + child [missing] {} + child [missing] {} + child [missing] {} + child { node {exercises} + child { node [foot] { graphics } + child { node [selected] {graphics.raw.tex}} + child { node {task.tex }} + child { node {...}}} + child [missing] {} + child [missing] {} + child [missing] {} + child { node { footnotes} + child { node { footnotes.raw.tex }} + child { node {task.tex}} + child { node { ...}}} + }; + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child { node {...}}; + \end{tikzpicture} +\end{document} \ No newline at end of file diff --git a/svg/chapter-04/relative-path-transitive-orig.svg b/svg/chapter-04/relative-path-transitive-orig.svg new file mode 100644 index 0000000..1adb085 --- /dev/null +++ b/svg/chapter-04/relative-path-transitive-orig.svg @@ -0,0 +1,344 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/chapter-04/relative-path-transitive.tex b/svg/chapter-04/relative-path-transitive.tex new file mode 100644 index 0000000..3214425 --- /dev/null +++ b/svg/chapter-04/relative-path-transitive.tex @@ -0,0 +1,80 @@ +\documentclass{article} +\usepackage[ngerman]{babel} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{tikz} +\usetikzlibrary{trees} +\usepackage{verbatimbox} +\usepackage[active,tightpage]{preview} +\PreviewEnvironment{tikzpicture} +\setlength\PreviewBorder{5pt} +\begin{document} + \tikzstyle{every node}=[draw=black,thick,anchor=west] + \tikzstyle{selected}=[draw=red,fill=red!30] + \tikzstyle{foot}=[fill=gray!50] + \tikzstyle{rel}=[fill=blue!70] + \tikzstyle{intermediate}=[draw=blue,fill=blue!30] + \tikzstyle{partition}=[draw=white] + + % \begin{tikzpicture}[% + % grow via three points={one child at (0.5,-0.7) and + % two children at (0.5,-0.7) and (0.5,-1.4)}, + % edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}] + % \node {/ oder C:} + % child { node {home} + % child { node {knut} + % child { node {pictures}} + % child { node {docs} + % child { node [foot] {latex} + % child { node [foot] {main} + % child { node [rel] { main.tex}} + % } + % child [missing] {} + % child {node [foot] {sections} + % child { node [selected] {part1.tex}} + % } + % } + % } + % } + % }; + % \end{tikzpicture} + \begin{tikzpicture}[% + grow via three points={one child at (0.5,-0.7) and + two children at (0.5,-0.7) and (0.5,-1.4)}, + edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}] + \node [foot] { latex-skript } + child { node [rel] { main.tex} } + child { node { praeamble.tex}} + % child { node { listings}} + child {node [foot] {content} + child { node { basic-document-structure.tex}} + child { node [intermediate] { basic-functionality.tex}} + child { node { ... }} + } + child [missing] {} + child [missing] {} + child [missing] {} + child { node {exercises} + child { node [foot] { graphics } + child { node [selected] {graphics.raw.tex}} + child { node {task.tex }} + child { node {...}}} + child [missing] {} + child [missing] {} + child [missing] {} + child { node { footnotes} + child { node { footnotes.raw.tex }} + child { node {task.tex}} + child { node { ...}}} + }; + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child [missing] {} + % child { node {...}}; + \end{tikzpicture} +\end{document} \ No newline at end of file