An OCG (Optional Content Group in a PDF document) is a section that can be selectively viewed or hidden. This functionality is useful in items such as CAD drawings, layered artwork, maps...

learn more… | top users | synonyms

9
votes
1answer
137 views

Include PDF with OCGs

I want to avoid to recompile large tikz graphics and therefore I compile them as a standalone pdf file. This file contains some OCG layers which I want to use in the main file, but the OCG layer are ...
8
votes
2answers
296 views

“Smart commenting” in LaTeX

Is there any package that lets me insert "smart comments" in a LaTeX document? What I mean by "smart commenting": I have a source (.tex) file of notes of the lecture that happened in the classroom. ...
1
vote
0answers
56 views

Confused visibility of PDF layers when restoring from fullscreen mode

one of may colleagues observed that the visibility of some PDF layers may (unreasonably) change when the document restores from Fullscreen mode. Steps to reproduce: Open the file ...
6
votes
1answer
146 views

fold/unfold sections to expand in PDF

Is there a way to fold/unfold certain sections in a pdf. Only when the user clicks on the section or plus sign the items show up. Example: user clicks on the plus sign and the items appear as drop ...
4
votes
3answers
187 views

Typeset two styles of the same text over top each other

So the goal of this exercise is to have text that can be displayed via the ocg-p package in two distinct styles depending on the OCG layer that is in effect (similar to this question/answer). The ...
3
votes
0answers
120 views

How to invert a PDF using OCG/Layers?

I am creating a PDF that is designed for viewing on Screens/Tablets, and uses white Text on black background. Since some readers might want to print it, and I want to avoid to create a second PDF, I ...
4
votes
1answer
92 views

Can I automatically split an ocg environment over page breaks

I want to display ocgs in a pdf and use the ocgx package to achieve this. Sometimes the content I have in the environment is so long it needs a page break. This is incompatible with the ocg system and ...
5
votes
0answers
160 views

Replace ocgtools' ocgpicture with ocgx [closed]

Since ogctools isn't working for me with TexLive2013, I try to rebuild its command \ocgpicture which shows a picture and by clicking on this it is show in full size. By clicking on the big picture it ...
6
votes
1answer
142 views

ogctools in combination with beamer

I try to use ocgtools in a beamer presentation, which worked for me some time ago. But now (TeXLive 2013) this seems not wo work anymore. As soon as I include the ocgtool package there are errors ...
6
votes
1answer
185 views

Incompatibility of the ocg-p package with the ocgcolorlinks option of the hyperref package

When I use the option ocgcolorlinks of the hyperref package together with the package ocg-p (MiKTeX + pdflatex), it looks like the ocgcolorlinks option becomes not working anymore (independently of ...
5
votes
2answers
266 views

How to disappear text or figures by printing?

As you know, the option ocgcolorlinks of the hyperref package disables colors of all links presented in a PDF file by printing it from Adobe Reader (and by compiling with e.g. pdflatex); as a result, ...
6
votes
1answer
180 views

How to carry long text of \href to the next line while ocgcolorlinks is present?

This simplest code \documentclass[a4paper]{book} \usepackage[ocgcolorlinks]{hyperref} \begin{document} \href{"some URL"}{"long text"} \end{document} by compiling with pdflatex puts the "long ...
16
votes
1answer
342 views

Features that could not be replicated on paper (e.g. animation, tooltips)

While browsing this site, I was surprised to find that TeX allows one to produce various kinds of output that could not be represented on paper. For example, one has animation ( How can we draw ...
6
votes
1answer
167 views

How to use pdf:bann and pdf:eann into a tikz node?

(This question follows up How to emulate \pdfstartlink and \pdfendlink with xetex?) Note: I used the last CVS version of TikZ/PGF. With xelatex, I would like to create annotations in tikz nodes. ...
5
votes
1answer
337 views

PDF Layers (OCG) using latex->dvips

I want to generate a ps file with layers. Ocg.sty does not support ps, so I want to write a simple example by myself to see if its possible. I took a pdf version from here and tried to change the ...
6
votes
3answers
426 views

parindent in TikZ node

I'm playing around with the new ocgx package. It uses TikZ nodes to place text. Unfortunately, parindent does not work in the nodes. Is there a way to make it work? Edit (source code) ...
17
votes
2answers
840 views

PDF Layers (OCG) using xelatex

I am switching from pdflatex to xelatex and have trouble finding an alternative on how to do layers in the pdf. So far I have been using ocg.sty to separate relevant content from eye-candy content ...
11
votes
1answer
2k views

Breaking links and escaping characters in bibliographies with backlinks and ocgcolorlinks set

I have the following situation: I have to use the ocgcolorlinks option in hyperref, so that links are not broken. So I had the idea to set each char as a link with \href. After putting some code ...