
村上春樹のデンマーク語訳ねじまき鳥クロニクル以下の章スタイルを使用します。これを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}
おそらく、あなたの質問を解決するにはもっとエレガントな方法があるでしょう。これは私が考えた最もシンプルな方法です。