From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Downey Subject: Re: Src blocks laid out side-by-side Date: Sat, 8 Feb 2020 14:02:45 -0500 Message-ID: References: <87v9ohl73m.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000771161059e152704" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47887) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0VNb-0005xT-PX for emacs-orgmode@gnu.org; Sat, 08 Feb 2020 14:03:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0VNa-0003pz-N0 for emacs-orgmode@gnu.org; Sat, 08 Feb 2020 14:02:59 -0500 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:39638) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0VNa-0003pg-HD for emacs-orgmode@gnu.org; Sat, 08 Feb 2020 14:02:58 -0500 Received: by mail-pf1-x429.google.com with SMTP id 84so1518478pfy.6 for ; Sat, 08 Feb 2020 11:02:58 -0800 (PST) In-Reply-To: <87v9ohl73m.fsf@ucl.ac.uk> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: "Fraga, Eric" Cc: org mode --000000000000771161059e152704 Content-Type: text/plain; charset="UTF-8" Only needs to be in the exported document, and doesn't necessarily need to render that way within org. However, I'd like to avoid having to choose the export form with custom markup in the org document. I often have documents, or parts of docs, that are exported to both HTML and latex. The equivalent that I'm doing in markdown are custom fenced blocks that pandoc post-processes. I suppose I could write some markup that on export gets processed to the appropriate html or latex. On Sat, Feb 8, 2020, 05:13 Fraga, Eric wrote: > On Friday, 7 Feb 2020 at 17:59, Steve Downey wrote: > > I have a need to lay out source blocks side by side, in order to present > > before and after changes to the source. If I could embed a block in a > > table, that would do it. > > Do you need this layout in org file itself or only in an exported > document from the org file? > > For the latter, you can use inline directives to achieve this. E.g. if > you were exporting to PDF via LaTeX, you could start/end minipages > around each src block. > > -- > : Eric S Fraga via Emacs 28.0.50, Org release_9.3.2-233-gc2bc48 > --000000000000771161059e152704 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Only needs to be in the exported document, and doesn't neces= sarily need to render that way within org. However, I'd like to avoid h= aving to choose the export form with custom markup in the org document. I o= ften have documents, or parts of docs, that are exported to both HTML and l= atex.=C2=A0=C2=A0

The equivalent that I'm doing in markdown are custom= fenced blocks that pandoc post-processes.=C2=A0

I suppose I could write s= ome markup that on export gets processed to the appropriate html or latex.= =C2=A0

On Sat, Feb 8, 2020, 05:13 Fraga, Eric <e.fraga@ucl.ac.uk> wrote:
On Friday,=C2=A0 7 Feb 2020 at 17:59, Steve Downey wrote: > I have a need to lay out source blocks side by side, in order to prese= nt
> before and after changes to the source. If I could embed a block in a<= br> > table, that would do it.

Do you need this layout in org file itself or only in an exported
document from the org file?

For the latter, you can use inline directives to achieve this.=C2=A0 E.g. i= f
you were exporting to PDF via LaTeX, you could start/end minipages
around each src block.

--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.2-233-gc2bc48
--000000000000771161059e152704--