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 <[email protected]> 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