[NTG-context] How to know the text was to big
I want to create a pdf-document which has severall frames in which user supplied data has to be put. I have two questions about this: - How can I use parameters to fill the boxes? - When one or more of the supplied texts does not fit its frame the pdf document is 'corrupt'. How can I see that at least one of the texts did not fit its frame? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Drawing rectangles
2009/11/12 luigi scarso : >> In this case I wanted everything to be centered, but is it possible to >> define the point of the upper corner of a frame? > see > http://wiki.contextgarden.net/Framed I had allready looked there, but it has very little information. Not even the height parameter. Let alone something about placing the frame at a certain spot. So, is there a place to find all the parameters that can be used with framed? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] reducing the space after the enumeration heading
Thanks Wolfgang. 'width=fit,distance=...' option does the trick. On Thu, Nov 12, 2009 at 5:03 PM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > > Am 12.11.2009 um 22:56 schrieb Curiouslearn: > > > Thanks Wolfgang. Here is a working example. The use of distance reduces > the space if I put a negative number. But is there an option that gives a > regular space as between any two words, or do I have to play with the > negative distance number until I get the right value (which is fine, but > just want to make sure that, that is the best way). > > add either 'width=broad' or 'width=fit,distance=...' to your setup while in > the second > case it's sometimes better to use a font related value like 1ex or 0.5em. > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] misprint in cont-eni manual
Hi, Looks like I found a misprint in cont-eni manual. On page 178, \setuphead[chapter][+1] should be \setupheadnumber[chapter][+1] Regards, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] big with \setupfloat[figure][indentnext=yes]
Hello, I found a bug (?) with \setupfloat[figure][indentnext=yes] If I do Some Text \placefigure[middle]{}{...} Some Text then it's ok, but if Some Text \placefigure[inner]{}{...} Some Text then the next paragraph is NOT indented. It looks ugly, please, fix this or tell me what i'm doing wrong. Regards, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A few questions
Hello, I have a few (I suppose easy) questions: 1) asking about this again and again... how to setup itemization so that the first line were indented too? 2) how to setup figure captions so that they include section number, like . (no sub-sub-subsections)? 3) How to start section numbering from, say, second section? Regards, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Thank you everybody very much, esp. Mojca! You almost saved my life! ) In spite of previously said, I don't like mixing Termes with Times New Roman, because e.g. "M" in math looks rather like bold "M" in the text. But I made a hack which works for me: { name = "timesi.ttf", vector = "tex-mi-txpx2", skewchar=0x7F }, I just replaced texgyretermes-italic.otf with timesi.ttf. Unfortunatelly, I cannot modify the first line too, because some greek letters are missed then, but I believe one day I could manage this ) mathematics.make_font ( "tx-math", { { name = "texgyretermes-regular.otf", features = "virtualmath", main = true }, { name = "rtxr.tfm", vector = "tex-mr" } , { name = "rtxmi.tfm", vector = "tex-mi-txpx1", skewchar=0x7F }, { name = "timesi.ttf", vector = "tex-mi-txpx2", skewchar=0x7F }, { name = "txsy.tfm", vector = "tex-sy", skewchar=0x30, parameters = true } , { name = "txex.tfm", vector = "tex-ex", extension = true } , { name = "txsya.tfm", vector = "tex-ma" }, { name = "txsyb.tfm", vector = "tex-mb" }, } ) Perfect for the moment! Thanks again! Best regards, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] reducing the space after the enumeration heading
Am 12.11.2009 um 22:56 schrieb Curiouslearn: > Thanks Wolfgang. Here is a working example. The use of distance reduces the > space if I put a negative number. But is there an option that gives a regular > space as between any two words, or do I have to play with the negative > distance number until I get the right value (which is fine, but just want to > make sure that, that is the best way). add either 'width=broad' or 'width=fit,distance=...' to your setup while in the second case it's sometimes better to use a font related value like 1ex or 0.5em. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] reducing the space after the enumeration heading
Thanks Wolfgang. Here is a working example. The use of distance reduces the space if I put a negative number. But is there an option that gives a regular space as between any two words, or do I have to play with the negative distance number until I get the right value (which is fine, but just want to make sure that, that is the best way). Thanks very much for your help. % Defining Problem enumeration \defineenumeration [Problem] [location=top, text=Problem, between=\blank, before=\blank, after=\blank] % Changing the location of the page numbers so that they appear in the footer. \setuppagenumbering[location=footer] \setupcolors[state=start] \setupcolor[xwi] \starttext \Problem The problem heading is at the top. \setupenumerations[Problem][location=left] \Problem See the space between the heading and the first word. \setupenumerations[Problem][location=left,distance=-0.15in] \Problem The addition of distance option reduces the space. Do I have to play around with this? \stoptext On Thu, Nov 12, 2009 at 4:28 PM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > > Am 12.11.2009 um 22:18 schrieb Curiouslearn: > > > No one wants to help on this? I would appreciate any help. Am I missing > something too obvious? I tried some other options but they do not help. > > Since there is no complete working example I can't test it but you can add > 'distance=\spaceamount' to your enumeration setup. > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the formatting of Natural Tables
Thanks to both Willi and Wolfgang. I quickly tried Wolfgang's method and it worked great. Willi, even if, as you said, the setting is global when placed before \bTABLE. When I repeat the command \setupTABLE[frame=off] again before table 2, should that not be the new global setup and apply to things following it? Thanks again. On Thu, Nov 12, 2009 at 4:32 PM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > > Am 12.11.2009 um 22:21 schrieb Curiouslearn: > > > Hello, > > > > I am using natural tables to make tables in my document. Can someone > please tell me how I can prevent context from applying features I choose for > an earlier table to a table that appears later in the document. Following is > an example of two tables. Even though I choose > > > > \setupTABLE[frame=off] > > > > for the second table, there is a frame created based on what I define for > an earlier table. I am using MKII (since I want to use Tikz). > > > > I would really appreciate any help. > > \start > > \setupTABLE[..,..=..,..] > > \bTABLE > ... > \eTABLE > > \stop > > > Example: > > > > > \setuplayout[letter,height=9in,width=5.5in,topspace=1in,header=1cm,backspace=1.5in] > > ^^^ > > you *can't* use keywords and assignments in the same setup, it's not part > of context’s syntax > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the formatting of Natural Tables
Am 12.11.2009 um 22:31 schrieb Willi Egger: > Hi, > > If you place the setups outside the bTABLE - eTABLE then the setup is global. > You can put the setups after the bTABLE and then they are local to the table. Be careful with this because a few setup can't be done after \bTABLE like - option=stretch - header=repeat - split=yes|repeat|auto Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the formatting of Natural Tables
Am 12.11.2009 um 22:21 schrieb Curiouslearn: > Hello, > > I am using natural tables to make tables in my document. Can someone please > tell me how I can prevent context from applying features I choose for an > earlier table to a table that appears later in the document. Following is an > example of two tables. Even though I choose > > \setupTABLE[frame=off] > > for the second table, there is a frame created based on what I define for an > earlier table. I am using MKII (since I want to use Tikz). > > I would really appreciate any help. \start \setupTABLE[..,..=..,..] \bTABLE ... \eTABLE \stop > Example: > > \setuplayout[letter,height=9in,width=5.5in,topspace=1in,header=1cm,backspace=1.5in] ^^^ you *can't* use keywords and assignments in the same setup, it's not part of context’s syntax Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the formatting of Natural Tables
Hi, If you place the setups outside the bTABLE - eTABLE then the setup is global. You can put the setups after the bTABLE and then they are local to the table. Willi On Nov 12, 2009, at 10:21 PM, Curiouslearn wrote: Hello, I am using natural tables to make tables in my document. Can someone please tell me how I can prevent context from applying features I choose for an earlier table to a table that appears later in the document. Following is an example of two tables. Even though I choose \setupTABLE[frame=off] for the second table, there is a frame created based on what I define for an earlier table. I am using MKII (since I want to use Tikz). I would really appreciate any help. Example: \setuplayout[letter,height= 9in,width=5.5in,topspace=1in,header=1cm,backspace=1.5in] % Changing the location of the page numbers so that they appear in the footer. \setuppagenumbering[location=footer] \setupcolors[state=start] \setupcolor[xwi] \starttext %% First Table %% \setupTABLE[frame=off] \setupTABLE[column][3,4,5][align={middle,lohi},width=0.6in] \setupTABLE[column][2][align=lohi] \setupTABLE[row][3][align={lohi,middle}] \setupTABLE[3,4,5][3,4,5] [background=color,backgroundcolor=ivory,framecolor=midnightblue,frame= on] % Using color names from xwi colorscheme \bTABLE \bTR \bTD \eTD \bTD \eTD \bTD[nc=3] {\bf Player 2} \eTD \eTR \bTR \bTD \eTD \bTD \eTD \bTD $ L $ \eTD \bTD $ M $ \eTD \bTD $ R $ \eTD \eTR \bTR \bTD[nr=3,width=1in] {\bf Player 1} \eTD \bTD $ U $ \eTD \bTD (8,8) \eTD \bTD (0,9) \eTD \bTD (0,0) \eTD \eTR \bTR \bTD $ C $ \eTD \bTD (9,0) \eTD \bTD (0,0) \eTD \bTD (3,1) \eTD \eTR \bTR \bTD $ D $ \eTD \bTD (0,0) \eTD \bTD (1,3) \eTD \bTD (3,3) \eTD \eTR \eTABLE %% Second Table %% Even though I repeat {\tt \\setupTABLE[frame=off]} command the table has frame. \setupTABLE[frame=off] \bTABLE \bTR \bTD \eTD \bTD\eTD \bTD[nc=2] Player 2 \eTD \bTD\eTD \eTR \bTR \bTD \eTD \bTD\eTD \bTD C\eTD \bTD D\eTD \eTR \bTR \bTD[nr=2] Player 1 \eTD \bTD C\eTD \bTD (2,2)\eTD \bTD (0,4)\eTD \eTR \bTR \bTD D\eTD \bTD (4,0)\eTD \bTD (1,1)\eTD \eTR \eTABLE \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] reducing the space after the enumeration heading
Am 12.11.2009 um 22:18 schrieb Curiouslearn: > No one wants to help on this? I would appreciate any help. Am I missing > something too obvious? I tried some other options but they do not help. Since there is no complete working example I can't test it but you can add 'distance=\spaceamount' to your enumeration setup. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Changing the formatting of Natural Tables
Hello, I am using natural tables to make tables in my document. Can someone please tell me how I can prevent context from applying features I choose for an earlier table to a table that appears later in the document. Following is an example of two tables. Even though I choose \setupTABLE[frame=off] for the second table, there is a frame created based on what I define for an earlier table. I am using MKII (since I want to use Tikz). I would really appreciate any help. Example: \setuplayout[letter,height= 9in,width=5.5in,topspace=1in,header=1cm,backspace=1.5in] % Changing the location of the page numbers so that they appear in the footer. \setuppagenumbering[location=footer] \setupcolors[state=start] \setupcolor[xwi] \starttext %% First Table %% \setupTABLE[frame=off] \setupTABLE[column][3,4,5][align={middle,lohi},width=0.6in] \setupTABLE[column][2][align=lohi] \setupTABLE[row][3][align={lohi,middle}] \setupTABLE[3,4,5][3,4,5][background=color,backgroundcolor=ivory,framecolor=midnightblue,frame=on] % Using color names from xwi colorscheme \bTABLE \bTR \bTD \eTD \bTD \eTD \bTD[nc=3] {\bf Player 2} \eTD \eTR \bTR \bTD \eTD \bTD \eTD \bTD $ L $ \eTD \bTD $ M $ \eTD \bTD $ R $ \eTD \eTR \bTR \bTD[nr=3,width=1in] {\bf Player 1} \eTD \bTD $ U $ \eTD \bTD (8,8) \eTD \bTD (0,9) \eTD \bTD (0,0) \eTD \eTR \bTR \bTD $ C $ \eTD \bTD (9,0) \eTD \bTD (0,0) \eTD \bTD (3,1) \eTD \eTR \bTR \bTD $ D $ \eTD \bTD (0,0) \eTD \bTD (1,3) \eTD \bTD (3,3) \eTD \eTR \eTABLE %% Second Table %% Even though I repeat {\tt \\setupTABLE[frame=off]} command the table has frame. \setupTABLE[frame=off] \bTABLE \bTR \bTD \eTD \bTD\eTD \bTD[nc=2] Player 2 \eTD \bTD\eTD \eTR \bTR \bTD \eTD \bTD\eTD \bTD C\eTD \bTD D\eTD \eTR \bTR \bTD[nr=2] Player 1 \eTD \bTD C\eTD \bTD (2,2)\eTD \bTD (0,4)\eTD \eTR \bTR \bTD D\eTD \bTD (4,0)\eTD \bTD (1,1)\eTD \eTR \eTABLE \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] reducing the space after the enumeration heading
No one wants to help on this? I would appreciate any help. Am I missing something too obvious? I tried some other options but they do not help. Thanks. On Wed, Nov 11, 2009 at 5:16 PM, Curiouslearn wrote: > Hello All, > > I have defined the following enumeration: > \defineenumeration > [Problem] > [location=top, > text=Problem, > between=\blank, > before=\blank, > after=\blank] > > Now for one of the problems, I want the heading "Problem 13" to appear not > on the top, but on the left. So before this particular problem I entered > > \setupenumerations[Problem][location=left,stopper=:] > \Problem (From book XYZ) > > The issue is that there is a big space between words "Problem 13:" and > "(From book XYZ)". How can I reduce this space so that it is equal to the > standard spacing? > > 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Scite + non-global environbment variables
Wolfgang Hugemann wrote: I seems to me that waiving global environment variables is something almost impossible for a beginner. I ran into a lot of errors obiously originating from unknown paths. I literally just found out that even though I had allowed the installer to set global environment variables and added the necessary user specific settings (copied the few .properties files to user profile), I couldn't get my ConTeXt to work under a different user name on a Vista Business computer that already has a working ConTeXt+SciTe combo. The funniest thing is that the second username/login is the more powerful one, so this wasn't about missing admin rights or anything like that. When I reran the installer (I used Vyatscheslav's Windows installer) and thus got updated minimals, ConTeXt started working also with a new username. ...I don't know if it broke the original one and I won't care for now - the important thing is that now somebody else can use ConTeXt on that computer while I'm not at it. So even "global" doesn't seem to be *so* global. Some more investigations are needed at some point, I suspect. Mari ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Scite + non-global environbment variables
well, editor support is just a bonus i still have to upgrade the scite related files to the new minimals (we did some tests at the context conference with this; one problem is that one needs to adapt user specific files (in user space) on top of globally used setup files) Hans I finally decided to allow for global environment variables during the installation (possibly interfering with my MikTeX installation; I haven't checked yet) and than it functioned just as easy a proclaimed. I seems to me that waiving global environment variables is something almost impossible for a beginner. I ran into a lot of errors obiously originating from unknown paths. I think the Windows installation should warn somewhat more drastical on skipping global environment variables... Thanks from Münster Wolfgang Hugemann ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ragged right in a simplecolumns environment
Am 12.11.2009 um 18:03 schrieb Oliver Heins: > How can I swith to ragged right in a simplecolumns environment? (I have > to use it for some reasons.) > > \startsimplecolumns[n=4,align=right] does not work. \startsimplecolumns[n=4]\setupalign[right] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Hello Hans, And I'd prefer italic latin letters to be taken from it, not from Termes. well, then you have to write your own vectors ... support for all those platform fonts is not on the agenda (at least not on mine) ... of course open type math fonts on platfotms are supported. OK, I will be completely happy if I have Termes letters in formulas. They are indistinguishable from Times New Roman in this case. P.S. I could write vectors, if someone explained me how to do it ;) Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ragged right in a simplecolumns environment
How can I swith to ragged right in a simplecolumns environment? (I have to use it for some reasons.) \startsimplecolumns[n=4,align=right] does not work. TIA, olli -- Oliver Heins he...@sopos.orghttp://oliverheins.net/ http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8 http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] enabling pdftex's microtypographic features with variant old style figures
With the help of Patrick's otfinstall I've installed a font for use with pdftex/mark ii. this works fine so far, but i want to use the microtypographic features not only for the base font, but for the old style figures variant, too. \usetypescriptfile[type-corporate] \usetypescript[corporate] \setupfontsynonym[Serif][handling=pure] \setupfontsynonym[Sans][handling=pure] \definetypeface[corporate][rm][serif][corporate][default][encoding=texnansi] \definetypeface[corporate][ss][sans][corporate][default][encoding=texnansi] \definetypeface[corporate][tt][mono][modern] [default][rscale=1.12] \definetypeface[corporate][mm][math][iwona] [default][rscale=1.02] \setupfonthandling[hz][min=25,max=25,step=5] \usetypescript[sans][hanging][normal] % this creates the 'handling' synonyms \usetypescript[serif][hanging][normal] % this creates the 'handling' synonyms \usetypescript[sans][hz][quality] % this creates the 'handling' synonyms \usetypescript[serif][hz][quality] % this creates the 'handling' synonyms \setupbodyfont[corporate,ss,10pt] %\Var[osf] This works for normal figures, but when I switch to osf with \Var[osf] there is no protrusion nor font expansion. TIA, olli -- Oliver Heins he...@sopos.orghttp://oliverheins.net/ http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8 http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Mojca Miklavec wrote: (Thinking one step further ... one could take all the greek letters from TeX Gyre as well, though I'm not 100% sure ... it could be that there is some metric information present in these tfm files that's missing in otf fonts.) be careful with greek ... you never know if it will stay in gyre this way 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: Re: Math setup with Times (Termes)
Vyatcheslav Yatskovsky wrote: Hello dear Mojca, Let me mention one thing, while it is not too late ) I use not Termes, but standard Window Times New Roman. And I'd prefer italic latin letters to be taken from it, not from Termes. well, then you have to write your own vectors ... support for all those platform fonts is not on the agenda (at least not on mine) ... of course open type math fonts on platfotms are supported. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Drawing rectangles
On Thu, Nov 12, 2009 at 5:07 PM, Cecil Westerhof wrote: > Work like a charm. There is only one minor problem: where frame's > touch eachother, the line is a little bit thicker. Is there something > to be done about this? > > In this case I wanted everything to be centered, but is it possible to > define the point of the upper corner of a frame? see http://wiki.contextgarden.net/Framed -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Drawing rectangles
2009/11/12 Taco Hoekwater : > But that is just a joke. Try this: > > \startTEXpage > > \setupalign[middle]\offinterlineskip > > \noindent \framed[width=4cm,height=2cm,offset=none]{} > > \noindent \dorecurse{2}{\framed[width=4cm,height=2cm,offset=none]{}} > > \noindent \dorecurse{3}{\framed[width=4cm,height=2cm,offset=none]{}} > > \noindent \framed[width=2cm,height=4cm,offset=none]{} > > \stopTEXpage I made this: \usemodule[defaults] \setupoutput[pdf] \setuplayout[header=0in, footer=0in] \defineframed [action][width=5cm, height=3cm, offset=none] \defineframed [base] [width=3cm, height=2cm, offset=none] \starttext \setupalign[middle]\offinterlineskip \noindent \action{} \noindent \dorecurse{2}{\action{}} \noindent \dorecurse{3}{\action{}} \dorecurse{7}{ \noindent \base{} } \stoptext Work like a charm. There is only one minor problem: where frame's touch eachother, the line is a little bit thicker. Is there something to be done about this? In this case I wanted everything to be centered, but is it possible to define the point of the upper corner of a frame? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Fwd: Re: Math setup with Times (Termes)
Hello dear Mojca, Let me mention one thing, while it is not too late ) I use not Termes, but standard Window Times New Roman. And I'd prefer italic latin letters to be taken from it, not from Termes. My working typescript: \starttypescript [serif] [TimesNR] \definefontsynonym [Serif] [times.ttf] [features=default] \definefontsynonym [SerifBold] [timesbd.ttf] [features=default] \definefontsynonym [SerifBoldItalic] [timesbi.ttf] [features=default] \definefontsynonym [SerifItalic] [timesi.ttf] [features=default] \definefontsynonym [SerifSlanted] [timesi.ttf] [features=default] \stoptypescript \starttypescript [math][TimesNR][all] \definefontsynonym[mathroman][txm...@tx-math] \loadmapfile[original-youngryu-tx.map] \stoptypescript \starttypescript [TimesNR] \definetypeface [TimesNR] [rm] [serif] [TimesNR] [default] \definetypeface [TimesNR] [mm] [math] [TimesNR] [default] \stoptypescript \setupmathematics[lcgreek=normal, ucgreek=normal] \usetypescript[TimesNR] \setupbodyfontenvironment [11pt] [x=10pt] \setupbodyfont[TimesNR, 11pt] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
On Thu, Nov 12, 2009 at 16:12, Vyatcheslav Yatskovsky wrote: > Hell dear Mojca, > > Let me mention one thing, while it is not too late ) > > I use not Termes, but standard Window Times New Roman. > > And I'd prefer italic latin letters to be taken from it, not from Termes. That's why I mentioned that it might be nice to have "italic" and "roman" as names in math typescripts (math-vfu.lua) for exactly such cases. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Vyatcheslav Yatskovsky wrote: > Yes, I see.. If I could get these blue letters in math mode, I would be > happy ) > >> You can take a look at >> >> \starttext >> >> \loadmapfile[original-youngryu-tx.map] >> \font\testlm=lmmi10.tfm >> \font\testone=rtxmi.tfm \testone >> \font\testtwo=rtxptmri.tfm \testtwo >> >> \dostepwiserecurse{0}{127}{1}{% >> \strut\hbox to 4ex{\recurselevel}% >> \hbox to 2.6ex{\color[red]{\testone\char\recurselevel}}% >> \hbox to 2.6ex{\color[blue]{\testtwo\char\recurselevel}}% >> \hbox to 2.6ex{\color[black]{\testlm\char\recurselevel}} >> } >> \stoptext >> > >> /> And as a suggestion: it would be very handy to have a command like >> > \setupmathematics[lcroman=italic, ucroman=italic]/ > > It's similar to \setupmathematics[lcgreek=normal, ucgreek=normal] which > already implemented (suggested by Aditya). "lc" stands for lowercase and > "uc" for uppercase. I would like to have this as well, and also other stuff :) E.g. \definemathematics [mystyle][pi=upright,differential=upright] \setupmathematics[alternative=mystyle] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] local footnote (Tables) problem
I am having a problem placing local footnotes in a table using\placelegend. The attached file will compile only if I comment out (a) header=2pc in \setuplayout or (b) \setupbodyfont[lmodern,rm,10.5pt] or (c) \placelegend or (d) \dorecurse{3}{\input knuth} I am stumped as to why this should be so. There is obviously something that I am just not seeing. I am running MK2 using the latest beta in the ConTeXt Minimals. Any help will be greatly appreciated. Alan LocalNotes.tex Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Yes, I see.. If I could get these blue letters in math mode, I would be happy ) You can take a look at \starttext \loadmapfile[original-youngryu-tx.map] \font\testlm=lmmi10.tfm \font\testone=rtxmi.tfm \testone \font\testtwo=rtxptmri.tfm \testtwo \dostepwiserecurse{0}{127}{1}{% \strut\hbox to 4ex{\recurselevel}% \hbox to 2.6ex{\color[red]{\testone\char\recurselevel}}% \hbox to 2.6ex{\color[blue]{\testtwo\char\recurselevel}}% \hbox to 2.6ex{\color[black]{\testlm\char\recurselevel}} } \stoptext /> And as a suggestion: it would be very handy to have a command like > \setupmathematics[lcroman=italic, ucroman=italic]/ It's similar to \setupmathematics[lcgreek=normal, ucgreek=normal] which already implemented (suggested by Aditya). "lc" stands for lowercase and "uc" for uppercase. Best wishes, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Am 12.11.2009 um 14:45 schrieb Mojca Miklavec: > I now get italic math (but roman h for example). The 'h' is always upright because there is a bug in math-vfu and get the 'plant constant' instead of a normal h. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Drawing rectangles
Cecil Westerhof wrote: > I would like to make something like the folowing in ConTeXt (you need > a monospaced font to see it correctly): \starttyping >+--+ >| | >| | >| | >+--+--+ >| | | >| | | >| | | > +--+---+--+---+--+---+ > | | | > | > | | | > | > | | | > | > +--+-+--+-+--+ > | | > | | > | | > | | > | | > | | > | | > | | > | | > | | > | | > +__+ > \stoptyping > How could I do this? But that is just a joke. Try this: \startTEXpage \setupalign[middle]\offinterlineskip \noindent \framed[width=4cm,height=2cm,offset=none]{} \noindent \dorecurse{2}{\framed[width=4cm,height=2cm,offset=none]{}} \noindent \dorecurse{3}{\framed[width=4cm,height=2cm,offset=none]{}} \noindent \framed[width=2cm,height=4cm,offset=none]{} \stopTEXpage 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Drawing rectangles
2009/11/12 Cecil Westerhof : > I would like to make something like the folowing in ConTeXt (you need > a monospaced font to see it correctly): > +--+ > | | > | | > | | > +--+--+ > | | | > | | | > | | | > +--+---+--+---+--+---+ > | | | > | > | | | > | > | | | > | > +--+-+--+-+--+ > | | > | | > | | > | | > | | > | | > | | > | | > | | > | | > | | > +__+ > > How could I do this? I have made a start. I have the following tex-file: \usemodule[defaults] \setupoutput[pdf] \setuplayout[header=0in, footer=0in] \starttext \defineframed [action][width=5cm, height=3cm] \defineframed [base][width=3cm, height=14.5cm] \startcombination[1*2] {\action {1}} {} \stopcombination \startcombination[2*2] {\action {2}} {} {\action {3}} {} \stopcombination \startcombination[3*2] {\action {4}} {} {\action {5}} {} {\action {6}} {} \stopcombination \base {7} \stoptext This is a start, but there are two problems with it. Everything is placed on the left side and there is room between the boxes. How can I solve this? Also, with the startcombination, I always need to have the second value to be at least two. Is this not a bug? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
On Thu, Nov 12, 2009 at 15:25, Vyatcheslav Yatskovsky wrote: > Hello, > > I could miss the point, but if the problem is in the map file > (original-youngryu-tx.map), we can contact its creator: > http://www.utdallas.edu/~ryoung/ No, the files are fine and they are not original any more anyway (I have made some rather serious modifications anyway). > Or it is mkiv core files that need to be fixed? mkiv core files > And as a suggestion: it would be very handy to have a command like > \setupmathematics[lcroman=italic, ucroman=italic] Meaning? (Keep in mind that there's also greek to be considered in a similar way.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
On Thu, Nov 12, 2009 at 15:19, Vyatcheslav Yatskovsky wrote: > Hello >> >> I now get italic math (but roman h for example). So this needs to be >> fixed a bit, but it's the right direction at least. (Though it might >> be better to use generic names like "regular" or "italic" for name= in >> case that users try to use some other times-like base font for >> example.) >> > > Wow, Mojca! God bless you! > > Can I assist you now? Just explain me what to do. You can take a look at \starttext \loadmapfile[original-youngryu-tx.map] \font\testlm=lmmi10.tfm \font\testone=rtxmi.tfm \testone \font\testtwo=rtxptmri.tfm \testtwo \dostepwiserecurse{0}{127}{1}{% \strut\hbox to 4ex{\recurselevel}% \hbox to 2.6ex{\color[red]{\testone\char\recurselevel}}% \hbox to 2.6ex{\color[blue]{\testtwo\char\recurselevel}}% \hbox to 2.6ex{\color[black]{\testlm\char\recurselevel}} } \stoptext Then two copies of tex-mi in math-vfu are needed (some other name has to be assigned). One where only red characters are used and the other one where all the others are left (just comment out the rest that's not needed). You probably need to map g, v, w, y, ... separately to the math italic unicode range (that's not done in current tex-mi). You may visually check if that's consistent with LM font in the third row. Mojca (Thinking one step further ... one could take all the greek letters from TeX Gyre as well, though I'm not 100% sure ... it could be that there is some metric information present in these tfm files that's missing in otf fonts.) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Hello, I could miss the point, but if the problem is in the map file (original-youngryu-tx.map), we can contact its creator: http://www.utdallas.edu/~ryoung/ Or it is mkiv core files that need to be fixed? And as a suggestion: it would be very handy to have a command like \setupmathematics[lcroman=italic, ucroman=italic] Regards, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Hello I now get italic math (but roman h for example). So this needs to be fixed a bit, but it's the right direction at least. (Though it might be better to use generic names like "regular" or "italic" for name= in case that users try to use some other times-like base font for example.) Wow, Mojca! God bless you! Can I assist you now? Just explain me what to do. Regards, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
On Thu, Nov 12, 2009 at 13:44, Mojca Miklavec wrote: > Hans, > > When does the mapping to 0x1D44E happen for LM and Termes in mkiv? > (= MATHEMATICAL ITALIC SMALL A) Oh, I see it now. At this point: fonts.vf.math.set_letters(fonts.enc.math, "tex-mi", 0x1D434, 0x1D44E) the letters from tex-mi are copied to math italic, but in case of txfonts and the chosen subset of glyphs this region is empty, so ConTeXt most probably just falls back to "normal a" from the main regular font, but those characters should come from the italic font instead (I don't know if additional metrics are needed or not). I tried to do the following for example: fonts.enc.math["tex-mi2"] = { } -- now that all other vectors are defined ... fonts.vf.math.set_letters(fonts.enc.math, "tex-mi", 0x1D434, 0x1D44E) fonts.vf.math.set_letters(fonts.enc.math, "tex-mi2", 0x1D434, 0x1D44E) mathematics.make_font ( "tx-math", { { name = "texgyretermes-regular.otf", features = "virtualmath", main = true }, { name = "rtxr.tfm", vector = "tex-mr" } , { name = "rtxmi.tfm", vector = "tex-mi", skewchar=0x7F }, { name = "texgyretermes-italic.otf", vector = "tex-mi2", skewchar=0x7F }, { name = "txsy.tfm", vector = "tex-sy", skewchar=0x30, parameters = true } , { name = "txex.tfm", vector = "tex-ex", extension = true } , { name = "txsya.tfm", vector = "tex-ma" }, { name = "txsyb.tfm", vector = "tex-mb" }, } ) I now get italic math (but roman h for example). So this needs to be fixed a bit, but it's the right direction at least. (Though it might be better to use generic names like "regular" or "italic" for name= in case that users try to use some other times-like base font for example.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Hans, When does the mapping to 0x1D44E happen for LM and Termes in mkiv? (= MATHEMATICAL ITALIC SMALL A) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
On Thu, Nov 12, 2009 at 12:41, Hans Hagen wrote: > > we first should locate the (non vf) files that really matter, i.e. we can > forget about text fonts In this particular file it says: (MAPFONT D 0 (FONTNAME rtxmi) (MAPFONT D 1 (FONTNAME rtxptmri) -> we map that one to TeXGyreTermes-Italic in mkii One of them is italic text, one of them is a subset of math characters, but I need to do a simple text transform to list which character comes from which font. But the weird thing is that tex-mi doesn't seem to come from mi font, but from italic part of the main font (at least all the entries in math-vfu in tex-mi mapping are commented out and there is fonts.vf.math.set_letters(fonts.enc.math, "tex-mi", 0x1D434, 0x1D44E)). So I'm really a bit puzzled. Is some "italic mapping" missing in termes setup? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Drawing rectangles
I would like to make something like the folowing in ConTeXt (you need a monospaced font to see it correctly): +--+ | | | | | | +--+--+ | | | | | | | | | +--+---+--+---+--+---+ | | | | | | | | | | | | +--+-+--+-+--+ | | | | | | | | | | | | | | | | | | | | | | +__+ How could I do this? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Mojca Miklavec wrote: On Wed, Nov 11, 2009 at 17:57, Wolfgang Schuster wrote: Am 11.11.2009 um 17:37 schrieb Mojca Miklavec: Load the map file: \loadmapfile[original-youngryu-tx.map] Does that work for you (it doesn't here, but as I said ... I have very bad karma). txmi is not in that map file since txmi.vf is used instead. Then use a font which is in the map file and has also a font with the same name. \loadmapfile[original-youngryu-tx.map] %\font\test=txmia.tfm \font\test=rtxmi.tfm Buth that this is not the font that I want. I want txmi (italic), not rtxmi (regular), so it doesn't really help me to load rtxmi. (More in reply to Hans' mail.) we first should locate the (non vf) files that really matter, i.e. we can forget about text fonts 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Mojca Miklavec wrote: I understand that, but I don't know how important is "its own kerning and metrics". That is: I'm not sure if vf changes or adds some properties that are not present in original tfm files. we use a regular termes as base font so that comes with kerning, marh characters seldom have kerning (a few have special puspose kerns) I would say that what we need to do is "parse" the vf file (using vftothatweirdformat) and copy its contents to math-vfu. At least this can be done automatically and reliably without having to figure out what character comes where for dozens of fonts. i dunno. these chars have no proper names and unicode points also, i think that most chars are just in tex's default mapping and maybe a few aren't (for instance the upright range can simply be mapped once we know in what font they are) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
On Wed, Nov 11, 2009 at 17:57, Wolfgang Schuster wrote: > > Am 11.11.2009 um 17:37 schrieb Mojca Miklavec: > >>> Load the map file: \loadmapfile[original-youngryu-tx.map] >> >> Does that work for you (it doesn't here, but as I said ... I have very bad >> karma). >> txmi is not in that map file since txmi.vf is used instead. > > Then use a font which is in the map file and has also a font with the same > name. > > \loadmapfile[original-youngryu-tx.map] > > %\font\test=txmia.tfm > \font\test=rtxmi.tfm Buth that this is not the font that I want. I want txmi (italic), not rtxmi (regular), so it doesn't really help me to load rtxmi. (More in reply to Hans' mail.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
On Thu, Nov 12, 2009 at 10:42, Hans Hagen wrote: > Mojca Miklavec wrote: > >> What are we talking about? Do you mean the old virtual fonts (.vf >> files) or mkiv's virtual fonts or something completely different? > > What You Don't Want To Know: > > a virtual font is just a regular font but has references to other fonts > instead, like > > char 1 -> font x, char 10 (or dvi commands instead) > > and then it can has kerning etc within its own set I understand that, but I don't know how important is "its own kerning and metrics". That is: I'm not sure if vf changes or adds some properties that are not present in original tfm files. > for tx/px however, as they use virtual fonts, it gets hairy what file to > load; technically there is no obstacle but i've chosen to stay away from the > tfm/vf mess and use just the natural tfm variants (i.e. the ones that match > the pfb) and therefore we might need a few extra vectors (and maybe font > files) in math-vfu that map to the right slots; using the vf's as well would > complicate matters and it's not worth the trouble > > so, what we need to do is to figure out teh few missing files/vectors, add > them, and then let users fill in the gaps in vectors I would say that what we need to do is "parse" the vf file (using vftothatweirdformat) and copy its contents to math-vfu. At least this can be done automatically and reliably without having to figure out what character comes where for dozens of fonts. It could probably also be done in mkiv, dumped into table and then that table could be copy-pasted into math-vfu and vf files could be forgotten. But I'm not sure that I know where to start with that (probably cleaner & easier) approach, so I can try the first option. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setup with Times (Termes)
Mojca Miklavec wrote: What are we talking about? Do you mean the old virtual fonts (.vf files) or mkiv's virtual fonts or something completely different? What You Don't Want To Know: a virtual font is just a regular font but has references to other fonts instead, like char 1 -> font x, char 10 (or dvi commands instead) and then it can has kerning etc within its own set tex itself only sees characters as things with dimensions and a few properties and when typesetting the paragraph uses info from the font with respect to kerning and ligature building now, traditional tex has only tfm files and when virtual fonts were introduced the engine was not adapted at all; so, a virtual font still has a tfm file (with characters etc) however, when the font is being used in the backend, an extra lookup takes place and when a vf file is found, information from that file is used for embedding (in pdftex); of course dvi postprocessors also look at that file so we have: tfm -> tfm used by frontend and backend tfm + vf -> tfm used by frontend, vf used by backend on top of that a map file will point from fontname to real name (pfb) and this is why in a map file you don't see the virtual font names at all, as it's the names inside the vf that matter so say that we have: a.tfm + a.vf but internally a.vf -> font b, c, d (or further chained) then b, c, d need to be resolved to real names as there is no checking going on and as the tfm file has no info about itself being virtual you can imagine that interesting side effects can take place when an old (unknown of) vf lays around ... it will kick in at backend time (this is why the texfont script does a clean up) in luatex we have integrated these mechanisms, so internally a font can have virtual properties (a few more than original tex) however, by default luatex acts like tex, so users won't notice; as luatex has the backend integrated, at some point it will need the vf and mkiv will happily fulfill that request but ... and this is the catch ... in mkiv we use (1) opentype, (2) type 1 and (3) traditional tex fonts (1) is not related to virtual fonts but we can (and do) extend fonts internally using virtual technology (2) in pdftex tfm/vf files are used but mkiv does not look at those files but uses afm files directly (right from the start) (3) the only place in mkiv where tex metric files are still used is in math as we need the additional (math specific) info as it makes no sense to keep supporting the old math fonts while open type variant sare under way, i decided to stick to unicode math and as a result we need to use virtual font technology to make that unicode variant for the lm fonts, this is mostly done and as they have no virtual (vf based) fonts it's transparent for tx/px however, as they use virtual fonts, it gets hairy what file to load; technically there is no obstacle but i've chosen to stay away from the tfm/vf mess and use just the natural tfm variants (i.e. the ones that match the pfb) and therefore we might need a few extra vectors (and maybe font files) in math-vfu that map to the right slots; using the vf's as well would complicate matters and it's not worth the trouble so, what we need to do is to figure out teh few missing files/vectors, add them, and then let users fill in the gaps in vectors are you still there? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Define tex macro on the context command line
Aditya Mahajan wrote: On Wed, 11 Nov 2009, John Devereux wrote: Hi, Is it possible to define a tex macro on the context command line (MkII)? For example: texexec manual.tex --define Title "X99 Operators Manual" so that \Title would expand to the appropriate text? You can do that with pdftex command, pdftex -progname=context -fmt=cont-en -translate-file=natural.tcx --output-format=pdf --8bit --jobname=filename "\\def\\Title{whatever} \\input filename" but you loose all the goodies of texexec (multiple runs, running bibtex, sorting index, etc.) Alternatively, it is possible to read from console during a tex run \starttext \immediate\write16{What is the title?} \read16 to \Title Title is \Title \stoptext \starttext test: \env{whatever} \stoptext context --arguments="whatever=Test" ... - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Define tex macro on the context command line
On Wed, Nov 11 2009, John Devereux wrote: > > Is it possible to define a tex macro on the context command line (MkII)? Hello, I don't know, if there is something similar in MKII, but with MKIV, the following works very nicely: file.tex: \starttext Value of Title: “\getvariable{environment}{Title}” \stoptext Command line: context "--arguments=Title=X99 Operators Manual" file Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] gtamac symbols and mkiv
Thomas A. Schmitz wrote: The easies way would be: \define\Fleuron% {\getglyph{name:hoeflertextornaments}{\char61522}} If you want to know the numbers of the different ornaments: open the file hoeflertextornaments.tma, which will be in your luatex-cache, under fonts/otf. There's a section "unicodes" where you'll find all the names and the corrresponding values. (There's probably a more elegant way of achieving this, but that's what I used.) If you want more than just a few glyphs, you can also define a symbolset from Hoefler Ornaments, see http://wiki.contextgarden.net/Symbols Thank you, Thomas Jörg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___