Re: Nested quote blocks?

2020-03-05 Thread Tim Visher
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. :)


Re: Nested quote blocks?

2020-03-04 Thread Fraga, Eric
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? 

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.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-354-g9d5880



Re: Nested quote blocks?

2020-03-04 Thread Tim Visher
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. :)


Re: Nested quote blocks?

2020-03-03 Thread Fraga, Eric
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

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-354-g9d5880



Re: Nested quote blocks?

2020-03-03 Thread Nicolas Goaziou
Hello,

Tim Visher  writes:

> Is there a way to get nested quotes blocks to work?

No, you cannot nest quote blocks.

Regards,

-- 
Nicolas Goaziou



Nested quote blocks?

2020-03-03 Thread Tim Visher
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