Re: [NTG-context] Let's Polish the math!
On Sat, Mar 14, 2009 at 01:26, Marcin Borkowski wrote: Hi, how to do this: here in Poland we have some conventions as for typesetting math; for example, we don't use \leq, but \leqslant; we don't write tan for tangent, but tg; That one is trivial. In math-tex there are dozens of definitions like: \definemathcommand [tan] [nolop] {\mfunction{tan}} In my opinion adding \definemathcommand [tg] [nolop] {\mfunction{tg}} to the list sounds reasonable, so then you can simply use \tg. we don't write arcsin, but arc\,sin; etc. \definemathcommand [arcsin] [limop] {\mfunction{arc\,sin}} But I don't know how to make it language-dependant (you can definitely put it to some place that only gets loaded when you load Polish, but then you'll have problems switching back and forth). Would it be possible to have such typographic conventions (I could provide a more comprehensive list, of course) enabled by \mainlanguage[pl]? A related problem is dashes; where the English use an em-dash without any spaces, the Polish use an en-dash with spaces of around 0.2em (the left one unbreakable, i.e., with \penalty1). I put a normal or unbreakable space around it :) :) :) But maybe that's not the right solution, I just didn't care too much. Also, we put periods after section numbers, so no 1.2 Section, but rather 1.2. Section. What is the ConTeXt way to have such things for different languages? We do that too. The code below is a dirty hack that achives the desired result (in any mark), but cannot be hardcoded into the language since it has some side effects: \def\mynumberwithdot#1{#1.} \setuphead [section] % gets inherited for subsections as well [numbercommand=\mynumberwithdot] Hans has rewritten sectioning for mkiv I think, but I didn't explore the new possibilities yet. So if you figure it out ... I would like to have it for Slovenian as well. 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 ___
Re: [NTG-context] What does \c! means?
Alan Stone wrote: On Sat, Mar 14, 2009 at 5:32 AM, Wei-Wei Guo wwgu...@gmail.com wrote: Dear all, I'm reading the source file of t-bib. I find there are lots of '\c!', '\s!', and '\v!'. What do they mean? I searched in wiki, TeXBook, ConTeXt manual, TeX impatient, and mail list. Those commands appear some times, but no explanation. http://archive.contextgarden.net/message/20080629.104105.40e28a70.el.html Also generally helpful for a low-level understanding of context are these wiki pages: http://wiki.contextgarden.net/System_Macros Best wishes, Taco ___ 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] What does \c! means?
On Sat, Mar 14, 2009 at 5:32 AM, Wei-Wei Guo wwgu...@gmail.com wrote: Dear all, I'm reading the source file of t-bib. I find there are lots of '\c!', '\s!', and '\v!'. What do they mean? I searched in wiki, TeXBook, ConTeXt manual, TeX impatient, and mail list. Those commands appear some times, but no explanation. http://archive.contextgarden.net/message/20080629.104105.40e28a70.el.html Another question is related the following codes from Taco (thank you, Taco). There are tokens like '\??pb @l...@`. What does it mean? Could you tell me, to get deep understanding, what to read or which part to read in TeXBook or some other manuals. I don't know what to search to find related topics. \unprotect \def\lang#1% {\def\biblanguage{#1}% \ifcsname \??pb @l...@#1\endcsname \expanded{\mainlanguage[\getvalue{\??pb @l...@#1}]}% \expanded{\language[\getvalue{\??pb @l...@#1}]}% \fi \ignorespaces} \protect Best wishes, Wei-Wei ___ 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] Let's Polish the math!
Hi Marcin, On Sat, 14 Mar 2009, Marcin Borkowski wrote: Hi, how to do this: here in Poland we have some conventions as for typesetting math; for example, we don't use \leq, but \leqslant; The easy way is to type ⩽ (0x2A7D) instead of ≤ (0x2264) :). You can do something like \setuplabeltext [en] [lessthanequal={\leq}] \setuplabeltext [pl] [lessthanequal={\leqslant}] \def\le{\labeltext{lessthanequal}} and then use \le, but I am not sure if this is a good thing to do. we don't write tan for tangent, but tg; Do you want \tan to produce tg? Again you can do \setuplabeltext [en] [tangent={tan}] \setuplabeltext [pl] [tangent={tg}] \definemathcommand [tan] [nolop] {\mfunction{\labeltext{tangent}}} we don't write arcsin, but arc\,sin; etc. Same as above. Would it be possible to have such typographic conventions (I could provide a more comprehensive list, of course) enabled by \mainlanguage[pl]? It is relatively easy to do this. I am in favour of implementing the trignometric functions, etc; but I do not think that changing the meanings of mathematical symbols is a good thing. It is really hard to remember the names of symbols as is, changing meaning according to language will make it extremely difficult. A related problem is dashes; where the English use an em-dash without any spaces, the Polish use an en-dash with spaces of around 0.2em (the left one unbreakable, i.e., with \penalty1). Don't know. Also, we put periods after section numbers, so no 1.2 Section, but rather 1.2. Section. \setuplabeltext [pl] [section={{},{.}}] What is the ConTeXt way to have such things for different languages? \setuplabeltext 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] off topic: page numbering question
Hi, my question is not directly related to context, so please excuse. In my document I have even before the abstract the summary in 2 languages. Then the TOC (table of contents), then list of symbols which is followed by the introduction. But where do I start with page number 1? - at the very beginning? - at the TOC (earlier pages get then numbered I, II, III, ... - at the introduction? A last question, is it common to add the two summaries in the TOC or to start with the list of symbols? Or are there no rules at all and I can do it as I like? Best regards 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] beta
Hi Hans, I discovered two problems with the beta. 1. \typescriptone is ignored in the typescripts and many fonts (e.g. can't be used) \starttypescript [termes,times] \definetypeface [\typescriptone] [rm] [serif] [termes] [default] \stoptypescript 2. The new feature \getcheckedparameters acts like \get*e*parameter in the lua code. 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] off topic: page numbering question
WolfgangZ wol...@gmx.net writes: Hi, my question is not directly related to context, so please excuse. In my document I have even before the abstract the summary in 2 languages. Then the TOC (table of contents), then list of symbols which is followed by the introduction. But where do I start with page number 1? - at the very beginning? - at the TOC (earlier pages get then numbered I, II, III, ... - at the introduction? It's probably frowned on by real writers, but I actually make the front cover page 1. This is just so that when you go to print an extract of the document (or go to a page number when viewing), the page numbers match those in the software dialog. Having said that it may well be that PDF viewers are clever enough to know the logical page number rather than the physical one, does anyone know about this? [...] -- John Devereux ___ 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] beta
Hi, I encounter the same problem with all Gyre fonts as well. I am using: MtxRun | current version: 2009.03.13 17:35 This is LuaTeX, Version snapshot-0.36.0-2009031418, build unknown BTW, the \Vert delimiter (double vertical bar) is missing. Regards, shenchen On Sat, Mar 14, 2009 at 6:20 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi Hans, I discovered two problems with the beta. 1. \typescriptone is ignored in the typescripts and many fonts (e.g. can't be used) \starttypescript [termes,times] \definetypeface [\typescriptone] [rm] [serif] [termes] [default] \stoptypescript 2. The new feature \getcheckedparameters acts like \get*e*parameter in the lua code. 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 ___ ___ 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] off topic: page numbering question
Am 14.03.2009 um 12:43 schrieb John Devereux: Having said that it may well be that PDF viewers are clever enough to know the logical page number rather than the physical one, does anyone know about this? http://archive.contextgarden.net/message/20081216.091038.3b5ae9e1.en.html 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] Let's Polish the math!
Am 14.03.2009 um 01:26 schrieb Marcin Borkowski: Would it be possible to have such typographic conventions (I could provide a more comprehensive list, of course) enabled by \mainlanguage[pl]? \startlanguagespecifics[pl] ... % what Mojca and Aditya told you \stoplanguagespecifics 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] Let's Polish the math!
En/na Aditya Mahajan ha escrit: Hi Marcin, On Sat, 14 Mar 2009, Marcin Borkowski wrote: Hi, how to do this: here in Poland we have some conventions as for typesetting math; for example, we don't use \leq, but \leqslant; In catalan and spanish languages we have too some conventions: $\max$ should type màx (with grave accent), and $\min$ should type mín (with accute accent). Is it a way for doing this by default? Xan. ___ 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] off topic: page numbering question
Wolfgang Schuster schuster.wolfg...@googlemail.com writes: Am 14.03.2009 um 12:43 schrieb John Devereux: Having said that it may well be that PDF viewers are clever enough to know the logical page number rather than the physical one, does anyone know about this? http://archive.contextgarden.net/message/20081216.091038.3b5ae9e1.en.html Thanks! Using the example, viewers which correctly display the logical page numbers (i,ii,iii,iv,1,2,3 etc) are: xpdf no kpdf no ocular no foxit no evince yes! acrobat 4 yes Only acrobat seems to cope with ii in the print dialog, although I did not try very hard on the others. -- John Devereux ___ 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] type-win.tex
Hello, Can someone pls test my typescript? It defines the following standard Windows fonts: Arial Arial Black Comic Sans MS Courier New Franklin Gothic Medium Georgia Impact Lucida Console Lucida Sans Unicode Microsoft Sans Serif Palatino Linotype Sylfaen Tahoma Times New Roman Trebuchet MS Verdana Waiting for responses, Vyatcheslav \starttypescriptcollection[windows] \starttypescript [serif] [georgia,palatino,times] \setups[font:fallback:serif] \definefontsynonym [Serif] [\typescripttwo-Regular] [features=default] \definefontsynonym [SerifBold] [\typescripttwo-Bold] [features=default] \definefontsynonym [SerifItalic] [\typescripttwo-Italic] [features=default] \definefontsynonym [SerifBoldItalic] [\typescripttwo-BoldItalic] [features=default] \stoptypescript \starttypescript [serif] [sylfaen] \setups[font:fallback:serif] \definefontsynonym [Serif] [\typescripttwo-Regular] [features=default] \stoptypescript \starttypescript [sans] [arial,trebuchet,verdana] \setups[font:fallback:sans] \definefontsynonym [Sans] [\typescripttwo-Regular] [features=default] \definefontsynonym [SansBold] [\typescripttwo-Bold] [features=default] \definefontsynonym [SansItalic] [\typescripttwo-Italic] [features=default] \definefontsynonym [SansBoldItalic] [\typescripttwo-BoldItalic] [features=default] \stoptypescript \starttypescript [sans] [arialblack,impact,lucidasans,microsans] \setups[font:fallback:sans] \definefontsynonym [Sans] [\typescripttwo-Regular] [features=default] \stoptypescript \starttypescript [sans] [comic,tahoma] \setups[font:fallback:sans] \definefontsynonym [Sans] [\typescripttwo-Regular] [features=default] \definefontsynonym [SansBold] [\typescripttwo-Bold] [features=default] \stoptypescript \starttypescript [sans] [franklin] \setups[font:fallback:sans] \definefontsynonym [Sans] [\typescripttwo-Regular] [features=default] \definefontsynonym [SansItalic] [\typescripttwo-Italic] [features=default] \stoptypescript \starttypescript [mono] [courier] \setups[font:fallback:mono] \definefontsynonym [Mono] [\typescripttwo-Regular] [features=default] \definefontsynonym [MonoBold] [\typescripttwo-Bold] [features=default] \definefontsynonym [MonoItalic] [\typescripttwo-Italic] [features=default] \definefontsynonym [MonoBoldItalic] [\typescripttwo-BoldItalic] [features=default] \stoptypescript \starttypescript [mono] [lucidaconsole] \setups[font:fallback:mono] \definefontsynonym [Mono] [\typescripttwo-Regular] [features=default] \stoptypescript \definetypescriptprefix [f:arial] [Arial] \definetypescriptprefix [f:arialblack] [Arial Black] \definetypescriptprefix [f:comic] [Comic Sans MS] \definetypescriptprefix [f:courier][Courier New] \definetypescriptprefix [f:franklin] [Franklin Gothic Medium] \definetypescriptprefix [f:georgia][Georgia] \definetypescriptprefix [f:impact] [Impact] \definetypescriptprefix [f:lucidaconsole] [Lucida Console] \definetypescriptprefix [f:lucidasans] [Lucida Sans Unicode] \definetypescriptprefix [f:microsans] [Microsoft Sans Serif] \definetypescriptprefix [f:palatino] [Palatino Linotype] \definetypescriptprefix [f:sylfaen][Sylfaen] \definetypescriptprefix [f:tahoma] [Tahoma] \definetypescriptprefix [f:times] [Times New Roman] \definetypescriptprefix [f:trebuchet] [Trebuchet MS] \definetypescriptprefix [f:verdana][Verdana] \starttypescript [serif] [georgia,palatino,sylfaen,times] \definefontsynonym [\typescripttwo-Regular] [name:\typescriptprefix{f:\typescripttwo}] [features=default] \definefontsynonym [\typescripttwo-Bold] [name:\typescriptprefix{f:\typescripttwo} Bold][features=default] \definefontsynonym [\typescripttwo-Italic] [name:\typescriptprefix{f:\typescripttwo} Italic] [features=default] \definefontsynonym [\typescripttwo-BoldItalic] [name:\typescriptprefix{f:\typescripttwo} Bold Italic] [features=default] \stoptypescript \starttypescript [sans] [arial,arialblack,comic,franklin,impact,lucidasans,microsans,tahoma,trebuchet,verdana] \definefontsynonym [\typescripttwo-Regular] [name:\typescriptprefix{f:\typescripttwo}] [features=default] \definefontsynonym [\typescripttwo-Bold] [name:\typescriptprefix{f:\typescripttwo} Bold][features=default] \definefontsynonym [\typescripttwo-Italic] [name:\typescriptprefix{f:\typescripttwo} Italic] [features=default] \definefontsynonym [\typescripttwo-BoldItalic] [name:\typescriptprefix{f:\typescripttwo} Bold Italic] [features=default] \stoptypescript \starttypescript [mono] [courier,lucidaconsole] \definefontsynonym [\typescripttwo-Regular] [name:\typescriptprefix{f:\typescripttwo}] [features=default]
Re: [NTG-context] ConTeXt T-shirts?
En/na Xan ha escrit: En/na Wolfgang Schuster ha escrit: \startMPenvironment[global] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,144pt]\bf \stopMPenvironment Wolfgang Without \bf at the end, I get letters more bold. Is it not the contrary of natural behaviour? 8-| Thanks, Xan. Hi another time ;-) How can I get the background were transaparent? (not white) Xan. ___ 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] What does \c! means?
Thank you, Taco and Alan. Best wishes, Wei-Wei Taco Hoekwater 写道: Alan Stone wrote: On Sat, Mar 14, 2009 at 5:32 AM, Wei-Wei Guo wwgu...@gmail.com wrote: Dear all, I'm reading the source file of t-bib. I find there are lots of '\c!', '\s!', and '\v!'. What do they mean? I searched in wiki, TeXBook, ConTeXt manual, TeX impatient, and mail list. Those commands appear some times, but no explanation. http://archive.contextgarden.net/message/20080629.104105.40e28a70.el.html Also generally helpful for a low-level understanding of context are these wiki pages: http://wiki.contextgarden.net/System_Macros ___ 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 T-shirts?
Am 14.03.2009 um 14:50 schrieb Xan: How can I get the background were transaparent? (not white) What do you mean, the background is already transparent. 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 logo (was ConTeXt T-shirts?)
En/na Wolfgang Schuster ha escrit: Am 14.03.2009 um 14:50 schrieb Xan: How can I get the background were transaparent? (not white) What do you mean, the background is already transparent. Wolfgang __ Wolfgang, when I run texexec prova.tex I obtain prova.pdf and prova-mpgraph.1 Both files have background white and not transparent background. I don't know how explain it. Perhaps this [http://www.mediacollege.com/adobe/photoshop/transparent/background.html] could help you (?). How do you mean that it's already transparent? Xan. prova.pdf Description: Adobe PDF document % logo.mp: creates a blue traffic sign-style context logo % Copyright 2008 Taco Hoekwater % You are free to use this code any way you can \setupcolors[state=start,textcolor=white] \startMPenvironment[global] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,144pt] \stopMPenvironment \starttext \startMPpage[offset=0pt] color darkblue,textcolor; darkblue := (0.0625,0,.412); % 0f006b = textcolor := (1,1,1); def rect (expr xl,yl,r) = pickup pencircle scaled 1; draw (xl-.5r,yl-.5r) -- (xl+.5r,yl-.5r)-- (xl+.5r,yl+.5r) -- (xl-.5r,yl+.5r) -- cycle withcolor textcolor; enddef; f:= 14; h:=8; v:=4; fill fullcircle scaled 408 shifted (112,0) withcolor darkblue; label (textext(C), (0,v*f) ) withcolor textcolor ; label (textext(O), (f*h,2*v*f) ) withcolor textcolor ; label (textext(N), (2*f*h,v*f) ) withcolor textcolor ; label (textext(T), (0,-v*f)) withcolor textcolor ; label (textext(E), (f*h,0) ) withcolor textcolor ; label (textext(X), (f*h*2,-v*f)) withcolor textcolor ; label (textext(T), (f*h,-2*v*f)) withcolor textcolor ; r := h*f; rect (0,v*f,r); rect (f*h,2*v*f,r); rect (2*f*h,v*f,r); rect (0,-v*f,r); rect (f*h,0,r); rect (f*h*2,-v*f,r); rect (f*h,-2*v*f,r); \stopMPpage \stoptext prova-mpgraph.1 Description: PostScript document ___ 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 logo
logo.pdf Description: Adobe PDF document Am 14.03.2009 um 16:45 schrieb Xan: Wolfgang, when I run texexec prova.tex I obtain prova.pdf and prova- mpgraph.1 Both files have background white and not transparent background. I don't know how explain it. Perhaps this [http://www.mediacollege.com/adobe/photoshop/transparent/background.html ] could help you (?). How do you mean that it's already transparent? \setupcolors[state=start] \setupbackgrounds[page][background=color,backgroundcolor=green] \starttext \externalfigure[prova] \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] Let's Polish the math!
Xan wrote: En/na Aditya Mahajan ha escrit: Hi Marcin, On Sat, 14 Mar 2009, Marcin Borkowski wrote: Hi, how to do this: here in Poland we have some conventions as for typesetting math; for example, we don't use \leq, but \leqslant; In catalan and spanish languages we have too some conventions: $\max$ should type màx (with grave accent), and $\min$ should type mín (with accute accent). Is it a way for doing this by default? we could make them labels per language ... probably with some prefix like math:max or so - 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] Let's Polish the math!
En/na Hans Hagen ha escrit: Xan wrote: En/na Aditya Mahajan ha escrit: Hi Marcin, On Sat, 14 Mar 2009, Marcin Borkowski wrote: Hi, how to do this: here in Poland we have some conventions as for typesetting math; for example, we don't use \leq, but \leqslant; In catalan and spanish languages we have too some conventions: $\max$ should type màx (with grave accent), and $\min$ should type mín (with accute accent). Is it a way for doing this by default? we could make them labels per language ... probably with some prefix like math:max or so Thanks, Hans. A punctualization: - \max -- màx for catalan, máx for spanish - \min -- mín for both languages. Sorry for the error. Xan. ___ 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] Let's Polish the math!
Aditya Mahajan wrote: It is relatively easy to do this. I am in favour of implementing the trignometric functions, etc; but I do not think that changing the meanings of mathematical symbols is a good thing. It is really hard to remember the names of symbols as is, changing meaning according to language will make it extremely difficult. indeed, so ... who is going to collect those labels? aditya and i can take care of the usage 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] Context logo
En/na Wolfgang Schuster ha escrit: Am 14.03.2009 um 16:45 schrieb Xan: Wolfgang, when I run texexec prova.tex I obtain prova.pdf and prova-mpgraph.1 Both files have background white and not transparent background. I don't know how explain it. Perhaps this [http://www.mediacollege.com/adobe/photoshop/transparent/background.html] could help you (?). How do you mean that it's already transparent? \setupcolors[state=start] \setupbackgrounds[page][background=color,backgroundcolor=green] \starttext \externalfigure[prova] \stoptext Wolfgang Eh? Green? I think in transparent. I transform your logo.pdf with GIMP and applying transparency in green color. The result I save as png file (gimp says me that eps does not support transparency!? is it true?). Please, see the png file and see that background is transparent. Xan. inline: prova-mpgraph.1-1.png___ 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] beta
On Sat, 14 Mar 2009, Chen Shen wrote: BTW, the \Vert delimiter (double vertical bar) is missing. \starttext $\Vert$ \stoptext gives me \Vert. Can you give an example where it doesn't work? 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] Context logo
Am 14.03.2009 um 17:15 schrieb Xan: Eh? Green? I think in transparent. I tried to show you the included pdf had a transparent background, the color is unimportant. I transform your logo.pdf with GIMP and applying transparency in green color. The result I save as png file (gimp says me that eps does not support transparency!? is it true?). Dunno about eps but AFAIK postscript 3(?) supports transparent colors. Please , see the png file and see that background is transparent. If you're interested I can send you a better version with bold letters. 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] XeTeX font feature selection
What is the correct way of selecting a font and using OpenType features? I have tried \definetypeface[linlib][rm][Xserif][Linux Libertine][features=oldstyle] \setupbodyfont[linlib, 12pt] but the output prints Computer Modern (and not with old-style numerals). The font seems to work without the features=oldstyle, but I am not sure how to select the font and some OpenType features. I don't seem to be able to find any documentation. John ___ 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] beta
Hi Aditya, minimal example: \starttext $\Vert x \Vert$ $\left\Vert x \right\Vert$ \stoptext When I run context, the first line passes, but no vertical bar is displayed. The second line triggers the following error message: ! Missing delimiter (. inserted). to be read again \Umathchar \Vert -\Umathchar 0 0 2225 l.4 $\left\Vert x \right\Vert$ thanks a lot. regards, shenchen On Sun, Mar 15, 2009 at 12:44 AM, Aditya Mahajan adit...@umich.edu wrote: On Sat, 14 Mar 2009, Chen Shen wrote: BTW, the \Vert delimiter (double vertical bar) is missing. \starttext $\Vert$ \stoptext gives me \Vert. Can you give an example where it doesn't work? 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 ___
Re: [NTG-context] beta
Wolfgang Schuster wrote: Hi Hans, I discovered two problems with the beta. 1. \typescriptone is ignored in the typescripts and many fonts (e.g. can't be used) \starttypescript [termes,times] \definetypeface [\typescriptone] [rm] [serif] [termes] [default] \stoptypescript 2. The new feature \getcheckedparameters acts like \get*e*parameter in the lua code. fixed - 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] beta
On Sun, 15 Mar 2009, Chen Shen wrote: Hi Aditya, minimal example: \starttext $\Vert x \Vert$ $\left\Vert x \right\Vert$ \stoptext When I run context, the first line passes, but no vertical bar is displayed. The second line triggers the following error message: ! Missing delimiter (. inserted). to be read again \Umathchar \Vert -\Umathchar 0 0 2225 l.4 $\left\Vert x \right\Vert$ thanks a lot. Make the following change in char-def.lua and regenerate formats. @@ -52729,8 +52729,7 @@ characters.data={ linebreak=ai, mathspec={ { class=relation, name=parallel }, - { class=nothing, name=Vert }, + { class=delimiter, name=Vert }, { class=nothing, name=Arrowvert }, { class=open, name=lVert }, { class=close, name=rVert }, 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] die if a module is missing
Aditya Mahajan wrote: On Sat, 14 Mar 2009, Hans Hagen wrote: Michael Bynum wrote: This has burned me too. It would be nice if the errors were more prominent, perhaps repeated at the end of the output? ok, i do repeat it now; aborting the run is no options as some modules might have been removed due to integration in the core Then the user should know that and update the source file :-). It can be a normal error prompt, the one where you get a question mark and are asked if you want to continue or abort (rather than enter the file name prompt of \input). I do feel that for user modules, there should be an error when the module is not found. If you do not want the above behaviour as a default, it could be a configurable option. needs thinking ... i don't want fully automated flows to abort unseen configuration is an option but again i first need a mechanism for that (and we should all agree on 'what is fatal' and not) 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] Context logo
En/na Wolfgang Schuster ha escrit: Am 14.03.2009 um 17:15 schrieb Xan: Eh? Green? I think in transparent. I tried to show you the included pdf had a transparent background, the color is unimportant. Eh? Can you explain with more details this fact?. I see green the blackground. Why do you say that it's not important and transparent? I transform your logo.pdf with GIMP and applying transparency in green color. The result I save as png file (gimp says me that eps does not support transparency!? is it true?). Dunno about eps but AFAIK postscript 3(?) supports transparent colors. How do you pass from pdf to postscript?. When I run texexec prova.tex I get prova-mpgraph.1 that file says me that it's eps. How can I pass from this file to transparent postscript? or from pdf to postscript? In theory if postscript support transparent background, eps should do (?) Please , see the png file and see that background is transparent. If you're interested I can send you a better version with bold letters. Yes, I want to have exactly the same logo of the wiki. Wolfgang Thanks Wolfgang for your hacking. ;-) Regards, Xan. ___ 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 logo
Am 14.03.2009 um 20:22 schrieb Xan: I tried to show you the included pdf had a transparent background, the color is unimportant. Eh? Can you explain with more details this fact?. I see green the blackground. Why do you say that it's not important and transparent? Let me explain this on a example. \setupcolors[state=start] \starttext \externalfigure[contextlogo.png][frame=on] \page \setupbackgrounds[page][background=color,backgroundcolor=red] \externalfigure[contextlogo.png][frame=on] \stoptext You can on the first page the background of the picture is white, to show the site of the picture I enabled the frame. On the second page I set a background color for the entire page and as you can see the background of the picture around the circle has the same color as the page background, this could only happen because the background of the picture is transparent. If you go now back on the first page you can now see, the white background is not from the picture but from the page background. I transform your logo.pdf with GIMP and applying transparency in green color. The result I save as png file (gimp says me that eps does not support transparency!? is it true?). Dunno about eps but AFAIK postscript 3(?) supports transparent colors. How do you pass from pdf to postscript?. When I run texexec prova.tex I get prova-mpgraph.1 that file says me that it's eps. How can I pass from this file to transparent postscript? or from pdf to postscript? In theory if postscript support transparent background, eps should do (?) Dou you need the eps generated or can you also use the pdf generated from ConTeXt with the included metapost graphic. If you're interested I can send you a better version with bold letters. Yes, I want to have exactly the same logo of the wiki. Which size do you need? 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 logo
En/na Wolfgang Schuster ha escrit: Am 14.03.2009 um 20:22 schrieb Xan: I tried to show you the included pdf had a transparent background, the color is unimportant. Eh? Can you explain with more details this fact?. I see green the blackground. Why do you say that it's not important and transparent? Let me explain this on a example. \setupcolors[state=start] \starttext \externalfigure[contextlogo.png][frame=on] \page \setupbackgrounds[page][background=color,backgroundcolor=red] \externalfigure[contextlogo.png][frame=on] \stoptext You can on the first page the background of the picture is white, to show the site of the picture I enabled the frame. On the second page I set a background color for the entire page and as you can see the background of the picture around the circle has the same color as the page background, this could only happen because the background of the picture is transparent. If you go now back on the first page you can now see, the white background is not from the picture but from the page background. Yes, Wolfgang. Now I understand it. The actually process is: texexec prova.tex -- prova.pdf and prova-mpgraph.1 (eps file) generated. Try your code for prova.pdf: \setupcolors[state=start] \starttext \externalfigure[prova.pdf][frame=on] \page \setupbackgrounds[page][background=color,backgroundcolor=red] \externalfigure[prova.pdf][frame=on] \stoptext and I see what you said. So it has transparent background, but why gimp says that eps does not support transparency? Strange. Really strange. If you're interested I can send you a better version with bold letters. Yes, I want to have exactly the same logo of the wiki. Which size do you need? Size? The size of the font: the same. But more bold.If you see wiki logo have letters more bold than our pdf logo (see attachments) Wolfgang Thanks a lot, Xan. ___ 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 ___ inline: logo-alt4.png prova.pdf Description: Adobe PDF document ___ 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] inclusion of pdf figures
Excuse me if this has been reported before, but I couldn't find anything in the archive: has inclusion of pdf figures been broken in mkiv for longer or just in the most recent release? This works in mkii and fails in mkiv: \starttext \externalfigure[~/context/tex/texmf-context/tex/context/sample/cow] [type=pdf,width=5cm] \stoptext 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 logo
On Sat, 14 Mar 2009, Xan wrote: Yes, Wolfgang. Now I understand it. The actually process is: texexec prova.tex -- prova.pdf and prova-mpgraph.1 (eps file) generated. and I see what you said. So it has transparent background, but why gimp says that eps does not support transparency? Strange. Really strange. AFAIU, trasparency is implemented using specials in mp code, so the eps (the .1 file) does not contain transparency, but the pdf does. Did you open the pdf or the eps file in gimp? 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] inclusion of pdf figures
Thomas A. Schmitz wrote: Excuse me if this has been reported before, but I couldn't find anything in the archive: has inclusion of pdf figures been broken in mkiv for longer or just in the most recent release? This works in mkii and fails in mkiv: \starttext \externalfigure[~/context/tex/texmf-context/tex/context/sample/cow][type=pdf,width=5cm] it's luatex itself, hartmut is working on it right now so expect a new version after the weekend 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] inclusion of pdf figures
On Mar 14, 2009, at 10:32 PM, Hans Hagen wrote: it's luatex itself, hartmut is working on it right now so expect a new version after the weekend Hans OK, I see, thanks! Maybe I'll drive over to Schwetzingen and yell at Hartmut to motivate him... 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] \FlushStep in module s-pre-50 adds too much space
Hello, I tried using module s-pre-50 to get stepwise revelation of the content in my presentation today. I noticed that the command \FlushStep adds what seems to be too much space between successive items. Is there a way, I can prevent \FlushStep from adding this much space. Thank you. ___ 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] pinyin in context
Dear Hans, Can you help check if you can implement a new feature of pinyin input in context? I upload the effect I wanna get in bellow link ( what I provide last time seemed doesn't work), Please check. http://picasaweb.google.com/lh/sredir?uname=weilai.longtarget=ALBUMid=5313243080349643217authkey=Gv1sRgCJLO9v__gOPr_gEfeat=email Thanks in advance. On Wed, Mar 11, 2009 at 12:44:49PM +0800, Bill Long wrote: I input pinyin above Chinese character in bellow way: --- \documentclass{article} \usepackage[overlap, CJK]{ruby} \usepackage{pinyin} \usepackage{CJK} \begin{CJK*}{UTF8}{song} \begin{document} \renewcommand{\rubysep}{.3ex} \renewcommand{\rubysize}{.5} \ruby{静}{\jing4} \ruby{夜}{\ye4}\ruby{思}{\si1} \end{CJK*} \end{document} but it has poor line break, Does contex support pinyin ? and how to implement? Thanks. -- 卷206_55 【送王牧往吉州谒王使君叔】李嘉祐 细草绿汀洲,王孙耐薄游。年华初冠带,文体旧弓裘。 野渡花争发,春塘水乱流。使君怜小阮,应念倚门愁。 ___ 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 ___