
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
예를 들어 , 열려 있는 TikZ 책의 전체 왼쪽 페이지에 맞게 크기를 조정할 수 있는(예: 사용하여) 대문자(굵게) 베타를 입력하고 싶습니다 .
평소와 같이 텍스트 주위에 \textgreek
및 명령을 사용해 보았지만 작동하지 않습니다. 또한 작업을 완료하기 위해 \scalefont
성공적으로 수정할 수도 없었습니다 .text={|\bfseries\huge|#2},
질문: 대문자와 굵은(아치형) 베타가 표시된 책의 왼쪽 페이지 대부분을 차지하도록 명령을 \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}
곡선이 보이도록 베타에 밑줄을 그었습니다.