我在长表中文字换行时遇到问题。
这是我的表格的副本:
\begin{longtable}[c]{l|b{2in}b{3in} b{2in}}
%\centering
%\begin{tabular}{llll}
Author and Year & Methods & Conformers found & Conclusion\\
\hline
\\
\citet{vishveshwara_77}&Single-point energy calculations at HF/4-31G of glycine rotamers generated at 60? intervals about C, C׃, and C bonds & Ip, IIp, IIIp&The lowest energy structure is Ip, giving energy order as Ip<IIp<IIIp\\
%\end{tabular}
\end{longtable}
我尝试了很多方法,但第二个冒号超出了页面范围。我尝试了旋转、横向和超表环境,但都不起作用。我开始认为这是与我正在使用的某些软件包不兼容的问题,因为当我创建一个新文件并只通过表时,它似乎运行良好。这是我的主文件的副本
\documentclass[letterpaper,12pt, twoside,openright]{book}
\usepackage[hmargin=1.2in, vmargin=1.2in]{geometry}
%\linespread{1.2}%
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{url,parskip}
\usepackage{amssymb}%
\usepackage[pdftex]{graphicx}
\usepackage[update,prepend]{epstopdf}
\usepackage{color}
\usepackage{longtable}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{floatflt}
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{makeidx}
\usepackage[hang,small]{caption}%samllcaptions
\setlength{\captionmargin}{25pt}
\usepackage{verbatim}%
\pagestyle{headings}
\usepackage{makeidx}
\usepackage{subfig}% for placing 2 figures on same line
\usepackage{tabularx}
\usepackage{pdfsync}
% some useful packages
\usepackage{lscape}%for landscape
\usepackage{amsmath,amssymb,amsfonts,amsthm}
\usepackage{graphicx}
\usepackage{bbm}
\usepackage{bm}% bold math
%\usepackage{setspace}% line spacing
\usepackage[version=3]{mhchem}%chemical symbols
%\usepackage[pdftex]{hyperref}%pdf bookmarks
\usepackage[bookmarks=true]{hyperref} %hyperref
\urlstyle{same}
\usepackage[square, comma, sort&compress]{natbib}
\bibpunct{[}{]}{,}{s}{}{;}
\usepackage{fixltx2e}% textscriping
\usepackage{soul}
任何帮助都将不胜感激。谢谢
答案1
问题出在pdfsync
包装上;如果你真的需要使用这个包,请尝试使用以下novbox
选项加载它:
\usepackage[novbox]{pdfsync}
顺便提一下,有以下一些建议:1)避免在\cite
命令的参数中使用下划线。a 2)避免多次加载同一个包(我看到您graphicx
在序言中加载了两次)。3)无需pdftex
为其声明驱动程序graphicx
。