
Mit Code kann ich die folgende Abbildung generieren.
Ich weiß nicht, wie ich die Pfeilgröße und die Textgröße vergrößern kann.
Ich möchte die Abbildungsgröße beibehalten. Nur die Pfeil- und Textgröße müssen auf eine Größe erhöht werden, die ordentlich aussieht und gut lesbar ist.
DER CODE:
\documentclass[tikz,border=50]{standalone}
\usepackage[printwatermark]{xwatermark}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{lipsum}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[>=latex]
\draw [dashed, thick] circle [radius=4];
\draw [line width=1.0pt] (-18,-12) -- (18,-12) -- (18,12) -- (-18,12) -- (-18,-12);
\foreach \x in {18}{
\foreach \y in {-12,-11,...,12}{
\draw[line width=0.8pt] [->] ([xshift=\x cm]0.0,\y cm) -- ([xshift=\x cm]2.0,\y cm);
}
}
\foreach \x in {-18}{
\foreach \y in {-12,-11,...,12}{
\draw[line width=0.8pt] [->] ([xshift=\x cm]0.0,\y cm) -- ([xshift=\x cm]-2.0,\y cm);
}
}
\path (22,0) node {$\sigma^{\infty}_{x}$};
\path (-22,0) node {$\sigma^{\infty}_{x}$};
\end{tikzpicture}
\end{document}
Antwort1
Verwenden Sie \usetikzlibrary{arrows.meta}
(anstelle von arrows
) und setzen Sie dies als Option fürtikzpicture
\begin{tikzpicture}[> = {Latex[scale=2.5]},font=\fontsize{40}{48}\selectfont]
Ändern Sie die Schriftgröße scale
nach Belieben. Achten Sie aber darauf, dass die Schriftart skalierbar ist, am besten verwenden Sie \usepackage{lmodern}
.
Vollständiger Code:
\documentclass[tikz,border=50]{standalone}
\usepackage[printwatermark]{xwatermark}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{lipsum}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[> = {Latex[scale=2.5]},font=\fontsize{40}{48}\selectfont]
\draw [dashed, thick] circle [radius=4];
\draw [line width=1.0pt] (-18,-12) -- (18,-12) -- (18,12) -- (-18,12) -- (-18,-12);
\foreach \x in {18}{
\foreach \y in {-12,-11,...,12}{
\draw[line width=0.8pt] [->] ([xshift=\x cm]0.0,\y cm) -- ([xshift=\x cm]2.0,\y cm);
}
}
\foreach \x in {-18}{
\foreach \y in {-12,-11,...,12}{
\draw[line width=0.8pt] [->] ([xshift=\x cm]0.0,\y cm) -- ([xshift=\x cm]-2.0,\y cm);
}
}
\path (22,0) node {$\sigma^{\infty}_{x}$};
\path (-22,0) node {$\sigma^{\infty}_{x}$};
\end{tikzpicture}
\end{document}