emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* printing org table landscape on complete page
@ 2021-02-28 20:21 Andrés Ramírez
  2021-02-28 20:53 ` Juan Manuel Macías
  2021-03-01  1:40 ` Dr. Arne Babenhauserheide
  0 siblings, 2 replies; 4+ messages in thread
From: Andrés Ramírez @ 2021-02-28 20:21 UTC (permalink / raw)
  To: emacs-orgmode

Hi.

I want to print from emacs an org-table like this one:
--8<---------------cut here---------------start------------->8---
|-------------+-----------+----------+-----------+----------+---------|
|    DURATION | MONDAY    | TUESDAY  | WEDNESDAY | THURSDAY | FRIDAY  |
|-------------+-----------+----------+-----------+----------+---------|
| 08:30-09:30 | CyT       | RELIGION | GERMAN    | ENGLISH  | ENGLISH |
|-------------+-----------+----------+-----------+----------+---------|
| 09:50-10:50 | COMUNICAT | DPCC     | COMUNICAT | COMUNIC  | CyT     |
|-------------+-----------+----------+-----------+----------+---------|
| 11:10-12:10 | COMPUTERS | CyT      | E.FISICA  | ART      | GERMAN  |
|-------------+-----------+----------+-----------+----------+---------|
| 12:30-13:30 | TUTORIA   | MATH     | MATH      | CC.SS    | MATH    |
--8<---------------cut here---------------end--------------->8---

on landscape on the content should enlarge to cover the full-page.

Any ideas?

Andrés Ramírez


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: printing org table landscape on complete page
  2021-02-28 20:21 printing org table landscape on complete page Andrés Ramírez
@ 2021-02-28 20:53 ` Juan Manuel Macías
  2021-03-01  0:18   ` andrés ramírez
  2021-03-01  1:40 ` Dr. Arne Babenhauserheide
  1 sibling, 1 reply; 4+ messages in thread
From: Juan Manuel Macías @ 2021-02-28 20:53 UTC (permalink / raw)
  To: Andrés Ramírez; +Cc: orgmode

Hi,

You can use:

#+ATTR_LaTeX: :float sideways

which is exported to LaTeX with the sidewaystable environment (rotating
package).

And for the table to fit vertically on the page:

#+LaTeX_Header: \usepackage{tabularx}

#+ATTR_LaTeX: :float sideways :environment tabularx :width \textheigtht

Regards,

Juan Manuel 

Andrés Ramírez <rrandresf@gmail.com> writes:

> Hi.
>
> I want to print from emacs an org-table like this one:
>
> |-------------+-----------+----------+-----------+----------+---------|
> |    DURATION | MONDAY    | TUESDAY  | WEDNESDAY | THURSDAY | FRIDAY  |
> |-------------+-----------+----------+-----------+----------+---------|
> | 08:30-09:30 | CyT       | RELIGION | GERMAN    | ENGLISH  | ENGLISH |
> |-------------+-----------+----------+-----------+----------+---------|
> | 09:50-10:50 | COMUNICAT | DPCC     | COMUNICAT | COMUNIC  | CyT     |
> |-------------+-----------+----------+-----------+----------+---------|
> | 11:10-12:10 | COMPUTERS | CyT      | E.FISICA  | ART      | GERMAN  |
> |-------------+-----------+----------+-----------+----------+---------|
> | 12:30-13:30 | TUTORIA   | MATH     | MATH      | CC.SS    | MATH    |
>
> on landscape on the content should enlarge to cover the full-page.
>
> Any ideas?
>
> Andrés Ramírez
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: printing org table landscape on complete page
  2021-02-28 20:53 ` Juan Manuel Macías
@ 2021-03-01  0:18   ` andrés ramírez
  0 siblings, 0 replies; 4+ messages in thread
From: andrés ramírez @ 2021-03-01  0:18 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode

Hi (Como estas). Juan.

>>>>> "Juan" == Juan Manuel Macías <maciaschain@posteo.net> writes:


[...]


    Juan> #+ATTR_LaTeX: :float sideways :environment tabularx :width \textheigtht

I have tried it (with M-x org-export-dispatch).
This is the result:
,---- [  ]
| http://0x0.st/-Kgb.pdf
`----

It is centered.

Also  I got a second option:
with this snippet and (M-x ps-print-buffer):
--8<---------------cut here---------------start------------->8---
(setq ps-left-margin 0
          ps-paper-type 'a4
	  ps-font-size 16.0
	  ps-print-header nil
          ps-landscape-mode t
          ps-number-of-columns 1
         ps-printer-name "pdf")
--8<---------------cut here---------------end--------------->8---

This is the result:
,---- [  ]
| http://0x0.st/-KgA.pdf
`----

The second option is going to be very useful when pdflatex is not
available. But it is NOT so well centered as the first option.

Thanks for your help.
Best Regards


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: printing org table landscape on complete page
  2021-02-28 20:21 printing org table landscape on complete page Andrés Ramírez
  2021-02-28 20:53 ` Juan Manuel Macías
@ 2021-03-01  1:40 ` Dr. Arne Babenhauserheide
  1 sibling, 0 replies; 4+ messages in thread
From: Dr. Arne Babenhauserheide @ 2021-03-01  1:40 UTC (permalink / raw)
  To: Andrés Ramírez; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]


Andrés Ramírez <rrandresf@gmail.com> writes:

> I want to print from emacs an org-table like this one:
> on landscape on the content should enlarge to cover the full-page.
>
> Any ideas?

You can use a sidewaystable. See https://hg.sr.ht/~arnebab/ews/browse/Hauptdokument/ews30/ews.org?rev=53c7c0e46c10#L3535

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-01  1:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-28 20:21 printing org table landscape on complete page Andrés Ramírez
2021-02-28 20:53 ` Juan Manuel Macías
2021-03-01  0:18   ` andrés ramírez
2021-03-01  1:40 ` Dr. Arne Babenhauserheide

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).