
MWE (XeLaTeX でコンパイル):
\documentclass{tufte-book}
\usepackage{xcolor}
\definecolor{PrussianBlue}{cmyk}{1,.41,0,.67}
\usepackage{geometry}
\usepackage{scalerel,scalefnt}
\usepackage[LGR,T1]{fontenc}
\newcommand{\textgreek}[1]{\begingroup\fontencoding{LGR}\selectfont#1\endgroup}
\usepackage[greek,english]{babel}
\usepackage{substitutefont}
\substitutefont{LGR}{\rmdefault}{artemisia}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\tikzset{mydecor/.style 2 args={decoration={text along path,
text align={left indent=2em},
text={|\bfseries\huge|#2},
},
yshift=#1,
decorate}}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}
\fill[PrussianBlue] (-6,0) rectangle (6,9) (180:0.45cm) arc (180:360:0.45cm);
\draw[line width=0.3cm,PrussianBlue!45,fill=white,miter limit=1]
(0,0.45) to[controls={+(150:2.25cm) and +(25:2.25cm)}] (-5.4,0.6) --
(-5.4,9.6) to[controls={+(25:2.25cm) and +(150:2.25cm)}]
(0,9) to[controls={+(30:2.25cm) and +(155:2.25cm)}] (5.4,9.6) --
(5.4,0.6) to[controls={+(155:2.25cm) and +(30:2.25cm)}]
(0,0.45) -- (0,9);
% Left page
\path[mydecor={-8ex}{How to type}] (-5.4,9.6) to[controls={+(25:2.25cm) and +(150:2.25cm)}] (0,9);
\path[mydecor={-9.5ex-2\baselineskip}{Capital BETA,}] (-5.4,9.6) to[controls={+(25:2.25cm) and +(150:2.25cm)}] (0,9);
\path[mydecor={-11ex-4\baselineskip}{To take up the}] (-5.4,9.6) to[controls={+(25:2.25cm) and +(150:2.25cm)}] (0,9);
\path[mydecor={-12.5ex-6\baselineskip}{Entire page?}] (-5.4,9.6) to[controls={+(25:2.25cm) and +(150:2.25cm)}] (0,9);
\end{tikzpicture}
\end{document}
出力あり
\scalefnt
たとえば、大文字 (太字) の Beta を入力して、この開いた TikZ ブックの左ページ全体に収まるように( を使用して) 拡大縮小したいと思います。
\textgreek
いつものように、テキストの周囲で コマンドとコマンドを使用しようとしました\scalefont
が、うまくいきませんでした。また、text={|\bfseries\huge|#2},
タスクを完了するためにどちらかを正常に変更することもできませんでした。
質問: たとえば、大文字で太字 (アーチ型) の Beta が、表示されている開いた本の左側のページの大部分を占めるように、コマンドを\textgreek{B}
組み込むにはどうすればよいですか?\scalefont
ありがとう。
答え1
たとえば次のような方法を使用できます:https://tex.stackexchange.com/a/332173/8650
またはこのように
\documentclass[tikz, border=1cm]{standalone}
\usepackage{textgreek}
\begin{document}
\begin{tikzpicture}[x=1pt, y=1pt]
\foreach \x in {-8.8,-8.7,...,8.8}{
\begin{scope}
\clip (\x,-15) rectangle (\x+0.1,15);
\node at (0,{4*cos(10*\x)}) {\underline{\Huge\bf\textBeta}};
\end{scope}
}
\end{tikzpicture}
\end{document}
曲線が見えるように、ベータに下線を付けました。