diff --git a/.gitignore b/.gitignore index f432233b068cf93ad7eeef95b420f441f1c58160..e684383055aa36a2d703ab48ec6f48c4cc885456 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,14 @@ *.synctex.* *.aux +*.bbl +*.bcf +*.blg +*.idx +*.ind *.lof +*.lot *.log +*.xml *.toc .vscode/ build/ diff --git a/Makefile b/Makefile index 349223fc4b9fe4f2609abc90276fd38868b45c9b..4eab86641a78f09154dd51b7e2ec655179e549fe 100644 --- a/Makefile +++ b/Makefile @@ -3,16 +3,17 @@ NAME = test LATEX = pdflatex BIBTEX = biber -SUBDIRS= img plt +SUBDIRS = img plt +# use . for no OUTDIR OUTDIR = build TEX_FLAGS = -file-line-error -interaction=nonstopmode COM_FLAGS = -output-directory=$(OUTDIR) -quiet GARBAGE_PATTERNS = *.aux *.bbl *.bcf *.blg *.idx *.ind *.lof *.lot *.log *.xml *.toc SUB_TEX_FILES = $(foreach D,$(SUBDIRS),$(wildcard $(D)/*.tex)) -SUB_TEX_PDF_FILES = $(join $(dir $(SUB_TEX_FILES)),$(addprefix $(OUTDIR)/,$(notdir $(SUB_TEX_FILES:tex=pdf)))) +SUB_PDF_FILES = $(join $(dir $(SUB_TEX_FILES)),$(addprefix $(OUTDIR)/,$(notdir $(SUB_TEX_FILES:tex=pdf)))) SUB_SVG_FILES = $(foreach D,$(SUBDIRS),$(wildcard $(D)/*.svg)) -SUB_SVG_PDF_FILES = $(join $(dir $(SUB_SVG_FILES)),$(addprefix $(OUTDIR)/,$(notdir $(SUB_SVG_FILES:svg=pdf)))) +SUB_PDF_TEX_FILES = $(join $(dir $(SUB_SVG_FILES)),$(addprefix $(OUTDIR)/,$(notdir $(SUB_SVG_FILES:svg=pdf)))) GARBAGE = $(foreach D,. $(SUBDIRS), $(wildcard $(addprefix $(D)/$(OUTDIR)/,$(GARBAGE_PATTERNS)))) @@ -28,20 +29,20 @@ all: bib bib: pdf $(OUTDIR)\$(NAME).bcf $(BIBTEX) $(COM_FLAGS) $(NAME) -pdf: $(SUB_TEX_PDF_FILES) $(SUB_SVG_PDF_FILES) +pdf: $(SUB_PDF_FILES) $(SUB_PDF_TEX_FILES) $(LATEX) -synctex=1 $(TEX_FLAGS) $(COM_FLAGS) $(NAME).tex -$(SUB_TEX_PDF_FILES): $(SUB_TEX_FILES) +$(SUB_PDF_FILES): $(SUB_TEX_FILES) cd $(subst $(OUTDIR)/,,$(dir $@)) && $(LATEX) $(TEX_FLAGS) $(COM_FLAGS) $(notdir $(@:pdf=tex)) -$(SUB_SVG_PDF_FILES): $(SUB_SVG_FILES) - cd $(subst $(OUTDIR)/,,$(dir $@)) && inkscape -C --export-latex --export-filename=$(OUTDIR)\$(notdir $@) $(notdir $(@:pdf=svg)) +$(SUB_PDF_TEX_FILES): $(SUB_SVG_FILES) + cd $(subst $(OUTDIR)/,,$(dir $@)) && inkscape -C --export-latex $(notdir $(@:pdf=svg)) -o $(and $(OUTDIR),$(OUTDIR)\)$(notdir $@) clean: tidy - for %%a in ($(foreach D,$(subst /,\,$(SUB_TEX_PDF_FILES) $(SUB_SVG_PDF_FILES)) $(subst pdf,synctex.gz,$(subst /,\,$(SUB_TEX_PDF_FILES))) $(subst pdf,pdf_tex,$(subst /,\,$(SUB_SVG_PDF_FILES))) $(OUTDIR)\$(NAME).pdf $(OUTDIR)\$(NAME).synctex.gz, "$(D)")) do if exist %%~a del /q %%~a + for %%a in ($(foreach D,$(subst /,\,$(SUB_PDF_FILES) $(SUB_PDF_TEX_FILES)) $(subst pdf,synctex.gz,$(subst /,\,$(SUB_PDF_FILES))) $(subst pdf,pdf_tex,$(subst /,\,$(SUB_PDF_TEX_FILES))) $(OUTDIR)\$(NAME).pdf $(OUTDIR)\$(NAME).synctex.gz, "$(D)")) do if exist %%~a del /q %%~a for %%a in ($(foreach D,. $(SUBDIRS),"$(D)\$(if $(subst .,,$(OUTDIR)),$(OUTDIR),build)")) do if exist %%~a rmdir /q %%~a # if exist $(NAME).pdf del $(NAME).pdf tidy: - if exist $(or $(word 1, $(subst /,\,$(GARBAGE))), false) del /q $(subst /,\,$(GARBAGE)) \ No newline at end of file + if exist $(or $(word 1, $(subst /,\,$(GARBAGE))), false) del /q $(subst /,\,$(GARBAGE)) diff --git a/img/exampleCircuit.pdf b/img/exampleCircuit.pdf new file mode 100644 index 0000000000000000000000000000000000000000..2f6d8cefccb7edbb30324e90d8053fd04780ee53 Binary files /dev/null and b/img/exampleCircuit.pdf differ diff --git a/img/exampleSVG.svg b/img/exampleSVG.svg new file mode 100644 index 0000000000000000000000000000000000000000..5255e782914dd77c745acbbabd3799cd1508ca0b --- /dev/null +++ b/img/exampleSVG.svg @@ -0,0 +1,191 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="24.368298mm" + height="12.207536mm" + viewBox="0 0 24.368297 12.207536" + version="1.1" + id="svg8" + inkscape:version="0.92.2 (5c3e80d, 2017-08-06)" + sodipodi:docname="Abbildungen.svg"> + <defs + id="defs2" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1.4142136" + inkscape:cx="307.94677" + inkscape:cy="-49.651496" + inkscape:document-units="mm" + inkscape:current-layer="layer2" + showgrid="false" + inkscape:window-width="1920" + inkscape:window-height="1017" + inkscape:window-x="1912" + inkscape:window-y="-8" + inkscape:window-maximized="1" + inkscape:object-paths="true" + inkscape:snap-intersection-paths="true" + inkscape:snap-smooth-nodes="true" + inkscape:snap-midpoints="false" + inkscape:object-nodes="true" /> + <metadata + id="metadata5"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Ebene 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(113.63294,-60.18729)" + style="display:inline" /> + <g + inkscape:groupmode="layer" + id="layer2" + inkscape:label="Objekt 2" + transform="translate(-6.3142424,-29.850761)"> + <path + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ff0000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" + d="M 18.123958,36.987063 V 37.8082 38.628824 L 19.546094,37.8082 Z m -8.465633,0.68833 v 0.265617 h 8.4646 v -0.265617 z" + id="path825" + inkscape:connector-curvature="0" /> + <path + id="path834" + d="m 16.512805,32.882051 0.410569,0.711125 0.410311,0.710681 0.821294,-1.421749 z m -6.987289,4.828927 0.132809,0.230032 7.330559,-4.2323 -0.132809,-0.230032 z" + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#0000ff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" + inkscape:connector-curvature="0" /> + <path + inkscape:connector-curvature="0" + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#005500;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" + d="m 26.544685,34.280017 -0.212525,0.793157 -0.212394,0.792661 1.586071,-0.424585 z m -8.355326,-1.526192 -0.03438,0.128283 -0.03438,0.128284 8.176176,2.1908 0.06875,-0.256568 z" + id="path836" + sodipodi:nodetypes="ccccccccccc" /> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332" + x="21.067448" + y="32.97942" + id="text840"><tspan + sodipodi:role="line" + id="tspan838" + x="21.067448" + y="32.97942" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;stroke-width:0.26458332">$Z_1$</tspan></text> + <text + id="text844" + y="40.984444" + x="13.295312" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;stroke-width:0.26458332" + y="40.984444" + x="13.295312" + id="tspan842" + sodipodi:role="line">$Z_{1.1}$</tspan></text> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';text-align:end;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332" + x="13.730747" + y="34.599991" + id="text848"><tspan + sodipodi:role="line" + id="tspan846" + x="13.730747" + y="34.599991" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;text-align:end;text-anchor:end;stroke-width:0.26458332">$Z_{1.2}$</tspan></text> + </g> + <g + inkscape:groupmode="layer" + id="layer3" + inkscape:label="Objekt" + style="display:inline" + transform="translate(-11.131775,-31.878105)"> + <path + style="fill:none;stroke:#000000;stroke-width:0.25;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 23.573173,11.194689 h 8.699622" + id="path860" + inkscape:connector-curvature="0" /> + <rect + style="opacity:1;fill:#b3b3b3;fill-opacity:1;stroke:none;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect840" + width="10.102788" + height="10.336649" + x="4.817533" + y="2.027344" /> + <rect + style="opacity:1;fill:#00ffff;fill-opacity:1;stroke:none;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect842" + width="6.8755083" + height="2.7595577" + x="6.4311728" + y="3.1966481" /> + <circle + style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:4.82222223;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path844" + cx="12.794051" + cy="7.328732" + r="0.51263022" /> + <circle + r="0.51263022" + cy="7.328732" + cx="11.371916" + id="circle846" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:4.82222223;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> + <circle + style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:4.82222223;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="circle848" + cx="9.9497805" + cy="7.328732" + r="0.51263022" /> + <rect + style="opacity:1;fill:#550000;fill-opacity:1;stroke:none;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect858" + width="7.0158248" + height="2.3386083" + x="24.415071" + y="10.025385" /> + <path + style="fill:none;stroke:#000000;stroke-width:0.25;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 23.573173,11.194689 h -1.463929 v 2.422569 h -9.310026 v -2.315104" + id="path866" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccc" /> + <path + sodipodi:nodetypes="ccccc" + inkscape:connector-curvature="0" + id="path868" + d="M 32.272795,11.194689 H 33.17995 V 14.77481 H 11.335289 v -3.472656" + style="fill:none;stroke:#000000;stroke-width:0.25;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332" + x="26.954428" + y="9.4335346" + id="text872"><tspan + sodipodi:role="line" + id="tspan870" + x="26.954428" + y="9.4335346" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;stroke-width:0.26458332">\footnotesize $R$</tspan></text> + </g> +</svg> diff --git a/plt/examplePlot.pdf b/plt/examplePlot.pdf new file mode 100644 index 0000000000000000000000000000000000000000..59c1dbbbef5a675d98853ad6775eea658bc04ccd Binary files /dev/null and b/plt/examplePlot.pdf differ diff --git a/test.pdf b/test.pdf new file mode 100644 index 0000000000000000000000000000000000000000..520b43e54f5cb90876ec4efd5801b11b634fa55c Binary files /dev/null and b/test.pdf differ diff --git a/test.tex b/test.tex index 6fa84c7835b44f80106d4219e18816cb3fb97f1b..9aeb2d79cf396de22d42f1b197470a095cfb4054 100644 --- a/test.tex +++ b/test.tex @@ -53,7 +53,7 @@ \begin{figure} \centering \graphicspath{{img/build/}} % double curly brackets needet for unknown reason - \input{img/build/Abbildungen.pdf_tex} + \input{img/build/exampleSVG.pdf_tex} \caption{made via inkscape} \end{figure}