如何在降价(pandoc)中左对齐整个表格? [英] How to left align a whole table in markdown (pandoc)?

查看:22
本文介绍了如何在降价(pandoc)中左对齐整个表格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Markdown/Pandoc 中左对齐整个表格?我知道指定表格的不同方法以及如何完成列对齐,但我找不到将表格从中心对齐转换为左对齐的方法(甚至尝试嵌入 <div style="float: left>..</div> 这不起作用).我必须切换到 LaTeX 来执行此操作吗?我稍后会导出为 pdf,如果这有什么不同的话.

How do you left align an entire table in Markdown/Pandoc? I know about different ways of specifying tables and how alignment of columns are done, but I cannot find a way to shift the table from center aligned to left aligned (have even tryed embedding <div style="float: left>..</div> which didn't work). Do I have to switch to LaTeX to do this? I will export to pdf later on, if that makes a difference.

推荐答案

我现在在 tex.stackexchange.com.显然 pandoc 为文档中的每个浮点数插入 centering .这可以通过在 pandoc 的自定义前导中插入 letcentering elax 来取消(作为 pandoc 参数 -H custompreample.tex).该链接还描述了更详细的方法,例如为表格和图形定义不同的浮点数.

I now found a solution to this problem at tex.stackexchange.com. Apparently pandoc inserts centering for every float in the document. This can be cancelled by inserting letcentering elax in a custom preample to pandoc (as pandoc argument -H custompreample.tex). The link also describes more detailed ways to for example define different floats for tables and figures.

这篇关于如何在降价(pandoc)中左对齐整个表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆