latex 中 PDF 区域外的编号

latex 中 PDF 区域外的编号

我使用 MikTeX,并使用编辑器 TeXnicCenter。我使用 XeLaTeX 编译我的代码以生成 pdf。

在此处输入图片描述

我想这样做。你能告诉我代码吗?

答案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} 

下次请考虑制作 MWE。在此处输入图片描述

相关内容