
무라카미의 덴마크어 번역와인드업 버드 크로니클다음 장 스타일을 사용합니다. 이것을 챕터 스타일로 다시 만드는 것이 가능합니까 memoir
?
텍스트 원은 항상 동일한 반경을 가지며 항상 왼쪽에서 동일한 각도에서 시작됩니다. 그러면 텍스트는 표시된 대로 원을 따라 분산됩니다. 따라서 기술적으로 텍스트를 너무 오랫동안 계속하면 꼬리가 물릴 것입니다. 하지만 이에 대해 걱정하지 마십시오. 텍스트가 이보다 더 길어지지는 않을 것입니다.
텍스트 원의 위치는 왼쪽 장 번호의 너비와 무관하며 최대 2자리입니다.
각도와 반경 측면에서 책에 좀 더 충실한 Giacomo의 답변을 수정했습니다. 이제 이를 장 스타일로 바꾸면 됩니다.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}
\pgfmathsetmacro\startang{170}
\coordinate (start) at (-3,0);
\path [postaction={decorate,decoration={raise=1ex,text along path,text align=left,text={|\sffamily|Sult som smerte {\textbullet} Kumikos lange brev {\textbullet} Fuglen som profet}}}] (start) arc (\startang:{\startang-360} :4 );
\end{tikzpicture}
\end{document}
주변의 교정기 \textbullet
가 필요합니다. 그렇지 않으면 TikZ가 깨집니다.
답변1
memoir
장 스타일 로
\documentclass[a4paper,draft]{memoir}
\setlrmarginsandblock{3cm}{3cm}{*}
\checkandfixthelayout
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\def\startang{170}
% title on curve
\newcommand\ToC[1]{
\begin{tikzpicture}
% depends on the chosen font size
\clip (-1.1em,0.05) rectangle (9,4.5);
\path [postaction={decorate,decoration={raise=1ex,text along path,text align=left,
text={#1}}}] (0,0)
arc (\startang:{\startang-360} :4cm );
\end{tikzpicture}
}
\providecommand\curvefont{}
\makechapterstyle{G}{
\renewcommand\printchaptername{}
\renewcommand\printchapternum{}
\renewcommand\afterchapternum{}
\renewcommand\curvefont{\large\sffamily\bfseries}
\renewcommand\printchaptertitle[1]{%
\chaptitlefont\thechapter~%
% visual baseline
%\rlap{\kern-2em\smash{\rule{\textwidth}{0.4pt}}}%
\curvefont\ToC{##1}
}
\setlength{\beforechapskip}{-\baselineskip}
}
\chapterstyle{G}
\begin{document}
\setcounter{chapter}{10}
\chapter{Sult som smerte {\textbullet} Kumikos lange brev {\textbullet} Fuglen som profet}
\end{document}
답변2
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}
\node (One) at (-4,0) [shape=point] {};
\node (Two) at (4,0) [shape=point] {};
\draw [hidden,postaction={decorate,decoration={raise=1ex,text along path,text align=left,text={|\sffamily|How to make this as a memoir chapterstyle?}}}] (One) to [bend left=45] (Two);
\end{tikzpicture}
\end{document}
어쩌면 귀하의 질문을 해결하는 더 우아한 방법이 있을 수도 있습니다. 이것이 제가 생각한 것 중 가장 간단합니다.