Text mit Indizes entlang eines Arcs mit Tikz

Tabellen und Grafiken erstellen und anordnen


michael1992

Text mit Indizes entlang eines Arcs mit Tikz

Beitrag von michael1992 »

Hallo zusammen,

ich stehe aktuell vor folgendem Problem bei der Nutzung von Tikz:

Ich möchte gerne einen Kreisbogen mit Text versehen. Dazu nutze ich die postaction_{decorate} Funktion. Beim Text handelt es sich um ein Formelzeichen mit vier Indizes. Wie schaffe ich es, dass sich der Text inkl. der Indizes entlang des Arcs bewegt, als gebogen erscheint?

Vielen Dank im Voraus!



Folgendes Beispiel:
\documentclass
[   a4paper,                 % A4-Papier
    12pt, 					% Schriftgröße 12
]{scrreprt}


\usepackage{tikz}
\usetikzlibrary{positioning,%
  fit,%
  arrows,%
  arrows.meta,
  automata,%
  trees,%
  intersections,%
  mindmap,%
  shapes.geometric,%
  shapes.arrows,%
  decorations,%
  decorations.text,%
  decorations.pathmorphing,%
  decorations.pathreplacing,%
  matrix,%
  chains,%
  scopes,%
  circuits,%
  circuits.ee.IEC,%
  calc,%
  fadings,%
  positioning,%
  lindenmayersystems,%
  decorations.markings,
  bending%
}

\begin{document}

\chapter{Kapitel 1}	

	\begin{center}

	\begin{tikzpicture}[>={Triangle[length=2mm,width=1mm]}, scale=0.4,thick]	
	
	\draw[->,thick,postaction={decorate},decoration={text along 		path,text align=center,reverse path,raise = 1ex,text={{\footnotesize $M_\mathrm{a1a2}$}{}}}] (0:3) arc (0:-90+3.3:3);
	\end{tikzpicture}	
	
\end{center}

\end{document}
[/code]