如何解决如何使Pandoc表宽于textwidth?
我正在向文档中添加表格,发现列太窄,使其难以阅读。因此,我想使整个表格(以及各个列的相对大小)变宽,同时保持文档其余部分的文本宽度不变。可以使用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}
解决方法
一种粗略而有效的方法是扩大表格的\columwidth
。您可能需要更改\LTleft
表边距,如下所示:
```{=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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。