From: Tim Visher <tim.visher@gmail.com>
To: "Fraga, Eric" <e.fraga@ucl.ac.uk>
Cc: Emacs Org Mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Nested quote blocks?
Date: Wed, 4 Mar 2020 12:57:32 -0500 [thread overview]
Message-ID: <CAHa53uzGLTgtxt+Wcwi8C8hF05N5tGhCt7qQt+UhYemyOC9huw@mail.gmail.com> (raw)
In-Reply-To: <87pndso9z5.fsf@ucl.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 1573 bytes --]
Thanks for responding, Eric. :)
On Wed, Mar 4, 2020 at 2:28 AM Fraga, Eric <e.fraga@ucl.ac.uk> 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
<https://gist.github.com/timvisher/9500d76d609c593b6bcfbb1c6c529ae5>. If
you view the raw file
<https://gist.githubusercontent.com/timvisher/9500d76d609c593b6bcfbb1c6c529ae5/raw/1c5d16ee9c4ad6e33d99f450e5f6e8ce323bdd83/x.md>
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. :)
[-- Attachment #2: Type: text/html, Size: 2121 bytes --]
next prev parent reply other threads:[~2020-03-04 17:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-03 17:57 Nested quote blocks? Tim Visher
2020-03-03 18:26 ` Nicolas Goaziou
2020-03-04 7:27 ` Fraga, Eric
2020-03-04 17:57 ` Tim Visher [this message]
2020-03-05 6:45 ` Fraga, Eric
2020-03-05 16:14 ` Tim Visher
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=CAHa53uzGLTgtxt+Wcwi8C8hF05N5tGhCt7qQt+UhYemyOC9huw@mail.gmail.com \
--to=tim.visher@gmail.com \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/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).