![polyglossia:如何为所有地方的所有语言设置“\frenchspacing”?](https://linux22.com/image/367262/polyglossia%EF%BC%9A%E5%A6%82%E4%BD%95%E4%B8%BA%E6%89%80%E6%9C%89%E5%9C%B0%E6%96%B9%E7%9A%84%E6%89%80%E6%9C%89%E8%AF%AD%E8%A8%80%E8%AE%BE%E7%BD%AE%E2%80%9C%5Cfrenchspacing%E2%80%9D%EF%BC%9F.png)
如何在以下 MEW 中禁用所有语言的句子之间的双倍空格?
\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{german}
\setotherlanguages{english}
\parindent=0pt
\begin{document}
This. Is a sentence in the main language (german).
\begin{english}
This. Is a sentence in english environment.
\end{english}
This. Is a sentence in the main language (german).
\textenglish{This. Is a sentence in textenglish [double space between
sentences].}
This. Is a sentence in the main language (german).
\end{document}
奇怪的是,非法语间距仅出现在\textenglish
英文文本的内联版本中,而不是块版本中。
答案1
% !TeX TS-program = xelatex
\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{german}
\setotherlanguages{english}
\parindent=0pt
\appto{\textenglish}{\frenchspacing}
\begin{document}
\frenchspacing
This. Is a sentence in the main language (german).
\begin{english}
This. Is a sentence in english environment.
\end{english}
This. Is a sentence in the main language (german).
\textenglish{This. Is a sentence in textenglish [double space between
sentences].}
This. Is a sentence in the main language (german).
\end{document}