我想写一段包含指数项的段落,例如“复杂度在 10^5 的数量级上”。
此指数会改变段落行之间的间距。我在一些教科书中看到,他们将基数的大小缩小,以便与段落融为一体。
我想问一下,在不改变段落格式的情况下,在 LaTeX 的段落中使用指数项的好方法是什么。
代码可以在这里找到——所需的样式文件 spconf 在这里(http://www.ieee.ca/ccece09/templates/spconf.sty):
\documentclass[pdftex]{article}
\usepackage{spconf}
\usepackage{amsmath,amsthm,amssymb,mathtools}
\usepackage{subdepth}
\begin{document}
\ninept
\title{Example code}
\name{}
\address{}
\maketitle
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque egestas
posuere eros at feugiat. Morbi adipiscing tempus arcu, et suscipit purus laoreet
eget. Maecenas pulvinar faucibus leo eget feugiat. Pellentesque aliquet placerat
dui id mollis. Etiam convallis tristique tortor, in tempus leo $10^5$ accumsan
sed. Pellentesque interdum metus eu orci convallis mattis. Nunc accumsan
lobortis mi vitae blandit. Integer rhoncus eros dui, ut vestibulum justo ornare
ut. Suspendisse id enim lacus. Proin non blandit neque. Donec lacinia, ipsum
quis vestibulum pulvinar, metus nibh laoreet ante, in semper ligula mi porttitor
purus. Curabitur tempus, leo 10\textsuperscript{5} et cursus congue, tellus
felis ornare neque, ac sagittis tortor leo sit amet sapien. Praesent diam felis,
rhoncus ut eros eget, placerat scelerisque tellus. Quisque elementum turpis non
massa lacinia, condimentum malesuada nisl tincidunt.
\end{document}
答案1
如果您确实想要加载该包,请使用该选项加载该subdepth
包。low-sup
你也应该这样做\usepackage{mathptmx}
,或者更好,
\usepackage{newtxtext,newtxmath}
并且,当然,输入数字为$10^{5}$
。在示例中,我保留了构造,10\textsuperscript{5}
只是为了显示输出仍然正确。
\documentclass[]{article}
\usepackage{spconf}
\usepackage{mathptmx}
\usepackage{amsmath,amsthm,amssymb,mathtools}
\usepackage[low-sup]{subdepth}
\begin{document}
\ninept
\title{Example code}
\name{}
\address{}
\maketitle
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque egestas
posuere eros at feugiat. Morbi adipiscing tempus arcu, et suscipit purus laoreet
eget. Maecenas pulvinar faucibus leo eget feugiat. Pellentesque aliquet placerat
dui id mollis. Etiam convallis tristique tortor, in tempus leo $10^5$ accumsan
sed. Pellentesque interdum metus eu orci convallis mattis. Nunc accumsan
lobortis mi vitae blandit. Integer rhoncus eros dui, ut vestibulum justo ornare
ut. Suspendisse id enim lacus. Proin non blandit neque. Donec lacinia, ipsum
quis vestibulum pulvinar, metus nibh laoreet ante, in semper ligula mi porttitor
purus. Curabitur tempus, leo 10\textsuperscript{5} et cursus congue, tellus
felis ornare neque, ac sagittis tortor leo sit amet sapien. Praesent diam felis,
rhoncus ut eros eget, placerat scelerisque tellus. Quisque elementum turpis non
massa lacinia, condimentum malesuada nisl tincidunt.
\end{document}
我发现排版spconf
确实太紧密了\ninept
,因为它设置的基线跳过略小于 10.5pt,而不是\small
选择的 11pt。
\linespread{1}\selectfont
如果您想要“更好”的行距,请添加。