I needed to forcibly place some origami fold marks in absolute locations on the page. This seemed like a useful pkg for at least some of the objects:

\usepackage[absolute]{textpos}

The problem is that it clobbers/ignores the ocg environment. E.g.

\textblockorigin{-18pt}{0mm}
\setlength{\TPHorizModule}{1mm}\setlength{\TPVertModule}{1mm}
\begin{ocg}{region boundaries}{rb}{on}
\begin{textblock*}{0pt}(0mm,0.5\paperheight) {\color{green}\rule[0.5ex]{\hmgn}{1pt}} \end{textblock*}
\begin{textblock*}{0pt}(\paperwidth-\hmgn,0.5\paperheight) {\color{green}\rule[0.5ex]{0.5\paperwidth-0.25\paperheight}{1pt}} \end{textblock*}
\begin{textblock*}{0pt}(\paperwidth-\hmgn,0.5\paperheight) {\color{green}\rule{1pt}{0.5\paperheight-\hmgn}} \end{textblock*}
\begin{textblock*}{0pt}(\hmgn,\hmgn) {\color{green}\rule{1pt}{0.5\paperheight-\hmgn}} \end{textblock*}
\end{ocg}

It would probably work if a \begin{ocg}… were nested inside of every single \begin{textblock*}, but fuck that.

The textpos docs mention that care is taken to put the objects into the background and that the overlay option can be used to put the stuff on top. I thought that might be a hack to get it to respect the ocg environment, but no. It does not work.

no comments (yet)

sorted by: hot top controversial new old
there doesn't seem to be anything here