From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Visher Subject: Nested quote blocks? Date: Tue, 3 Mar 2020 12:57:05 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c90c31059ff70adc" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42664) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9Bnl-0005vv-Av for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 12:57:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9Bnk-0002Ve-5C for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 12:57:53 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:43437) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9Bnj-0002VY-Qf for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 12:57:52 -0500 Received: by mail-wr1-x42f.google.com with SMTP id h9so4582663wrr.10 for ; Tue, 03 Mar 2020 09:57:51 -0800 (PST) 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: Emacs Org Mode mailing list --000000000000c90c31059ff70adc Content-Type: text/plain; charset="UTF-8" Hello, Is there a way to get nested quotes blocks to work? AFAICT: ``` #+begin_quote foo #+begin_quote bar #+end_quote bat #end_quote ``` Doesn't work. Ideally I'm kind of looking for a full functional sub org context inside there. Maybe I should be using some kind of source block? -- In Christ, Timmy V. https://blog.twonegatives.com https://five.sentenc.es --000000000000c90c31059ff70adc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Is there a way to get nested quo= tes blocks to work?

AFAICT:

```
#+begin_quote

foo

<= /div>
#+begin_quote
bar
#+end_quote

<= /div>
bat
#end_quote
```

D= oesn't work.

Ideally I'm kind of looking f= or a full functional sub org context inside there. Maybe I should be using = some kind of source block?

--000000000000c90c31059ff70adc-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Nested quote blocks? Date: Tue, 03 Mar 2020 19:26:09 +0100 Message-ID: <8736apl2gu.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47749) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9CFE-0008I8-1B for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 13:26:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9CFD-0005eV-82 for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 13:26:15 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:33555) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j9CFD-0005dw-2i for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 13:26:15 -0500 In-Reply-To: (Tim Visher's message of "Tue, 3 Mar 2020 12:57:05 -0500") 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: Tim Visher Cc: Emacs Org Mode mailing list Hello, Tim Visher writes: > Is there a way to get nested quotes blocks to work? No, you cannot nest quote blocks. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: Re: Nested quote blocks? Date: Wed, 4 Mar 2020 07:27:59 +0000 Message-ID: <87pndso9z5.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38068) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9ORr-00072h-Di for emacs-orgmode@gnu.org; Wed, 04 Mar 2020 02:28:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9ORq-00078g-98 for emacs-orgmode@gnu.org; Wed, 04 Mar 2020 02:28:07 -0500 Received: from mail-am5eur02on0708.outbound.protection.outlook.com ([2a01:111:f400:fe07::708]:27913 helo=EUR02-AM5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j9ORp-0006ul-RC for emacs-orgmode@gnu.org; Wed, 04 Mar 2020 02:28:06 -0500 Content-Language: en-US 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: Tim Visher Cc: Emacs Org Mode mailing list 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 --=20 : Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-354-g9d5880 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: Re: Nested quote blocks? Date: Thu, 5 Mar 2020 06:45:38 +0000 Message-ID: <877dzzmh9r.fsf@ucl.ac.uk> References: <87pndso9z5.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33390) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9kGM-0000x8-IR for emacs-orgmode@gnu.org; Thu, 05 Mar 2020 01:45:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9kGL-0004z8-IQ for emacs-orgmode@gnu.org; Thu, 05 Mar 2020 01:45:42 -0500 Received: from mail-vi1eur05on2118.outbound.protection.outlook.com ([40.107.21.118]:63469 helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j9kGL-0004xw-7q for emacs-orgmode@gnu.org; Thu, 05 Mar 2020 01:45:41 -0500 In-Reply-To: (Tim Visher's message of "Wed, 4 Mar 2020 12:57:32 -0500") Content-Language: en-US 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: Tim Visher Cc: Emacs Org Mode mailing list On Wednesday, 4 Mar 2020 at 12:57, Tim Visher wrote: > Thanks for responding, Eric. :) You're very welcome! > IIUC, your solution should work but it's necessarily tied to specific > export backends, right?=20 It is partly but the general concept of using special blocks works for HTML also. You end up with code that looks like this: ,---- |
|

| and this is the inner block |

|=20 |
`---- which means you can customize its appearance using appropriate CSS code. --=20 : Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-354-g9d5880 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Visher Subject: Re: Nested quote blocks? Date: Thu, 5 Mar 2020 11:14:46 -0500 Message-ID: References: <87pndso9z5.fsf@ucl.ac.uk> <877dzzmh9r.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000097d61e05a01dd89e" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56690) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9t9q-0005Px-Fi for emacs-orgmode@gnu.org; Thu, 05 Mar 2020 11:15:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9t9p-00020i-Cy for emacs-orgmode@gnu.org; Thu, 05 Mar 2020 11:15:34 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:40300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9t9p-0001yi-33 for emacs-orgmode@gnu.org; Thu, 05 Mar 2020 11:15:33 -0500 Received: by mail-wr1-x436.google.com with SMTP id r17so7727853wrj.7 for ; Thu, 05 Mar 2020 08:15:33 -0800 (PST) In-Reply-To: <877dzzmh9r.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 --00000000000097d61e05a01dd89e Content-Type: text/plain; charset="UTF-8" On Thu, Mar 5, 2020 at 1:45 AM Fraga, Eric wrote: > > IIUC, your solution should work but it's necessarily tied to specific > > export backends, right? > > It is partly but the general concept of using special blocks works for > HTML also. You end up with code that looks like this: > > ,---- > |
> |

> | and this is the inner block > |

> | > |
> `---- > > which means you can customize its appearance using appropriate CSS code. Sounds great. I'll try to hack on this when I have some free time. :) --00000000000097d61e05a01dd89e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Mar 5, 2020 at 1:45 AM Fraga, Eric &l= t;e.fraga@ucl.ac.uk> wrote:
=
> IIUC, your sol= ution should work but it's necessarily tied to specific
> export backends, right?

It is partly but the general concept of using special blocks works for
HTML also.=C2=A0 You end up with code that looks like this:

,----
| <div class=3D"myquote">
| <p>
| and this is the inner block
| </p>
|
| </div>
`----

which means you can customize its appearance using appropriate CSS code.

Sounds great. I'll try to hack on this wh= en I have some free time. :)
--00000000000097d61e05a01dd89e--