Skip to content

Commit

Permalink
fix(ci): max list depth when gen pdf (#15730) (#15841)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Dec 21, 2023
1 parent c851b40 commit 45e4e09
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/generate_pdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ _version_tag="$(date '+%Y%m%d')"

pandoc -N --toc --smart --latex-engine=xelatex \
--template=templates/template.tex \
--include-in-header=templates/deeplist.tex \
--columns=80 \
--listings \
-V title="TiDB Documentation" \
Expand All @@ -26,4 +27,4 @@ pandoc -N --toc --smart --latex-engine=xelatex \
-V fontsize=12pt \
-V geometry:margin=1in \
-V include-after="\\input{templates/copyright.tex}" \
"doc.md" -s -o "output.pdf"
"doc.md" -s -o "output.pdf"
24 changes: 24 additions & 0 deletions templates/deeplist.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
\usepackage{enumitem}
\setlistdepth{9}

\setlist[itemize,1]{label=$\bullet$}
\setlist[itemize,2]{label=$\bullet$}
\setlist[itemize,3]{label=$\bullet$}
\setlist[itemize,4]{label=$\bullet$}
\setlist[itemize,5]{label=$\bullet$}
\setlist[itemize,6]{label=$\bullet$}
\setlist[itemize,7]{label=$\bullet$}
\setlist[itemize,8]{label=$\bullet$}
\setlist[itemize,9]{label=$\bullet$}
\renewlist{itemize}{itemize}{9}

\setlist[enumerate,1]{label=$\arabic*.$}
\setlist[enumerate,2]{label=$\alph*.$}
\setlist[enumerate,3]{label=$\roman*.$}
\setlist[enumerate,4]{label=$\arabic*.$}
\setlist[enumerate,5]{label=$\alpha*$}
\setlist[enumerate,6]{label=$\roman*.$}
\setlist[enumerate,7]{label=$\arabic*.$}
\setlist[enumerate,8]{label=$\alph*.$}
\setlist[enumerate,9]{label=$\roman*.$}
\renewlist{enumerate}{enumerate}{9}

0 comments on commit 45e4e09

Please sign in to comment.