diff --git a/scripts/generate_pdf.sh b/scripts/generate_pdf.sh index fb2cf3e5225d3..a780399285bcf 100755 --- a/scripts/generate_pdf.sh +++ b/scripts/generate_pdf.sh @@ -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" \ @@ -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" \ No newline at end of file +"doc.md" -s -o "output.pdf" diff --git a/templates/deeplist.tex b/templates/deeplist.tex new file mode 100644 index 0000000000000..3776db45b8f3a --- /dev/null +++ b/templates/deeplist.tex @@ -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}