Created
November 2, 2022 14:09
-
-
Save qtnez/c84e6cc7c99b968c6f350dc557e7177e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage[match]{luatexja-fontspec} | |
\setmainjfont[BoldFont=Noto Sans CJK TC Medium, | |
YokoFeatures = {JFM = zh_TW/quanjiao}, | |
AltFont={{Range="20000-"2A6DF,Font=HanaMinB}, % CJK ExtB | |
{Range="FE30-"FE4F,Font=HanaMinA}, %一些全型符號 | |
{Range="FF1F-"FF1F,Font=HanaMinA}, %一點明體的驚嘆號及問號過大 | |
{Range="FF01-"FF01,Font=HanaMinA}, %用 HanaMinA 取代 | |
{Range="2200-"22FF,Font=HanaMinA}, %全型數學運算子 | |
{Range="2580-"259F,Font=HanaMinA}, %全型方塊 | |
{Range="3010-"3011,Font=HanaMinA}, %粗方括號 | |
{Range="300C-"300F,Font=HanaMinA}, %單雙引號 | |
{Range="2A700-"2B73F,Font=HanaMinB}, % CJK ExtC | |
{Range="2B740-"2B81F,Font=HanaMinB}}]{I.MingCP} | |
\setsansjfont[BoldFont=Noto Sans CJK TC Medium, | |
YokoFeatures = {JFM = zh_TW/quanjiao}]{Taipei Sans TC Beta Light} | |
\setjfontfamily\iyan{I.Ngaan} | |
\usepackage{luamplib} | |
\usepackage{zhlipsum} | |
% 讓圖檔置中以便配合 LaTeX figure 環境的 caption 位置 | |
\everymplib{% | |
verbatimtex | |
\center\leavevmode | |
etex; | |
beginfig(1);} | |
\everyendmplib{% | |
verbatimtex | |
\endcenter | |
etex; | |
endfig;} | |
\begin{document} | |
\zhlipsum[9][name=trad] | |
\begin{figure} | |
\begin{mplibcode} | |
u:=3cm; | |
path p; | |
p = (0,1u)..(1u,0)...(0,-1u); | |
fill p{dir(157)}..(0,0){dir(23)}..{dir(157)}cycle; | |
draw p..(-1u,0)..cycle; | |
fill (0,-.6u)..(0.1u,-.5u)..(0,-.4u)..(-.1u,-.5u)..cycle withcolor white; | |
fill (0,.6u)..(.1u,.5u)..(0,.4u)..(-.1u,.5u)..cycle; | |
label.bot(btex \Large 仿太極陰陽魚圖 etex,(0,-1.2u)); | |
\end{mplibcode} | |
\caption{Luamplib 的測試.} | |
\end{figure} | |
\zhlipsum[1][name=trad] | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment