当我写作时
\begin{tabbing}
\hspace{4in}\= \kill % set up two tab positions
{\bf University }, {\it City, NW} \> PhD,
Physics (2007-2011)\\
\end{tabbing}
Methodology and numerical implementation (C++) of methods for
difficult systems\LaTeX creates a lot of vertical space. I don't want to use `\vspace{-Xin}` to decrease it. It's not accurate. One workaround I found is this:
\begin{ncolumn}{2}
{\bf University }, {\it City, NW} &
\hspace{1in} PhD, Physics (2007-2011)\\
\end{ncolumn}
Methodology and numerical implementation (C++) of methods for
difficult systems\Isn't there a cleaner way to do this using `tabbing`?
此解决方案如何减少制表环境结束后的空间没有帮助。我用的res.cls
是http://www.rpi.edu/dept/arc/training/latex/resumes/
答案1
环境会在其上方和下方tabbing
添加\topsep
空格,并且还会添加空格\partopsep
。定义您的环境,例如
\newenvironment{nstabbing}
{\setlength{\topsep}{0pt}%
\setlength{\partopsep}{0pt}%
\tabbing}
{\endtabbing}
...
\begin{document}
...
Some text above
\begin{nstabbing}
\hspace{4in}\= \kill % set up two tab positions
\textbf{University}, \textit{City, NW} \> PhD, Physics (2007-2011)
\end{nstabbing}
Methodology and numerical implementation (C++) of methods for
difficult systems
这两个参数只能在环境内部改变nstabbing
;当然,假设制表符内部没有列表环境。
如果类或文档使用非零\parskip
(段落之间有额外的空白),则环境的定义可能是
\newenvironment{nstabbing}
{\setlength{\topsep}{-\parskip}%
\setlength{\partopsep}{0pt}%
\tabbing}
{\endtabbing}