von aasaa00 » Sa 18. Sep 2021, 19:06
Hallo,
ich habe jetzt mein Dokument soweit gekürzt, dass ich nun weiß, dass ohne die nachfolgenden Zeilen mein Code glatt durchlaufen würde:
\usepackage{paracol}
\usepackage{polyglossia} %Kommentar
\setmainlanguage[variant=german, spelling=new, latesthyphen=true, babelshorthands=true]{german}
\setmainfont{Times New Roman}
%Für Kapitälchen
\newfontfamily\tgtermes{TeX Gyre Termes}
\makeatletter
\begingroup
\tgtermes
\DeclareFontShape{\f@encoding}{\rmdefault}{m}{sc}{%
<-> ssub * \f@family/m/sc}{}
\DeclareFontShape{\f@encoding}{\rmdefault}{bx}{sc}{%
<-> ssub * \f@family/bx/sc}{}
\endgroup
\makeatother
Mein Problem: Ich kann beide Packages nicht einfach rausnehmen, weil ich v. a. auf polyglossia (viele exotische Sprachen, die mit babel nicht abgedeckt sind) angewiesen bin. Hat vielleicht jmd. ein Hinweis oder Rat? Hier der vollständige MWE (mit den Fehlermeldungen):
\documentclass{scrbook}
\usepackage{tikz}
\usetikzlibrary{positioning,shadows.blur,arrows.meta,bending,calc,intersections}
\usepackage{paracol}
\usepackage{polyglossia} %Kommentar
\setmainlanguage[variant=german, spelling=new, latesthyphen=true, babelshorthands=true]{german}
\setmainfont{Times New Roman}
%Für Kapitälchen
\newfontfamily\tgtermes{TeX Gyre Termes}
\makeatletter
\begingroup
\tgtermes
\DeclareFontShape{\f@encoding}{\rmdefault}{m}{sc}{%
<-> ssub * \f@family/m/sc}{}
\DeclareFontShape{\f@encoding}{\rmdefault}{bx}{sc}{%
<-> ssub * \f@family/bx/sc}{}
\endgroup
\makeatother
\begin{document}
\begin{tikzpicture}[node distance=2em,
nodes={draw,rounded corners,align=center,blur shadow,
fill=white,minimum height=3em,minimum width=8em},
pics/circular arc/.style args={from #1 to #2}{code={
\path[name path=arc]
let \p1=(#1),\p2=(#2),\n1={atan2(\y1,\x1)},\n2={atan2(\y2,\x2)},
\n3={ifthenelse(abs(\n1-\n2)<180,\n2,\n2-360)}
in (\n1:\r) arc(\n1:\n3:\r);
\draw[>={Stealth[bend]},pic actions,
name intersections={of=#1 and arc,by=arcstart},
name intersections={of=#2 and arc,by=arcend}]
let \p1=(arcstart),\p2=(arcend),\n1={atan2(\y1,\x1)},\n2={atan2(\y2,\x2)},
\n3={ifthenelse(abs(\n1-\n2)<180,\n2,\n2-360)}
in (\n1:\r) arc(\n1:\n3:\r);
}}]
\node (L){Imit};
\node[above left=of L,name path=M] (M) {Go};
\node[above right=of L,name path=A] (A) {Ab};
\node[below right=of L,name path=S] (S) {Fr \&\\ W};
\node[below left=of L,name path=R] (R) {M \&\\ Wand};
\def\LstAnchors{"south east","south west","north west","north east"}
\def\r{4}
\foreach \X [remember=\X as \Y (initially R),count=\Z] in {M,A,S,R}
{\path[line width=0.5mm,gray,shorten >=1mm,shorten <=1mm] pic{circular arc=from {\Y} to \X};
\pgfmathsetmacro{\anchA}{{\LstAnchors}[Mod(\Z+3,4)]}
\pgfmathsetmacro{\anchB}{{\LstAnchors}[Mod(\Z+1,4)]}
\draw[line width=0.5mm,gray,{Stealth}-{Stealth}] (L.\anchB) -- (\X.\anchA); }
\end{tikzpicture}
\end{document}
Hallo,
ich habe jetzt mein Dokument soweit gekürzt, dass ich nun weiß, dass ohne die nachfolgenden Zeilen mein Code glatt durchlaufen würde:
[quote]
\usepackage{paracol}
\usepackage{polyglossia} %Kommentar
\setmainlanguage[variant=german, spelling=new, latesthyphen=true, babelshorthands=true]{german}
\setmainfont{Times New Roman}
%Für Kapitälchen
\newfontfamily\tgtermes{TeX Gyre Termes}
\makeatletter
\begingroup
\tgtermes
\DeclareFontShape{\f@encoding}{\rmdefault}{m}{sc}{%
<-> ssub * \f@family/m/sc}{}
\DeclareFontShape{\f@encoding}{\rmdefault}{bx}{sc}{%
<-> ssub * \f@family/bx/sc}{}
\endgroup
\makeatother
[/quote]
Mein Problem: Ich kann beide Packages nicht einfach rausnehmen, weil ich v. a. auf polyglossia (viele exotische Sprachen, die mit babel nicht abgedeckt sind) angewiesen bin. Hat vielleicht jmd. ein Hinweis oder Rat? Hier der vollständige MWE (mit den Fehlermeldungen):
[code]
\documentclass{scrbook}
\usepackage{tikz}
\usetikzlibrary{positioning,shadows.blur,arrows.meta,bending,calc,intersections}
\usepackage{paracol}
\usepackage{polyglossia} %Kommentar
\setmainlanguage[variant=german, spelling=new, latesthyphen=true, babelshorthands=true]{german}
\setmainfont{Times New Roman}
%Für Kapitälchen
\newfontfamily\tgtermes{TeX Gyre Termes}
\makeatletter
\begingroup
\tgtermes
\DeclareFontShape{\f@encoding}{\rmdefault}{m}{sc}{%
<-> ssub * \f@family/m/sc}{}
\DeclareFontShape{\f@encoding}{\rmdefault}{bx}{sc}{%
<-> ssub * \f@family/bx/sc}{}
\endgroup
\makeatother
\begin{document}
\begin{tikzpicture}[node distance=2em,
nodes={draw,rounded corners,align=center,blur shadow,
fill=white,minimum height=3em,minimum width=8em},
pics/circular arc/.style args={from #1 to #2}{code={
\path[name path=arc]
let \p1=(#1),\p2=(#2),\n1={atan2(\y1,\x1)},\n2={atan2(\y2,\x2)},
\n3={ifthenelse(abs(\n1-\n2)<180,\n2,\n2-360)}
in (\n1:\r) arc(\n1:\n3:\r);
\draw[>={Stealth[bend]},pic actions,
name intersections={of=#1 and arc,by=arcstart},
name intersections={of=#2 and arc,by=arcend}]
let \p1=(arcstart),\p2=(arcend),\n1={atan2(\y1,\x1)},\n2={atan2(\y2,\x2)},
\n3={ifthenelse(abs(\n1-\n2)<180,\n2,\n2-360)}
in (\n1:\r) arc(\n1:\n3:\r);
}}]
\node (L){Imit};
\node[above left=of L,name path=M] (M) {Go};
\node[above right=of L,name path=A] (A) {Ab};
\node[below right=of L,name path=S] (S) {Fr \&\\ W};
\node[below left=of L,name path=R] (R) {M \&\\ Wand};
\def\LstAnchors{"south east","south west","north west","north east"}
\def\r{4}
\foreach \X [remember=\X as \Y (initially R),count=\Z] in {M,A,S,R}
{\path[line width=0.5mm,gray,shorten >=1mm,shorten <=1mm] pic{circular arc=from {\Y} to \X};
\pgfmathsetmacro{\anchA}{{\LstAnchors}[Mod(\Z+3,4)]}
\pgfmathsetmacro{\anchB}{{\LstAnchors}[Mod(\Z+1,4)]}
\draw[line width=0.5mm,gray,{Stealth}-{Stealth}] (L.\anchB) -- (\X.\anchA); }
\end{tikzpicture}
\end{document}
[/code]