[NTG-context] JavaScript controlled button appearance
Dear list, I have the following sample: \setupinteraction[state=start] \setupbodyfont[heros] \startJSpreamble varia used now function SwitchFS() { app.fs.isFullScreen = !app.fs.isFullScreen; } \stopJSpreamble \starttext \startTEXpage[offset=10pt] \goto{fs}[JS(SwitchFS{})] \stopTEXpage \stoptext How can I get that the "fs" in the text is replaced with "x" when JavaScript detects that the screen is in full screen mode? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug in interaction and button?
On 1/27/2018 11:09 AM, Otared Kavian wrote: Hi Hans, While experimenting with \button according to your suggestions, I noticed that there might be a bug somewhere between interaction and the button command: the following code (sent by you some years ago…) works fine as expected in mkii but does not work in mkiv (neither the most recent beta, nor the stable one from TeXLive 2017). The link to jump to the figure works fine, but the one to jump back (PreviousJump) does not work in mkiv. Thanks for your attention: OK %% begin go-back-tofig.tex \setupinteraction[state=start] \starttext \dorecurse {2} { See \in{figure}[fig:#1].\par \input knuth.tex \page \placefigure [here] [fig:#1] {} {\button[offset=overlay]{\externalfigure[cow.pdf]}[PreviousJump]} \input ward.tex \page} try this {\hbox{\gotobox{\externalfigure[cow.pdf]}[PreviousJump]}}% \stoptext %% end go-back-tofig.tex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Bug in interaction and button?
Hi Hans, While experimenting with \button according to your suggestions, I noticed that there might be a bug somewhere between interaction and the button command: the following code (sent by you some years ago…) works fine as expected in mkii but does not work in mkiv (neither the most recent beta, nor the stable one from TeXLive 2017). The link to jump to the figure works fine, but the one to jump back (PreviousJump) does not work in mkiv. Thanks for your attention: OK %% begin go-back-tofig.tex \setupinteraction[state=start] \starttext \dorecurse {2} { See \in{figure}[fig:#1].\par \input knuth.tex \page \placefigure [here] [fig:#1] {} {\button[offset=overlay]{\externalfigure[cow.pdf]}[PreviousJump]} \input ward.tex \page} \stoptext %% end go-back-tofig.tex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to control the placement of a button
On 1/26/2018 6:51 AM, Otared Kavian wrote: Hi all, Some years ago Wolfgang Schuster answered a question about interactive buttons placed on a page in order to navigate in a PDF document. Somehow, unfortunately, I did not keep his complete answer, but kept just an example code he sent, which I copy below. So my question is: how can one control the placement of a button created by the commands \startbut[GoToDestination] NameOfTheButton \stopbut For instance if one wishes to put a button on the bottom, or even somewhere on a page? Is it possible to give coordinates, like when one places a layer? In the example below if the layout is modified then the buttons may disappear, since they might be out of the boundaries of the predefined locations of the buttons (which are unknown to me…). Thanks in advance: OK %%% begin button-example.tex \setuppapersize[S6,S6] \setuplayout [width=13cm, rightedge=1.5cm] \setupinteraction [state=start, menu=on] \setupinteractionmenu[right] [state=start, align=middle, background=screen, frame=on, width=broad, style=bold, color=] \startinteractionmenu[right] \startbut[content]$\leftarrow$ \stopbut % this button is too high on the page \vfill \startbut[index] $\rightarrow$ \stopbut % this button should be a little bit lower \stopinteractionmenu \starttext \completecontent \showframe \dorecurse{4} {\chapter{Chapter #1}\index{chapter #1} \input knuth \index{Knuth}\page} \completeindex \stoptext %%% end button-example.tex maybe \button does the job (you can put it in a layer) and \interactionmenu[right] will place a whole menu - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] How to control the placement of a button
Hi all, Some years ago Wolfgang Schuster answered a question about interactive buttons placed on a page in order to navigate in a PDF document. Somehow, unfortunately, I did not keep his complete answer, but kept just an example code he sent, which I copy below. So my question is: how can one control the placement of a button created by the commands \startbut[GoToDestination] NameOfTheButton \stopbut For instance if one wishes to put a button on the bottom, or even somewhere on a page? Is it possible to give coordinates, like when one places a layer? In the example below if the layout is modified then the buttons may disappear, since they might be out of the boundaries of the predefined locations of the buttons (which are unknown to me…). Thanks in advance: OK %%% begin button-example.tex \setuppapersize[S6,S6] \setuplayout [width=13cm, rightedge=1.5cm] \setupinteraction [state=start, menu=on] \setupinteractionmenu[right] [state=start, align=middle, background=screen, frame=on, width=broad, style=bold, color=] \startinteractionmenu[right] \startbut[content]$\leftarrow$ \stopbut % this button is too high on the page \vfill \startbut[index] $\rightarrow$ \stopbut % this button should be a little bit lower \stopinteractionmenu \starttext \completecontent \showframe \dorecurse{4} {\chapter{Chapter #1}\index{chapter #1} \input knuth \index{Knuth}\page} \completeindex \stoptext %%% end button-example.tex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Interactionmenu not creating a button for the final page
Awesome. Thanks! On 12 April 2016 at 03:16, <ntg-context-requ...@ntg.nl> wrote: > > > -- > > Message: 4 > Date: Mon, 11 Apr 2016 19:05:39 +0200 > From: Hans Hagen <pra...@wxs.nl> > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] Interactionmenu not creating a button for > the final page > Message-ID: <570bd963.4050...@wxs.nl> > Content-Type: text/plain; charset=utf-8; format=flowed > > On 4/11/2016 9:47 AM, Brian Ballsun-Stanton wrote: > > > it seems that the interactionmenu doesn't have a button for the final > > page. I'm assuming I did something wrong, but I'm not quite sure what it > > is. > > it's a bug in subpages (reference needs page offset) ... fixed in next > upload > > Hans > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl > - > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Interactionmenu not creating a button for the final page
On 4/11/2016 9:47 AM, Brian Ballsun-Stanton wrote: it seems that the interactionmenu doesn't have a button for the final page. I'm assuming I did something wrong, but I'm not quite sure what it is. it's a bug in subpages (reference needs page offset) ... fixed in next upload Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Interactionmenu not creating a button for the final page
Given the following code: \enableregime [utf] > \mainlanguage [en] > \definepapersize[sheet][width=1280px, height=960px] > \setuppapersize[sheet][sheet] > \setupexternalfigures[directory={img, > /home/ubuntu/EGU2016-Presentation, > /home/ubuntu/ConTeXt/img}] > \usemodule[simplefonts] > \setmainfont[Adventor][expansion=quality,protrusion=quality] > \setupcolors[state=start] > \definecolor[faimsblue][h=1B3E93] > \definecolor[faimsorange][h=F68E1E] > \setuphead[section][placehead=yes, page=yes, number=no, align=middle, > style={\setupbodyfont[40pt]}] > > \setuplayout[ > backspace=.01\pagewidth, > header=0pt, > footer=.02\pageheight, > topspace=.185\pageheight, > cutspace-.1\pagewidth, > width=.87\pagewidth, > height=.798\pageheight, > bottomspace=.8cm, > bottom=12pt > ] > \setuppagenumbering[location=] > \setupinteraction > [page=yes, >color=faimsblue, >contrastcolor=faimsorange, >menu=on, >state=start] > \setupsubpagenumber > [way=bytext, >state=start] > \startinteractionmenu[bottom] > {\interactionbar[alternative=f,width=\makeupwidth,height=2ex]} > \stopinteractionmenu > \starttext > \input knuth > \section{section 1} > \input knuth > > \section{section 2} > \input knuth > > > \section{section 3} > \input knuth > > > \section{section 4} > \input knuth > \stoptext (used in a real presentation: http://context.fedarch.org/Context/presentation.pdf with environment at https://github.com/FAIMS/EGU2016-Presentation/blob/master/envpresentation.tex ) it seems that the interactionmenu doesn't have a button for the final page. I'm assuming I did something wrong, but I'm not quite sure what it is. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Translate tooltip on button in pdf
Hello how to change the tooltipps from english First page to german Erste Seite? \setupinteraction[state=start] \starttext \button {\scale[height=2em] {\symbol[navigation 1][nextpage]}} [NextPage] \page \button {\scale[height=2em] {\symbol[navigation 1][previouspage]}} [PreviousPage] \page \stoptext Regards Jannis -- Better organization and integration of all ConTeXT-information: http://wiki.contextgarden.net/Category:ConTeXt All information arround ConTeXt http://wiki.contextgarden.net/Category:Commands Commands !!! new: One-Click from every command in the wiki to the rich resources of the ConTeXt-mailinglist ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Translate tooltip on button in pdf
Am 18.03.2012 um 19:08 schrieb Jan Heinen: Hello how to change the tooltipps from english First page to german Erste Seite? \setupinteraction[state=start] \starttext \button {\scale[height=2em] {\symbol[navigation 1][nextpage]}} [NextPage] \page \button {\scale[height=2em] {\symbol[navigation 1][previouspage]}} [PreviousPage] \page \stoptext I think the texts are generated from your PDF viewer because Reader.app on the Mac shows for me “Zur nächsten Seite” on the first page and “Zur vorherigen Seite” on the second page but with Adobe Reader I don’t get any tooltips. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Changing the colors of a button
I am trying the following: \button[backgroundcolor=darkgray,framecolor=black,framecorner=round]{Go Back}[PreviousJump] The parameter framecolor works (I tried it with green). Framecorner works also, but backgroundcolor not. How can I change the background and text color of the button? Also would it not be better when clicking on this button, the highlighting also works with rounded corners? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
Am 05.07.2011 um 14:11 schrieb Cecil Westerhof: I am trying the following: \button[backgroundcolor=darkgray,framecolor=black,framecorner=round]{Go Back}[PreviousJump] The parameter framecolor works (I tried it with green). Framecorner works also, but backgroundcolor not. How can I change the background and text color of the button? ...,background=color,backgroundcolor=darkgray,color=NAME,... Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
On Tue, Jul 5, 2011 at 2:11 PM, Cecil Westerhof cldwester...@gmail.com wrote: I am trying the following: \button[backgroundcolor=darkgray,framecolor=black,framecorner=round]{Go Back}[PreviousJump] The parameter framecolor works (I tried it with green). Framecorner works also, but backgroundcolor not. How can I change the background and text color of the button? As wolfgang said this works with mkii and mkiv \setupcolors[state=start] \setupinteraction[state=start] \starttext \button[background=color,backgroundcolor=darkgray,framecolor=black,framecorner=round]{Go Back}[PreviousJump] \stoptext Search for \setupinteraction for the color of the link Also would it not be better when clicking on this button, the highlighting also works with rounded corners? with mkiv it is --- but not the background. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
2011/7/5 Wolfgang Schuster schuster.wolfg...@googlemail.com I am trying the following: \button[backgroundcolor=darkgray,framecolor=black,framecorner=round]{Go Back}[PreviousJump] The parameter framecolor works (I tried it with green). Framecorner works also, but backgroundcolor not. How can I change the background and text color of the button? ...,background=color,backgroundcolor=darkgray,color=NAME,... Works. I now have: \button[ background=color, backgroundcolor=darkgray, color=white, framecolor=black, framecorner=round, rulethickness=2pt] {Go Back} [PreviousJump] and this does what I want. One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
Am 05.07.2011 um 14:47 schrieb Cecil Westerhof: One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button. Add “backgroundcorner=round”. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
2011/7/5 Wolfgang Schuster schuster.wolfg...@googlemail.com One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button. Add “backgroundcorner=round”. Overlooked it. Now added. But did not solve my problem. What I mend is that when I click on the button, the inversion is done for the rectangle. So the button is displayed correctly with rounded corners, but when clicking on the button, the inversion goes out of the button because the complete rectangle is inverted. I would like to have the part outside of the rounded button not inverted. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
2011/7/5 luigi scarso luigi.sca...@gmail.com Search for \setupinteraction for the color of the link I know I want a lot ;-} but would it be possible to have another color for the highlighting as 'normal' links? At the moment 'normal' links are blue and I do not mind that in the buttons they are blue also, but when in the future this changes, it would be nice to know how to change it. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
You might set click off: \setupinteraction[click=no] Willi On 5 Jul 2011, at 15:09, Cecil Westerhof wrote: 2011/7/5 Wolfgang Schuster schuster.wolfg...@googlemail.com One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button. Add “backgroundcorner=round”. Overlooked it. Now added. But did not solve my problem. What I mend is that when I click on the button, the inversion is done for the rectangle. So the button is displayed correctly with rounded corners, but when clicking on the button, the inversion goes out of the button because the complete rectangle is inverted. I would like to have the part outside of the rounded button not inverted. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
Am 05.07.2011 um 15:09 schrieb Cecil Westerhof: 2011/7/5 Wolfgang Schuster schuster.wolfg...@googlemail.com One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button. Add “backgroundcorner=round”. Overlooked it. Now added. But did not solve my problem. What I mend is that when I click on the button, the inversion is done for the rectangle. So the button is displayed correctly with rounded corners, but when clicking on the button, the inversion goes out of the button because the complete rectangle is inverted. I would like to have the part outside of the rounded button not inverted. I don’t think this is supported but when you’re not satisfied with the result you can disable the visual effect with \setupinteraction[click=no]. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
Am 05.07.2011 um 15:23 schrieb Cecil Westerhof: 2011/7/5 luigi scarso luigi.sca...@gmail.com Search for \setupinteraction for the color of the link I know I want a lot ;-} but would it be possible to have another color for the highlighting as 'normal' links? \setupinteraction [color=..., constrastcolor=...] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
2011/7/5 Willi Egger w.eg...@boede.nl You might set click off: \setupinteraction[click=no] But then I would loose the visual feed back. I have to decide what I find worse. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
Probably you will have to group the buttons in order to be able to use \setupinteraction[color=yourcolor] You could think about using setups: \startsetups XX \bgroup \setupinteraction[color=yourcolor] \button ... \egroup \stopsetups I used this recently. Okay I used a layer for the buttons, so it is convenient to use setups to organize things. In my case I placed the buttons in the footer area so I could use the \setupfootertexts[background=TheLayer] and the buttons placed with \setlayerframed I hope this might help Willi On 5 Jul 2011, at 15:23, Cecil Westerhof wrote: 2011/7/5 luigi scarso luigi.sca...@gmail.com Search for \setupinteraction for the color of the link I know I want a lot ;-} but would it be possible to have another color for the highlighting as 'normal' links? At the moment 'normal' links are blue and I do not mind that in the buttons they are blue also, but when in the future this changes, it would be nice to know how to change it. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
On 5-7-2011 3:28, Wolfgang Schuster wrote: Am 05.07.2011 um 15:09 schrieb Cecil Westerhof: 2011/7/5 Wolfgang Schusterschuster.wolfg...@googlemail.com One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button. Add “backgroundcorner=round”. Overlooked it. Now added. But did not solve my problem. What I mend is that when I click on the button, the inversion is done for the rectangle. So the button is displayed correctly with rounded corners, but when clicking on the button, the inversion goes out of the button because the complete rectangle is inverted. I would like to have the part outside of the rounded button not inverted. I don’t think this is supported but when you’re not satisfied with the result you can disable the visual effect with \setupinteraction[click=no]. Wolfgang: (1) uncomment the first \protect \endinput in scrn-fld.mkvi (2) fix the \appendtoks at the end of the file Then this seems to work (converted mkii code but untested): \setupinteraction[state=start] \definepushbutton [reset] \startuniqueMPgraphic{whatever}{color} fill fullcircle xysized (OverlayWidth,OverlayHeight) withcolor \MPvar{color} ; \stopuniqueMPgraphic \definepushsymbol [reset] [n] [\uniqueMPgraphic{whatever}{color=red}] \definepushsymbol [reset] [r] [\uniqueMPgraphic{whatever}{color=green}] \definepushsymbol [reset] [d] [\uniqueMPgraphic{whatever}{color=blue}] \starttext \startTEXpage \pushbutton [reset] [page(2)] \stopTEXpage \startTEXpage \pushbutton [reset] [page(1)] \stopTEXpage \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] FR: Wiki: Button to include code area
Am 17.12.2010 um 06:38 schrieb Jonas Stein: My Featurerequest for the Wiki: in some wikis its possible to enhance the buttons in the edit window with own tags. I would suggest to add context source=yes $text /context that should work like the link button that creates [[$text]] That would be fantastic! Thank you. Please put me (or gardeners at contextgarden.net) in cc: for things related to the contextgarden.net server. However: I have no schedule for the next contextgarden.net maintenance yet, so it might take some time. Patrick ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] FR: Wiki: Button to include code area
My Featurerequest for the Wiki: in some wikis its possible to enhance the buttons in the edit window with own tags. I would suggest to add context source=yes $text /context that should work like the link button that creates [[$text]] That would be fantastic! Thank you. -- Jonas Stein n...@jonasstein.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Interaction: Save-Button
Hi list, how can I put a save button (with fdf functionality) in the pdf using interaction? I didn't find anything about it in the documentation. And I am still searching for a functional solution for sending pdf data via mail using the submit button. Daniel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Howto add a # sign to a \button URL?
Hans Hagen pra...@wxs.nl writes: Oliver Heins wrote: Hallo, I try to send a message from a pdf to a webserver. This works fine, unless the URL has a `#' in it. Then TeX throws an error: does \# work? No, this leads to the following error (which is the same I get when doing a \noexpand\foochar{}, where \foochar is \edefed as {\char 35}): , | ! Missing \endcsname inserted. | to be read again |\# | argument ...Form{http://mydomain.test/formular\# | fdf,Shortline} | \dodoexpandreferences ... \specialREFidentifier #1 | \endcsname \edef \expanded... | | \doexpandreferences ...ences #1REF(\relax )\relax | \...@eaeaea \doexpandreferenc... | | \expandreferences ...count \doexpandreferences #1, | ], | \doifreferencefoundelse ... \expandreferences {#1} | \egroup \doresetgotowheree... | ... | l.17 ...://mydomain.test/formular\#fdf,Shortline}] ` Best regards, oll -- Oliver Heins o...@sopos.orgF27A BA8C 1CFB B905 65A8 http://www.sopos.org/olli/ 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Howto add a # sign to a \button URL?
Am 13.05.2009 um 19:40 schrieb Oliver Heins: Hans Hagen pra...@wxs.nl writes: Oliver Heins wrote: Hallo, I try to send a message from a pdf to a webserver. This works fine, unless the URL has a `#' in it. Then TeX throws an error: does \# work? No, this leads to the following error (which is the same I get when doing a \noexpand\foochar{}, where \foochar is \edefed as {\char 35}): Did \letterhash work? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Howto add a # sign to a \button URL?
On Wed, May 13, 2009 at 9:02 PM, Oliver Heins o...@sopos.org wrote: Hallo Wolfgang, Wolfgang Schuster schuster.wolfg...@googlemail.com writes: Oliver Heins wrote: Hallo, I try to send a message from a pdf to a webserver. This works fine, unless the URL has a `#' in it. Then TeX throws an error: Did \letterhash work? Yes, thank you. I tried to figure out where \letterhash is defined, but couldn't find it out grepping through the sources. maybe in catc-sym.tex at line 27 ? .catcode `.# 12 .xdef .letterhashB.string#E -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Howto add a # sign to a \button URL?
Hallo, I try to send a message from a pdf to a webserver. This works fine, unless the URL has a `#' in it. Then TeX throws an error: ! Illegal parameter number in definition of \!!stringa I tried to work around it with \edef'ing a \doublecross macro which expands to \char35, but this did not work. I also tried some extensive use of \noexpand and \expandafter, but it failed, too. Obviously, there's some \csname...\endcsname stuff going on when creating the URL. TIA, olli Here's a minimal example: \setupcolors[state=start] \setupinteraction[state=start] \starttext \definefield[shorttext] [line] [ShortLine] [] [] \setupfield [ShortLine] [label,frame,horizontal] [frame=off] [height=18pt,width=15em,align=middle,frame=off] [height=18pt,width=20em,align=right,style=\tfx,,frame=on] \field[shorttext][Bitte geben Sie einen Text ein:] \blank \button[]{Abschicken}[SubmitForm{http://mydomain.test/formular#fdf,Shortline}] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Howto add a # sign to a \button URL?
Oliver Heins wrote: Hallo, I try to send a message from a pdf to a webserver. This works fine, unless the URL has a `#' in it. Then TeX throws an error: does \# work? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] button alignment question
Alan Stone wrote: Hi, How do you keep the footer buttons between the footer's top and bottom ? \showframe \def\myHeaderButton{\interactionbuttons[width=2cm,height=\headerheight][OK]} \def\myFooterButton{\interactionbuttons[width=2cm,height=\footerheight][OK]} \setupinteraction[state=start] \setupheadertexts[text][aaa][aaa] \setupheadertexts[margin][\myHeaderButton][\myHeaderButton] \setupfootertexts[text][ppp][ppp] \setupfootertexts[margin][\myFooterButton][\myFooterButton] \starttext test \stoptext \setupfooter[before=\vfill,after=\vfill] or alternatively use the menus and top/bottom areas - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] button alignment question
Hi, How do you keep the footer buttons between the footer's top and bottom ? \showframe \def\myHeaderButton{\interactionbuttons[width=2cm,height=\headerheight][OK]} \def\myFooterButton{\interactionbuttons[width=2cm,height=\footerheight][OK]} \setupinteraction[state=start] \setupheadertexts[text][aaa][aaa] \setupheadertexts[margin][\myHeaderButton][\myHeaderButton] \setupfootertexts[text][ppp][ppp] \setupfootertexts[margin][\myFooterButton][\myFooterButton] \starttext test \stoptext Thanks, Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] button question
From setup-en.pdf ... What is \nextSECTION ? Best, Alan On Mon, Sep 8, 2008 at 2:06 PM, Alan Stone [EMAIL PROTECTED] wrote: not available currently Another feature request. Best, Alan On Mon, Sep 8, 2008 at 1:37 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: On Fri, Sep 5, 2008 at 9:20 AM, Alan Stone [EMAIL PROTECTED] wrote: Which ref in \button{text}[ref,ref,...] ( or \interactionbuttons ) allows to jump to the previous/next chapter ? Is this (currently) possible ? not available currently -- Best, Alan * using ConTeXt ver: 2008.08.18 14:00 MKIV fmt: 2008.8.22 int: english/english (on Windows XP) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] button question
Alan Stone wrote: On Fri, Sep 5, 2008 at 9:20 AM, Alan Stone [EMAIL PROTECTED] wrote: Which ref in \button{text}[ref,ref,...] ( or \interactionbuttons ) allows to jump to the previous/next chapter ? Is this (currently) possible ? not available currently - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] button question
not available currently Another feature request. Best, Alan On Mon, Sep 8, 2008 at 1:37 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: On Fri, Sep 5, 2008 at 9:20 AM, Alan Stone [EMAIL PROTECTED] wrote: Which ref in \button{text}[ref,ref,...] ( or \interactionbuttons ) allows to jump to the previous/next chapter ? Is this (currently) possible ? not available currently ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] button question
On Mon, Sep 8, 2008 at 2:39 PM, Alan Stone [EMAIL PROTECTED] wrote: From setup-en.pdf ... What is \nextSECTION ? Nothing for users, use \setupheadnumber instead. \starttext \section{One} \getvalue{nextsection-3} \section{Three} \stoptext \starttext \section{One} \setupheadnumber[section][+1] \section{Three} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] button question
On Fri, Sep 5, 2008 at 9:20 AM, Alan Stone [EMAIL PROTECTED] wrote: Which ref in \button{text}[ref,ref,...] ( or \interactionbuttons ) allows to jump to the previous/next chapter ? Is this (currently) possible ? -- Best, Alan * using ConTeXt ver: 2008.08.18 14:00 MKIV fmt: 2008.8.22 int: english/english (on Windows XP) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] button question
Which ref in \button{text}[ref,ref,...] allows to jump to the previous/next chapter ? -- Best, Alan * using ConTeXt ver: 2008.08.18 14:00 MKIV fmt: 2008.8.22 int: english/english (on Windows XP) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] button for Fullscreen
Hi context'users Please, i need a button for FullScreen mode. \but [FullScreen] Pantalla-completa but this not works. Thanks in avance. -- Héctor ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \button
François Fasoli wrote: I have found the following somewhere in the documentation. \button{...}[the chapter on whatever] \button{...}[otherdoc::some topic] \button{...}[previouspage] \button{...}[PreviousJump] I have tried them : all run very well except \button{...}[otherdoc::some topic] How can I replace some topic to indicate a chapter in otherdoc or a page ? you need to register the otherdoc by using \useexternaldocument hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problem with \button
I have found the following somewhere in the documentation. \button{...}[the chapter on whatever]\button{...}[otherdoc::some topic]\button{...}[previouspage]\button{...}[PreviousJump] I have tried them : all run very well except \button{...}[otherdoc::some topic] How can I replace some topic to indicate a chapter in otherdoc or a page ? Thank you. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: minimal button width
At 13:09 28/09/2003 +0200, you wrote: Patrick Gundlach wrote: Hello Peter, with your code + \button[width=2.5mm, height=2.5mm]{Please, print me!}[test] \button[width=2.5mm, height=2.5mm]{Not this time!}[test] one value should be 25mm for a better example I get two empty square buttons which look about 2.5 mm wide and high. I could send you a screenshot or the resulting pdf file. I tried the ConTeXt version 2003.9.24. But maybe I don't understand your question. Patrick Just press the buttons (not releasing the left mouse button) and you will see... \starttext \setupinteraction[state=start] \button[width=25mm, height=25mm]{Please, print me!}[firstpage] \button[width=25mm, height=25mm]{Not this time!}[firstpage] \stoptext works ok here Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: minimal button width
Patrick Gundlach wrote: Hello Peter, with your code + \button[width=2.5mm, height=2.5mm]{Please, print me!}[test] \button[width=2.5mm, height=2.5mm]{Not this time!}[test] one value should be 25mm for a better example I get two empty square buttons which look about 2.5 mm wide and high. I could send you a screenshot or the resulting pdf file. I tried the ConTeXt version 2003.9.24. But maybe I don't understand your question. Patrick Just press the buttons (not releasing the left mouse button) and you will see... Greetings, Peter ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: minimal button width
Patrick Gundlach wrote: Just to confirm: in normal state I see a small button. When pressing the mouse button I see the area of the button inverted but with more width than actually used, but the height looks fine. +---+xxx+---+ | | becomes xxx|xxx| +---+xxx+---+ confirmation granted; nice ascii example! What you see is not only the inverted but the whole size of the button. You can activate this button in this visible area (and that's my problem). where xx is inverted. But this happens (in your example) only with the 2.5 mm width. The 25 mm wide button is OK. Yep! The 2.5mm wide button is smaller than the minimum given through the actual font size, while the 25mm wide button is not. If I for example use \switchtobodyfont[5pt] in front of the button definition, I can get a 2.5mm wide button. Sorry for irritating you, but the function of a button is not to rule a frame. ;-) Regards, Peter ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: minimal button width
Peter Rolf [EMAIL PROTECTED] writes: I want some small empty buttons with exact dimensions. Is there a way to do this with \button or must I use fields (ughh) instead? Hello Peter, with your code + \button[width=2.5mm, height=2.5mm]{Please, print me!}[test] \button[width=2.5mm, height=2.5mm]{Not this time!}[test] I get two empty square buttons which look about 2.5 mm wide and high. I could send you a screenshot or the resulting pdf file. I tried the ConTeXt version 2003.9.24. But maybe I don't understand your question. Patrick -- You are your own rainbow! ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context