我找到了一个 LaTeX 极简指南(最初由 Alan Munn 编写),并尝试翻译它在tufte-handout
课堂上我遇到了一个问题。我使用了一个抽象环境,它使用了整个文本块宽度,下面列出了用于不同任务的包,这些包显示在两列中。我的问题是第二列与抽象主体不匹配,我不知道如何修复它。
我的代码是:
\documentclass[twocolumn]{tufte-handout}
\usepackage[utf8]{inputenx}
\usepackage[T1]{fontenc}
\begin{document}
{\Large \textbf{Summary}}
\begin{abstract}
\begin{fullwidth}
This is a list of the packages that are in my opinion the most useful for writing papers and theses in linguistics. I have made no attempt to justify the choices, but I find almost all of these packages essential in my own work. The essential packages and the basic linguistics packages (relevant to your particular field) should probably be loaded in every document you write. Unless noted, all packages are part of \TeX{}Live and Mik\TeX{}.
\end{fullwidth}
\end{abstract}
\section{Essential packages} % (fold)
\label{sec:essential_packages}
\begin{itemize}
\item \texttt{geometry} set margins and general page layout
\item \texttt{inputenc} accented characters in your source1,2
\item \texttt{fontenc} accented characters in your output3,4
\item \texttt{fancyhdr} headers and footers
\item \texttt{array} improved tables
\item \texttt{booktabs} nice looking tables
\item \texttt{multicol} multiple column text
\item \texttt{graphicx} inclusion of graphics
\item \texttt{natbib} bibliography and citations5
\end{itemize}
% section essential_packages (end)
\section{Packages for customizing the looks of things} % (fold)
\label{sec:packages_for_customizing_the_looks_of_things}
\begin{itemize}
\item \texttt{titlesec} customization of all section titles
\item \texttt{enumitem} customization of any list environment
\item \texttt{setspace} double and 1.5 spacing
\item \texttt{parskip} unindented paragraphs separated by blank lines
\end{itemize}
% section packages_for_customizing_the_looks_of_things (end)
\section{Font packages} % (fold)
\label{sec:font_packages}
\begin{itemize}
\item \texttt{mathptmx} Times (New) Roman
\item \texttt{mathpazo} Palatino
\item \texttt{helvet} Helvetica
\end{itemize}
% section font_packages (end)
\end{document}
我正在使用 Sublime Text 2 和 TeXlive 2013。
谢谢
答案1
评论
您需要使用该multicol
包来完成这项任务,因为这是唯一一个支持在一列和两列之间可靠切换的包。
我没有尝试过,但也许你也可以使用\onecolumn
和\twocolumn
。缺点是,这些宏将开始一个新页面。
执行
\documentclass{tufte-handout}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{multicol}
\begin{document}
{\Large \textbf{Summary}}
\begin{abstract}
This is a list of the packages that are in my opinion the most useful for writing papers and theses in linguistics. I have made no attempt to justify the choices, but I find almost all of these packages essential in my own work. The essential packages and the basic linguistics packages (relevant to your particular field) should probably be loaded in every document you write. Unless noted, all packages are part of \TeX{}Live and Mik\TeX{}.
\end{abstract}
\begin{multicols}{2}
\section{Essential packages} % (fold)
\label{sec:essential_packages}
\begin{itemize}
\item \texttt{geometry} set margins and general page layout
\item \texttt{inputenc} accented characters in your source1,2
\item \texttt{fontenc} accented characters in your output3,4
\item \texttt{fancyhdr} headers and footers
\item \texttt{array} improved tables
\item \texttt{booktabs} nice looking tables
\item \texttt{multicol} multiple column text
\item \texttt{graphicx} inclusion of graphics
\item \texttt{natbib} bibliography and citations5
\end{itemize}
% section essential_packages (end)
\section{Packages for customizing the looks of things} % (fold)
\label{sec:packages_for_customizing_the_looks_of_things}
\begin{itemize}
\item \texttt{titlesec} customization of all section titles
\item \texttt{enumitem} customization of any list environment
\item \texttt{setspace} double and 1.5 spacing
\item \texttt{parskip} unindented paragraphs separated by blank lines
\end{itemize}
% section packages_for_customizing_the_looks_of_things (end)
\section{Font packages} % (fold)
\label{sec:font_packages}
\begin{itemize}
\item \texttt{mathptmx} Times (New) Roman
\item \texttt{mathpazo} Palatino
\item \texttt{helvet} Helvetica
\end{itemize}
% section font_packages (end)
\end{multicols}
\end{document}