我希望時間从边缘开始。
如何创建“固定”花括号?
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\begin{document}
\noindent Lines start against the margin.
\noindent Other lines start against the margin.
\noindent \{Opening cruly brackets are not positioned against the margin.\}
\noindent \kern0.75pt\!\{Removing glue and adding a 0.75pt kern is the only fix I can think of.\}
\end{document}
在段落中添加一个例子来说明该问题:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\newcommand{\bracel}{%
\leavevmode
\kern-0.1em
\{%
}
\newcommand{\tslt}[1]{\unskip\space`#1'}
\NewDocumentCommand{\lexAUX}{mmm}{\textit{#1}\IfNoValueF{#2}{\textsubscript{\textsc{#2}}}\IfNoValueF{#3}{\tslt{#3}}}
\NewDocumentCommand{\lex}{>{\SplitArgument{2}{,}}m}{\lexAUX#1}
\newcommand{\unor}[2]{\bracel\lex{#1}\kern3pt\char"2194\kern3pt\lex{#2}\}}
\begin{document}
Morpheme-based lexicalism must not posit a root illude. Instead it tries to account for the fact that all \textit{-ion} and \textit{-ive} Ns have a meaning retrievable from the corresponding V, when it is attested. “allowing a direct relationship” is unfortunate..ly an ad-hoc solution: why should a direct relationship be posited, while when the V is attested as in e.g.\@ attract attraction attractive, suggest suggestion suggestive, prohibit prohibition prohibitive (all from example (3.32) in Haspelmath and Sims 2010, the V is supposed to be the common ancestor : \unor{attraction,n}{attractive,a}, \unor{suggestion,n}{suggestive,a}, \unor{prohibition,n}{prohibitive,a}.
\end{document}
答案1
字体设计师决定左括号应该有一个较宽的左侧边距。
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Times New Roman}[
SmallCapsFont=TeX Gyre Termes,
SmallCapsFeatures={Letters=SmallCaps},
]
\newcommand{\bracel}{\hspace*{-0.1em}\{}
\newcommand{\tslt}[1]{\unskip\space`#1'}
\NewDocumentCommand{\lex}{>{\SplitArgument{2}{,}}m}{\lexAUX#1}
\NewDocumentCommand{\lexAUX}{mmm}{%
\textit{#1}%
\IfNoValueF{#2}{\textsubscript{\textsc{#2}}}%
\IfNoValueF{#3}{\tslt{#3}}%
}
\newcommand{\unor}[2]{\bracel\lex{#1}\kern3pt\symbol{"2194}\kern3pt\lex{#2}\}}
\begin{document}
Morpheme-based lexicalism must not posit a root illude. Instead it tries to
account for the fact that all \textit{-ion} and \textit{-ive} Ns have a meaning
retrievable from the corresponding V, when it is attested. “allowing a direct
relationship” is unfortunate..ly an ad-hoc solution: why should a direct
relationship be posited, while when the V is attested as in e.g.\@ attract
attraction attractive, suggest suggestion suggestive, prohibit prohibition
prohibitive (all from example (3.32) in Haspelmath and Sims 2010, the V is
supposed to be the common ancestor: \unor{attraction,n}{attractive,a},
\unor{suggestion,n}{suggestive,a}, \unor{prohibition,n}{prohibitive,a}.
\end{document}