Re: [NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"
Thomas, thank you for your solution. It works. Hraban, I tried your suggestion, but it does not work. See new attached MWE. Best regards Marcus Vinicius MWE.pdf Description: Adobe PDF document MWE.tex Description: TeX document ___ 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] textext with plain MetaFun
> You should see the text at the bottom left. > It seems that there is a string _s_ not initialized. If I remove all _s_ in mp-text.mpii, metafun test.mp worked for hobbiestextext := true; beginfig(1) draw textext("MetaFun") ; endfig; end. Best, Akira ___ 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] Changes \setuphead
Otared Kavian schrieb am 21.01.19 um 12:08: Hi Ursula, If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number: \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setuppagenumbering[state=stop] \page[empty] or \page[header,footer,right] 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changes \setuphead
Ursula Hermann schrieb am 21.01.19 um 11:26: I have a question: how can I have a empty page before the next chapter without a page number? Do I have to write: \page =empty. ? When your goal is to remove header and footer lines from the empty page before the start of the chapter without a fancy left page you can use \setuphead [chapter] [page={yes,header,footer,right}] 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changes \setuphead
Hi Otared Thank you, that helped. I have tried the example, as written. Ursula Hermann -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Otared Kavian Gesendet: Montag, 21. Jänner 2019 12:08 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Changes \setuphead Hi Ursula, If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number: \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setuppagenumbering[state=stop] \setupbackgrounds[page][background=color,backgroundcolor=gray] \page[right] \setuppagenumbering[state=start] \popbackground} \stopsetups However probably there is a better way to achieve what you want… Best regards: OK > On 21 Jan 2019, at 11:26, Ursula Hermann wrote: > > Hello List! > > It is a long time ago, that I have written the last mail to you. > Thank you Taco so much, because for the new example of the Recent changes > from 17.January 2019. Because: Modyfying the page before a chapter is > something, that i can need. I mean this one: > > % next five lines just to show the effect on this wiki > \setuppapersize[A8][A5,landscape] \setuppaper[nx=4, ny=2] > \setuplayout[page][location=middle, marking=on] \setuparranging [XY] > \setupbodyfont[6pt] > > % actual example starts here > \setuppagenumbering > [alternative=doublesided] > > \startsetups [chapter:before] > \doifoddpageelse > {} > {\pushbackground[page] > \setupbackgrounds[page][background=color,backgroundcolor=gray] > \page[right] > \popbackground} > \stopsetups > > \setuphead > [chapter] > [page=yes, >before=\directsetup{chapter:before}] > > \starttext > > \startchapter[title={Knuth}] > \dorecurse{2}{\samplefile{knuth}} > \stopchapter > > \startchapter[title={Ward}] > \dorecurse{1}{\samplefile{ward}} > \stopchapter > > \startchapter[title={Zapf}] > \dorecurse{2}{\samplefile{zapf}} > \stopchapter > > > \stoptext > > I have a question: how can I have a empty page before the next chapter > without a page number? Do I have to write: \page =empty. ? > > Ursula Hermann > > > __ > _ 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 > __ > _ ___ 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 ___ ___ 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] Changes \setuphead
Hi Ursula, If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number: \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setuppagenumbering[state=stop] \setupbackgrounds[page][background=color,backgroundcolor=gray] \page[right] \setuppagenumbering[state=start] \popbackground} \stopsetups However probably there is a better way to achieve what you want… Best regards: OK > On 21 Jan 2019, at 11:26, Ursula Hermann wrote: > > Hello List! > > It is a long time ago, that I have written the last mail to you. > Thank you Taco so much, because for the new example of the Recent changes > from 17.January 2019. Because: Modyfying the page before a chapter is > something, that i can need. I mean this one: > > % next five lines just to show the effect on this wiki > \setuppapersize[A8][A5,landscape] > \setuppaper[nx=4, ny=2] > \setuplayout[page][location=middle, marking=on] > \setuparranging [XY] > \setupbodyfont[6pt] > > % actual example starts here > \setuppagenumbering > [alternative=doublesided] > > \startsetups [chapter:before] > \doifoddpageelse > {} > {\pushbackground[page] > \setupbackgrounds[page][background=color,backgroundcolor=gray] > \page[right] > \popbackground} > \stopsetups > > \setuphead > [chapter] > [page=yes, >before=\directsetup{chapter:before}] > > \starttext > > \startchapter[title={Knuth}] > \dorecurse{2}{\samplefile{knuth}} > \stopchapter > > \startchapter[title={Ward}] > \dorecurse{1}{\samplefile{ward}} > \stopchapter > > \startchapter[title={Zapf}] > \dorecurse{2}{\samplefile{zapf}} > \stopchapter > > > \stoptext > > I have a question: how can I have a empty page before the next chapter > without a page number? Do I have to write: \page =empty. ? > > Ursula Hermann > > > ___ > 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 > ___ ___ 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] Changes \setuphead
Hello List! It is a long time ago, that I have written the last mail to you. Thank you Taco so much, because for the new example of the Recent changes from 17.January 2019. Because: Modyfying the page before a chapter is something, that i can need. I mean this one: % next five lines just to show the effect on this wiki \setuppapersize[A8][A5,landscape] \setuppaper[nx=4, ny=2] \setuplayout[page][location=middle, marking=on] \setuparranging [XY] \setupbodyfont[6pt] % actual example starts here \setuppagenumbering [alternative=doublesided] \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=gray] \page[right] \popbackground} \stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth}] \dorecurse{2}{\samplefile{knuth}} \stopchapter \startchapter[title={Ward}] \dorecurse{1}{\samplefile{ward}} \stopchapter \startchapter[title={Zapf}] \dorecurse{2}{\samplefile{zapf}} \stopchapter \stoptext I have a question: how can I have a empty page before the next chapter without a page number? Do I have to write: \page =empty. ? Ursula Hermann ___ 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] textext with plain MetaFun
On Mon, Jan 21, 2019 at 10:47 AM Henri Menke wrote: > On 1/21/19 10:40 PM, luigi scarso wrote: > > On Mon, Jan 21, 2019 at 8:57 AM Henri Menke > wrote: > > > >> Dear list, > >> > >> When I process the short MetaFun example > >> > >> beginfig(1) > >> draw textext("MetaFun") ; > >> endfig; > >> end > >> > >> with plain MetaFun, i.e. > >> > >> mpost '&metafun' test.mp > >> > >> > > what does > > $> mpost -mem=metafun '\relax; tracingall; input test.mp;' > > say ? > > Log is attached. > hm. # cat test.mp hobbiestextext := true; beginfig(1) draw textext("MetaFun") ; endfig; end # mpost -interaction=batchmode -mem=metafun '\relax; input test.mp;' # gs test.1 You should see the text at the bottom left. It seems that there is a string _s_ not initialized. -- 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] textext with plain MetaFun
On 1/21/19 10:40 PM, luigi scarso wrote: > On Mon, Jan 21, 2019 at 8:57 AM Henri Menke wrote: > >> Dear list, >> >> When I process the short MetaFun example >> >> beginfig(1) >> draw textext("MetaFun") ; >> endfig; >> end >> >> with plain MetaFun, i.e. >> >> mpost '&metafun' test.mp >> >> > what does > $> mpost -mem=metafun '\relax; tracingall; input test.mp;' > say ? Log is attached. > > > ___ > 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 > ___ > This is MetaPost, version 2.00 (TeX Live 2018) (kpathsea version 6.3.0) 21 JAN 2019 22:45 **\relax; tracingall; input test.mp; (/usr/local/texlive/2018/texmf-dist/metapost/context/base/common/metafun.mp (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/metafun.mpii (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-base.mpii Preloading the plain mem file, version 1.004 for metafun ii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-tool.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-spec.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-core.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-page.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-text.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-txts.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-shap.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-butt.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-char.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-step.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-grph.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-figs.mpii) (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-grid.mpii (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-form.mpii (/usr/local/texlive/2018/texmf-dist/metapost/base/string.mp) (/usr/local/texlive/2018/texmf-dist/metapost/base/marith.mp (/usr/local/texlive/2018/texmf-dist/metapost/base/string.mp (/usr/local/texlive/2018/texmf-dist/metapost/context/base/mpii/mp-func.mpii))) {tracingtitles:=1} {tracingequations:=1} {tracingcapsules:=1} {tracingspecs:=2} {tracingchoices:=1} {tracinglostchars:=1} {tracingstats:=1} {tracingoutput:=1} {tracingmacros:=1} {tracingrestores:=1} {input} (./test.mp beginfig(EXPR0)->_fig_nesting_:=_fig_nesting_+1;if._fig_nesting_=1:begingroup.c harcode:=(EXPR0);resetfig;scantokens.extra_beginfig;fi; (EXPR0)<-1 {(0)+(1)} {_fig_nesting_:=1} ## _fig_nesting_=1 {if} {(1)=(1)} {true} {begingroup} {charcode:=1} resetfig->clearxy;clearit;clearpen;pickup.defaultpen;interim.linecap:=linecap;i nterim.linejoin:=linejoin;interim.miterlimit:=miterlimit;save._background_;colo r._background_;_background_:=background;save.background;color.background;backgr ound:=_background_;drawoptions(); clearxy->if.false.for$:=(TEXT0):or.true.endfor:forsuffixes$:=(TEXT0):x$:= whatever;y$:=whatever;endfor;else:save.x,y;fi (TEXT0)<- {if} {false} {for} {false} {save} {fi} clearit->currentpicture:=nullpicture {nullpicture} {currentpicture:=picture} clearpen->currentpen:=nullpen;pen_lft:=pen_rt:=pen_top:=pen_bot:=0;path.current pen_path; {nullpen} {currentpen:=pen} {pen_bot:=0} {pen_top:=0} {pen_rt:=0} {pen_lft:=0} {path} pickup->if.numeric(EXPR0):numeric_pickup_.else:pen_pickup_.fi(EXPR0) (EXPR0)<-1 {if} {numeric(1)} {true} numeric_pickup_->if.unknown.pen_[(EXPR0)]:errmessage"Unknown pen";clea rpen.else:currentpen:=pen_[(EXPR0)];pen_lft:=pen_lft_[(EXPR0)];pen_rt:=pen_rt_[ (EXPR0)];pen_top:=pen_top_[(EXPR0)];pen_bot:=pen_bot_[(EXPR0)];currentpen_path: =pen_path_[(EXPR0)]fi; {else} (EXPR0)<-1 {if} {unknown(pen)} {false} {currentpen:=pen} {pen_lft:=-0.25} {pen_rt:=0.25} {pen_top:=0.25} {pen_bot:=-0.25} {fi} {currentpen_path:=unknown path pen_path_1} {interim} {linecap:=1} {interim} {linejoin:=1} {interim} {miterlimit:=10} {save} {color} {_background_:=(1,1,1)} ## bluepart _background_=1 ## greenpart _background_=1 ## redpart _background_=1 {save} {color} {background:=(1,1,1)} ## bluepart background=1 ## greenpart background=1 ## redpart background=1 drawoptions(TEXT0)->def._op_=(TEXT0)enddef (TEXT0)<- {def} {scantokens} {true} {insidefigure:=true} reset_extra_specials->begingroup._local_specials_:="";endgroup (SUFFIX0)<- (SUFFIX1)<-reset_extra_specials {begingroup} {_local_specials_:=""} {endgroup} {truecorners:=0} {miterlimit:=10} {linejoin:=
Re: [NTG-context] textext with plain MetaFun
On Mon, Jan 21, 2019 at 8:57 AM Henri Menke wrote: > Dear list, > > When I process the short MetaFun example > > beginfig(1) > draw textext("MetaFun") ; > endfig; > end > > with plain MetaFun, i.e. > > mpost '&metafun' test.mp > > what does $> mpost -mem=metafun '\relax; tracingall; input test.mp;' say ? -- 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] textext with plain MetaFun
The following always worked for me: \starttext \startMPpage .. metapost code .. \stopMPpage \stoptext and delivered from a ConTeXt-run a separate pdf. dr. Hans van der Meer > On 21 Jan 2019, at 09:43, Henri Menke wrote: > > On 1/21/19 9:29 PM, Hans Hagen wrote: >> On 1/21/2019 8:57 AM, Henri Menke wrote: >>> Dear list, >>> >>> When I process the short MetaFun example >>> >>> beginfig(1) >>> draw textext("MetaFun") ; >>> endfig; >>> end >>> >>> with plain MetaFun, i.e. >>> >>> mpost '&metafun' test.mp >>> >>> the resulting file only contains “unknown”. How can I get the expected >>> output? >> context foo.mp >> >> (in mkii one could use mptopdf but i have no interest in figuring out >> some pure metapost solution when we can do the job with simple wrapping >> in mkiv as mentioned) > > I tried > >mpost '&metafun' test.mp >mptopdf test.1 > > and now I have a PDF which says “unknown“. Maybe I didn't understand > what you meant. > > Cheers, Henri > >> >> Hans >> >> >> - >> 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 > ___ ___ 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] textext with plain MetaFun
On 1/21/19 9:29 PM, Hans Hagen wrote: > On 1/21/2019 8:57 AM, Henri Menke wrote: >> Dear list, >> >> When I process the short MetaFun example >> >> beginfig(1) >> draw textext("MetaFun") ; >> endfig; >> end >> >> with plain MetaFun, i.e. >> >> mpost '&metafun' test.mp >> >> the resulting file only contains “unknown”. How can I get the expected >> output? > context foo.mp > > (in mkii one could use mptopdf but i have no interest in figuring out > some pure metapost solution when we can do the job with simple wrapping > in mkiv as mentioned) I tried mpost '&metafun' test.mp mptopdf test.1 and now I have a PDF which says “unknown“. Maybe I didn't understand what you meant. Cheers, Henri > > Hans > > > - > 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 ___
Re: [NTG-context] textext with plain MetaFun
On 1/21/2019 8:57 AM, Henri Menke wrote: Dear list, When I process the short MetaFun example beginfig(1) draw textext("MetaFun") ; endfig; end with plain MetaFun, i.e. mpost '&metafun' test.mp the resulting file only contains “unknown”. How can I get the expected output? context foo.mp (in mkii one could use mptopdf but i have no interest in figuring out some pure metapost solution when we can do the job with simple wrapping in mkiv as mentioned) Hans - 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 ___