emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: autofrettage <autofrettage@protonmail.ch>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Code blocks and quotes export style
Date: Sun, 13 Mar 2022 16:22:56 +0000	[thread overview]
Message-ID: <ROpYPtEUpLZ7IwhVgjDTEqTp3JfZGAZWNGnup2uYnpb0dmi7kvjbpoMbL6mTjWxaW582FW4-9nBZwkNh6x5cE-rVcc2-I3sCahl6yhqoj88=@protonmail.ch> (raw)

> 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


             reply	other threads:[~2022-03-13 16:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-13 16:22 autofrettage [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ROpYPtEUpLZ7IwhVgjDTEqTp3JfZGAZWNGnup2uYnpb0dmi7kvjbpoMbL6mTjWxaW582FW4-9nBZwkNh6x5cE-rVcc2-I3sCahl6yhqoj88=@protonmail.ch' \
    --to=autofrettage@protonmail.ch \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).