Re: [NTG-context] \page[blank], \page[header]
On Thu, 06 Jun 2013 16:16:42 +0200, Aditya Mahajan wrote: Perhaps, \page[nobackground] which will suppress all background elements. +1 I also think that `noheader`and `nofooter` are better keywords than `header` and `footer` to indicate that header and footer are suppressed. +1 "header" and "footer" could stay so far due to compatibility reasons, with a "deprecation" and future removal message. Lukas Aditya -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] How to hack the lua files
I have a version of context standalone installed, and I am trying to add some functionality I need to strc-ref.lua. As a simple test to see if modifying the file was working, I enabled the 'structures.referencing.identifying' tracker and verified that I was getting messages from this tracker in the log. I then modified the log statement in strc-ref.lua and processed the document again. The changes I made to the lua file did not seem to be active. I verified that there is only one log statement that matches the output I am seeing. Why would my lua code change not be active? Is the lua code cached somehow? (I am running this from windows if that matters). The code I modified is under the path: context\tex\texmf-context\tex\context\base\ strc-ref.lua -Lance Larsen ___ 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] Side-by-side framed text blocks
On 2013–06–07 honyk wrote: > thanks for this. I removed that framed=off option and it turned out to be > sligthly different from what I'd like to achieve. > > My goal is to have two blocks with a vertical gap between them and to have > these blocks framed (or with the colored background) at the text area - > without the cell spans - to show differences between the standard and > 'hanging' alignments (that right border should cross the punctuation in the > hanging mode). > > Below each 'column' I'd like to place a short description (centered) - > exactly as on the referenced examples. Use a combination for that: \setuptolerance [verytolerant] \setupframed [offset=none, width=8cm, frame=off, background=screen] \definefontfeature [default] [default] [protrusion=pure] \starttext \startcombination \startcontent \startframed [align=normal] \input knuth \stopframed \stopcontent \startcaption Some description \stopcaption \startcontent \startframed [align={normal,hanging}] \input knuth \stopframed \stopcontent \startcaption Some description \stopcaption \stopcombination \stoptext Marco signature.asc Description: Digital signature ___ 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] Side-by-side framed text blocks
On Fri, 7 Jun 2013, honyk wrote: Dear Marco, I'd like to type two blocks of text with different 'align' settings side by side. Here's one way to do it: \setupframed [offset=1ex, width=8cm, frame=off] \starttext \placesidebyside {\startframed[align={normal,left}] \input knuth\par\stopframed} {\startframed[align={normal,right}] \input knuth\par\stopframed} \stoptext Marco thanks for this. I removed that framed=off option and it turned out to be sligthly different from what I'd like to achieve. My goal is to have two blocks with a vertical gap between them and to have these blocks framed (or with the colored background) at the text area - without the cell spans - to show differences between the standard and 'hanging' alignments (that right border should cross the punctuation in the hanging mode). Below each 'column' I'd like to place a short description (centered) - exactly as on the referenced examples. \startcombination? http://wiki.contextgarden.net/Command/startcombination Aditya ___ 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] Side-by-side framed text blocks
Dear Marco, > > I'd like to type two blocks of text with different 'align' settings > side by > > side. > > Here's one way to do it: > > \setupframed > [offset=1ex, >width=8cm, >frame=off] > > \starttext > \placesidebyside > {\startframed[align={normal,left}] \input knuth\par\stopframed} > {\startframed[align={normal,right}] \input knuth\par\stopframed} > \stoptext > > Marco thanks for this. I removed that framed=off option and it turned out to be sligthly different from what I'd like to achieve. My goal is to have two blocks with a vertical gap between them and to have these blocks framed (or with the colored background) at the text area - without the cell spans - to show differences between the standard and 'hanging' alignments (that right border should cross the punctuation in the hanging mode). Below each 'column' I'd like to place a short description (centered) - exactly as on the referenced examples. Jan ___ 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] Side-by-side framed text blocks
On 2013–06–06 honyk wrote: > I'd like to type two blocks of text with different 'align' settings side by > side. Here's one way to do it: \setupframed [offset=1ex, width=8cm, frame=off] \starttext \placesidebyside {\startframed[align={normal,left}] \input knuth\par\stopframed} {\startframed[align={normal,right}] \input knuth\par\stopframed} \stoptext Marco signature.asc Description: Digital signature ___ 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] Side-by-side framed text blocks
Dear All, I'd like to type two blocks of text with different 'align' settings side by side. A desired output can be found e.g. in examples 1.9-1.10 in http://www.pragma-ade.com/general/manuals/style.pdf Here blocks have a background instead of frames though. Both variants are acceptable for me. I am lost in various text box, framing or columns switches and unable to create something similar. Thanks, Jan ___ 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] \define with more than 9 parameters??
Am 06.06.2013 um 09:56 schrieb Jaroslav Hajtmar : > Hello ConTeXist. > Is there in ConTeXt any dirty trick, which can put more than 9 parameters > into macro? > > I mean for example \define[25]\macrowithtwentyfiveparams{ } There are a few tricks when you need more then nine parameters but it’s better to use a different method to pass argument from one command to another. Better and more readable solutions are intermediate commands for each value or assignment lists (a=x,b=y,…). > I use rarely any trick from Peter Olsak (see below) and I'd like something > like that used in ConTeXt. > > Thanx > Jaroslav Hajtmar > > Here is minimal example of trick of Petr Olsak: > > \newcount\tempnum > \def\terminator{*} > \newcount\tempnum > \def\readparameters{\tempnum=0\let\next=\readone \next} > \def\readone #1,{\advance\tempnum by 1 \def\param{#1}% >%\the\tempnum - \param\par% >\ifx\param\terminator \let\next=\relax >\else\expandafter\gdef\csname param\the\tempnum\endcsname{#1}% >\fi\next} > > > \def\moreparameters#1{% > \readparameters #1 % > \csname param1\endcsname, % write first parameter > \csname param3\endcsname, % write third parameter > \csname param5\endcsname, % write fifth parameter > } > > > \starttext > > %\readparameters a,b,c,d,e,f,g,h,i,j,k,m,n,o,*, % > %\def\parameters{aaa,,,,e,f,g,*,} > %\expandafter\readparameters\parameters > > \moreparameters{a,b,c,d,e,f,g,h,i,j,k,m,n,o,*,} > > \stoptext Can be simplified with \processcommalist: \starttext \def\domoreparameters#1% {\advance\scratchcounter\plusone \setvalue{param\number\scratchcounter}{#1}} \def\moreparameters[#1]% {\scratchcounter\zerocount \processcommalist[#1]\domoreparameters} \moreparameters[a,b,c,d,e,f,g,h,i,j,k,m,n,o] \getvalue{param1}, \getvalue{param2}, \getvalue{param3} \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \page[blank], \page[header]
On Thu, 6 Jun 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, just an idea: \page[header] and \page[blank] suppresses temporarily header defined by \setupheadertexts. But, when header is underlined by \setupbackgrounds[header][text][bottomframe=on], this frame (rule) is not cancelled - it still appears on the (blank) page. Wouldn't be good that \page[header] and \page[blank] disable header & footer frames (rules), too? Maybe another keyword for \page would be handy for this purpose, e.g. \page[Header], \page[HEADER], \page[BLANK]. Perhaps, \page[nobackground] which will suppress all background elements. I also think that `noheader`and `nofooter` are better keywords than `header` and `footer` to indicate that header and footer are suppressed. Aditya___ 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] \page[blank], \page[header]
Hello, just an idea: \page[header] and \page[blank] suppresses temporarily header defined by \setupheadertexts. But, when header is underlined by \setupbackgrounds[header][text][bottomframe=on], this frame (rule) is not cancelled - it still appears on the (blank) page. Wouldn't be good that \page[header] and \page[blank] disable header & footer frames (rules), too? Maybe another keyword for \page would be handy for this purpose, e.g. \page[Header], \page[HEADER], \page[BLANK]. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] Indenting in \setuplines
Dnia 2013-06-06, o godz. 09:49:27 Hans Hagen napisał(a): > On 6/6/2013 12:36 AM, Marcin Borkowski wrote: > > > Sorry to say that, but neither seems to work... > > it is hard to say what goes wrong if you only show the error message > and no real code Sorry for that, my fault. Now comes the fun part: I *copied* my code from "my" version of spac-hor.mkiv to the document, and it started to work then! Strange. I attach a MWE. Hans, is it possible to add something like that to spac-hor.mkiv? (This code is not very nice, there's some duplication, but it's simple and works;).) cut here \unprotect \installindentingmethod{oddpairs}{\c_spac_indentation_toggle_state\plusthree} \installindentingmethod{evenpairs}{\c_spac_indentation_toggle_state\plusfour} \newcount \c_spac_par_modulo_four \def\spac_indentation_evenpairs_toggle {% \advance \c_spac_par_modulo_four \plusone \ifnum \c_spac_par_modulo_four=4 \c_spac_par_modulo_four=0 \fi \ifcase \c_spac_par_modulo_four \global\indentationtrue \or \global\indentationfalse \spac_indentation_remove \or \global\indentationfalse \spac_indentation_remove \or \global\indentationtrue \fi } \def\spac_indentation_oddpairs_toggle {% \advance \c_spac_par_modulo_four \plusone \ifnum \c_spac_par_modulo_four=4 \c_spac_par_modulo_four=0 \fi \ifcase \c_spac_par_modulo_four \global\indentationfalse \spac_indentation_remove \or \global\indentationtrue \or \global\indentationtrue \or \global\indentationfalse \spac_indentation_remove \fi } \def\spac_indentation_check_toggle {\ifcase\c_spac_indentation_toggle_state % nothing \or% odd \spac_indentation_no_toggle \or% even \spac_indentation_do_toggle \or% oddpairs \global\let\checkindentation\spac_indentation_oddpairs_toggle \or% evenpairs \global\let\checkindentation\spac_indentation_evenpairs_toggle \fi} \protect \setupindenting[yes,1em] \starttext \startlines[indenting=evenpairs] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. \stoplines \stoptext cut here > Hans Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] \define with more than 9 parameters??
Hello ConTeXist. Is there in ConTeXt any dirty trick, which can put more than 9 parameters into macro? I mean for example \define[25]\macrowithtwentyfiveparams{ } I use rarely any trick from Peter Olsak (see below) and I'd like something like that used in ConTeXt. Thanx Jaroslav Hajtmar Here is minimal example of trick of Petr Olsak: \newcount\tempnum \def\terminator{*} \newcount\tempnum \def\readparameters{\tempnum=0\let\next=\readone \next} \def\readone #1,{\advance\tempnum by 1 \def\param{#1}% %\the\tempnum - \param\par% \ifx\param\terminator \let\next=\relax \else\expandafter\gdef\csname param\the\tempnum\endcsname{#1}% \fi\next} \def\moreparameters#1{% \readparameters #1 % \csname param1\endcsname, % write first parameter \csname param3\endcsname, % write third parameter \csname param5\endcsname, % write fifth parameter } \starttext %\readparameters a,b,c,d,e,f,g,h,i,j,k,m,n,o,*, % %\def\parameters{aaa,,,,e,f,g,*,} %\expandafter\readparameters\parameters \moreparameters{a,b,c,d,e,f,g,h,i,j,k,m,n,o,*,} \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting in \setuplines
On 6/6/2013 12:36 AM, Marcin Borkowski wrote: Sorry to say that, but neither seems to work... it is hard to say what goes wrong if you only show the error message and no real code Hans - 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 ___
[NTG-context] 7th Context Meeting, Brejlov, Czech Republic
Hello to everybody! We are glad to announce the registration for the 7th International Context Meeting is now open. http://meeting.contextgarden.net/2013 Early-bid registration is available till June 30, 2013. If in doubts, check the impressions from the 4th Context Meeting at Brejlov in 2010. http://meeting.contextgarden.net/2010/impressions.shtml Even if you cannot join us during the conference and use the advantaged fee for the members of the Context Group, it is a convenient time to become a member. The conference proceedings are going to be the regular issue of the Context Group journal later this year. http://group.contextgarden.net/ We are looking forward to meeting you in Brejlov. Best regards, Jano Kula on behalf of the organizing committee http://meeting.contextgarden.net/2013 ___ 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 ___