From: "Berry, Charles" via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: "Fraga, Eric" <e.fraga@ucl.ac.uk>
Cc: org mode <emacs-orgmode@gnu.org>, Steve Downey <sdowney@gmail.com>
Subject: Re: Src blocks laid out side-by-side
Date: Sat, 8 Feb 2020 18:14:00 +0000 [thread overview]
Message-ID: <3438DCB3-E658-439D-83B2-4758C846C8AA@ucsd.edu> (raw)
In-Reply-To: <87v9ohl73m.fsf@ucl.ac.uk>
> On Feb 8, 2020, at 2:13 AM, Fraga, Eric <e.fraga@ucl.ac.uk> 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.
>
Right. And the side-by-side issue for markdown is handled with inline html like this:
https://stackoverflow.com/questions/43232279/how-can-one-display-tables-side-by-side-in-github-markdown
The trick is that 'md snippets fall back to html. So @@html: <table> @@ etc are needed.
HTH,
Chuck
next prev parent reply other threads:[~2020-02-08 18:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-07 22:59 Src blocks laid out side-by-side Steve Downey
2020-02-08 10:13 ` Fraga, Eric
2020-02-08 18:14 ` Berry, Charles via General discussions about Org-mode. [this message]
2020-02-08 19:02 ` Steve Downey
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=3438DCB3-E658-439D-83B2-4758C846C8AA@ucsd.edu \
--to=emacs-orgmode@gnu.org \
--cc=ccberry@health.ucsd.edu \
--cc=e.fraga@ucl.ac.uk \
--cc=sdowney@gmail.com \
/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).