Skip to content

Commit

Permalink
In LaTeX, properly indent fancy ordered lists when startNumber is e…
Browse files Browse the repository at this point in the history
…nabled
  • Loading branch information
Witiko committed Oct 17, 2023
1 parent 69ce5dc commit 6a7649e
Showing 1 changed file with 38 additions and 16 deletions.
54 changes: 38 additions & 16 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -33209,16 +33209,26 @@ end
\tl_set:Nn
\l_@@_latex_fancy_list_item_label_delimiter_style_tl
{ #2 }
\tl_set:Nn
\l_tmpa_tl
{ \begin{enumerate}[ }
\tl_put_right:Nx
\l_tmpa_tl
{ \@@_latex_paralist_style:nn { #1 } { #2 } }
\tl_put_right:Nn
\@@_if_option:nTF
{ startNumber }
{
\tl_set:Nn
\l_tmpa_tl
{ \begin{enumerate} }
}
{
\tl_set:Nn
\l_tmpa_tl
{ \begin{enumerate}[ }
\tl_put_right:Nx
\l_tmpa_tl
{ \@@_latex_paralist_style:nn { #1 } { #2 } }
\tl_put_right:Nn
\l_tmpa_tl
{ ] }
}
\tl_use:N
\l_tmpa_tl
{ ] }
\l_tmpa_tl
},
fancyOlEnd = {
\end{enumerate}
Expand Down Expand Up @@ -33256,15 +33266,27 @@ end
{
\plpartopsep=\partopsep
\pltopsep=\topsep
\begin{compactenum}[
}
\tl_put_right:Nx
\l_tmpa_tl
{ \@@_latex_paralist_style:nn { #1 } { #2 } }
\tl_put_right:Nn
\@@_if_option:nTF
{ startNumber }
{
\tl_put_right:Nn
\l_tmpa_tl
{ \begin{compactenum} }
}
{
\tl_put_right:Nn
\l_tmpa_tl
{ \begin{compactenum}[ }
\tl_put_right:Nx
\l_tmpa_tl
{ \@@_latex_paralist_style:nn { #1 } { #2 } }
\tl_put_right:Nn
\l_tmpa_tl
{ ] }
}
\tl_use:N
\l_tmpa_tl
{ ] }
\l_tmpa_tl
},
fancyOlEndTight = {
\end{compactenum}
Expand Down

0 comments on commit 6a7649e

Please sign in to comment.