我正在准备一个研讨会,我想知道为什么每次我在段落后换行 (\) 时,revtex 都会报告水平盒子未满的警告?我的意思是,在 pdf 中一切看起来都很好(我预计会有一些奇怪的文本行为)。
MWE如下:
\documentclass[twocolumn,prc,floats,amsmath,amssymb]{revtex4}
\usepackage{graphicx}
\usepackage[croatian]{babel}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[dvipdfm,colorlinks=true,bookmarks=false,urlcolor=blue,citecolor=blue,linkcolor=red,pdfstartview={XYZ null null 1.00}]{hyperref}
\usepackage[font={small}]{caption}
\usepackage{mathtools}
\usepackage{bbm}
\usepackage{wrapfig}
\usepackage{setspace}
\usepackage{amsbsy}
\usepackage{amsfonts}
\usepackage{url}
\usepackage[all]{hypcap}
\usepackage{listings}
\usepackage{array}
\usepackage{lipsum}
\usepackage[paperwidth=210mm,paperheight=297mm,centering, hmargin=1.5cm, vmargin=2.5cm]{geometry}
\begin{document}
Lorem ipsum dolor sit amet, consectetuer adipiscing
elit. Ut purus elit, vestibulum ut, placerat ac, adipis-
cing vitae, felis. Curabitur dictum gravida mauris. Nam
arcu libero, nonummy eget, consectetuer id, vulputate a,
magna. Donec vehicula augue eu neque. Pellentesque
habitant morbi tristique senectus et netus et malesuada
fames ac turpis egestas. Mauris ut leo. Cras viverra me-
tus rhoncus sem. Nulla et lectus vestibulum urna fringilla
ultrices. Phasellus eu tellus sit amet tortor gravida pla-
cerat. Integer sapien est, iaculis in, pretium quis, viverra
ac, nunc. Praesent eget sem vel leo ultrices bibendum.
Aenean faucibus. Morbi dolor nulla, malesuada eu, pul-
vinar at, mollis ac, nulla. Curabitur auctor semper nulla.
Donec varius orci eget risus. Duis nibh mi, congue eu,
accumsan eleifend, sagittis quis, diam. Duis eget orci sit
amet orci dignissim rutrum.\\
Nam dui ligula, fringilla a, euismod sodales, sollicitu-
din vel, wisi. Morbi auctor lorem non justo. Nam lacus
libero, pretium at, lobortis vitae, ultricies et, tellus. Do-
nec aliquet, tortor sed accumsan bibendum, erat ligula
aliquet magna, vitae ornare odio metus a mi. Morbi ac
orci et nisl hendrerit mollis. Suspendisse ut massa. Cras
nec ante. Pellentesque a nulla. Cum sociis natoque pena-
tibus et magnis dis parturient montes, nascetur ridiculus
mus. Aliquam tincidunt urna. Nulla ullamcorper vesti-
bulum turpis. Pellentesque cursus luctus mauris.
Nulla malesuada porttitor diam. Donec felis erat, con-
gue non, volutpat at, tincidunt tristique, libero. Vivamus
viverra fermentum felis. Donec nonummy pellentesque
ante. Phasellus adipiscing semper elit. Proin fermentum
massa ac quam. Sed diam turpis, molestie vitae, placerat
a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula,
eleifend at, accumsan nec, suscipit a, ipsum. Morbi blan-
dit ligula feugiat magna. Nunc eleifend consequat lorem.
Sed lacinia nulla vitae enim. Pellentesque tincidunt purus
vel magna. Integer non enim. Praesent euismod nunc eu
purus. Donec bibendum quam in tellus. Nullam cursus
pulvinar lectus. Donec et mi. Nam vulputate metus eu
enim. Vestibulum pellentesque felis eu massa.
\end{document}
警告如下
line 0: Unsupported document class (or package) detected,(caption) usage of the caption package is not recommended.
line 0: \caption will not be redefined since it's already(caption) redefined by a document class or package which is(caption) unknown to the caption package.
line 24: Underfull \hbox (badness 10000) in paragraph
当我在其他文件中编译图像或表格时,同样,在 pdf 中一切看起来都很好,但是给出了警告:revtex 和 caption 是否互相不喜欢?
感谢您对这一奇怪事件的澄清:D
答案1
还有很多不相关的问题。
(1)切勿使用\\
“留空行”,但
... end of paragraph.
\medskip % or \bigskip
Start of a new paragraph ...
(2) 标题不适用于 revtex,这是一种具有自己独特的标题风格的专用格式,用户不能修改,因为它用于提交给期刊。