如何鍵入縮放的希臘字母以適合 Tikzpicture 的拱形頁面

如何鍵入縮放的希臘字母以適合 Tikzpicture 的拱形頁面

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}

帶輸出

在此輸入影像描述

例如,我想輸入一個大寫(粗體)的 Beta,我可以縮放(例如,使用\scalefnt)以適合這本打開的 TikZ 書的整個左頁。

我嘗試像往常一樣在文字周圍使用\textgreek\scalefont命令,但這不起作用。我也無法成功修改text={|\bfseries\huge|#2},任何一個來完成任務。

問題:我該如何合併\textgreek{B}\scalefont命令,以便大寫且粗體(拱形)的 Beta 佔據所顯示打開的書的大部分左側頁面?

謝謝。

答案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}

彎曲的貝塔

我給 Beta 加上了下劃線,這樣就可以看到曲線了。

相關內容