From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Subject: How can I make mdframed+minted work for multi-page source code blocks? Date: Tue, 4 Aug 2015 23:30:44 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113cef30872923051c8809a0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMpQM-0004kg-NH for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 23:31:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMpQL-0000bm-4w for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 23:31:26 -0400 Received: from mail-oi0-x230.google.com ([2607:f8b0:4003:c06::230]:33304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMpQK-0000bQ-VR for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 23:31:25 -0400 Received: by oio137 with SMTP id 137so12483643oio.0 for ; Tue, 04 Aug 2015 20:31:24 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-org list --001a113cef30872923051c8809a0 Content-Type: text/plain; charset=UTF-8 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 --001a113cef30872923051c8809a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I am using org-mode version 8.3 and the la= test build of emacs from git master.

I am trying to make mdframed+minted work with source code blocks h= aving captions.


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

I am trying t= o get the code block parts on each page to be completely boxed (borders on = all 4 sides).
=C2=A0
Currently on= ly 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. A= nd the last part of the code block on the last page gets borders on bottom = and on sides.

Here is the ge= nerated pdf:=C2=A0https://dl.dropboxusercontent.com/u/10985/minted-mul= tiple-pages.pdf (You can ignore the lines crossing the borders as I wil= l 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 bl= ocks on each page be completely boxed.
- The code bloc= k be captioned.
- The code block be properly listed in= List of Listings
- Be able to customize the border li= nes, code background and line numbers.

--
Kaushal Mo= di
--001a113cef30872923051c8809a0--