Warm tip: This article is reproduced from serverfault.com, please click

layout-如何使Pandoc表宽于textwidth?

(layout - How to make a Pandoc table wider than textwidth?)

发布于 2020-10-22 17:12:49

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

这就是我的表格的Pandoc降价格式:

--------------------------------------------------------------------------------------------------------------------------------------------------------
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),你可以在其中看到该表的宽度仅与textwidth一样大:

在此处输入图片说明

万一重要,我正在使用

\usepackage{fancyhdr}
\pagestyle{fancy}
Questioner
Axel Kennedal
Viewed
0
Axel Kennedal 2020-12-02 06:36:43

我最终使用了以下解决方案:

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

...

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

<!-- my table here -->

\restoregeometry