From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Visher Subject: Re: Nested quote blocks? Date: Wed, 4 Mar 2020 12:57:32 -0500 Message-ID: References: <87pndso9z5.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003cfe2a05a00b2a22" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51519) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9YHk-0004YU-FO for emacs-orgmode@gnu.org; Wed, 04 Mar 2020 12:58:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9YHj-00029R-5e for emacs-orgmode@gnu.org; Wed, 04 Mar 2020 12:58:20 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:39323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9YHi-00024T-Rp for emacs-orgmode@gnu.org; Wed, 04 Mar 2020 12:58:19 -0500 Received: by mail-wr1-x432.google.com with SMTP id y17so3562431wrn.6 for ; Wed, 04 Mar 2020 09:58:18 -0800 (PST) In-Reply-To: <87pndso9z5.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: Emacs Org Mode mailing list --0000000000003cfe2a05a00b2a22 Content-Type: text/plain; charset="UTF-8" Thanks for responding, Eric. :) On Wed, Mar 4, 2020 at 2:28 AM Fraga, Eric wrote: > On Tuesday, 3 Mar 2020 at 12:57, Tim Visher wrote: > > Is there a way to get nested quotes blocks to work? > > What is your actual goal? That is, what you do mean by "to work"? I > ask because although, as Nicolas has said, you cannot do this directly > with org, you can achieve some specific goals with special blocks and/or > drawers. For instance, if your goal were to export to LaTeX, this code > would do the job: > > #+begin_src org > ,#+latex_header: \let\myquote\quote > ,* testing nested blocks > Joe said: > > ,#+begin_quote > This is the outer block. > > ,#+begin_myquote > and this is the inner block > ,#+end_myquote > > followed by the outer block. > ,#+end_quote > > and that is all folks. > #+end_src > I can demonstrate my goal with Markdown like so . If you view the raw file you can see how the quote level nests and yet all of Markdown's markup is rendered as well. Thus each block quoting 'level' is a fully functional Markdown context. IIUC, your solution should work but it's necessarily tied to specific export backends, right? I would be happy if it could be made to work for the HTML because that's often my intermediary form these days for getting text out of Org into something others find less intimidating. :) --0000000000003cfe2a05a00b2a22 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for responding, Eric. :)

=
On Wed, Ma= r 4, 2020 at 2:28 AM Fraga, Eric <e.fraga@ucl.ac.uk> wrote:
On Tuesday,=C2=A0 3 Mar 2020 at 12:57, Ti= m Visher wrote:
> Is there a way to get nested quotes blocks to work?

What is your actual goal?=C2=A0 That is, what you do mean by "to work&= quot;?=C2=A0 I
ask because although, as Nicolas has said, you cannot do this directly
with org, you can achieve some specific goals with special blocks and/or drawers.=C2=A0 For instance, if your goal were to export to LaTeX, this cod= e
would do the job:

#+begin_src org
=C2=A0 ,#+latex_header: \let\myquote\quote
=C2=A0 ,* testing nested blocks
=C2=A0 Joe said:

=C2=A0 ,#+begin_quote
=C2=A0 This is the outer block.

=C2=A0 ,#+begin_myquote
=C2=A0 and this is the inner block
=C2=A0 ,#+end_myquote

=C2=A0 followed by the outer block.
=C2=A0 ,#+end_quote

=C2=A0 and that is all folks.
#+end_src

I can demonstrate my goal wit= h Markdown like so. If you view the raw= =C2=A0file=C2=A0you can see how the quote level nests and yet all of Ma= rkdown's markup is rendered as well. Thus each block quoting 'level= ' is a fully functional Markdown context.

IIUC= , your solution should work but it's necessarily tied to specific expor= t backends, right? I would be happy if it could be made to work for the HTM= L because that's often my intermediary form these days for getting text= out of Org into something others find less intimidating. :)
--0000000000003cfe2a05a00b2a22--