public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Customize list item label for latex
@ 2018-12-15  3:04 jiewuza
  2018-12-16  3:27 ` jiewuza
       [not found] ` <m2tvjfcwy4.fsf-9Onoh4P/yGk@public.gmane.org>
  0 siblings, 2 replies; 4+ messages in thread
From: jiewuza @ 2018-12-15  3:04 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


Currently, pandoc sets the label automatically according to the text
format. For
```
(1) item
    (a) subitem
         i. subsubitem
```

It generates tex:
```
\begin{enumerate}
\def\labelenumi{(\arabic{enumi})}
\item
  my item

  \begin{enumerate}
  \def\labelenumii{(\alph{enumii})}
  \tightlist
  \item
    subitem

    \begin{enumerate}
    \def\labelenumiii{\roman{enumiii}.}
    \tightlist
    \item
      subsubitem
    \end{enumerate}
  \end{enumerate}
\end{enumerate}
```

This is a great feature. However, sometimes it is required to match a
`hierarchy label format`. It is common that the format is predefined in
scholar paper templates, like:
```
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\labelenumi}{(\theenumi)}
\renewcommand{\theenumii}{\alpha{enumii}}
\renewcommand{\labelenumii}{\theenumii}
\renewcommand{\theenumiii}{\roman{enumiii}}
\renewcommand{\labelenumiii}{(\theenumiii)}
```

And you just have to make the hierarchy right, forgetting the format
detail.

So I am wondering if it is worth introducing an option to disable generating the
label according to the text, but leaving the format for user customization.


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

end of thread, other threads:[~2018-12-17  7:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-15  3:04 Customize list item label for latex jiewuza
2018-12-16  3:27 ` jiewuza
     [not found] ` <m2tvjfcwy4.fsf-9Onoh4P/yGk@public.gmane.org>
2018-12-16 13:21   ` Christophe Demko
2018-12-17  7:44     ` jiewuza

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).