Last time I checked, a year ago, it was not possible to include a landscape page in a portrait document.
Is there a way to do this now?
Is it possible to mix portrait and landscape pages in a single document?
You will more likely get a solution if you describe what you want to achieve.
Hi, I would like to add a landscape page in the middle of a portrait document so I can place a big table. I suppose the table could be in the portrait page orientation if rotated, but I do not know how to do that, and it would be more inconvenient to read its rotated content. Is any of these options possible?
Rotated content can be inserted via Format -> Transform -> Rotate
. But since it’s quite nontrivial to directly edit a rotated table, at lease I don’t know how to work with them properly, you can edit it by first setting rotation angle to 0, edit it and then set the angle back to 90. You can also keep the angle 0 and change it before exporting to PDF. If you want it this way. Below is a sketch:
You first filter and set angles:
(for-each (lambda (t) (tree-set! t 0 (tree "90")))
(tree-search (buffer-tree) (lambda (x) (tm-func? x 'rotate))))
Then export:
(with name (propose-name-buffer)
(if (string-ends? name ".tm")
(with pdf-name (string-append (string-drop-right name 3) ".pdf")
(wrapped-print-to-file pdf-name))))
Finally you set them back to 0. Compose a function and bind to any key you like. Hopefully it’ll give a workaround. Otherwise I dont know how to maintain a overly wide tabular in TeXmacs. Or you can rethink whether such a wide tabular is necessary.