
이 코드가 있습니다.
\documentclass[tikz]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[frenchb]{babel}
\usetikzlibrary{decorations.text,}
\begin{document}
\sffamily
\begin{tikzpicture}[
circle label/.style = {
postaction={
decoration={
text along path,
text = {#1},
text align=center,
reverse path,
},
decorate,
}
}
]
\filldraw[white] (-5,-5) rectangle (5,5);
\path[circle label={Text with spécial character}] (0,-1.2) arc (-90:360-90:1.2);
\draw[dotted] (0,0) circle (1);
\end{tikzpicture}
\end{document}
특수 문자(é)가 포함된 텍스트를 인쇄하는 데 문제가 있습니다. 특수 문자가 포함된 라벨을 가질 수 있나요? 그렇다면 어떻게?
답변1
특수 문자에는 {}를 사용하세요.
\documentclass[tikz]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[frenchb]{babel}
\usetikzlibrary{decorations.text,}
\begin{document}
\sffamily
\begin{tikzpicture}[
circle label/.style = {
postaction={
decoration={
text along path,
text = {#1},
text align=center,
reverse path,
},
decorate,
}
}
]
\filldraw[white] (-5,-5) rectangle (5,5);
\path[circle label={Text with sp{é}cial character}] (0,-1.2) arc (-90:360-90:1.2);
\draw[dotted] (0,0) circle (1);
\end{tikzpicture}
\end{document}