我有一些不允许更改的文本,但这样会产生溢出框。请看以下示例。
\documentclass{article}
\usepackage{csquotes}
\begin{document}
Examples of suitable formats for Transparent copies include
plain ASCII without markup, Texinfo input format, \LaTeX\
input format, SGML or XML using a publicly available DTD,
and standard-conforming simple HTML, PostScript or PDF
designed for human modification.
\enquote{Massive Multiauthor Collaboration Site} (or
\enquote{MMC Site}) means any World Wide Web server that
publishes copyrightable works and also provides prominent
facilities for anybody to edit those works. A public wiki
that anybody can edit is an example of such a server. A
\enquote{Massive Multiauthor Collaboration} (or
\enquote{MMC}) contained in the site means any set of
copyrightable works thus published on the MMC site.
\end{document}
简单加载包microtype
是人们的一个建议给了我。我喜欢该包的效果,但它是全局的。我不想因为加载包而修改文档的其余部分。那么我可以在本地使用该包吗?我也可以完全不加载microtype
并使用默认的 TeX/LaTeX 措施来使此文本无坏框,但如果 microtype 是唯一的解决方案,我想在本地使用它而不是全局使用它。
答案1
默认情况下microtype
仅应用突出和字体扩展,都可以使用以下命令禁用\microtypesetup
(但必须在之后完成\AtBeginDocument
以便加载两个扩展)并使用相同命令在本地重新启用:
\documentclass{article}
\usepackage{csquotes}
\usepackage{microtype}
\AtBeginDocument{\microtypesetup{protrusion=false,expansion=false}}
\overfullrule5pt
\begin{document}
\begingroup
\microtypesetup{protrusion=true,expansion=true}%
Examples of suitable formats for Transparent copies include
plain ASCII without markup, Texinfo input format, \LaTeX\
input format, SGML or XML using a publicly available DTD,
and standard-conforming simple HTML, PostScript or PDF
designed for human modification.
\enquote{Massive Multiauthor Collaboration Site} (or
\enquote{MMC Site}) means any World Wide Web server that
publishes copyrightable works and also provides prominent
facilities for anybody to edit those works. A public wiki
that anybody can edit is an example of such a server. A
\enquote{Massive Multiauthor Collaboration} (or
\enquote{MMC}) contained in the site means any set of
copyrightable works thus published on the MMC site.
\par
\endgroup
% just to show that the settings for the rest didn't change
Examples of suitable formats for Transparent copies include
plain ASCII without markup, Texinfo input format, \LaTeX\
input format, SGML or XML using a publicly available DTD,
and standard-conforming simple HTML, PostScript or PDF
designed for human modification.
\enquote{Massive Multiauthor Collaboration Site} (or
\enquote{MMC Site}) means any World Wide Web server that
publishes copyrightable works and also provides prominent
facilities for anybody to edit those works. A public wiki
that anybody can edit is an example of such a server. A
\enquote{Massive Multiauthor Collaboration} (or
\enquote{MMC}) contained in the site means any set of
copyrightable works thus published on the MMC site.
\end{document}