How to get code line numbers inside page margins? #9647
Answered
by
jgm
MohamedEmary
asked this question in
Q&A
-
I'm using pandoc to generate PDFs from markdown files, when i write a code block with line numbers using Is there anyway to fix that. I tried searching for this issue but most of the answers like this one were for how to fix that behavior when writing pure latex not pandoc flavored markdown. |
Beta Was this translation helpful? Give feedback.
Answered by
jgm
Apr 9, 2024
Replies: 1 comment 2 replies
-
We're using a customized fancyvrb Verbatim environment, so see fancyvrb's documentation. You could try the following diff in the default template:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, forgot that that line is not in the template, because it is supplied by skylighting.
In that case, you can try adding this to
header-includes
: