![todoの行が行と一致しません](https://rvso.com/image/420044/todo%E3%81%AE%E8%A1%8C%E3%81%8C%E8%A1%8C%E3%81%A8%E4%B8%80%E8%87%B4%E3%81%97%E3%81%BE%E3%81%9B%E3%82%93.png)
\todonodes パッケージを使いたいのですが、現時点ではレイアウトが頭から離れません。「todo」行の末尾がテキストと一致しません。もっとうまく説明できないので、スクリーンショットを参照してください。
これが私のコードです
\documentclass[
12pt,
a4paper,
headinclude,
footinclude,
listof=totoc,
toc=sectionentrywithdots,
bibliography=totoc
]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[onehalfspacing]{setspace} % 1,5facher Zeilenabstand
\usepackage[a4paper, top=3cm,bottom=3cm,left=4.5cm,right=2cm]{geometry}
\usepackage{graphicx}
\usepackage{parskip} %Abstand zwischen Abständen
\setlength\parindent{0pt} %Einzug neuer Absatz unterbinden
\usepackage[]{acronym} % Abkürzungen
\usepackage{float}
\usepackage[colorinlistoftodos, ngerman]{todonotes}\setlength{\marginparwidth}{3cm}\reversemarginpar
\usepackage{microtype}
%\usepackage{showframe}
%Literaturverzeichnis Pakete + Anpassungen am Erscheinungsbild
\usepackage[
style=authoryear,
autocite=footnote,
maxcitenames=3,
mincitenames=3,
maxbibnames=8,
minbibnames=8,
]{biblatex}
\usepackage[babel, german=guillemets]{csquotes}
\addbibresource{literatur.bib} % Datei mit Literaturverzeichnis
\renewcommand*{\newunitpunct}{\addcomma\space}
\renewcommand*{\finentrypunct}{}
\DeclareFieldFormat[book]{title}{\mkbibquote{#1\isdot}}
\DeclareNameAlias{default}{family-given}
\DeclareNameAlias{sortname}{default}
\DeclareListWrapperFormat{location}{\mkbibparens{#1}}
\DefineBibliographyStrings{german}{
andothers = {et al\adddot},
nodate = {o.J\adddot},
}
\DeclareDelimFormat{nameyeardelim}{\addcomma\space}
\DeclareDelimFormat[bib]{nameyeardelim}{\addcomma\space}
\renewbibmacro*{cite:label}{%
\printtext[bibhyperref]{\printfield{label}}}
\newbibmacro*{cite:labeltitle}{%
\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
\renewbibmacro*{cite}{%
\iffieldundef{shorthand}
{\ifthenelse{\ifnameundef{labelname}}
{\usebibmacro{cite:label}%
\setunit{\printdelim{nonameyeardelim}}}
{\printnames{labelname}%
\setunit{\printdelim{nameyeardelim}}}%
\ifboolexpr{ test {\iffieldundef{labelyear}}
or test {\iffieldequalstr{labelyear}{nodate}}}
{\usebibmacro{cite:labeltitle}}
{\usebibmacro{cite:labeldate+extradate}}}
{\usebibmacro{cite:shorthand}}}
\setlength\bibitemsep{1.5\itemsep}
\begin{document}
\tableofcontents
\setcounter{page}{1}
%Abbilungsverzeichnis und Tabellenverzeichnis einfügen
\newpage
\listoffigures
\newpage
\listoftables
\newpage
\section{Abkürzungsverzeichnis}
\begin{acronym}[Bash]
\acro{JK-FlipFlop}{Jack Kilby FlipFlop}
\end{acronym}
\newpage
%Beginn der Einleitung
\section{Einleitung}
\todo{test}
Das Ziel dieses Assigments ist es, \todo[]{Einleitung überarbeiten} einen synchronen
\end{document}
答え1
さて、私は自分の問題を見つけました。
プリアンブルを別のファイルに除外しました。そして、何らかの理由でインポートによって問題が発生します。
もし私が\usepackage[colorinlistoftodos, german]{todonotes}\setlength{\marginparwidth}{3cm}\reversemarginparメインファイル内では、すべてが指定されたとおりに機能します。