Comments (3)
That is a XeTeX “feature”, it detects tat the text is right to left (it does not fully apply the BiDi algorithm, though, as this operates on word level not paragraph level) and tell HarfBuzz to shape the text in the RTL direction which in turn activates BiDi mirroring.
Originally posted by @khaledhosny in latex3/latex2e#157 (comment)
所以,是「feature」。
from forum.
@stone-zeng 可能没有这么简单吧。
XeLaTeX
好像并没有自动判断 CJK 文字、还有中间插入一个命令的情况,所以,如果有如下情况:
\documentclass{ctexart}
\begin{document}
{「 ביבליה 」} (《圣经》) (\emph{Biblia})
{「 ביבליה 」} (《圣经》) (Biblia)
{「 ביבליה 」} (《圣经》) ({Biblia})
{「 ביבליה 」} (《圣经》) (\texttt{Biblia})
\end{document}
效果是:
这个 feature 会让萌新感觉很迷……
from forum.
正常来说你肯定得用个支持这些的字体对吧:
\documentclass{ctexart}
\setmainfont{FreeSerif.otf}
\begin{document}
{\addfontfeatures{Script=Arabic}「ביבליה」} (《圣经》) (\emph{Biblia})
{\addfontfeatures{Script=Arabic}「ביבליה」} (《圣经》) (Biblia)
{\addfontfeatures{Script=Arabic}「ביבליה」} (《圣经》) ({Biblia})
{\addfontfeatures{Script=Arabic}「ביבליה」} (《圣经》) (\texttt{Biblia})
\end{document}
不管怎么样这个问题反正是超出我能力范围了,而且哪有「萌新」会这么玩……具体还是去问 Khaled Hosny 吧。
from forum.
Related Issues (20)
- 讨论范围:CTeX套装问题or中文TeX问题? HOT 6
- Error: Undefined control sequence HOT 17
- 汉字直排行间标点下冒号(及分号)的问题 HOT 4
- xeCJK宏包文档中3.2.1节需要增补 HOT 4
- xeCJKfntef 和 ulem 联用时影响 \textbf 的作用范围 HOT 3
- 使用XeLatex构建中文文档源码时报错: xdvipdfmx:fatal: Unknown coverage format HOT 7
- 如何在article中调整所有caption为楷体 HOT 1
- linux和windows下伪粗效果不统一 HOT 6
- 中英文之间空格不习惯,如何去掉? HOT 11
- CJKfntef 是否具有 xeCJKfntef 的 subtract 功能?
- CTeX 3.0.212.1 xelatex编译通过,但无法生成pdf。dvipdfmx:fatal: typecheck: Invalid object type: -1 7 (line 2378)] HOT 6
- 关于LaTeX2e中文档类使用l3keys键对值的问题 HOT 8
- 当minipage环境和enumerate配合使用时,引入hyperref宏包会导致minipage顶部对齐失效 HOT 2
- 选项 leqno 与 fleqn 的缩写 HOT 13
- 我想将某些内容固定排版在偶数页的页面底部,但使用\ifodd\value{page}进行判断时在某些情形下会失效 HOT 4
- `jiazhu` 宏包是否能实现 `linespread < 1` 的排版效果?
- 如何将附录放在backmatter后同时对附录进行编号? HOT 6
- 能否实现英语句子中自动使用非中文字体的标点符号 HOT 3
- How to draw an specific feynman diagram with TikZ (LaTeX) HOT 4
- [NFSS] 关于使表示字体的控制序列等于\relax的作用(的问题) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forum.