我已经在 overleaf 中编写了一些 Tex 文档,并且目录和图表列表始终可以正常生成。现在,由于建议,我切换到 VScode 并按照说明安装了所有内容。现在,即使我插入最近的代码,VScode 也不会生成图表列表/目录,但是当我将代码插入 overleaf 时,overleaf 可以很好地生成它。遵循我使用的软件包和我用于生成表格/列表的命令。
\documentclass[
oneside, a4paper,
11pt,
parskip=half,
headings=standardclasses,
numbers=noenddot,
headsepline,
captions=tableheading,
ngerman
]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern,microtype}
\usepackage[ngerman]{babel}
\usepackage[locale=DE,separate-uncertainty=true, per-mode=fraction,group-separator={}]{siunitx}
\usepackage{amsfonts,amssymb,interval,physics}
\usepackage{graphicx,tikzpagenodes,caption,subcaption}
\usepackage{booktabs,multirow,makecell}
\captionsetup{labelfont={bf,sf}}
\usepackage{xcolor,xurl}
\usepackage[all]{nowidow}
\usepackage[colorlinks,linkcolor={red!50!black},citecolor={blue!50!black},urlcolor={blue!80!black}]{hyperref}
\usepackage[colorlinks,linkcolor={red!50!black},citecolor={blue!50!black},urlcolor={blue!80!black}]{hyperref}
\usepackage[margin=1in,includeheadfoot]{geometry}
\usepackage{float}
\usepackage{atbegshi}
\AtBeginDocument{\AtBeginShipoutNext{\AtBeginShipoutDiscard}}
...
{\hypersetup{hidelinks}
\tableofcontents
\listoffigures
\listoftables}
...
\section{...}