텍스트에 기호가 있는 여백 메모

텍스트에 기호가 있는 여백 메모

LaTeX로 오래된 문서를 조판하고 있습니다. 독자들이 원래의 페이지 매김을 알 수 있도록 텍스트에 기호(짧은 수직선?)를 삽입한 다음 여백에 "Page 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{|}$|$pdftexpdftex

관련 정보