如何使 Pandoc table 比 textwidth 宽?

How to make a Pandoc table wider than textwidth?

我正在向文档添加 table,发现列太窄,阅读起来有点困难。因此,我想使整个 table(以及各个列的相对大小)变宽,同时保持文档其余部分的文本宽度不变。是否可以使用 Pandoc 多行 tables 来做到这一点?还是我需要为此使用纯 LaTeX table?

我的 table 的 Pandoc markdown 是这样的:

--------------------------------------------------------------------------------------------------------------------------------------------------------
DSR Activity                           Description                                   In this thesis 
-------------------------------------- --------------------------------------------- -------------------------------------------------------------------
1. Problem Identification & Motivation The specific research problem is defined,     The research problem was initially defined by Simon Hacks
                                       and the value of a solution is justified.     and Robert Lagerström in a thesis proposal. The value of
                                                                                     the solution is that the produced artifact will establish
                                                                                     a foundation for further work in EAD detection and analysis.

2. Defining Objectives for a Solution  The objectives of the solution are infered    In order to determine the objectives of the solution the problem
                                       from the problem definition and knowledge     definition is examined. 
                                       about what is possible and feasible. This     
                                       might e.g. be a description of how the        
                                       artifact is expected to support solutions
                                       to problems which have not yet been 
                                       addressed.
--------------------------------------------------------------------------------------------------------------------------------------------------------

以及生成的 PDF(仅使用 pandoc myfile.md -o myfile.pdf 编译),您可以在其中看到 table 仅与文本宽度一样宽:

以防万一,我正在使用

\usepackage{fancyhdr}
\pagestyle{fancy}

一个粗略但有效的方法是为 table 加宽 \columwidth。您可能想要更改 \LTleft table 边距,如下所示:

```{=latex}
\newlength{\extraspace}
\setlength\extraspace{4cm}
\setlength\columnwidth{\columnwidth + \extraspace}
\setlength\LTleft{-0.5\extraspace + \tabcolsep}
```

Table goes here

```{=latex}
% restore old columnwidth, table placement
\setlength\columnwidth{\linewidth - 4cm}
\LTleft=\fill
```

结果:

我最终使用了这个解决方案:

\usepackage[textwidth=12.1cm,textheight=22cm]{geometry}

...

\newgeometry{textwidth=18cm,textheight=22cm}

<!-- my table here -->

\restoregeometry