Re: [NTG-context] Title of parts
Hi Eric, If you use either \part{This is part 1} or \startpart[title={This part 2}] \startchapter[title={This is chapter 1}] \stopchapter \stoppart you get a title for part 1 and part 2. Best regards: OK On 30 Aug 2015, at 11:42, Eric Détrez i...@eric-detrez.fr wrote: By default \part generates no title because most of the times these require special attention and a specific design. I can't find how to write such a specific design. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___ ___ 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] Bug with the command \blank ?
Hi, It seems there is a bug with the command \blank in the latest standalone context. If you compile with ConTeXt (texlive 2015), the result is as expected. Thank you, Fabrice \setuppagenumbering[location=] \setupcolors [state=start] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \definecolor[MyColorC][c=0.3, m=0.00, y=0.00, k=0.05] \defineframedtext [MyDefinition] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ; b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; fill OverlayBox withcolor \MPcolor{MyColorA} ; fill b withcolor \MPcolor{MyColorC} ; draw p ; \stopuseMPgraphic \starttext \startchapter [title={Chapter one}] \startMyDefinition \input knuth \stopMyDefinition \stopchapter ___ 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] Left border of a rectangle (Metafun)
Hi Fabrice, Your code works if you add setbounds currentpicture to OverlayBox ; Indeed with this Metapost determines the boundaries of the rectangle of which you draw the left side. Best regards: OK On 30 Aug 2015, at 09:50, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote: Hi, Hans Otared and thank you for your suggestions. A question for Hans : why my code does not give the expected result ? Fabrice 2015-08-29 13:35 GMT+02:00 Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 8/29/2015 1:11 PM, Otared Kavian wrote: Hi fabrice, I dont’t know whether this the best solution, but you can use the following definition of the MPgraphic Funny: \startuseMPgraphic{Funny} interim linecap := butt ; path p ; p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; drawoptions (withpen pencircle scaled 6.5pt withcolor \MPcolor{MyColorA}) ; draw lrcorner p --urcorner p --ulcorner p withcolor white; draw ulcorner p --llcorner p ; \stopuseMPgraphic \startuseMPgraphic{Funny} interim linecap := butt ; draw leftboundary OverlayBox ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic - 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 http://www.pragma-ade.com/ | www.pragma-pod.nl http://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 mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / http://tex.aanhet.net http://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Title of parts
By default \part generates no title because most of the times these require special attention and a specific design. I can't find how to write such a specific design. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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] Title of parts
You might find the following setups useful with parts: \definestructureresetset [default] [0,0] [1] % do not reset parts and chapters \setuphead [part] [sectionresetset=default, conversion=Romannumerals, placehead=yes, bodypartlabel=part] Also, using parts, you might also need to add part to the table of contents list. etc. Alan On Sun, 30 Aug 2015 12:46:50 +0200 Otared Kavian ota...@gmail.com wrote: Hi Eric, If you use either \part{This is part 1} or \startpart[title={This part 2}] \startchapter[title={This is chapter 1}] \stopchapter \stoppart you get a title for part 1 and part 2. Best regards: OK On 30 Aug 2015, at 11:42, Eric Détrez i...@eric-detrez.fr wrote: By default \part generates no title because most of the times these require special attention and a specific design. I can't find how to write such a specific design. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS UMR 3680 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.bras...@cea.fr ___ 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] Title of parts
Le 30-08-2015 23:31, Alan BRASLAU a écrit : You might find the following setups useful with parts: \definestructureresetset [default] [0,0] [1] % do not reset parts and chapters \setuphead [part] [sectionresetset=default, conversion=Romannumerals, placehead=yes, bodypartlabel=part] Also, using parts, you might also need to add part to the table of contents list. etc. Thank you I didn't know the placehead parameter, I missed it in the long list of parameters. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___