Re: [NTG-context] \stopquotation and \endnote
On 22 Aug 2014, at 06:37, Wolfgang Schuster wrote: > > Am 21.08.2014 um 23:42 schrieb Gerben Wierda : > >> Is it possible to use \startquotation..\stopquotation and have an endnote >> number follow the closing ''? If the \endnote is before \stopquotation, it >> ends up inside the '' character at the end. If it is after \stopquotation, >> it becomes the beginning of the next paragraph. > > > AFAIK this is only possible when you place the quotation marks by hand. Fine. So, I should replace quotation with narrower and put my own quotes in? Is quotation just narrower, but with quotes? G > > 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 > ___ ___ 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] [doifinset] how it works ?
Am 21.08.2014 um 21:58 schrieb Pierre-François Bonnefoi : > Hello, > > I'm currently prepping my teaching material for my back-to-university. > > I want to design some conditional slides based presentation where I can > select the slides that I want to show in my final presentation. > > My current attempt is to use : > 1 - MKIV as I use currently only MKII; > 2 - a counter is defined, that it is incremented at each slide definition; > 3 - a commalist to indicate the slides that I want. The number affected to > each slide is made according to its definition in the file and not the slide > number displayed; > 4 - a block is added to enclosed each slide in order to allow or not it to be > shown in the final presentation. > > \definenumber[slide][way=bytext,prefix=no] > % firstly I generate a full commalist > \def\slidelist{} > \dorecurse{8}{ > \doglobal\appendtocommalist{#1}\slidelist > } > > % then I define my slide where I increment the counter > \def\startSlide{\setupbackgrounds[page][background={fond,Auteur,backgraphics,foreground,foregraphics}] > \directsetup{slide:start}} > \def\stopSlide{\directsetup{slide:stop}} > \startsetups slide:start > \page > \incrementnumber[slide] > \switchtobodyfont[14pt] > \setupinteractionbar[state=start] > \startnarrower[left] > \stopsetups > > \startsetups slide:stop > \stopnarrower > \page > \stopsetups > > \starttext > > \doifinset{\getnumber[slide]}{\slidelist} > { > \startSlide > \SlideTitleSub{Hello there} > > What is my number ? \getnumber[slide] ! > > \stopSlide > } > \stoptext > > > This doesn't work. the "doifinset" doesn't work. I've tried to put some > \expanded in order to expand the arguments with no success. > > The only way is to use direct argument as : > \doifinset{1}{1,2,3,4,5} > > Let me know it it is possible. You have to access the counter with \rawcountervalue[] but in your case you can use a different counter mechanism. \setvariables[slide][list={1,2,3,6,7,8}] % \setupbackgrounds[page][background={fond,Auteur,backgraphics,foreground,foregraphics}] \def\startSlide {\increment\SlideCounter \doifinsetelse\SlideCounter{\getvariable{slide}{list}} {\directsetup{slide:start}} {\gobbleuntil\stopSlide}} \def\stopSlide {\directsetup{slide:stop}} \startsetups slide:start \page \stopsetups \startsetups slide:stop \page \stopsetups \starttext \dorecurse{10} {\startSlide {\tfd\recurselevel} \stopSlide} \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] \stopquotation and \endnote
Am 21.08.2014 um 23:42 schrieb Gerben Wierda : > Is it possible to use \startquotation..\stopquotation and have an endnote > number follow the closing ''? If the \endnote is before \stopquotation, it > ends up inside the '' character at the end. If it is after \stopquotation, it > becomes the beginning of the next paragraph. AFAIK this is only possible when you place the quotation marks by hand. 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] keeping TABLE in hmode
Am 21.08.2014 um 21:55 schrieb Idris Samawi Hamid ادريس سماوي حامد : > Dear gang, > > Is there a way to configure \bTABLE-\eTABLE so that it always in hmode? Right > now I have things like > > \startalignment[middle] > \dontleavehmode > \bTABLE > \bTR > :: > \eTR > \eTABLE > > \dontleavehmode > \bTABLE > \bTR > :: > \eTR > \eTABLE > > \dontleavehmode > \bTABLE > \bTR > :: > \eTR > \eTABLE > \stopalignment > > Will have dozens and dozens of these; and don't wish to have to keep typing > '\dontleavehmode' over and over... Thanks in advance and There is no option to force horizontal mode at the begin of the table but you can use the following two methods to center the table. \startbuffer \bTABLE \bTR \bTD text \eTD \bTD text \eTD \eTR \eTABLE \stopbuffer \starttext \startlinealignment[middle] \getbuffer \stoplinealignment \startplacetable[location={none,force}] \getbuffer \stopplacetable \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 ___
[NTG-context] \stopquotation and \endnote
Is it possible to use \startquotation..\stopquotation and have an endnote number follow the closing ''? If the \endnote is before \stopquotation, it ends up inside the '' character at the end. If it is after \stopquotation, it becomes the beginning of the next paragraph. G ___ 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] [doifinset] how it works ?
And here a few more examples… \starttext \doifinset {knuth} {knuth,ward} {\input knuth.tex \blank[2*big]} \doifnotinset {ward} {knuth,Hans} {\input ward.tex\blank[2*big]} \doifinsetelse {Hans} {Hans,knuth} {then Hans is a genious...\blank[2*big]} {else ...} \doifcommon {string,...} {string,...} {it is common...} \doifnotcommon {string} {String,...} {nothing is common...} \doifcommonelse {string,...} {string,...} {then ...} {else ...} \blank %\def\substring{substring} %\doifincsnameelse {substring} {\string} {then ...} {else ...} \blank \doifinstringelse {substring} {substringSUB} {then ...} {else ...} \blank \doifnumberelse {string} {then ...} {else string is not a number...} \doifnumberelse {123} {then string is a number...} {else ...} \stoptext Best regards: OK On 21 Aug 2014, at 21:58, Pierre-François Bonnefoi wrote: > Hello, > > I'm currently prepping my teaching material for my back-to-university. > > I want to design some conditional slides based presentation where I can > select the slides that I want to show in my final presentation. > > My current attempt is to use : > 1 - MKIV as I use currently only MKII; > 2 - a counter is defined, that it is incremented at each slide definition; > 3 - a commalist to indicate the slides that I want. The number affected to > each slide is made according to its definition in the file and not the slide > number displayed; > 4 - a block is added to enclosed each slide in order to allow or not it to be > shown in the final presentation. > > \definenumber[slide][way=bytext,prefix=no] > % firstly I generate a full commalist > \def\slidelist{} > \dorecurse{8}{ > \doglobal\appendtocommalist{#1}\slidelist > } > > % then I define my slide where I increment the counter > \def\startSlide{\setupbackgrounds[page][background={fond,Auteur,backgraphics,foreground,foregraphics}] > \directsetup{slide:start}} > \def\stopSlide{\directsetup{slide:stop}} > \startsetups slide:start > \page > \incrementnumber[slide] > \switchtobodyfont[14pt] > \setupinteractionbar[state=start] > \startnarrower[left] > \stopsetups > > \startsetups slide:stop > \stopnarrower > \page > \stopsetups > > \starttext > > \doifinset{\getnumber[slide]}{\slidelist} > { > \startSlide > \SlideTitleSub{Hello there} > > What is my number ? \getnumber[slide] ! > > \stopSlide > } > \stoptext > > > This doesn't work. the "doifinset" doesn't work. I've tried to put some > \expanded in order to expand the arguments with no success. > > The only way is to use direct argument as : > \doifinset{1}{1,2,3,4,5} > > Let me know it it is possible. > > best regards, > Pierre-François Bonnefoi. > -- > Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr > http://libpfb.so/ > Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 > 123 av Albert Thomas| Mrs. Peel, we're needed... > 87060 Limoges CEDEX - FRANCE| The Avengers. > > ___ > 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 ___
Re: [NTG-context] [doifinset] how it works ?
Hi, Here are a few examples of how to use \doifinset and \doifinsetelse (they were given by Wolfgang S. a few years ago…): \starttext \type{\doifinset{A}{A,B,C}{should go}:} \doifinset{A}{A,B,C}{should go} \type{\doifinset{D}{A,B,C}{should go}:} \doifinset{D}{A,B,C}{should participate} \type{\doifnotinset{}{A,B,C}{not in the set}:} \doifnotinset{}{A,B,C}{not in the set} \type{\doifnotinset{D}{A,B,C}{not in the set}:} \doifnotinset{D}{A,B,C}{not in the set} \doifinsetelse{D}{A,B,C}{it is in the set}{it is not in the set} \define\test{B} \type{\doifinsetelse{\test}{A,B,C}{\test\ is in the set}{\test\ is not in the set}} \doifinsetelse{\test}{A,B,C}{\test\ is in the set}{\test\ is not in the set} \stoptext Best regards: OK On 21 Aug 2014, at 21:58, Pierre-François Bonnefoi wrote: > Hello, > > I'm currently prepping my teaching material for my back-to-university. > > I want to design some conditional slides based presentation where I can > select the slides that I want to show in my final presentation. > > My current attempt is to use : > 1 - MKIV as I use currently only MKII; > 2 - a counter is defined, that it is incremented at each slide definition; > 3 - a commalist to indicate the slides that I want. The number affected to > each slide is made according to its definition in the file and not the slide > number displayed; > 4 - a block is added to enclosed each slide in order to allow or not it to be > shown in the final presentation. > > \definenumber[slide][way=bytext,prefix=no] > % firstly I generate a full commalist > \def\slidelist{} > \dorecurse{8}{ > \doglobal\appendtocommalist{#1}\slidelist > } > > % then I define my slide where I increment the counter > \def\startSlide{\setupbackgrounds[page][background={fond,Auteur,backgraphics,foreground,foregraphics}] > \directsetup{slide:start}} > \def\stopSlide{\directsetup{slide:stop}} > \startsetups slide:start > \page > \incrementnumber[slide] > \switchtobodyfont[14pt] > \setupinteractionbar[state=start] > \startnarrower[left] > \stopsetups > > \startsetups slide:stop > \stopnarrower > \page > \stopsetups > > \starttext > > \doifinset{\getnumber[slide]}{\slidelist} > { > \startSlide > \SlideTitleSub{Hello there} > > What is my number ? \getnumber[slide] ! > > \stopSlide > } > \stoptext > > > This doesn't work. the "doifinset" doesn't work. I've tried to put some > \expanded in order to expand the arguments with no success. > > The only way is to use direct argument as : > \doifinset{1}{1,2,3,4,5} > > Let me know it it is possible. > > best regards, > Pierre-François Bonnefoi. > -- > Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr > http://libpfb.so/ > Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 > 123 av Albert Thomas| Mrs. Peel, we're needed... > 87060 Limoges CEDEX - FRANCE| The Avengers. > > ___ > 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] [doifinset] how it works ?
Hello, I'm currently prepping my teaching material for my back-to-university. I want to design some conditional slides based presentation where I can select the slides that I want to show in my final presentation. My current attempt is to use : 1 - MKIV as I use currently only MKII; 2 - a counter is defined, that it is incremented at each slide definition; 3 - a commalist to indicate the slides that I want. The number affected to each slide is made according to its definition in the file and not the slide number displayed; 4 - a block is added to enclosed each slide in order to allow or not it to be shown in the final presentation. \definenumber[slide][way=bytext,prefix=no] % firstly I generate a full commalist \def\slidelist{} \dorecurse{8}{ \doglobal\appendtocommalist{#1}\slidelist } % then I define my slide where I increment the counter \def\startSlide{\setupbackgrounds[page][background={fond,Auteur,backgraphics,foreground,foregraphics}] \directsetup{slide:start}} \def\stopSlide{\directsetup{slide:stop}} \startsetups slide:start \page \incrementnumber[slide] \switchtobodyfont[14pt] \setupinteractionbar[state=start] \startnarrower[left] \stopsetups \startsetups slide:stop \stopnarrower \page \stopsetups \starttext \doifinset{\getnumber[slide]}{\slidelist} { \startSlide \SlideTitleSub{Hello there} What is my number ? \getnumber[slide] ! \stopSlide } \stoptext This doesn't work. the "doifinset" doesn't work. I've tried to put some \expanded in order to expand the arguments with no success. The only way is to use direct argument as : \doifinset{1}{1,2,3,4,5} Let me know it it is possible. best regards, Pierre-François Bonnefoi. -- Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr http://libpfb.so/ Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 123 av Albert Thomas| Mrs. Peel, we're needed... 87060 Limoges CEDEX - FRANCE| The Avengers. ___ 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] keeping TABLE in hmode
Dear gang, Is there a way to configure \bTABLE-\eTABLE so that it always in hmode? Right now I have things like \startalignment[middle] \dontleavehmode \bTABLE \bTR :: \eTR \eTABLE \dontleavehmode \bTABLE \bTR :: \eTR \eTABLE \dontleavehmode \bTABLE \bTR :: \eTR \eTABLE \stopalignment Will have dozens and dozens of these; and don't wish to have to keep typing '\dontleavehmode' over and over... Thanks in advance and Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] setting math font
On Thu, 21 Aug 2014 11:04:56 -0600, Wolfgang Schuster wrote: Schola comes with its own math font which is missing on your system. Ah... ok, got it, and thanks! Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] setting math font
Am 21.08.2014 um 18:03 schrieb Idris Samawi Hamid ادريس سماوي حامد : > Dear gang, > > == > \setupbodyfont[schola,12pt] > > \starttext > $\Rightarrow$ > \stoptext > : > ! Math error: parameter \Umathquad\displaystyle is not set > == > > What do I need to add to get the default cm/lm math invoked? Thanks in > advance and Schola comes with its own math font which is missing on your system. 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 ___
[NTG-context] setting math font
Dear gang, == \setupbodyfont[schola,12pt] \starttext $\Rightarrow$ \stoptext : ! Math error: parameter \Umathquad\displaystyle is not set == What do I need to add to get the default cm/lm math invoked? Thanks in advance and Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] Etal and bibliography
Hi, a slight up concerning this question about et al in bibliographies. Best, Flavien. On 13 August 2014 13:52, Flavien Lambert wrote: > Sorry about that! In the following example, the number of authors is cut > after three but there is no *et al* added. > Thanks, > F. > > \definebtxdataset[example] > \usebtxdataset[example][test.bib] > \definebtxrendering[example][dataset=example,method=local,alternative=apa] > \setupbtxlistvariant[etallimit=3,etaldisplay=3,etaltext={\it et al}] > > \starttext > a\cite[example::onnela] > \placebtxrendering[example] > \stoptext > > @Article{onnela, > author = {J. P. Onnela and D. J. Fenn and S. Reid and M. A. Porter > and P. J. Mucha and M. D. Fricker and N. S. Jones}, > title = {Taxonomies of networks from community structure}, > journal = {Phys. Rev. E}, > volume = {86}, > number = {3}, > pages = {036104}, > year = {2012}, > entrydate = {2014/07/09}, > } > > > > On 13 August 2014 12:28, Wolfgang Schuster > wrote: > >> >> Am 13.08.2014 um 05:43 schrieb Flavien Lambert : >> >> Hi, >> I would like to limit the number of authors in bibliographies to one and >> use *et al*. I read the documentation and tried to use etallimit=1 in >> \btxrenderinglistvariant without success. What is the exact procedure? >> >> >> Make a minimal example! >> >> 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 >> >> ___ >> > > ___ 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 ___