Re: [NTG-context] A sometxt bug (rather misfeature)
Aditya Mahajan wrote: > On Wed, 29 Aug 2007, Aditya Mahajan wrote: > >> Hi, >> >> Found an interesting sometxt misfeature. >> >> \startMPinclusions >> boolean test ; test=true ; >> \stopMPinclusions >> >> \startbuffer[test] >> if test : >> label(\sometxt{True}, origin) ; >> fi ; >> label(\sometxt{False}, (10,10)) ; >> \stopbuffer >> >> \processMPbuffer[test] >> >> \blank[big] >> >> \startMPinitializations >> test := false ; >> \stopMPinitializations >> >> \processMPbuffer[test] >> >> Too bad context cannnot parse metapost syntax :) >> >> Workaround (ugly) > > Another workaround, slightly less ugly (as long as you count the > number of \sometxt in the if part. > > \startbuffer[test] >if test : > label(\sometxt{True}, origin) ; >else : > txtnext := txtnext + 1 ; >fi ; >label(\sometxt{False}, (10,10)) ; > \stopbuffer > > \processMPbuffer[test] picture p ; p := label(\sometxt{True}, origin) ; if test then draw p ; fi ; label(\sometxt{False}, (10,10)) ; - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] balancing colums
2007/8/29, Henning Hraban Ramm <[EMAIL PROTECTED]>: > Am 2007-08-29 um 15:53 schrieb Jörg Hagmann: > > > In the following minimal example, the left column contains 5, the > > right > > one 3 lines. I tried \column to get 4 + 4, but it didn't work > > The columns features are broken for a long time now, esp. with stuff > like \startlines, \starttabulate etc. > > Maybe you could try column sets. I resolved to tables for my lead > sheets (ugly code, like old HTML). > > http://wiki.contextgarden.net/Columns > > Greetlings from Lake Constance! > Hraban Hi, if he has this problem only at one place and has no time he could use TeX's halign primitive because this did still work. It is also easy to write a simple wrapper around this this emulate ConTeXt's table syntax. \starttext \startcolumns[rule=on] \halign{\strut#\quad&\hfil#\cr one: & text \cr two: & text \cr three: & text \cr four: & text \cr five: & text \cr six: & text \cr seven: & text \cr eight: & text \cr} \stopcolumns \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context replacement for bibitem
Hi Peter, 2007/8/30, Peter Schorsch <[EMAIL PROTECTED]>: > Hi, > > first thanks for your help. I got it working at the basic-level. I put it > into a module for the case that other beginner looking for the > bibitem-replacement. But two questions are left before I think, that the > module could be uploaded to the wiki: > > - how to make the 12*broad flexible? \currentmoduleparamter{itemspace}*broad > is not working :-( > - how to make that the \item are right-aligned? itemalign=right is also not > working > > > Here is the module-code followed by an appliance-example: > ---the module: > > \startmodule[biblist] > > \unprotect > > %\setupmodule[itemspace=12] > > \defineitemgroup[bibliography] > \setupitemgroup[bibliography][levels=1,left={[},right={]},stopper=] > \setupitemgroup[bibliography][1][n,12*broad] > %\setupitemgroup[bibliography][1][n > \currentmoduleparameter{itemspace}*broad] Replace this line with \expanded{\setupitemgroup[bibliography][1][n,\currentmoduleparameter{itemspace}*broad]} to force expansion of \currentmoduleparameter. You can also use \setupbibliography as a abbreviation for \setupitemgroup[bibliography] Wolfgang > \def\bibitem[#1]#2{\doifemptyelse{#2} > {\item[#1]} > {\sym{\cap{#2}}\textreference[#1]{\cap{#2 > > \def\bibref[#1]#2{\doifemptyelse{#2} > {[\in[#1]]} > {[\in[#1], #2]}} > > \protect > \stopmodule > \endinput > > ---how to use: > > \usemodule[biblist] > > \starttext > > \section{hamha} > asdfklsj fk~\bibref[keykeykey]{} > > \section{dumdidim} > asdfsaff alfs hfdsj~\bibref[aha]{Abs. 4.1/1} > > \subject{Bibliography} > > \subsubject{hamha} > \startbibliography > \bibitem[keykeykey]{Der Schlüssel} erstes > \stopbibliography > > \subsubject{dumdidim} > \startbibliography[continue] > \bibitem[aha]{} zweites > \stopbibliography > > \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize start=2
2007/8/29, Wolfgang Werners-Lucchini <[EMAIL PROTECTED]>: > > > how can I start an itemization with 2 > > > > > > I have tried snippets like > > > > > > \setupitemgroup[[itemize][start=2] > > > \startitemize[n] > > > \item zwei > > > \item drei > > > \stopitemize > > > > > > but could'nt found a solution. > > > > > > Btw.: Is there a differenz between > > > > > > \setupitemize[] > > > > > > and > > > > > > \setupitemgroup[[itemize][] > > > > > > Wolfgang > > > > Hi Wolfgang, > > > > \setupitemize is only macro for \setupitemgroup[itemize] and is > > generated with \defineitemgroup like many other setup commands. > > > > To start your enumeration with 2 you have to define your own > > number conversion. > > > > \def\nextnumber#1{\the\numexpr#1+1\relax} > > > > \defineconversion[nn][\nextnumber] > > > > \starttext > > \startitemize[nn] > > \item zwei > > \item drei > > \stopitemize > > \stoptext > > > > Wolfgang > > Hi Wolfgang! > > This works! > > But two questions remain: > > 1) I am wondering, how you find such answers. What is your strategie > searching the sources? You can the answer in the big manual (cont-enp), it explains the symbols are defined with \definesymbol and the counters values (n, r, r ... keys) with \defineconversion. > 2) What is that existing option 'start' for? Take this as an example > for question 1). If I understand the source correct it should begin the itemize with the level you give with the start value, with the value 2 in your example the outer itemize group should start with itemlevel 2 and we should get the dash symbol as item marker but either this did not work I am wrong. I tried this with the following example but the output off both items are the same. \starttext \startitemize \item Text \stopitemize \setupitemize[start=2] \startitemize \item Text \stopitemize \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context replacement for bibitem
Hi, first thanks for your help. I got it working at the basic-level. I put it into a module for the case that other beginner looking for the bibitem-replacement. But two questions are left before I think, that the module could be uploaded to the wiki: - how to make the 12*broad flexible? \currentmoduleparamter{itemspace}*broad is not working :-( - how to make that the \item are right-aligned? itemalign=right is also not working Here is the module-code followed by an appliance-example: ---the module: \startmodule[biblist] \unprotect %\setupmodule[itemspace=12] \defineitemgroup[bibliography] \setupitemgroup[bibliography][levels=1,left={[},right={]},stopper=] \setupitemgroup[bibliography][1][n,12*broad] %\setupitemgroup[bibliography][1][n \currentmoduleparameter{itemspace}*broad] \def\bibitem[#1]#2{\doifemptyelse{#2} {\item[#1]} {\sym{\cap{#2}}\textreference[#1]{\cap{#2 \def\bibref[#1]#2{\doifemptyelse{#2} {[\in[#1]]} {[\in[#1], #2]}} \protect \stopmodule \endinput ---how to use: \usemodule[biblist] \starttext \section{hamha} asdfklsj fk~\bibref[keykeykey]{} \section{dumdidim} asdfsaff alfs hfdsj~\bibref[aha]{Abs. 4.1/1} \subject{Bibliography} \subsubject{hamha} \startbibliography \bibitem[keykeykey]{Der Schlüssel} erstes \stopbibliography \subsubject{dumdidim} \startbibliography[continue] \bibitem[aha]{} zweites \stopbibliography \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV, hz, hanging punctuation
Can someone say when typographic "extras" like hz & hanging punctuation will be available in LuaTeX/MKIV for OpenType fonts? --- or are they already available? I thought I'd read a comment on this from Hans, but cannot for the life of me find it. >>> the pdftex hz code is there and should work to some extend but i >>> didn't test it; hz needs a clean up (esp all the font related codes, >>> global in pdftex) >> >> Hmm, okay. How would one call hz & protrusion with mkiv? Something >> like this? (My experiments have produced no good results). >> >> \starttypescript [sans] [minion] >> \definefontsynonym [MinionPro] [name:MinionPro-Regular] >> [features=default,handling=quality] >> \stoptypescript >> >> othertypescript stuff ... >> >> \setupalign [hz,hanging] > > i didn't test hz with luatex; i will look into it when we are dealing > with that (esp the font related tables) because that info will be > organized differently Great, thanks for the info. Best, David ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV, hz, hanging punctuation
David Wooten wrote: > On Aug. 27, 2007, at Aug 27, 11:47 PM, Hans Hagen wrote: > >> David Wooten wrote: >>> Greetings all, >>> >>> Can someone say when typographic "extras" like hz & hanging >>> punctuation will be available in LuaTeX/MKIV for OpenType fonts? --- >>> or are they already available? I thought I'd read a comment on this >>> from Hans, but cannot for the life of me find it. >> the pdftex hz code is there and should work to some extend but i >> didn't >> test it; hz needs a clean up (esp all the font related codes, >> global in >> pdftex) >> >> Hans > > Hmm, okay. How would one call hz & protrusion with mkiv? Something > like this? (My experiments have produced no good results). > > \starttypescript [sans] [minion] > \definefontsynonym [MinionPro] [name:MinionPro-Regular] > [features=default,handling=quality] > \stoptypescript > > othertypescript stuff ... > > \setupalign [hz,hanging] i didn't test hz with luatex; i will look into it when we are dealing with that (esp the font related tables) because that info will be organized differently - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A sometxt bug (rather misfeature)
On Wed, 29 Aug 2007, Aditya Mahajan wrote: > Hi, > > Found an interesting sometxt misfeature. > > \startMPinclusions > boolean test ; test=true ; > \stopMPinclusions > > \startbuffer[test] > if test : > label(\sometxt{True}, origin) ; > fi ; > label(\sometxt{False}, (10,10)) ; > \stopbuffer > > \processMPbuffer[test] > > \blank[big] > > \startMPinitializations > test := false ; > \stopMPinitializations > > \processMPbuffer[test] > > Too bad context cannnot parse metapost syntax :) > > Workaround (ugly) Another workaround, slightly less ugly (as long as you count the number of \sometxt in the if part. \startbuffer[test] if test : label(\sometxt{True}, origin) ; else : txtnext := txtnext + 1 ; fi ; label(\sometxt{False}, (10,10)) ; \stopbuffer \processMPbuffer[test] 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A sometxt bug (rather misfeature)
Hi, Found an interesting sometxt misfeature. \startMPinclusions boolean test ; test=true ; \stopMPinclusions \startbuffer[test] if test : label(\sometxt{True}, origin) ; fi ; label(\sometxt{False}, (10,10)) ; \stopbuffer \processMPbuffer[test] \blank[big] \startMPinitializations test := false ; \stopMPinitializations \processMPbuffer[test] Too bad context cannnot parse metapost syntax :) Workaround (ugly) \startTeXtexts \TeXtext{1000}{True} \stopTeXtexts \startbuffer[test] if test : label(sometxt(1000), origin) ; fi ; label(\sometxt{False}, (10,10)) ; \stopbuffer \processMPbuffer[test] 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex and typescripts/fonts
Thomas A. Schmitz wrote: > On Aug 29, 2007, at 7:21 PM, Hans Hagen wrote: > >> i'm preparing a new upload that should fix it ... >> > > Very nice sample file... But the 19:22 version doesn't fix it for the > Adobe fonts. Kerning has worked for me with the TeXGyre and LM fonts. that was base kerning -) what font? i need to look into the font in order to see what is the problem i'll send you a file showing that at least my fonts work -) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV, hz, hanging punctuation
On Aug. 27, 2007, at Aug 27, 11:47 PM, Hans Hagen wrote: > David Wooten wrote: >> Greetings all, >> >> Can someone say when typographic "extras" like hz & hanging >> punctuation will be available in LuaTeX/MKIV for OpenType fonts? --- >> or are they already available? I thought I'd read a comment on this >> from Hans, but cannot for the life of me find it. > > the pdftex hz code is there and should work to some extend but i > didn't > test it; hz needs a clean up (esp all the font related codes, > global in > pdftex) > > Hans Hmm, okay. How would one call hz & protrusion with mkiv? Something like this? (My experiments have produced no good results). \starttypescript[sans] [minion] \definefontsynonym [MinionPro] [name:MinionPro-Regular] [features=default,handling=quality] \stoptypescript ... othertypescript stuff ... \setupalign [hz,hanging] David ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex and typescripts/fonts
Hans Hagen wrote: > Thomas A. Schmitz wrote: > >> But still no joy: I don't get any kerning. Tried with all sorts of >> settings for script= and language=, but to no avail. > > there is indeed aproblem with kerning, depends on the kind of lookup > (only the real complex contextual ones work); i'll fix it i'm preparing a new upload that should fix it ... \starttext \setupcolors[state=start] \definefontfeature [default-base] [script=dftl,language=dflt,liga=yes,kern=yes,tlig=yes,trep=yes] \definefontfeature [default-node] [script=dftl,language=dflt,liga=yes,kern=yes,tlig=yes,trep=yes,mode=node] \definefontfeature [default-none] [script=dftl,language=dflt,liga=yes,kern=no, tlig=yes,trep=yes] \startoverlay {\vtop{\color[red] {\font\test=name:lmroman12regular*default-node \test \input ward \input zapf \input linden }}} {\vtop{\color[green]{\font\test=name:lmroman12regular*default-base \test \input ward \input zapf \input linden }}} {\vtop{\color[blue] {\font\test=name:lmroman12regular*default-none \test \input ward \input zapf \input linden }}} \stopoverlay \blank \startoverlay {\vtop{\color[red] {\font\test=name:texgyrepagella*default-node \test \input ward \input zapf \input linden }}} {\vtop{\color[green]{\font\test=name:texgyrepagella*default-base \test \input ward \input zapf \input linden }}} {\vtop{\color[blue] {\font\test=name:texgyrepagella*default-none \test \input ward \input zapf \input linden }}} \stopoverlay \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex and typescripts/fonts
On Aug 29, 2007, at 7:21 PM, Hans Hagen wrote: > i'm preparing a new upload that should fix it ... > Very nice sample file... But the 19:22 version doesn't fix it for the Adobe fonts. Kerning has worked for me with the TeXGyre and LM fonts. Thanks for looking into it, Hans! Best Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize start=2
> > how can I start an itemization with 2 > > > > I have tried snippets like > > > > \setupitemgroup[[itemize][start=2] > > \startitemize[n] > > \item zwei > > \item drei > > \stopitemize > > > > but could'nt found a solution. > > > > Btw.: Is there a differenz between > > > > \setupitemize[] > > > > and > > > > \setupitemgroup[[itemize][] > > > > Wolfgang > > Hi Wolfgang, > > \setupitemize is only macro for \setupitemgroup[itemize] and is > generated with \defineitemgroup like many other setup commands. > > To start your enumeration with 2 you have to define your own > number conversion. > > \def\nextnumber#1{\the\numexpr#1+1\relax} > > \defineconversion[nn][\nextnumber] > > \starttext > \startitemize[nn] > \item zwei > \item drei > \stopitemize > \stoptext > > Wolfgang Hi Wolfgang! This works! But two questions remain: 1) I am wondering, how you find such answers. What is your strategie searching the sources? 2) What is that existing option 'start' for? Take this as an example for question 1). 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex and typescripts/fonts
Thomas A. Schmitz wrote: > But still no joy: I don't get any kerning. Tried with all sorts of > settings for script= and language=, but to no avail. there is indeed aproblem with kerning, depends on the kind of lookup (only the real complex contextual ones work); i'll fix it Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] balancing colums
Am 2007-08-29 um 15:53 schrieb Jörg Hagmann: > In the following minimal example, the left column contains 5, the > right > one 3 lines. I tried \column to get 4 + 4, but it didn't work The columns features are broken for a long time now, esp. with stuff like \startlines, \starttabulate etc. Maybe you could try column sets. I resolved to tables for my lead sheets (ugly code, like old HTML). http://wiki.contextgarden.net/Columns Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex and typescripts/fonts
Wolfgang, Hans, thanks a lot for your replies, that was extremely helpful. On Aug 29, 2007, at 1:52 PM, Hans Hagen wrote: > > one option is to make two versions (name.mkii and name.mkiv) and > then in > the name.tex file say \loadmarkfile{name} which will choose the right > variant then > Ah, so \loadmarkfile is the magic switch. I had the idea to use .mkii and .mkiv but couldn't figure out how to. Now that's very useful for all further experiments... > depends on the way you define things ... maybe the kerning is language > dependent? kern is a feature > > in base mode, we use tex's kerning and ligatures and can only have > simple replacement, in node mode, mkiv does everything itself > Okay, I tried this minimal definition in my typescript: \definefontfeature [jens] [mode=node,kern=yes] \starttypescript [serif] [jenson] \definefontsynonym [Jenson-Roman] [name:AJensonPro- Regular] [features=jens] \stoptypescript \starttypescript [serif] [jenson] \definefontsynonym [Serif] [Jenson-Roman] [features=jens] \stoptypescript \starttypescript [Jenson] \definetypeface [Jenson] [rm] [serif] [jenson] [default] \stoptypescript But still no joy: I don't get any kerning. Tried with all sorts of settings for script= and language=, but to no avail. Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] balancing colums
Sorry for interrupting the luatex discussion with a pedestrian question, but my book is almost finished, and this will not be the last one: In the following minimal example, the left column contains 5, the right one 3 lines. I tried \column to get 4 + 4, but it didn't work \starttext \startcolumns[rule=on] \starttabulate[|l|r|] \NC one: \NC text \NC\NR \NC two: \NC text \NC\NR \NC three: \NC text \NC\NR \NC four: \NC text \NC\NR \NC five: \NC text \NC\NR \NC six: \NC text \NC\NR \NC seven: \NC text \NC\NR \NC eight: \NC text \NC\NR \stoptabulate \stopcolumns \stoptext Thanks, Jörg -- Prof.Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics Centre of Biomedicine, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 267 3565 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex and typescripts/fonts
Thomas A. Schmitz wrote: > Hi guys, > > I missed some of the excitement of the last two weeks because I was > away. I tested the latest versions of ConTeXt and luatex and have > some problems: > > 1. Is there a simple switch to between luatex and pdftex? If I want > to write typescripts with the new name: syntax, I'd like to have the > old typsecripts as well to remain compatible. So: is there something > like a simple switch \ifluatex? one option is to make two versions (name.mkii and name.mkiv) and then in the name.tex file say \loadmarkfile{name} which will choose the right variant then > 2. I tested with a number of OpenType fonts from my Adobe Type > Classics CD: ConTeXt Mkiv can address these fonts (which is > wonderful), but it does not read the kerning information. I don't > know whether this is because Adobe's kerning tables are so big > (kerning appears to work with the TeXGyre fonts and Latin Modern) or > because the Adobe fonts have these tables included in a somewhat > different way. depends on the way you define things ... maybe the kerning is language dependent? kern is a feature in base mode, we use tex's kerning and ligatures and can only have simple replacement, in node mode, mkiv does everything itself > Will be back with lots of more question re. Greek soon! good Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatex and typescripts/fonts
2007/8/29, Thomas A. Schmitz <[EMAIL PROTECTED]>: > Hi guys, > > I missed some of the excitement of the last two weeks because I was > away. I tested the latest versions of ConTeXt and luatex and have > some problems: > > 1. Is there a simple switch to between luatex and pdftex? If I want > to write typescripts with the new name: syntax, I'd like to have the > old typsecripts as well to remain compatible. So: is there something > like a simple switch \ifluatex? Hi Thomas, you can try group your pdfTeX typescripts in \beginOLDTEX ... \endOLDTEX and your LuaTeX typescripts in \beginLUATEX ... \endLUATEX groups, or you make two extra files--one for pdfTeX and one for LuaTeX--with the file type mkii and mkiv and load them in your typescript file with \loadmarkfile{type-...}. > 2. I tested with a number of OpenType fonts from my Adobe Type > Classics CD: ConTeXt Mkiv can address these fonts (which is > wonderful), but it does not read the kerning information. I don't > know whether this is because Adobe's kerning tables are so big > (kerning appears to work with the TeXGyre fonts and Latin Modern) or > because the Adobe fonts have these tables included in a somewhat > different way. Sorry, not my price class. > Will be back with lots of more question re. Greek soon! > > All best > > Thomas Welcome back! 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] luatex and typescripts/fonts
Hi guys, I missed some of the excitement of the last two weeks because I was away. I tested the latest versions of ConTeXt and luatex and have some problems: 1. Is there a simple switch to between luatex and pdftex? If I want to write typescripts with the new name: syntax, I'd like to have the old typsecripts as well to remain compatible. So: is there something like a simple switch \ifluatex? 2. I tested with a number of OpenType fonts from my Adobe Type Classics CD: ConTeXt Mkiv can address these fonts (which is wonderful), but it does not read the kerning information. I don't know whether this is because Adobe's kerning tables are so big (kerning appears to work with the TeXGyre fonts and Latin Modern) or because the Adobe fonts have these tables included in a somewhat different way. Will be back with lots of more question re. Greek soon! All best Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context replacement for bibitem
Hi, I think you like also a article from the Maps about thebibliography in ConTeXt I found some time ago. http://maps.aanhet.net/maps/pdf/27_14.pdf Wolfgang 2007/8/29, Aditya Mahajan <[EMAIL PROTECTED]>: > On Wed, 29 Aug 2007, Peter Schorsch wrote: > > > Hi, > > > > I have done a little with Context but I am still a beginner. As I can read > > in the archive of this list, there is no possibility to divide the > > bibliography into sections by the generated bibliography. If this > > assumption is true, I would like to enter the bibitems into the > > normal .tex-file. I was also reading the doc of the context-bib-module but > > I couldn't find any context-replacement for \bibitem. > > > > Headings inside the bibliography are very important for my text and the > > advantages of bibitem would simplify my data-entering, so I would be happy > > for any hint/help how to realize this in Context. > > > > I don't want to go back to Latex but to declare my problem better: In Latex > > a simplified example looks like: > > > > \begin{document} > > > > \section{hamha} > > asdfklsj fk\cite{key-1} > > > > \section{dumdidim} > > asdfsaff alfs hfdsj\cite{key-2} > > > > \begin{thebibliography}{1} > > \subsection*{hamha} > > \bibitem{key-1}erstes > > \subsection*{dumdidim} > > \bibitem{key-2}zweites > > \end{thebibliography} > > > > \end{document} > > If you do not mind a little more markup. > > \definereferenceformat[cite][left={[},right={]}] > > \defineitemgroup >[bibliography] > > \setupitemgroup >[bibliography] >[levels=1,itemalign=flushright,left={[},right={]},stopper=,intro=yes] > > \setupitemgroup[bibliography][1][n,fit,broad] > > > \starttext > > \section{hamha} > asdfklsj fk~\cite[key-1] > > \section{dumdidim} > asdfsaff alfs hfdsj~\cite[key-2] > > \subject{Bibliography} > > \subsubject{hamha} > > \startbibliography > \item[key-1] erstes > \stopbibliography > > \subsubject{dumdidim} > \startbibliography[continue] > \item[key-2] zweites > \stopbibliography > > \stoptext > > Actually, this will aslo work: > > \subject{Bibliography} > > \subsubject{hamha} > > \startbibliography > \item[key-1] erstes > \subsubject{dumdidim} > \startbibliography[continue] > \item[key-2] zweites > \stopbibliography > > Only the first subsubject needs to be outside the bibliography > environment. > > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___