emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] resize org-table when exporting to latex


From: Nick Dokos
Subject: Re: [O] resize org-table when exporting to latex
Date: Mon, 27 Feb 2017 21:56:33 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Jeremie Juste <address@hidden> writes:

> Hello,
>
> Is there a way to resize latex table when exporting to latex?
> For now my only recourse is to export the latex table copy the latex
> code back to org-mode apply \scalebox.
>
> Do you have a more convenient way in mind?
>

You need to use tabularx - something like this:

--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER: \usepackage{tabularx}

* Export a table

#+CAPTION: foo
#+NAME: bar
#+ATTR_LATEX: :environment tabularx :width .8\textwidth :align X|X|X|X
| a | b | c | d | 
|---+---+---+---|
| 1 | 2 | 3 | 4 |

--8<---------------cut here---------------end--------------->8---

-- 
Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]