Liam0205 / liam0205.github.io

Deployment of my weblog.
https://liam0205.github.io
35 stars 5 forks source link

使斜体中的括号保持直立 | 始终 #190

Open Liam0205 opened 5 years ago

Liam0205 commented 5 years ago

https://liam.page/2017/07/03/upright-braces-in-italic-mode/

在使用 \emph, \textit, \textsl 等命令时,我们往往希望西文字符倾斜,但括号保持直立。这是因为,括号并不是字母,让它们也倾斜一则没有意义,二则看起来奇怪。 Clemens 提供的 embrac 宏包解决了这个问题。

sunmy2019 commented 4 years ago

Update 2020/06/14 目前由于 fontspec 改变了 \textsi 的定义, 导致在 Xe/LuaLaTeX 下 embrac 出 bug 了。详见 https://github.com/cgnieder/embrac/issues/12#issuecomment-643728805