\marginpar
를 사용하는 다른 명령에 영향을 주지 않도록 사용자 정의 명령에서 옵션을 정의하려면 어떻게 해야 합니까 \marginpar
?
다음은 내가 시도한 방법이지만 문제는 여전히 지속됩니다.
\documentclass[a4paper,12pt,twoside]{report}
\usepackage[a4paper,width=159.2mm,top=25.4mm,bottom=25.4mm]{geometry}
\usepackage{blindtext}
%Paragraph number
\newcounter{parnum}
\newcommand{\n}{
\refstepcounter{parnum}\leavevmode
\marginpar[\scriptsize\S\theparnum\hfill]{\scriptsize\hfill\centering\S\theparnum}
\marginparwidth=15pt
\marginparsep=15pt
}
%Todonotes
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{ifthen}
\usepackage{calc}
\usepackage{xcolor}
\usepackage{xkeyval}
\usepackage[
colorinlistoftodos,
prependcaption,
textsize=scriptsize,
textwidth=2.5cm]{todonotes}
% Defining custom todo
\newcommand{\note}[1]{
\todo[linecolor=orange,backgroundcolor=orange!25,bordercolor=orange]{#1}
\marginparwidth=2.5cm
\marginparsep=0.4cm
}
\begin{document}
\chapter{Chapter One}
\n \blindtext %Without todonotes
\n \blindtext\note{Just a todo test!}
\n \blindtext\note{Another todo test!}
\newpage %for behaviour both in right and left side
\chapter{Chapter Two}
\n \blindtext %Without todonotes
\n \blindtext\note{Just a todo test!}
\n \blindtext\note{Another todo test!}
\end{document}
도움과 관심에 감사드립니다!