我正在用 LaTeX 排版一份旧文档。为了让读者知道原始页码,我希望能够在文本中插入一个符号(可能是一条短垂直线?),然后在页边空白处写上“第 36 页”。类似...
Here is some old text of mine\marginpage{Page 25} that no one cares about anymore.
我已经看过\marginpar
这些marginnotes
包裹,但它们并没有满足我的要求。
有什么建议么?
答案1
尝试这样的操作:
\documentclass[11pt]{book}
\usepackage{marginnote,xcolor}
\linespread{1.103}
\usepackage[a5paper,heightrounded]{geometry}
% \opn, for Original Page Number:
\newcommand{\opn}[1]{{\color{gray}$|$\marginnote{\small #1}}}
\begin{document}
\textsc{Echecrates:} \opn{57} Were you with Socrates yourself, Phaedo,
on the day when he drank the poison in prison, or did you hear about
it from someone else?
\textsc{Phaedo:} I was there myself, Echecrates.
\textsc{Echecrates:} Then what did he say before his death?\ and how
did he die? I should like to hear, for nowadays none of the Phliasians
go to Athens at all, and no stranger has come from there for a long
time, \opn{b} who could tell us anything definite about this matter,
except that he drank poison and died, so we could learn no further
details.
\textsc{Phaedo:} Did you not even hear about the trial and how it was
conducted?
\textsc{Echecrates:} Yes, some one told us about that, and we wondered
that although it took place a long time ago, he was put to death much
later. Now why was that, Phaedo? \opn{58}
\textsc{Phaedo:} It was a matter of chance, Echecrates. It happened
that the stern of the ship which the Athenians send to Delos was
crowned on the day before the trial.
\textsc{Echecrates:} What ship is this?
\textsc{Phaedo:} This is the ship, as the Athenians say, in which
Theseus once went to Crete with the fourteen \opn{b} youths and
maidens, and saved them and himself. Now the Athenians made a vow to
Apollo, as the story goes, that if they were saved they would send a
mission every year to Delos. And from that time even to the present
day they send it annually in honour of the god. Now it is their law
that after the mission begins the city must be pure and no one may be
publicly executed until the ship has gone to Delos and back; and
sometimes, when contrary winds \opn{c} detain it, this takes a long
time. The beginning of the mission is when the priest of Apollo crowns
the stern of the ship; and this took place, as I say, on the day
before the trial. For that reason Socrates passed a long time in
prison between his trial and his death.
\end{document}
如果您使用luatex
或xetex
,则可以使用\textsuperscript{|}
代替$|$
使标记变小且凸起,如图所示。(毫无疑问,有一种方法可以用 来实现这一点pdftex
,但我忘记了以前知道的pdftex
……)