From: "Barton, Mark" <Mark.Barton@disney.com>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Code blocks and quotes export style
Date: Sun, 13 Mar 2022 18:55:09 +0000 [thread overview]
Message-ID: <B23B82AA-92DC-4201-B9DB-682743BF59DF@disney.com> (raw)
In-Reply-To: <B4D7EE37-2D7F-4EBD-A14D-A48CAABE6598@k-7.ch>
I manually check the pdf to see if it fits and use a code formatter to get the line widths shorter. I use blacken for python and sqlformat for SQL within Emacs. Even then I still hit limits where I recently changed to font size to small for the code blocks.
I use minted for syntax highlighting of code blocks.
#+LaTeX_HEADER: \usepackage{minted}
I set a local variable for org using minted to change the fontsize.
# Local Variables:
# org-latex-minted-options: (("fontsize" "\\small"))
# End:
Mark
> On Mar 13, 2022, at 3:54 AM, Sébastien Gendre <seb@k-7.ch> wrote:
>
> 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
next prev parent reply other threads:[~2022-03-13 19:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2022-03-13 21:13 ` Tim Cross
-- strict thread matches above, loose matches on Subject: below --
2022-03-13 16:22 autofrettage
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=B23B82AA-92DC-4201-B9DB-682743BF59DF@disney.com \
--to=mark.barton@disney.com \
--cc=emacs-orgmode@gnu.org \
--cc=seb@k-7.ch \
/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).