答案1
尝试
\documentclass[12pt]{article}
\usepackage[a4paper]{geometry}
\usepackage{lineno,lipsum}
\newcounter{toto}
\newcommand{\markl}{\stepcounter{toto}\marginpar{(\thetoto)}}
\begin{document}
I am trying to see if this works.\markl
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.\markl
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.
I am trying to see if this works.\markl
\end{document}