Skip to content

Instantly share code, notes, and snippets.

\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}, %全型方塊
\documentclass{article}
\usepackage{luamplib}
\usepackage{lipsum}
% 讓圖檔置中以便配合 LaTeX figure 環境的 caption 位置
\everymplib{%
verbatimtex
\center\leavevmode
etex;
beginfig(1);}
\everyendmplib{%
\documentclass{article}
\usepackage{fontspec}
\setmainfont{SourceSerif4Variable-Roman.otf}
\begin{document}
\addfontfeatures{RawFeature={+axis={wght=100}}}
The quick brown fox jumps over the lazy dog. \par
\addfontfeatures{RawFeature={+axis={wght=300}}}
The quick brown fox jumps over the lazy dog.\par
\addfontfeatures{RawFeature={+axis={wght=300,opsz=10}}}
The quick brown fox jumps over the lazy dog.\par
--- jfm-zh_TW.lua 2022-10-13 16:01:41.473202500 +0800
+++ jfm-zh_TW.lua.new 2022-10-12 00:38:56.600899400 +0800
@@ -183,8 +183,8 @@
}
},
[3] = {
- -- 间隔号
- chars = {'・', '· '},
+ -- 间隔号。新增 U+2027(LGJ)
+ chars = {'・', '· ', '‧ '},
% 例子是網路上找到的。
\documentclass{article}
\usepackage{luamplib}
\everymplib{input mpcolornames; beginfig(1);}
\everyendmplib{endfig;} % 省略首行及尾行的 begin/end 指令(會自動加
入)。
\begin{document}
\begin{mplibcode}
fill fullcircle scaled 2cm withcolor Pink;
傻 PPOP
凸 RUO
凹 MEO
麗 LLB
拜 HFJ
左邊:拆 手部!
右邊:四條槓,所以是四,four
J是補根!
襪 VRFA
VRFB
\documentclass{article}
\makeatletter
\g@addto@macro\bfseries{\boldmath}
\makeatother
\usepackage[pdfstartview={FitH},
pdfencoding={auto},
bookmarksopen={true}]{hyperref}
#main: ~/.mlterm/main
bg_color = black
fg_color = grey75
geometry = 86x24
fontsize = 32
scrollbar_mode = autohide
scrollbar_view_name = next
use_bold_font = false
use_anti_alias = true
letter_space = 0
@qtnez
qtnez / default-with-fallback-font-theme.yml
Last active February 21, 2022 02:48
default-with-fallback-font-theme.yml
extends: default
font:
catalog:
merge: true
M+ 1p Fallback: mplus1p-regular-fallback.ttf
Noto Emoji: notoemoji-subset.ttf
My Fonts zh-TW:
normal: I.MingCP-7.01.ttf
bold: TaipeiSansTCBeta-Regular.ttf
italic: edukai-4.0.ttf