I'm using TeXLive with OSX/Mac, and building with latexmk
. I need three (3) vertical lines spanning the entire page (inside the margins), and one (1) vertical line of numbers 1 through 28 (inside the margin -- manually typed, not auto line numbering). The internet searches I found relating to my error messages ("Non-PDF special ignored!") discussed putting a [pdf]
between usepackage and pstricks (i.e., \usepackage[pdf]{pstricks}
, or adding \usepackage{auto-pst-pdf}
. And, to use a command line of pdflatex -shell-escape <file>
or pdflatex -enable-write18 <file>
.
Well, I've tried every combination I could think of in terms of using a command line with the suggested options, and I've tried varying the above packages -- all to no avail. The document sometimes builds correctly (even with the error messages); however, sometimes the *.pdf has errors in the region of the marginnotes. Any ideas on how to eliminate the error messages, and build the document correctly?
\documentclass{article}
\usepackage[top=1in, bottom=.65in, left=1in, right=.5in, marginparwidth=8mm, marginparsep=5mm]{geometry}
\usepackage{ifpdf}
\ifpdf
\usepackage{auto-pst-pdf}
\else
\usepackage{pstricks}
\fi
\usepackage{eso-pic}
\usepackage{calc}
\usepackage{setspace}
\doublespacing
\usepackage{lipsum}
\usepackage{marginnote}
\renewcommand*{\raggedleftmarginnote}{\centering}
\reversemarginpar
\newcommand{\pleading}{\marginnote{\doublespacing 1 \\ 2 \\ 3 \\ 4 \\ 5 \\ 6 \\ 7 \\ 8 \\ 9 \\ 10 \\ 11 \\ 12 \\ 13 \\ 14 \\ 15 \\ 16 \\ 17 \\ 18 \\ 19 \\ 20 \\ 21 \\ 22 \\ 23 \\ 24 \\ 25 \\ 26 \\ 27 \\ 28} }
% BEGIN left and right vertical lines, and marginnote.
\newlength{\leftruleA}
\setlength{\leftruleA}{3.2\leftmargin-\marginparsep}
\newlength{\leftruleB}
\setlength{\leftruleB}{3.0\leftmargin-\marginparsep}
\newlength{\rightrule}
\setlength{\rightrule}{2.6\leftmargin+\textwidth+\marginparsep}
\AddToShipoutPicture{%
\AtPageLowerLeft{%
\put(\LenToUnit{\leftruleA},0){\rule{1pt}{\paperheight}} % First rule on the left
\put(\LenToUnit{\leftruleB},0){\rule{1pt}{\paperheight}} % Second rule on the left
\put(\LenToUnit{\rightrule},0){\rule{1pt}{\paperheight}} % Rule on the right
\rput(1,25.23){\pleading} % second numeric figure is the top positioning of the marginnote.
}
}
% END left and right vertical lines, and marginnote.
\begin{document}
\lipsum[1-15]
\end{document}