public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to create nested numbered ordered lists?
@ 2023-08-28 15:23 Explorer
       [not found] ` <CAOYNTAzJEDmeJ0Zebj59HGm56w5Z1y1sv+mNcu9zwR2sosQNTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Explorer @ 2023-08-28 15:23 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 777 bytes --]

Hello
I want to create list items with item marker as nested numbered lists as
follows:
1 item 1
  1.1 item in item1
  1.2 second item in item1
    1.2.1 subitem in item 2 of item1
2 second item....

Is there a way we could specify such a structure inside pandoc markdown?
and can it be then converted into microsoft word docx?

Thanks in anticipation

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAOYNTAzJEDmeJ0Zebj59HGm56w5Z1y1sv%2BmNcu9zwR2sosQNTw%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 1209 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to create nested numbered ordered lists?
       [not found] ` <CAOYNTAzJEDmeJ0Zebj59HGm56w5Z1y1sv+mNcu9zwR2sosQNTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2023-08-29 13:30   ` Jonathan Whiteley
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Whiteley @ 2023-08-29 13:30 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1887 bytes --]

I think it depends on the output format.  The current behaviour generally 
reflects the default behaviour in Word, HTML and LaTeX.  
For HTML output, nested numbering can be accomplished with CSS: 
  - 
https://stackoverflow.com/questions/10405945/html-ordered-list-1-1-1-2-nested-counters-and-scope-not-working
For LaTeX, you can customize certain commands, or use the `enumitem` 
package: 
  - 
https://tex.stackexchange.com/questions/78842/nested-enumeration-numbering
  - 
https://tex.stackexchange.com/questions/78941/nested-enumerate-labels-with-parent-label-appended-plus-a-single-set-of-enclosin

For Word output, you would have to use a "Multilevel list".  I'm not as 
familiar with Pandoc to know how to apply this, but it might be possible 
with a combination of custom styles and a reference document to supply a 
list style with the multilevel numbering.
- https://pandoc.org/MANUAL.html#custom-styles
- https://pandoc.org/MANUAL.html#options-affecting-specific-writers  ("
--reference-doc")

I hope that helps,
Jonathan

On Monday, 28 August 2023 at 11:24:15 UTC-4 Explorer wrote:

> Hello
> I want to create list items with item marker as nested numbered lists as 
> follows:
> 1 item 1
>   1.1 item in item1
>   1.2 second item in item1
>     1.2.1 subitem in item 2 of item1
> 2 second item....
>
> Is there a way we could specify such a structure inside pandoc markdown? 
> and can it be then converted into microsoft word docx?
>
> Thanks in anticipation
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/213ad2d6-8b61-4ed1-8e01-2de3455d948en%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2815 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-29 13:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-28 15:23 How to create nested numbered ordered lists? Explorer
     [not found] ` <CAOYNTAzJEDmeJ0Zebj59HGm56w5Z1y1sv+mNcu9zwR2sosQNTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-08-29 13:30   ` Jonathan Whiteley

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 NNTP newsgroup(s).