From 819824f2c01f504a7d812223d83e51e5514e2654 Mon Sep 17 00:00:00 2001 From: TEC Date: Sat, 27 Mar 2021 21:08:41 +0800 Subject: [PATCH] Org: LaTeX export, fix item bullets disappearance It seems that repeated \let\tempa for itemize, enumerate, and description causes issues. Just using a unique command for each fixes things. --- config.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index fa307d6..83d2e27 100644 --- a/config.org +++ b/config.org @@ -7917,9 +7917,9 @@ much space it puts between list items by default. I'm generally not a fan. Thankfully this is easy to correct with a small snippet: #+name: latex-condense-lists #+begin_src LaTeX -\\let\\tempa\\itemize\\renewcommand{\\itemize}{\\tempa\\setlength{\\itemsep}{-2ex}} -\\let\\tempa\\enumerate\\renewcommand{\\enumerate}{\\tempa\\setlength{\\itemsep}{-2ex}} -\\let\\tempa\\description\\renewcommand{\\description}{\\tempa\\setlength{\\itemsep}{-2ex}} +\\let\\olditem\\itemize\\renewcommand{\\itemize}{\\olditem\\setlength{\\itemsep}{-2ex}} +\\let\\oldenum\\enumerate\\renewcommand{\\enumerate}{\\oldenum\\setlength{\\itemsep}{-2ex}} +\\let\\olddesc\\description\\renewcommand{\\description}{\\olddesc\\setlength{\\itemsep}{-2ex}} #+end_src Then we can just hook this in with our clever preamble.