emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Code blocks and quotes export style
@ 2022-03-13 10:54 Sébastien Gendre
  2022-03-13 16:06 ` Kaushal Modi
  2022-03-13 18:55 ` Barton, Mark
  0 siblings, 2 replies; 8+ messages in thread
From: Sébastien Gendre @ 2022-03-13 10:54 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello everyone. _o/

When I export an Org file to LaTeX and finally PDF, the code blocks and quotes often exceed the width of the page.

Is it possible to set some style of the exported blocks ? Like we can set the size for images ? I can't found it.

Thanks for your help.

----
Séb

[-- Attachment #2: Type: text/html, Size: 340 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Code blocks and quotes export style
@ 2022-03-13 16:22 autofrettage
  0 siblings, 0 replies; 8+ messages in thread
From: autofrettage @ 2022-03-13 16:22 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

> When I export an Org file to LaTeX and finally PDF, the code blocks and quotes often exceed the width of the page.

> Is it possible to set some style of the exported blocks ?

I wonder what the export engine can do about code which is too wide? As a programmer, I certainly wouldn't like some brainless line-breaking make a mess of my beautiful code

Most coding standards recommend lines at most 80 characters wide, or even a tad shorter, but this requires tiny letters, if generous LaTeX margins are used. ...not least with A4-paper.

Before truly smart AI shows up, the only alternative I see is writing short enough lines manually.

...but I am no expert on Org Mode.

Cheers
Rasmus


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

end of thread, other threads:[~2022-03-14 18:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-13 10:54 Code blocks and quotes export style Sébastien Gendre
2022-03-13 16:06 ` Kaushal Modi
2022-03-13 18:39   ` Juan Manuel Macías
2022-03-14 12:50     ` Max Nikulin
2022-03-14 18:09       ` Juan Manuel Macías
2022-03-13 18:55 ` Barton, Mark
2022-03-13 21:13   ` Tim Cross
  -- strict thread matches above, loose matches on Subject: below --
2022-03-13 16:22 autofrettage

Code repositories for project(s) associated with this public 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).