Hello, I'm working on an extension of tooltips (see attached file) whose primary goal is for use "instead of" footnotes in interactive documents. While I managed to write the core of the stuff in a rather short time, I need some changes in the core to make sure they work fully as designed. In particular, I need two things: (1) a way to disable counter increments during trial typesetting (2) a way to define "classes" of frames, with specific options to be set (once and for all, but configurable by the user) independently of the frame settings. (Just like for itemgroups). Could these be implemented in the ConTeXt core? -- Giuseppe "Oblomov" Bilotta P.S. A short notice on how I use them: \usemodule[xtips] \long\def\footnote#1{% \long\def\fncontent{% \tf\switchtobodyfont[xx]\setupinterlinespace#1\par}% \xtooltip{\blue\high{*}}{\fncontent}% } Suggestions for improvements are more than welcome
On Thu, 17 Oct 2002 19:06:12 +0200
Giuseppe Bilotta
Hello,
I'm working on an extension of tooltips (see attached file) whose primary goal is for use "instead of" footnotes in interactive documents.
Suggestions for improvements are more than welcome
I really would like to see this feature as part of the core: \setupfootnotes[...,location=tooltip,...] This way one can use the normal \footnote command for a print and interactive version of a document. Jens
On Thursday, October 17, 2002, at 07:52 PM, Jens-Uwe Morawski wrote:
I'm working on an extension of tooltips (see attached file) whose primary goal is for use "instead of" footnotes in interactive documents.
Suggestions for improvements are more than welcome
I really would like to see this feature as part of the core: \setupfootnotes[...,location=tooltip,...]
This way one can use the normal \footnote command for a print and interactive version of a document.
I agree. I was thinking about this issue recently with HTML (why bother putting footnote/endnote text at the end of a page when you can put it in a tooltip?). It might (?) be worthwhile to also have an option for tooltip display of bibliographic references as well... Bruce
Friday, October 18, 2002 Jens-Uwe Morawski wrote:
JUM> On Thu, 17 Oct 2002 19:06:12 +0200
JUM> Giuseppe Bilotta
Hello,
I'm working on an extension of tooltips (see attached file) whose primary goal is for use "instead of" footnotes in interactive documents.
Suggestions for improvements are more than welcome
JUM> I really would like to see this feature as part of the core: JUM> \setupfootnotes[...,location=tooltip,...] JUM> This way one can use the normal \footnote command for a print JUM> and interactive version of a document. There are at least three things that need to be done to add this to the core in a fully ConTeXtish way: (1) add frame classes (2) add tooltip classes (3) have footnotes accept "tooltip" as an option Something which might also be needed is a more complex "show" command for the tip, so that it always shows on screen (if it fits). I don't know if this can be done though, and it surely has a lower priority than the above three. Hans? -- Giuseppe "Oblomov" Bilotta
On Fri, 18 Oct 2002 15:04:10 +0200
Giuseppe Bilotta
Friday, October 18, 2002 Jens-Uwe Morawski wrote:
JUM> On Thu, 17 Oct 2002 19:06:12 +0200 JUM> Giuseppe Bilotta
wrote: Hello,
I'm working on an extension of tooltips (see attached file) whose primary goal is for use "instead of" footnotes in interactive documents.
Suggestions for improvements are more than welcome
JUM> I really would like to see this feature as part of the core: JUM> \setupfootnotes[...,location=tooltip,...]
JUM> This way one can use the normal \footnote command for a print JUM> and interactive version of a document.
There are at least three things that need to be done to add this to the core in a fully ConTeXtish way:
(1) add frame classes
if you mean something like \defineframed[<name>] \setupframed[<name>][...] \<name>{..text..} then i think this on the wish list of many ConteXt users. Commands that currently support framed-parameters could then support a parameter framedclass=<name>
(2) add tooltip classes
in the other mail-thread we agree that for tooltips the whole word should be an active area. IMO, this is not the best solution. If we can use tooltips for footnotes or bib-entries in the future, those elements will show a mark/symbol in the text, but for normal tooltips the problem is that nothing shows the reader of the document that there is a tooltip available. I think it is not a common practice to read a document and scan constantly the words with the pointing device. Thus, there should be also for normal tooltips a symbol or something else that indicates the tooltip. Best, Jens
Saturday, October 19, 2002 Jens-Uwe Morawski wrote:
(1) add frame classes
JUM> if you mean something like JUM> \defineframed[<name>] JUM> \setupframed[<name>][...] JUM> \<name>{..text..} JUM> then i think this on the wish list of many ConteXt users. JUM> Commands that currently support framed-parameters could then JUM> support a parameter framedclass=<name> That's exactly what I mean.
(2) add tooltip classes
JUM> in the other mail-thread we agree that for tooltips the whole word JUM> should be an active area. IMO, this is not the best solution. If we JUM> can use tooltips for footnotes or bib-entries in the future, those JUM> elements will show a mark/symbol in the text, but for normal tooltips JUM> the problem is that nothing shows the reader of the document that JUM> there is a tooltip available. I think it is not a common practice to JUM> read a document and scan constantly the words with the pointing JUM> device. Thus, there should be also for normal tooltips a symbol or JUM> something else that indicates the tooltip. If we have tooltip classes, these options (including size and fitting of the active area to the content) could be configured per class. -- Giuseppe "Oblomov" Bilotta
At 02:31 PM 10/19/2002 +0200, Giuseppe Bilotta wrote:
Saturday, October 19, 2002 Jens-Uwe Morawski wrote:
(1) add frame classes
JUM> if you mean something like JUM> \defineframed[<name>] JUM> \setupframed[<name>][...] JUM> \<name>{..text..}
JUM> then i think this on the wish list of many ConteXt users. JUM> Commands that currently support framed-parameters could then JUM> support a parameter framedclass=<name>
That's exactly what I mean.
ah, and i thought that you were reading sources -) but you've missed this one: there is actually something \defineframed already, also for local purposes there are \presetlocalframed and \localframed used all around context Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl 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 -------------------------------------------------------------------------
Sunday, October 20, 2002 Hans Hagen wrote:
(1) add frame classes
JUM> if you mean something like JUM> \defineframed[<name>] JUM> \setupframed[<name>][...] JUM> \<name>{..text..}
JUM> then i think this on the wish list of many ConteXt users. JUM> Commands that currently support framed-parameters could then JUM> support a parameter framedclass=<name>
That's exactly what I mean.
HH> ah, and i thought that you were reading sources -) but you've missed this HH> one: there is actually something \defineframed already, also for local HH> purposes there are \presetlocalframed and \localframed used all around context Hey mister, I *do* read the sources 8D but I just happen to not be able to keep all of them in mind at the same time 8D I'll have a look at this. Also, what about tooltip-like things? -- Giuseppe "Oblomov" Bilotta
On Sun, 20 Oct 2002 18:51:21 +0200
Hans Hagen
At 02:31 PM 10/19/2002 +0200, Giuseppe Bilotta wrote:
Saturday, October 19, 2002 Jens-Uwe Morawski wrote:
(1) add frame classes
JUM> if you mean something like JUM> \defineframed[<name>] JUM> \setupframed[<name>][...] JUM> \<name>{..text..}
JUM> then i think this on the wish list of many ConteXt users. JUM> Commands that currently support framed-parameters could then JUM> support a parameter framedclass=<name>
That's exactly what I mean.
ah, and i thought that you were reading sources -) but you've missed this one: there is actually something \defineframed already, also for local purposes there are \presetlocalframed and \localframed used all around context
Giuseppe has the advantage to be able to read the sources, but not me. Can you please give a short summary about how the macros you mentioned can be used. I've tried the interface: \defineframed[<name>] \setupframed[<name>][...] \<name>{..text..} but besides \defineframed it is not working. Thanks. Jens
Monday, October 21, 2002 Jens-Uwe Morawski wrote: JUM> Giuseppe has the advantage to be able to read the sources, but not me. JUM> Can you please give a short summary about how the macros you mentioned JUM> can be used. I've tried the interface: JUM> \defineframed[<name>] JUM> \setupframed[<name>][...] JUM> \<name>{..text..} JUM> but besides \defineframed it is not working. Indeed it seems \setupframed does not accept <name>s, and \setup<name> does not exist either. It seems to work with \defineframedtext, though. Hans, what's the difference between the two? -- Giuseppe "Oblomov" Bilotta
The \setupframed doesnt work precisely this way. Here is a 'real life' example: \defineframed[warning] [background=color, backgroundcolor=red, frame=on] \setupcolors[state=start] \starttext \warning{Look out!} \stoptext On Mon, 21 Oct 2002 13:46:58 +0200, Jens-Uwe wrote:
Giuseppe has the advantage to be able to read the sources, but not me. Can you please give a short summary about how the macros you mentioned can be used. I've tried the interface: \defineframed[<name>] \setupframed[<name>][...] \<name>{..text..}
but besides \defineframed it is not working.
Thanks. Jens _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context
-- groeten, Taco
On Mon, 21 Oct 2002 15:31:38 +0200
Taco Hoekwater
The \setupframed doesnt work precisely this way.
Grmmph. :)
Here is a 'real life' example: \defineframed[warning] [background=color, backgroundcolor=red, frame=on] \setupcolors[state=start]
\starttext \warning{Look out!} \stoptext
Many thanks. Best, Jens
participants (5)
-
Bruce D'Arcus
-
Giuseppe Bilotta
-
Hans Hagen
-
Jens-Uwe Morawski
-
Taco Hoekwater