Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)
Le 18/03/2019, Aditya Mahajan a �crit > On Mon, 18 Mar 2019, Romain Diss wrote: > > > Le 13/03/2019, Aditya Mahajan a �crit > > > > Is there a simple way to split a large \startframedtext environment over > > > > multiple pages. It doesn't work out of the box and I didn't find any > > > > option make it work in the wiki nor in the documentation I read. > > > > > > Use backgrounds or textbackgrounds. > > Thank you but I still can't achieve what I want to do whith this > > command. > > > > I try to make something similar to the frames in the > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for > > examples). > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > problems with 'textbackgrounds'. > > > > In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metapost > code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) > doesn't handle individual frames. So, you have to write your own metapost > code to draw the side bar. > > Another option for simple backgrounds is to use `\definebackground` instead > of `definetextbackground`. The background mechanism doesn't have too many > options, but does honor leftframe and rightframe by default. It will take some time to understand everything in "mp-abck.mpiv" but it will sure be very interesting. Thank you. -- Romain Diss ___ 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] Background under bibliography (like in mkiv-publications.pdf)
Le 18/03/2019, Alan Braslau a �crit > On Mon, 18 Mar 2019 14:15:10 -0400 (EDT) > Aditya Mahajan wrote: > > > On Mon, 18 Mar 2019, Romain Diss wrote: > > > > > Le 13/03/2019, Aditya Mahajan a �crit > > >> > Is there a simple way to split a large \startframedtext environment > > >> > over > > >> > multiple pages. It doesn't work out of the box and I didn't find any > > >> > option make it work in the wiki nor in the documentation I read. > > >> > > >> Use backgrounds or textbackgrounds. > > > Thank you but I still can't achieve what I want to do whith this > > > command. > > > > > > I try to make something similar to the frames in the > > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for > > > examples). > > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > > problems with 'textbackgrounds'. > > > > > > In this minimal example, the frame doesn't appear (or if i set > > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > > right offsets are not took into account. > > > > textbackground uses metapost for ALL backgrounds and the default metapost > > code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) > > doesn't handle individual frames. So, you have to write your own metapost > > code to draw the side bar. > > > > Another option for simple backgrounds is to use `\definebackground` > > instead of `definetextbackground`. The background mechanism doesn't have > > too many options, but does honor leftframe and rightframe by default. > > > > Aditya > > You can look under > doc/context/sources/general/manuals/publications/publications-style.tex > to see how it is done. All these source files where here, next to me, all this time and I didn't know... Thank you very much! -- Romain Diss ___ 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] colorizing pictures
\externalfigure has a "color" parameter. It used to be possible to colorize greyscale pictures with that, but it doesn’t work any more: %%% \setupcolors[state=start] \setupexternalfigures[ location={local,global,default}, ] \starttext \externalfigure[img/minidodo_g][width=.3\textwidth,color=red] % greyscale \externalfigure[img/minidodo_b][width=.3\textwidth,color=green] % bitmap \externalfigure[cow][width=.3\textwidth,color=blue] % vector \stoptext %%% Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] Background under bibliography (like in mkiv-publications.pdf)
On Mon, 18 Mar 2019 14:15:10 -0400 (EDT) Aditya Mahajan wrote: > On Mon, 18 Mar 2019, Romain Diss wrote: > > > Le 13/03/2019, Aditya Mahajan a �crit > >> > Is there a simple way to split a large \startframedtext environment over > >> > multiple pages. It doesn't work out of the box and I didn't find any > >> > option make it work in the wiki nor in the documentation I read. > >> > >> Use backgrounds or textbackgrounds. > > Thank you but I still can't achieve what I want to do whith this > > command. > > > > I try to make something similar to the frames in the > > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for > > examples). > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > problems with 'textbackgrounds'. > > > > In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metapost > code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) > doesn't handle individual frames. So, you have to write your own metapost > code to draw the side bar. > > Another option for simple backgrounds is to use `\definebackground` > instead of `definetextbackground`. The background mechanism doesn't have > too many options, but does honor leftframe and rightframe by default. > > Aditya You can look under doc/context/sources/general/manuals/publications/publications-style.tex to see how it is done. Alan ___ 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] Background under bibliography (like in mkiv-publications.pdf)
On Mon, 18 Mar 2019, Romain Diss wrote: Le 13/03/2019, Aditya Mahajan a �crit > Is there a simple way to split a large \startframedtext environment over > multiple pages. It doesn't work out of the box and I didn't find any > option make it work in the wiki nor in the documentation I read. Use backgrounds or textbackgrounds. Thank you but I still can't achieve what I want to do whith this command. I try to make something similar to the frames in the "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for examples). I suppose Hans Hagen made use of metafun to do it but I encounter some problems with 'textbackgrounds'. In this minimal example, the frame doesn't appear (or if i set [frame=on,leftframe=off] all the frame is rendered) and the left and right offsets are not took into account. textbackground uses metapost for ALL backgrounds and the default metapost code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) doesn't handle individual frames. So, you have to write your own metapost code to draw the side bar. Another option for simple backgrounds is to use `\definebackground` instead of `definetextbackground`. The background mechanism doesn't have too many options, but does honor leftframe and rightframe by default. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)
Le 13/03/2019, Aditya Mahajan a �crit > > Is there a simple way to split a large \startframedtext environment over > > multiple pages. It doesn't work out of the box and I didn't find any > > option make it work in the wiki nor in the documentation I read. > > Use backgrounds or textbackgrounds. Thank you but I still can't achieve what I want to do whith this command. I try to make something similar to the frames in the "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for examples). I suppose Hans Hagen made use of metafun to do it but I encounter some problems with 'textbackgrounds'. In this minimal example, the frame doesn't appear (or if i set [frame=on,leftframe=off] all the frame is rendered) and the left and right offsets are not took into account. % test-bcknd.tex \usebtxdataset[biblio.bib] \setupbtxrendering [before={\startbiblio}, after={\stopbiblio}] % Arri�re-plan biblio \definetextbackground[biblio] [location=paragraph, background=color, backgroundcolor=green, %backgroundoffset=2em, leftoffset=1em, rightoffset=1em, topoffset=1.5em, bottomoffset=1em, frame=off, leftframe=on, rulethickness=.1em, framecolor=red] \startdocument \startchapter[title=A chapter] \input knuth \cite[knuth]\blank \input ward \cite[ward]\blank \placelistofpublications[criterium=chapter] \stopchapter \stopdocument % end % biblio.bib @book{knuth, title = "Title", author = "Knuth", publisher = "Publisher", year = "2019", } @book{ward, title = "Title", author = "Ward", publisher = "Publisher", year = "2019", } % end Any suggestions? Thank you. -- Romain Diss ___ 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] CHEMIC: place a argument under the compound
Works. Thanks a lot. Jorge > No dia 18/03/2019, às 14:55, Alan Braslau escreveu: > > \startchemicalformula ___ 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] CHEMIC: place a argument under the compound
On Mon, 18 Mar 2019 14:44:17 + Jorge Manuel wrote: > Thanks for your support. > I clear the recommended line, but the problem persists. How I can fix that? > > Jorge > > > > No dia 18/03/2019, às 14:36, Alan Braslau > > escreveu: > > > > On Mon, 18 Mar 2019 10:08:33 + > > Jorge Manuel wrote: > > > >> \usemodule[chemic] > > > > chemic is the old, mkii chemical macros. > > They have been replaced in mkiv with core macros > > so no need for the above line. > > > > Alan > > > Sorry, it is now: \startchemicalformula \chemical{text} \chemical{text}{below} \chemical{text}{above}{below} \stopchemicalformula and it can be enclosed in \startplacechemical ... \stopplacechemical to get numbered (chemical) equations. Alan P.S. I need to work with Hans to get the new (now old) manual into the distribution. ___ 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] CHEMIC: place a argument under the compound
Thanks for your support. I clear the recommended line, but the problem persists. How I can fix that? Jorge > No dia 18/03/2019, às 14:36, Alan Braslau escreveu: > > On Mon, 18 Mar 2019 10:08:33 + > Jorge Manuel wrote: > >> \usemodule[chemic] > > chemic is the old, mkii chemical macros. > They have been replaced in mkiv with core macros > so no need for the above line. > > Alan > ___ 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] CHEMIC: place a argument under the compound
On Mon, 18 Mar 2019 10:08:33 + Jorge Manuel wrote: > \usemodule[chemic] chemic is the old, mkii chemical macros. They have been replaced in mkiv with core macros so no need for the above line. Alan ___ 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] Bibliography : wrong order of references when rendered by chapter
Hi, I try to use multiple renderings to place a bibliography list at the end of each chapters. I use the option 'criterium=chapter' to place the bibliography and i also use the options 'repeat=yes,method=local' because I want each chapter to have its own bibliography with an independant numbering (starting from 1 for each chapter). However, it doesn't wwork as expected. When a reference that exists in a previous chapter appears again in another one, the ordering is broken (I tried th option 'continue=no' but I don't know what it does). I don't know if it's very clear so here's a minimal 'non' working example (in the second chapter, ward reference should be numbered 1 and knuth should be 2, following the order of appearence in the bibliography list): % mnwe.tex \usebtxdataset[biblio.bib] \setupbtxrendering [repeat=yes, continue=no, method=local] \startdocument \startchapter[title=First chapter] \input knuth \cite[knuth]\blank \placelistofpublications[criterium=chapter] \stopchapter \startchapter[title=Second chapter] \input ward \cite[ward,knuth]\blank \placelistofpublications[criterium=chapter] \stopchapter \stopdocument % end % biblio.bib @book{knuth, title = "Title", author = "Knuth", publisher = "Publisher", year = "2019", } @book{ward, title = "Title", author = "Ward", publisher = "Publisher", year = "2019", } % end Thank you for your help. Best. -- Romain Diss ___ 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] CHEMIC: place a argument under the compound
Good morning to all, I need to place a argument under the compound. For the first compound it's ok, but for the second and third compounds the argument is placed in front an not bellow. How I can fix that? thanks. \usemodule[chemic] \startformula \chemical{Fe^{3+}}{}{yellow} \chemical{PLUS} \chemical{SCN^{-}}{}{colourless} \chemical{EQUILIBRIUM} \chemical{[FeSCN]^{2+}}{}{red} \stopformula ___ 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 ___