Advertisement
Guest User

Untitled

a guest
May 27th, 2013
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass[article,a4paper,12pt,twoside]{memoir}
  2.  
  3. \usepackage{etoolbox}
  4.  
  5. \newcounter{pnotemirror}
  6.  
  7. \makeatletter
  8. \renewcommand{\m@m@wrpnote}[2][]{%
  9.   \@ifmtarg{#1}{%
  10.     \ifnumequal{\value{pagenote}}{0}%
  11.       {\m@m@pnwrite\@notefile{}{\string\setcounter{pnotemirror}{0}}}%
  12.       {}%
  13.     \refstepcounter{pagenote}%
  14.     \notenumintext{\thepagenote}}{}%
  15.   \ifm@mpn@new@chap
  16.     \global\m@mpn@new@chapfalse
  17.     \addtonotes{\string\pagenotesubhead{\@chapapp}{\thechapter}{\pnchap}}%
  18.   \fi
  19.   \ifm@mpn@new@schap
  20.     \global\m@mpn@new@schapfalse
  21.     \addtonotes{\string\pagenotesubhead{\@chapapp}{}{\pnschap}}%
  22.   \fi
  23.   \m@m@pnwrite\@notefile{}
  24.    {\string\refstepcounter{pnotemirror}\string\noteentry{\thepagenote}{#1}{#2}{\thepage}}%
  25.   \endgroup
  26.   \@esphack}
  27. \makeatother
  28.  
  29. \makepagenote
  30.  
  31. \begin{document}
  32. \section{foo}
  33.  
  34. Text\pagenote{Page note.\label{test1}}
  35. Text\pagenote{See note \ref{test1}.}
  36. Text\pagenote{Another page note.\label{test2}}
  37. Text\pagenote{See note \ref{test2}.}
  38.  
  39. \section{bar}
  40.  
  41. Text\pagenote{Page note.\label{test3}}
  42. Text\pagenote{See note \ref{test3}.}
  43. Text\pagenote{Another page note.\label{test4}}
  44. Text\pagenote{See note \ref{test4}.}
  45.  
  46. \end{document}
Advertisement
RAW Paste Data Copied
Advertisement