0

I am using dynamically generated table to create a tabulated to do list with various parameters using:

#+COLUMNS: %ITEM %SCHEDULED %DEADLINE

for more info see: Org-Agenda export to dynamic Org-Table

The exported table in PDF runs off the width of the page.

How to fix it?

0

Adding below code fixed it:

 #+ATTR_LATEX: :environment longtable :align |p{7cm}|l|l|

But each time I have to define variable e.g. 7cm by trial and error with pdf output.

Is there a more general solution which I can put in #+ATTR_LATEX: irrespective of the table?

0

Try adding

#+ATTR_LATEX: :environment tabu

and remove the :align option. You might need to add

#+LATEX_HEADER: \usepackage{tabu}

in the preamble of your org file. Note that tabu by default sets column width equal to the longest entry, so your exported table might go out of the page. If you face this problem, try using the sideways option

#+ATTR_LATEX: :float sideways

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.