Tufte-latex:全宽桌子

Tufte-latex:全宽桌子

我使用的是 Tufte LaTeX,但我想在文档中添加一个相当大的表格(有关详细信息,请参阅下面的示例)。由于 tufte 边距较大,这变得有点麻烦。

我知道可以很容易地将图形扩展到超出通常的文本宽度的范围,可以对表格执行同样操作吗?

\documentclass{tufte-handout}

\title{}

\author[]{}

%\date{28 March 2010} % without \date command, current date is supplied

%\geometry{showframe} % display margins for debugging page layout
% deutsche Silbentrennung
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[autostyle=true,german=quotes]{csquotes}

\usepackage{graphicx} % allow embedded images
  \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
  \graphicspath{{graphics/}} % set of paths to search for images
\usepackage{amsmath}  % extended mathematics
\usepackage{booktabs} % book-quality tables
\usepackage{units}    % non-stacked fractions and better unit spacing
\usepackage{multicol} % multiple column layout facilities
\usepackage{lipsum}   % filler text
\usepackage{fancyvrb} % extended verbatim environments
  \fvset{fontsize=\normalsize}% default font size for fancy-verbatim environments

\usepackage{enumitem} % To customize itemize

\usepackage{tabularx}
\setlist{noitemsep} % No space between item

% Standardize command font styles and environments
\newcommand{\doccmd}[1]{\texttt{\textbackslash#1}}% command name -- adds backslash automatically
\newcommand{\docopt}[1]{\ensuremath{\langle}\textrm{\textit{#1}}\ensuremath{\rangle}}% optional command argument
\newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument
\newcommand{\docenv}[1]{\textsf{#1}}% environment name
\newcommand{\docpkg}[1]{\texttt{#1}}% package name
\newcommand{\doccls}[1]{\texttt{#1}}% document class name
\newcommand{\docclsopt}[1]{\texttt{#1}}% document class option name
\newenvironment{docspec}{\begin{quote}\noindent}{\end{quote}}% command specification environment

\begin{document}

\begin{tabularx}{\textwidth}{l|X|X|X} % \textwidth too small, alternative?
 One Word & Some Text & Some text & Some text \\
\end{tabularx}

\end{document}

答案1

您可以将表格包装在fullwidth环境中并将其用于\linewidth表格的宽度:

\begin{fullwidth}
  \begin{tabularx}{\linewidth}{l|X|X|X}% use \linewidth
    One Word & Some Text & Some text & Some text \\
  \end{tabularx}
\end{fullwidth}

环境fullwidth横跨正文块和边注区域。请注意,fullwidth在模式下,应避免让环境内容横跨多个页面symmetric(边注区域在页面的左侧和右侧交替出现)。

长度\linewidth将对应于当前文本行的最大宽度。如果您使用\linewidth并删除fullwidth环境,\linewidth将等于\textwidth。如果您要移动表格边距区域,\linewidth将等于\marginparwidth。我通常\linewidth在表示“占用所有可用的水平空间”时使用。

相关内容