Re: [NTG-context] Arabic transliteration
Ugly things indeed, Mojca. And even more so given my limited skills. Here is what I have for “H” with a breve accent below. \def\Hbrevebelow{H\smash{\lower1.9ex\hbox{\kern-3pt\llap{\char'010}}} \kern3pt} This only “works” in an italic environment by the way. With apologies to the wizards on this list, Alan On May 14, 2008, at 13;17,49 , Mojca Miklavec wrote: > On Wed, May 14, 2008 at 4:41 PM, Alan Bowen wrote: >> Many thanks, Idris and Mojca. >> >> If all goes well, I will move to luatex this summer---that really >> does >> seem to be the way to go---and then investigate XeTeX, which I gather >> is now functioning well with luatex. For now, however, I will have to >> cobble a macro using hints that Mojca provided. > > My hint(s) only work in XeTeX and LuaTeX. > >> By the way I am using Latin Modern (ec encoding). > > With ec encoding you really need to do ugly things. You need to > compose a character by more or less manually lowering the breve accent > and take care for italic correction yourself. Not even accent > primitive can be used for it. And you cannot use the combining accent > after the character or the proper Unicode glyph (though the latter > might be possible by patching some definition in ConTeXt core), you > always need to use a macro. > > With XeTeX and LuaTeX all that comes (almost) for free. > > Mojca > ___ > 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 ___
[NTG-context] Alignment of Itemize
I have put this in my source file: \startitemize[R][4*broad,stopper=---] And in the output the m rule (---) was overlapped by the roman numeral. By the way I would like to align the roman numeral to the right more or less like this (it is difficult to do in text format) I --- blablablablablablabla II --- blablablablablablabla III --- blablablablablablabla IV --- blablablablablablabla VIII --- blablablablablablabla Thank you very much for your help Armando ___ 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 and braces
Aditya Mahajan wrote: > Hi, > > I am using ConTeXt ver: 2008.05.13, and in mkiv braces seem to gobble the > next digit. They work fine with mkii. > > Minimal example > > \starttext > The digits $\{0,1,2,3,4\}0,1,2,3,4$ > The letters $\{a,b,c,d\}a,b,c,d$ > \stoptext add spaces ... function mathematics.mathchar(class,family,slot) return ("\\omathchar\"%X%02X%04X "):format(class,family,slot) end function mathematics.mathaccent(class,family,slot) return ("\\omathaccent\"%X%02X%04X "):format(class,family,slot) end function mathematics.delimiter(class,family,slot,largefamily,largeslot) return ("\\odelimiter\"%X%02X%04X\"%02X%04X "):format(class,family,slot,largefamily,largeslot) end - 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] Arabic transliteration
On Wed, May 14, 2008 at 4:41 PM, Alan Bowen wrote: > Many thanks, Idris and Mojca. > > If all goes well, I will move to luatex this summer---that really does > seem to be the way to go---and then investigate XeTeX, which I gather > is now functioning well with luatex. For now, however, I will have to > cobble a macro using hints that Mojca provided. My hint(s) only work in XeTeX and LuaTeX. > By the way I am using Latin Modern (ec encoding). With ec encoding you really need to do ugly things. You need to compose a character by more or less manually lowering the breve accent and take care for italic correction yourself. Not even accent primitive can be used for it. And you cannot use the combining accent after the character or the proper Unicode glyph (though the latter might be possible by patching some definition in ConTeXt core), you always need to use a macro. With XeTeX and LuaTeX all that comes (almost) for free. Mojca ___ 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] Mkiv and braces
Hi, I am using ConTeXt ver: 2008.05.13, and in mkiv braces seem to gobble the next digit. They work fine with mkii. Minimal example \starttext The digits $\{0,1,2,3,4\}0,1,2,3,4$ The letters $\{a,b,c,d\}a,b,c,d$ \stoptext 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] Arabic transliteration
On Wed, 14 May 2008 08:41:08 -0600, Alan Bowen <[EMAIL PROTECTED]> wrote: > For now, however, I will have to > cobble a macro using hints that Mojca provided. > > By the way I am using Latin Modern (ec encoding). Have you checked the very latest Latin Modern? You should not need macros, since all Arabic transliteration chars are there now. If you really do need macros, I can send you my old Arabic transliteration macros and you can use/modify those for the effect you need. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math equation with indentation
On Wed, 14 May 2008, 302302 wrote: >> On Tue, 13 May 2008, 302302 wrote: >> >>> Hi, >>> I need to use a multieqaution in this form ( >>> http://img233.imageshack.us/img233/2372/eqsx3.png ). I am mostly interested >>> in the right brace and >the indentation after the "subject to". I tried to >>> use mathmatrix but without success. Can you help me with it?> >> >> I am using nested matrices, but this is one case which will be best solved >> by something equivalent for gathered and aligned. It has been on my todo >> list for a long time. >> >> Here is a solution using nested matrices, where I use \noalign to fake >> correct spacing after the first line (and changed the \cdots in the last >> condition to \dots). >> >> \definemathmatrix[rightbrace][left={\left.},right={\,\right\}},n=1,align=left] >> >> \starttext >> >> \placeformula[+] \startformula >> \startrightbrace >> \NC \min \{c_1 x_1 + c_2 x_2 + \cdots + c_n x_n \} \NR >> \noalign{\vskip 0.2em} >> \NC \text{subject to} \NR >> \NC \quad >> \startmathmatrix[n=9,align={middle,middle,middle, >> middle,middle,middle,right,middle,middle}, >> distance=0.3em] >> \NC a_{11} x_1 \NC + \NC a_{12} x_2 \NC + >> \NC \cdots \NC + \NC a_{1n} x_n \NC = \NC b_1 \NR >> \NC a_{21} x_1 \NC + \NC a_{22} x_2 \NC + >> \NC \cdots \NC + \NC a_{2n} x_n \NC = \NC b_2 \NR >> \NC\NC \NC \vdots\NC >> \NC\NC \NC\NC \NC \vdots \NR >> \NC a_{m1} x_1 \NC + \NC a_{m2} x_2 \NC + >> \NC \cdots \NC + \NC a_{mn} x_n \NC = \NC b_m \NR >> \NC\NC \NC\NC >> \NC\NC >> \NC \llap{x_1,x_2,\dots,x_n} \NC \ge \NC 0. >> \stopmathmatrix \NR >> \stoprightbrace >> \stopformula >> >> \stoptext >> >> >> Aditya > > Great, thanks a lot! And is there any way how to get in the first line > \min_{x \in X} with the parameter exactly below the "min"? Because in this > solution the parameter {x \in X} is on the right bottom, like in a line. Add style=\displaystyle as an option in the definition of rightbrace. 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] Arabic transliteration
Many thanks, Idris and Mojca. If all goes well, I will move to luatex this summer---that really does seem to be the way to go---and then investigate XeTeX, which I gather is now functioning well with luatex. For now, however, I will have to cobble a macro using hints that Mojca provided. By the way I am using Latin Modern (ec encoding). Very best, Alan > On Tue, 13 May 2008 15:53:17 -0600, Alan Bowen <[EMAIL PROTECTED]> > wrote: > >> Greetings! >> >> I am trying to typeset some transliterated Arabic and one of the >> diacritical marks is giving me a problem. How does one put what looks >> like a breve accent (a cup or concave arc) under an letter in >> ConTeXT? > > I used to use macros for that purpose, with the latest Latin Modern > fonts > you should have every Arabic transliteration character you need, > including > the arc under the , ie, ḫ. In luatex you just type ḫ. Try it! > > Best wishes, Idris On May 13, 2008, at 18;24,02 , Mojca Miklavec wrote: > Hello, > > First of all, it's nice if the font provides that character. Which > fonts are you using for your document? > > I wanted to send you an example of how it can be done in different > ways, but there seems to be in interesting problem with XeTeX at the > moment, so I wasn't able to play with it. > > But in general: > > a) simply use character U+032E (combining breve below) > It kind-of-works with LM, but not perfect (there has been some > discussion about how to improve the behaviour of combining accents in > LM) > > b) use character brevebelow from LM and use TeX to place the accent, > see enco-ini.tex for examples > > Of course you can assign your own macro to either of the two options > to access the accent more easily. > > Mojca > < > brevebelow > .tex > > > < > brevebelow > .pdf > > > ___ > 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 ___
Re: [NTG-context] Math equation with indentation
>On Tue, 13 May 2008, 302302 wrote: > >> Hi, >> I need to use a multieqaution in this form ( >> http://img233.imageshack.us/img233/2372/eqsx3.png ). I am mostly interested >> in the right brace and >the indentation after the "subject to". I tried to >> use mathmatrix but without success. Can you help me with it?> > >I am using nested matrices, but this is one case which will be best solved >by something equivalent for gathered and aligned. It has been on my todo >list for a long time. > >Here is a solution using nested matrices, where I use \noalign to fake >correct spacing after the first line (and changed the \cdots in the last >condition to \dots). > >\definemathmatrix[rightbrace][left={\left.},right={\,\right\}},n=1,align=left] > >\starttext > >\placeformula[+] \startformula >\startrightbrace > \NC \min \{c_1 x_1 + c_2 x_2 + \cdots + c_n x_n \} \NR > \noalign{\vskip 0.2em} > \NC \text{subject to} \NR > \NC \quad > \startmathmatrix[n=9,align={middle,middle,middle, > middle,middle,middle,right,middle,middle}, > distance=0.3em] > \NC a_{11} x_1 \NC + \NC a_{12} x_2 \NC + > \NC \cdots \NC + \NC a_{1n} x_n \NC = \NC b_1 \NR > \NC a_{21} x_1 \NC + \NC a_{22} x_2 \NC + > \NC \cdots \NC + \NC a_{2n} x_n \NC = \NC b_2 \NR > \NC\NC \NC \vdots\NC > \NC\NC \NC\NC \NC \vdots \NR > \NC a_{m1} x_1 \NC + \NC a_{m2} x_2 \NC + > \NC \cdots \NC + \NC a_{mn} x_n \NC = \NC b_m \NR > \NC\NC \NC\NC > \NC\NC > \NC \llap{x_1,x_2,\dots,x_n} \NC \ge \NC 0. > \stopmathmatrix \NR > \stoprightbrace >\stopformula > >\stoptext > > >Aditya Great, thanks a lot! And is there any way how to get in the first line \min_{x \in X} with the parameter exactly below the "min"? Because in this solution the parameter {x \in X} is on the right bottom, like in a line. Czenek ___ 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] Arabic transliteration
Idris Samawi Hamid wrote: > On Tue, 13 May 2008 16:24:02 -0600, Mojca Miklavec > <[EMAIL PROTECTED]> wrote: > >> I wanted to send you an example of how it can be done in different >> ways, but there seems to be in interesting problem with XeTeX at the >> moment, so I wasn't able to play with it. >> >> But in general: >> >> a) simply use character U+032E (combining breve below) >> It kind-of-works with LM, but not perfect (there has been some >> discussion about how to improve the behaviour of combining accents in >> LM) > > The big problem with macros for this sort of thing is getting the italics > right -- Arabic transliteration typically uses italics in running text. > The macro will have to be adjusted (or an italic parameter changed) for > every font. See [EMAIL PROTECTED] on page 356 of the TeXBook. > > Anyway, the Unicode 1E00--FF block has most of these problematic chars, > and LM has incorporated the relevant ones. > > For other fonts, perhaps Hans could implement a combining command that > gives an italics parameter option, though that will differ for regular, > bold, etc... ah, you mean that the automatic combiner should adapt to italic/slant ... i need to look into it bold is no problem 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 ___
[NTG-context] Removing inbreakable whitespace at pagebreaks
Hi, I try to take care in my letter module to keep at least the last sentence in the text the signature together on the same page, this did work but I introduced another problem. To get no linebreak between my two sections I used a nonbreakable whitespace between both but my implementation has the side effect to keep the whitespace also if there is no signature after the text even if it the last vertical skip before the page break. You can see in the following example what I mean. \setuplayout[lines=10]\showgrid \starttext \blank[force,9*line] text \par\nobreak\blank[line] \stoptext The last line of text is moved to the second although it would fit on the first page, I could use twopassdata in my module to get the information if the \nobreak is needed on this place but I hope there is also a solution to remove the skip in the first run, maybe for MkIV only. I looked yesterday in the sources and saw \vspacing in core-spa.mkiv, I dont't know what this should do and was unable to get it working but I'm interested to know how it did work and what it should do. Greetings 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 ___