emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: How can I make mdframed+minted work for multi-page source code blocks?
Date: Tue, 4 Aug 2015 23:30:44 -0400	[thread overview]
Message-ID: <CAFyQvY0LkH8AWWAr50gLMTfG0cdE21t7orq5TnRWwGk56-UY3g@mail.gmail.com> (raw)

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

I am using org-mode version 8.3 and the latest build of emacs from git
master.

I am trying to make mdframed+minted work with source code blocks having
captions.

Here is  a minimum working example:
https://gist.githubusercontent.com/kaushalmodi/a9d05fe94d5641d0084f/raw/0ff356e8cfafbec53d91fa3b73a59226e5cd9825/minted-multiple-pages.org

The example is short; just the source code block is big so that it spans
multiple pages.

I am trying to get the code block parts on each page to be completely boxed
(borders on all 4 sides).

Currently only the code blocks in in-between pages gets borders only on the
sides. The first part of code block on the first page gets borders on top
and sides. And the last part of the code block on the last page gets
borders on bottom and on sides.

Here is the generated pdf:
https://dl.dropboxusercontent.com/u/10985/minted-multiple-pages.pdf (You
can ignore the lines crossing the borders as I will work on fixing those
once I gets the borders right).

Please let me know if there is any other way to get the following using
*minted*:
- Split code blocks on each page be completely boxed.
- The code block be captioned.
- The code block be properly listed in List of Listings
- Be able to customize the border lines, code background and line numbers.

--
Kaushal Modi

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

             reply	other threads:[~2015-08-05  3:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05  3:30 Kaushal [this message]
2015-08-05 10:55 ` How can I make mdframed+minted work for multi-page source code blocks? Kaushal
2015-08-05 19:26   ` Kaushal

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=CAFyQvY0LkH8AWWAr50gLMTfG0cdE21t7orq5TnRWwGk56-UY3g@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --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).