Re: [NTG-context] Fwd: Adding a parameter to a module
On 3/22/2018 9:37 AM, luigi scarso wrote:
---------- Forwarded message ---------- From: John Grasty
Date: Tue, Mar 20, 2018 at 11:56 AM Subject: [NTG-context] Adding a parameter to a module To: mailing list for ConTeXt users Hello list,
One more question. Since I could not figure the problem with the wiki article for a title, I have turned my attention to modify the t-title module for my needs. If I want to add let's say a publication location, how would I go about that?
I have copied and renamed t-title.mkvi to p-mymodule.mkvi. I have changed the formatting to suit my needs, but I can't not figure out how to add parameters. What is the connection to the t-title.xml interface file?
I don't need it done for me, but I do need just a bit of help getting going in the right direction. :-D
Thanks so much for the help and the great software!
something \setuptitle[foo=bar] \roottitleparameter{foo} \titleparameter{foo}
John Grasty ___________________________________________________________________________________ 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 -----------------------------------------------------------------
Hans, Thanks so much for the help. I'm finally beginning to wrap my head around all this. One (hopefully quick) question below:
On 22 Mar 2018, at 18:00, Hans Hagen
wrote: \roottitleparameter{foo}
\titleparameter{foo}
What is there difference between these two \roottitleparameter{foo} and \titleparameter{foo}? I searched through the source, but I'm still getting acquainted with TeX and ConTeXt. :-D Sincerely, John Grasty
On 03/23/2018 08:53 PM, John Grasty wrote:
Hans,
Thanks so much for the help. I'm finally beginning to wrap my head around all this. One (hopefully quick) question below:
On 22 Mar 2018, at 18:00, Hans Hagen
wrote: \roottitleparameter{foo}
\titleparameter{foo}
What is there difference between these two \roottitleparameter{foo} and \titleparameter{foo}? I searched through the source, but I'm still getting acquainted with TeX and ConTeXt. :-D
\framed[frame=off]{ \rootframedparameter{frame} % on : global, e.g. from \setupframed \framedparameter{frame} % off : this instance }
Sincerely, John Grasty
___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Henri Menke
-
John Grasty