/ startparagraphs
Command/ startparallel
Command/ startplacefloat
Command/ startplacepairedbox
Command/ startsection
Command/ startsectionblock
Command/ startstartstop
Command/ startstop
Command/ startstyle
Command/ starttabulate
Command/ starttextbackground
Command/ starttyping
Command/ startviewerl
orts JS to control OCGs
(\overlayrollbutton in the MWE)
Hraban
\setupinteraction[state=start]% needed for JS
\defineviewerlayer[Gebuesch][
state=stop,
]
\defineviewerlayer[Versteck]
\setupviewerlayer[Versteck][ % doesn’t work
state=stop,
]
\starttext
Hier fängt der Wald an.
\startviewerlaye
You can also consider using viewerlayer:
\setupinteraction[state=start]
\defineviewerlayer[solution]
\setupcolors[state=start]
\usecolors[xwi]
\definecolor[keyColor][1.0(maroon)]
\starttext
\startitemize[n]
\but[ToggleLayer{solution}]
\samplefile{tufte}
\blank[big]
\startviewerlayer
=no]
>
> \starttext
> \startviewerlayer[view]\color[red]{\TeX}\stopviewerlayer%
> \startviewerlayer[print]\llap{\ConTeXt}\stopviewerlayer%
>
> \input zapf
> \stoptext
>
> If the layer with \llap is placed last, disabling the view layer
> disables
Hi Hans,
this comes from a previous message about an issue with \llap and layers.
Here is the sample:
\defineviewerlayer[print][state=stop,printable=yes]
\defineviewerlayer[view][state=start,printable=no]
\starttext
\startviewerlayer[view]\color[red]{\TeX}\stopviewerlayer
ere you have a minimal sample:
\setupinteractionscreen[option=layer]
\defineviewerlayer[blue]
\starttext
\startviewerlayer[blue]
%~ Previous comment.
\color[blue]{\llap{This is print.}}
\stopviewerlayer
\stoptext
Uncommenting the first line maker everything ok.
Co
]
\def\viewcolor#1#2{%
\startviewerlayer[view]\color[#1]{#2}\stopviewerlayer%
\startviewerlayer[print]\llap{#2}\stopviewerlayer%
}
\starttext
Hi!
\viewcolor{red}{This is only red on screen}.
More text.
\stoptext
ntable=yes,]
\defineviewerlayer[view][state=start,printable=no,]
\starttext
\startviewerlayer[view]{first}
\samplefile{knuth}
\startviewerlayer[print]{second}
\stoptext
missing \stop's there .. the next at first sight looks ok here so what
version are you running?
\nopdfcompression
\define
than \viewerlayer:
\defineviewerlayer[print][state=stop,printable=yes,]
\showallmakeup
\starttext
\startviewerlayer[print]
And then:
\stopviewerlayer
\samplefile{knuth}
\stoptext
Rather than two independent layers, the print layer (along with other
content) belongs to the view laye
\defineviewerlayer[Ebene]
\setupviewerlayer[Ebene][
state=start,
visible=no,
title=Test,
]
\starttext
Text
\startviewerlayer[Ebene]
{\bfa TOP SECRET}
\stopviewerlayer
More Text
\stoptext
AFAIK completely undocumented, I found them at
http://source.contextgarden.net/tex/context/bas
TeXt:
\defineviewerlayer[Ebene]
\setupviewerlayer[Ebene][
state=start,
visible=no,
title=Test,
]
\starttext
Text
\startviewerlayer[Ebene]
{\bfa TOP SECRET}
\stopviewerlayer
More Text
\stoptext
AFAIK completely undocumented, I found them at
http://source.contextgarden.net/tex/context/b
ntable=yes,state=stop]
> \defineviewerlayer[notvisibleandnotprint][printable=no, state=stop]
>
> \setupinteraction[state=start]
>
> \starttext
>
> \startviewerlayer[visibleandprint] visible and print \stopviewerlayer
> \blank
> \startviewerlayer[visibleandnotprint]
> > Optional" in the PDF Reference 1.7 available at
> > >
http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_reference_1-7.pdf
> > >
> > > I cannot find anything on the Wiki nor in the ntg-context emails and
> > > grepping through
able at
> > >
http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_reference_1-7.pdf
> > >
> > > I cannot find anything on the Wiki nor in the ntg-context emails and
> > > grepping through the source code for "ocg" does not give rea
xt emails and
grepping through the source code for "ocg" does not give reasonable
results.
You have to look for \defineviewerlayer and \startviewerlayer.
A quick test if your pdf viewer supports is is:
\showlayo
rence_1-7.pdf>
>
> I cannot find anything on the Wiki nor in the ntg-context emails and grepping
> through the source code for "ocg" does not give reasonable results.
You have to look for \defineviewerlayer and \startviewerlayer.
Wolfgang
__
\defineviewerlayer[visibleandprint] [printable=yes,state=start]
> \defineviewerlayer[visibleandnotprint] [printable=no, state=start]
> \defineviewerlayer[notvisibleandprint] [printable=yes,state=stop]
> \defineviewerlayer[notvisibleandnotprint][printable=no, state=stop]
][printable=no, state=stop]
\setupinteraction[state=start]
\starttext
\startviewerlayer[visibleandprint] visible and print
\stopviewerlayer \blank
\startviewerlayer[visibleandnotprint]visible and not print
\stopviewerlayer \blank
\startviewerlayer[notvisibleandprint]not visible and
because you can only hide the background together with the text
\setupbackgrounds[page][background=PageBackground]
\setupviewerlayer[printable=no]
\defineviewerlayer[mylayer]
%\showlayoutcomponents % use this to enable/disable certain text areas
\starttext
\input knuth
\startviewerlayer[mylayer]
\input
> can show and hide this layer in acrobat, but it always opens up
> hidden. I am also not sure how to place the letterhead exactly on the
> page using this method.
>
> Any suggestions?
In MkIV \startproperty is obsolete and you should use \startviewerlayer:
\defineviewer
t least this
> implementation has more potential
>
> - the properties mechanism is obsolete and replaced by three mechanism that
> used them (originally properties dealt with specific engine/backend
> functionality); the most important ones are
>
> \defineviewerlayer[name][options]
&
and replaced by three mechanism that
> used them (originally properties dealt with specific engine/backend
> functionality); the most important ones are
>
> \defineviewerlayer[name][options]
> \startviewerlayer[name]\stopviewerlayer
> \viewerlayer[name]{...}
>
> and
>
&
at least this
implementation has more potential
- the properties mechanism is obsolete and replaced by three mechanism
that used them (originally properties dealt with specific engine/backend
functionality); the most important ones are
\defineviewerlayer[name][options]
\startviewerlayer[name
23 matches
Mail list logo