[NTG-context] Re: button

2024-09-16 Thread Henning Hraban Ramm
Am 16.09.24 um 11:41 schrieb Hans van der Meer via ntg-context: \button is defined to jump to a given reference. However, I would like to place a button that can execute a macro to be defined by myself. Thus for example pushing the button \executebutton{text}{macro} will execute that macro

[NTG-context] button

2024-09-16 Thread Hans van der Meer via ntg-context
\button is defined to jump to a given reference. However, I would like to place a button that can execute a macro to be defined by myself. Thus for example pushing the button \executebutton{text}{macro} will execute that macro. Is this available somewhere in ConTeXT? If not, can it be provided

[NTG-context] JavaScript controlled button appearance

2021-08-30 Thread Pablo Rodriguez via ntg-context
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(Sw

Re: [NTG-context] Bug in interaction and button?

2018-01-27 Thread Hans Hagen
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

[NTG-context] Bug in interaction and button?

2018-01-27 Thread Otared Kavian
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

Re: [NTG-context] How to control the placement of a button

2018-01-26 Thread Hans Hagen
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

[NTG-context] How to control the placement of a button

2018-01-25 Thread Otared Kavian
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

Re: [NTG-context] Interactionmenu not creating a button for the final page

2016-04-11 Thread Brian Ballsun-Stanton
Awesome. Thanks! On 12 April 2016 at 03:16, wrote: > > > -- > > Message: 4 > Date: Mon, 11 Apr 2016 19:05:39 +0200 > From: Hans Hagen > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] Interactionmenu not creating a button for >

Re: [NTG-context] Interactionmenu not creating a button for the final page

2016-04-11 Thread Hans Hagen
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

[NTG-context] Interactionmenu not creating a button for the final page

2016-04-11 Thread Brian Ballsun-Stanton
nput 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 a

Re: [NTG-context] Translate tooltip on button in pdf

2012-03-18 Thread Wolfgang Schuster
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][nextp

[NTG-context] Translate tooltip on button in pdf

2012-03-18 Thread 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][previouspa

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Hans Hagen
On 5-7-2011 3:28, Wolfgang Schuster wrote: Am 05.07.2011 um 15:09 schrieb Cecil Westerhof: 2011/7/5 Wolfgang Schuster 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

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Willi Egger
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

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Cecil Westerhof
2011/7/5 Willi Egger > 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

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Wolfgang Schuster
Am 05.07.2011 um 15:23 schrieb Cecil Westerhof: > 2011/7/5 luigi scarso > 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=..., constrastcol

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Wolfgang Schuster
Am 05.07.2011 um 15:09 schrieb Cecil Westerhof: > 2011/7/5 Wolfgang Schuster > > 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 p

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Willi Egger
You might set click off: \setupinteraction[click=no] Willi On 5 Jul 2011, at 15:09, Cecil Westerhof wrote: > 2011/7/5 Wolfgang Schuster > > One slight problem. The backgroundcolor is a rectangle en goes out of the > > rounded button. > > Add “backgroundcorner=round”. &g

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Cecil Westerhof
2011/7/5 luigi scarso > 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

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Cecil Westerhof
2011/7/5 Wolfgang Schuster > > 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 inversi

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Wolfgang Schuster
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

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Cecil Westerhof
2011/7/5 Wolfgang Schuster > > 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 backgroundc

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread luigi scarso
On Tue, Jul 5, 2011 at 2:11 PM, Cecil Westerhof 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 backgr

Re: [NTG-context] Changing the colors of a button

2011-07-05 Thread Wolfgang Schuster
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 background

[NTG-context] Changing the colors of a button

2011-07-05 Thread 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? Also

Re: [NTG-context] FR: Wiki: Button to include code area

2010-12-17 Thread Patrick Gundlach
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 > > > $text > > > > that should work like the link

[NTG-context] FR: Wiki: Button to include code area

2010-12-16 Thread 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 $text that should work like the link button that creates [[$text]] That would be fantastic! Thank you. -- Jonas Stein

[NTG-context] Interaction: Save-Button

2010-12-06 Thread Daniel Grycman
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. D

Re: [NTG-context] Howto add a # sign to a \button URL?

2009-05-13 Thread luigi scarso
On Wed, May 13, 2009 at 9:02 PM, Oliver Heins wrote: > Hallo Wolfgang, > > Wolfgang Schuster 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: > >

Re: [NTG-context] Howto add a # sign to a \button URL?

2009-05-13 Thread Oliver Heins
d \letterhash work? Yes, thank you. I tried to figure out where \letterhash is defined, but couldn't find it out grepping through the sources. > __ > If your question is of interest to others as well, please add an entry &

Re: [NTG-context] Howto add a # sign to a \button URL?

2009-05-13 Thread Wolfgang Schuster
Am 13.05.2009 um 19:40 schrieb Oliver Heins: Hans Hagen 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 s

Re: [NTG-context] Howto add a # sign to a \button URL?

2009-05-13 Thread Oliver Heins
Hans Hagen 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\fooc

Re: [NTG-context] Howto add a # sign to a \button URL?

2009-05-12 Thread Hans Hagen
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 | PR

[NTG-context] Howto add a # sign to a \button URL?

2009-05-12 Thread Oliver Heins
rttext \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[]{Abschic

Re: [NTG-context] button alignment question

2009-04-16 Thread Hans Hagen
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] \

[NTG-context] button alignment question

2009-04-14 Thread Alan Stone
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[tex

Re: [NTG-context] button question

2008-09-08 Thread Wolfgang Schuster
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

Re: [NTG-context] button question

2008-09-08 Thread Alan Stone
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 ? &

Re: [NTG-context] button question

2008-09-08 Thread Alan Stone
> 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

Re: [NTG-context] button question

2008-09-08 Thread Hans Hagen
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) possi

Re: [NTG-context] button question

2008-09-08 Thread Alan Stone
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: 2

[NTG-context] button question

2008-09-06 Thread Alan Stone
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

[NTG-context] button for Fullscreen

2007-05-27 Thread Héctor Palacios
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

Re: [NTG-context] Problem with \button

2005-01-14 Thread h h extern
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

[NTG-context] Problem with \button

2005-01-13 Thread François Fasoli
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

Re: [NTG-context] Re: minimal button width

2003-09-30 Thread Peter Rolf
the activation area (this is what I mean with size) of the button. For the default font (12pt) the minimal wide of an *empty* button is about 4.15mm, if you use bigger fonts this value increases. Just push the buttons (not releasing the left mouse button) in my example and you see what I

Re: [NTG-context] Re: minimal button width

2003-09-29 Thread Peter Rolf
Hans Hagen wrote: \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 Works ok here too. But this was not my example :) % interface=en output=pdftex

Re: [NTG-context] Re: minimal button width

2003-09-29 Thread Hans Hagen
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

Re: [NTG-context] Re: minimal button width

2003-09-28 Thread Peter Rolf
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|

[NTG-context] Re: minimal button width

2003-09-28 Thread Patrick Gundlach
Peter Rolf <[EMAIL PROTECTED]> writes: > Just press the buttons (not releasing the left mouse button) and you > will see... 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 u

Re: [NTG-context] Re: minimal button width

2003-09-28 Thread Peter Rolf
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

[NTG-context] Re: minimal button width

2003-09-27 Thread Patrick Gundlach
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

[NTG-context] minimal button width

2003-09-27 Thread Peter Rolf
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? % interface=en output=pdftex % \setupinteraction[state=start] \setupcolors[state=start] \starttext \setupbuttons[strut=no, offset=overlay, framecolor=green, empty