von feichti92 » Mi 5. Jul 2017, 07:24
Hallo,
Bei einer meiner tikz-Abbildungen habe ich ein seltsames Problem. Beim Ausführen von folgendem Code in TexStudio bekomme ich einen Fehler "Missing \endscape inserted. ...gle eccentricity=1.1, angle radius=2.5cm]" und "Package xcolor Error: Undefined Color `"$\alpha$". {angle=a--b--c}". Wenn ich den Code allerdings auf sharelatex.com ausführe, funktioniert alles problemlos. Kann das mit einem veraltetem Packet zu tun haben? Danke für die Hilfe!
\documentclass[11pt,a4paper,oneside,bibliography=totocnumbered,toc=listofnumbered]{scrbook}
\usepackage[babel, german=quotes]{csquotes}
\usepackage{float}
\usepackage{subcaption}
\usepackage{enumitem}
\usepackage{bm}
\usepackage{amssymb}
\usepackage{pdfpages}
\usepackage{setspace}
\usepackage{listings}
\usepackage{physics}
\usepackage{tabularx}
\newcolumntype{Z}{>{\Centering}X}
\usepackage{diagbox}
\usepackage{ragged2e}
\usepackage[per-mode = symbol]{siunitx}
\DeclareSIUnit{\EURsymb}{\text{\euro}}
\DeclareSIUnit{\EURtext}{EUR}
\DeclareSIUnit{\stk}{Stk.}
\DeclareSIUnit{\bits}{Bit}
\usepackage{tikz}
\usetikzlibrary{shadows, arrows, angles, quotes}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\usepgfplotslibrary{units}
\usepackage{smartdiagram}
\usepackage[europeanresistors, europeaninductors, europeanvoltages, europeancurrents, siunitx]{circuitikz}
\usepackage{censor}
\StopCensoring
\usepackage[backend=biber, bibencoding=utf8, bibwarn=true, style=numeric-comp, maxbibnames=2, minbibnames=2, sorting=ydnt, defernumbers=true]{biblatex}
\addbibresource{Literatur/DA_Bib_Feichtinger.bib}
\begin{document}
\begin{tikzpicture}
\draw
(3,0) coordinate (a) node {}
-- (0,0) coordinate (b) node {}
-- (5,2) coordinate (c) node {}
pic["$\alpha$", draw, ->,angle eccentricity=1.1, angle radius=2.5cm]
{angle=a--b--c};
\draw
(7.75,7.75*2/5) coordinate (d) node {}
-- (5,2) coordinate (e) node {}
-- (10,3) coordinate (f) node {}
pic["$\beta$ ", draw, <-, angle eccentricity=1.1, angle radius=2.5cm]
{angle=f--e--d};
\draw[->, line width=1.5pt] (b) -- (c) node[midway, above] {$l_1$};
\draw[->, line width=1.5pt] (e) -- (f) node[midway, below] {$l_2$};
\end{tikzpicture}
\end{document}
Hallo,
Bei einer meiner tikz-Abbildungen habe ich ein seltsames Problem. Beim Ausführen von folgendem Code in TexStudio bekomme ich einen Fehler "Missing \endscape inserted. ...gle eccentricity=1.1, angle radius=2.5cm]" und "Package xcolor Error: Undefined Color `"$\alpha$". {angle=a--b--c}". Wenn ich den Code allerdings auf sharelatex.com ausführe, funktioniert alles problemlos. Kann das mit einem veraltetem Packet zu tun haben? Danke für die Hilfe!
[code]
\documentclass[11pt,a4paper,oneside,bibliography=totocnumbered,toc=listofnumbered]{scrbook}
\usepackage[babel, german=quotes]{csquotes}
\usepackage{float}
\usepackage{subcaption}
\usepackage{enumitem}
\usepackage{bm}
\usepackage{amssymb}
\usepackage{pdfpages}
\usepackage{setspace}
\usepackage{listings}
\usepackage{physics}
\usepackage{tabularx}
\newcolumntype{Z}{>{\Centering}X}
\usepackage{diagbox}
\usepackage{ragged2e}
\usepackage[per-mode = symbol]{siunitx}
\DeclareSIUnit{\EURsymb}{\text{\euro}}
\DeclareSIUnit{\EURtext}{EUR}
\DeclareSIUnit{\stk}{Stk.}
\DeclareSIUnit{\bits}{Bit}
\usepackage{tikz}
\usetikzlibrary{shadows, arrows, angles, quotes}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\usepgfplotslibrary{units}
\usepackage{smartdiagram}
\usepackage[europeanresistors, europeaninductors, europeanvoltages, europeancurrents, siunitx]{circuitikz}
\usepackage{censor}
\StopCensoring
\usepackage[backend=biber, bibencoding=utf8, bibwarn=true, style=numeric-comp, maxbibnames=2, minbibnames=2, sorting=ydnt, defernumbers=true]{biblatex}
\addbibresource{Literatur/DA_Bib_Feichtinger.bib}
\begin{document}
\begin{tikzpicture}
\draw
(3,0) coordinate (a) node {}
-- (0,0) coordinate (b) node {}
-- (5,2) coordinate (c) node {}
pic["$\alpha$", draw, ->,angle eccentricity=1.1, angle radius=2.5cm]
{angle=a--b--c};
\draw
(7.75,7.75*2/5) coordinate (d) node {}
-- (5,2) coordinate (e) node {}
-- (10,3) coordinate (f) node {}
pic["$\beta$ ", draw, <-, angle eccentricity=1.1, angle radius=2.5cm]
{angle=f--e--d};
\draw[->, line width=1.5pt] (b) -- (c) node[midway, above] {$l_1$};
\draw[->, line width=1.5pt] (e) -- (f) node[midway, below] {$l_2$};
\end{tikzpicture}
\end{document}
[/code]