[NTG-context] Changing chapter-line layout
Hi guys, simple question: how can the layout of the chapter line be modified? (changing the fontsize to what's \tfb). Thanks in advance greetings, DS ___ 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] Margin terminology -- badly documented, undocumented, or misdocumented
On 25-2-2010 5:39, James Fisher wrote: Hi all. I am trying to understand the terminology for the \definelayout and \setuplayout commands. Unfortunately the documentation at http://wiki.contextgarden.net/Layoutdoesn't correspond to the actual output I get. Nor does the 'documentation' at http://getfo.org/context_xml/page3.html , which the first page recommends. More, the two pages seem pretty contradictory. Consider my situation: I'm trying to set up an A4 page with the following margins (I use the term margin to mean the space from the edge of the physical paper to the edge of the body text area): top: 2.97cm bottom: 2.97cm left: 2.1cm right: 2.1cm For the moment, I don't care at all about header and footer space, nor notes in the margins; I'm just trying to get the above margins. However, with all conceivable combinations of commands at both of those pages, I've been unable to set anything like this up. Based on the getfo.org page, I should be able to set up these left and right margins with: \setuplayout [backspace=2.1cm, cutspace=2.1cm, width=middle, topspace=2.97cm, bottomspace=2.97cm, height=middle] \showframe \starttext \input tufte \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MkII to MkIV
On 24-2-2010 22:32, Steffen Wolfrum wrote: Hi, typesetting an old MkII written project with MkIV today gives more then 2000 unable to resolve warnings, like these ... !backends : unable to resolve destination attribute 90 what does this mean? As that project did not even have 2000 \footnotes or \index or reference marks, what is meant? hard to see without small example; it probably means that some reference is not flushed 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] Changing chapter-line layout
Am 25.02.10 10:42, schrieb Daniel Stender: Hi guys, simple question: how can the layout of the chapter line be modified? (changing the fontsize to what's \tfb). \setuphead[chapter][style=\tfb] 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] Margin terminology -- badly documented, undocumented, or misdocumented
On Thu, 25 Feb 2010 11:23:04 +0100 Hans Hagen pra...@wxs.nl scribit: On 25-2-2010 5:39, James Fisher wrote: Hi all. I am trying to understand the terminology for the \definelayout and \setuplayout commands. Unfortunately the documentation at http://wiki.contextgarden.net/Layoutdoesn't correspond to the actual output I get. Nor does the 'documentation' at http://getfo.org/context_xml/page3.html , which the first page recommends. More, the two pages seem pretty contradictory. Consider my situation: I'm trying to set up an A4 page with the following margins (I use the term margin to mean the space from the edge of the physical paper to the edge of the body text area): top: 2.97cm bottom: 2.97cm left: 2.1cm right: 2.1cm For the moment, I don't care at all about header and footer space, nor notes in the margins; I'm just trying to get the above margins. However, with all conceivable combinations of commands at both of those pages, I've been unable to set anything like this up. Based on the getfo.org page, I should be able to set up these left and right margins with: \setuplayout [backspace=2.1cm, cutspace=2.1cm, width=middle, topspace=2.97cm, bottomspace=2.97cm, height=middle] \showframe \starttext \input tufte \showlayout \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- René Bastian www.pythoneon.org www.musiques-rb.org ___ 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] \definetypeface broken?
Hi, I found '\definetypeface' can not work with beta 2010.02.24. This is a minimal example: \starttypescript[serif][test] \definefontsynonym[Serif][name:texgyrepagella] \stoptypescript \definetypeface[myfonts][rm][serif][test][default] \setupbodyfont[myfonts] \starttext Hello world! \stoptext -- Best regards, Li Yanrui ___ 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 chapter-line layout
I have a similar question:How to put the chapter-line to the center of the paper? Thanks! 2010/2/25 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 25.02.10 10:42, schrieb Daniel Stender: Hi guys, simple question: how can the layout of the chapter line be modified? (changing the fontsize to what's \tfb). \setuphead[chapter][style=\tfb] 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 chapter-line layout
Am 25.02.10 14:07, schrieb Hao Zheng: I have a similar question:How to put the chapter-line to the center of the paper? Number and text on the same line: \setuphead[chapter][align=middle] Number and text on different lines: \setuphead[chapter][alternative=middle] 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] context, jobnam
On Thu, 25 Feb 2010, R. Bastian wrote: Hello, is there a way to get the option '--jobname= ' as in tex ? texexec has --passon option, so you can do texexec --passon=--jobname=whatever file but this is not implemented in context. You can however, use context --result=whatever which renames the resultant files. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \definetypeface broken?
On 25-2-2010 13:03, Yanrui Li wrote: Hi, I found '\definetypeface' can not work with beta 2010.02.24. This is a minimal example: \starttypescript[serif][test] \definefontsynonym[Serif][name:texgyrepagella] \stoptypescript \definetypeface[myfonts][rm][serif][test][default] \setupbodyfont[myfonts] \starttext Hello world! \stoptext indeed some problem .. i'll upload a fixed beta 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] context, jobnam
On Thu, 25 Feb 2010 13:04:37 -0500 (EST) Aditya Mahajan adit...@umich.edu scribit: On Thu, 25 Feb 2010, R. Bastian wrote: Hello, is there a way to get the option '--jobname= ' as in tex ? texexec has --passon option, so you can do texexec --passon=--jobname=whatever file but this is not implemented in context. You can however, use context --result=whatever which renames the resultant files. Aditya 'context --result=whatever' works. Thanks. rb ___ 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 ___ -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/ ___ 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] Margin terminology -- badly documented, undocumented, or misdocumented
Hi Hans, Thanks for the reply -- and sorry for the rather grumpy way in which I posed the question. The problem for me was this mysterious width=middle, height=middle -- this is fairly undocumented at http://wiki.contextgarden.net/Layout . There is a mention of width=middle, but it's just followed by some code, most of which seems to be irrelevant (if cutspace == 0pt then cutspace = backspace; end), and there is no mention of height=middle. I would be more than willing to document this myself, but what is it that width=middle actually *does*? And what does middle actually *mean* -- the middle of *what*? James On Thu, Feb 25, 2010 at 10:23 AM, Hans Hagen pra...@wxs.nl wrote: On 25-2-2010 5:39, James Fisher wrote: Hi all. I am trying to understand the terminology for the \definelayout and \setuplayout commands. Unfortunately the documentation at http://wiki.contextgarden.net/Layoutdoesn'thttp://wiki.contextgarden.net/Layoutdoesn%27tcorrespond to the actual output I get. Nor does the 'documentation' at http://getfo.org/context_xml/page3.html , which the first page recommends. More, the two pages seem pretty contradictory. Consider my situation: I'm trying to set up an A4 page with the following margins (I use the term margin to mean the space from the edge of the physical paper to the edge of the body text area): top: 2.97cm bottom: 2.97cm left: 2.1cm right: 2.1cm For the moment, I don't care at all about header and footer space, nor notes in the margins; I'm just trying to get the above margins. However, with all conceivable combinations of commands at both of those pages, I've been unable to set anything like this up. Based on the getfo.org page, I should be able to set up these left and right margins with: \setuplayout [backspace=2.1cm, cutspace=2.1cm, width=middle, topspace=2.97cm, bottomspace=2.97cm, height=middle] \showframe \starttext \input tufte \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TeX syntax -- a guide?
Hi, After a few days working in do what the tutorials say mode, I now want to understand TeX from a programmer's mindset. I have not been able just by practise to work out what the syntactic rules of TeX are, and I am hoping that there is a sensible guide to this somewhere. However, searches for things like tex syntax draw a blank. Some of the things I want to understand, for example, are: (1) what is the distinction between square brackets and curly brackets after a command? (2) Why are there sometimes lists of square-bracketed lists after a command, each with lists of seeming arguments inside them? (2) What exactly are the variables in a TeX file? (I've seen variable-like things sometimes referred to just plainly, sometimes with preceding backslashes as if they were commands/macros). (4) Why can't I end a square-bracketed section with a final square-bracket on a line of its own, as I may do in other programming languages? (5) How are things like \subsection, \subsubsection, \subsubsubsection, ... implemented? I am used to languages in which there is only a finite set of commands; why is the logic here not more like \section[level=1], \section[level=2], ... ? (6) Perhaps I'm misunderstanding things and all this isn't actually the fundamental syntax of TeX but just adhoc syntax defined by various macros doing different things -- is this the case; to what degree can macros define syntax? Obviously I don't expect answers to all these here, but can someone point me to somewhere on the 'net that could answer them? The only other possibilities I can see are buying an expensive copy of the TeXbook, etc. Thanks all, James Fisher ___ 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] TeX syntax -- a guide?
On Feb 25, 2010, at 9:39 PM, James Fisher wrote: Hi, After a few days working in do what the tutorials say mode, I now want to understand TeX from a programmer's mindset. I have not been able just by practise to work out what the syntactic rules of TeX are, and I am hoping that there is a sensible guide to this somewhere. However, searches for things like tex syntax draw a blank. Some of the things I want to understand, for example, are: (1) what is the distinction between square brackets and curly brackets after a command? (2) Why are there sometimes lists of square-bracketed lists after a command, each with lists of seeming arguments inside them? (2) What exactly are the variables in a TeX file? (I've seen variable-like things sometimes referred to just plainly, sometimes with preceding backslashes as if they were commands/macros). (4) Why can't I end a square-bracketed section with a final square-bracket on a line of its own, as I may do in other programming languages? (5) How are things like \subsection, \sub subsection, \subsubsubsection, ... implemented? I am used to languages in which there is only a finite set of commands; why is the logic here not more like \section[level=1], \section[level=2], ... ? (6) Perhaps I'm misunderstanding things and all this isn't actually the fundamental syntax of TeX but just adhoc syntax defined by various macros doing different things -- is this the case; to what degree can macros define syntax? Obviously I don't expect answers to all these here, but can someone point me to somewhere on the 'net that could answer them? The only other possibilities I can see are buying an expensive copy of the TeXbook, etc. First, you're confusing two things: TeX syntax and ConTeXt syntax. Most of what you're asking here has to do with the way ConTeXt implements things. For starters, I would recommend http://wiki.contextgarden.net/Inside_ConTeXt, especially the overview about System Macros. But if you want to actually write your own macros (or simply understand the way ConTeXt works) you will indeed need some understanding of TeX. Complaining about the price of the TeXbook doesn't sit very well with most TeXies (most of us think the price is reasonable, we're using this incredibly software for free, and if you're really poor, you can always go to a library), but there's an absolutely wonderful book which you can download for free, TeX by topic, http://eijkhout.net/texbytopic/texbytopic.html Personally, I find it more accessible than the TeXbook. HTH 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeX syntax -- a guide?
On Thu, 25 Feb 2010, Thomas A. Schmitz wrote: but there's an absolutely wonderful book which you can download for free, TeX by topic, http://eijkhout.net/texbytopic/texbytopic.html Personally, I find it more accessible than the TeXbook. Also see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ol-books for a few other freely availbe books on TeX, and http://www.tex.ac.uk/cgi-bin/texfaq2html?label=books for other books on TeX. But if you really want to understand *why* TeX works the way it does, the TeXbook is essential. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] table alignment
Hallo, I asked this question some times before but I can't remember if I got some answers. Sorry! I want some space on the left of \start\stoptables. What I get is SOME space, but not that what I wanted! --- \starttext vorher \setupnarrower[left=3cm] \startnarrower[left] \starttables[|l|] \NC hmm \NC\MR \stoptables \stopnarrower nachher \stoptext --- Where is that little space from? How can I get a left space of, say 3cm? 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 in MKIV - HOWTO
Hi Mojca, After trying step 1 (vusialize the font) with Times math, I have the following error: systems : begin file math.tex at line 2 (c:/contextminimal/texmf-context/tex/context/base/font-run.mkii) color : system all is global activated ! Undefined control sequence. \doshowfont ...f \setstrut \dummy \localcolortrue \offinterlineskip \dostepw... to be read again \stoptext l.4 \stoptext The strange thing here is .mkii extension, while I definitely use mkiv. My script is \loadmapfile[original-youngryu-tx.map] \starttext \showfont[rtxptmr] \stoptext B.R., 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] TeX syntax -- a guide?
Wonderful! Those were good recommendations; I shall work through them. Maybe I will buy the TeXbook eventually; however, I've just splashed out on the METAFONTbook, so I'll give it a while. On Thu, Feb 25, 2010 at 9:39 PM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: On Feb 25, 2010, at 9:39 PM, James Fisher wrote: Hi, After a few days working in do what the tutorials say mode, I now want to understand TeX from a programmer's mindset. I have not been able just by practise to work out what the syntactic rules of TeX are, and I am hoping that there is a sensible guide to this somewhere. However, searches for things like tex syntax draw a blank. Some of the things I want to understand, for example, are: (1) what is the distinction between square brackets and curly brackets after a command? (2) Why are there sometimes lists of square-bracketed lists after a command, each with lists of seeming arguments inside them? (2) What exactly are the variables in a TeX file? (I've seen variable-like things sometimes referred to just plainly, sometimes with preceding backslashes as if they were commands/macros). (4) Why can't I end a square-bracketed section with a final square-bracket on a line of its own, as I may do in other programming languages? (5) How are things like \subsection, \sub subsection, \subsubsubsection, ... implemented? I am used to languages in which there is only a finite set of commands; why is the logic here not more like \section[level=1], \section[level=2], ... ? (6) Perhaps I'm misunderstanding things and all this isn't actually the fundamental syntax of TeX but just adhoc syntax defined by various macros doing different things -- is this the case; to what degree can macros define syntax? Obviously I don't expect answers to all these here, but can someone point me to somewhere on the 'net that could answer them? The only other possibilities I can see are buying an expensive copy of the TeXbook, etc. First, you're confusing two things: TeX syntax and ConTeXt syntax. Most of what you're asking here has to do with the way ConTeXt implements things. For starters, I would recommend http://wiki.contextgarden.net/Inside_ConTeXt, especially the overview about System Macros. But if you want to actually write your own macros (or simply understand the way ConTeXt works) you will indeed need some understanding of TeX. Complaining about the price of the TeXbook doesn't sit very well with most TeXies (most of us think the price is reasonable, we're using this incredibly software for free, and if you're really poor, you can always go to a library), but there's an absolutely wonderful book which you can download for free, TeX by topic, http://eijkhout.net/texbytopic/texbytopic.html Personally, I find it more accessible than the TeXbook. HTH 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 : 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] METAPOST -- specifying an unknown point coordinate by giving the angle from another known point
This isn't specifically a ConTeXt question, but via it I've run into a seemingly simple problem in METAPOST that I just can't solve. I'm trying to draw a parallelogram by specifying: (1) the length of sides parallel to the x-axis; (2) the total height of the figure; (3) one of the interior angles. This is how I'm trying to solve it: - % Draw a parallelogram, like so: % % z3z2 % +-+ ^ %/ /| % / / | % / / |10 units % /BL / | %+-+v % z0 z1 %- %5 units % %Interior angle BL = 87 degrees beginfig(1); z0 = origin;% bottom left z1 = (5,0); % bottom right y2 = y3 = 10; % shape is 10 units high x2 - x3 = x1 - x0; % top edge is the same length as bottom edge % We've completely specified z0 and z1; % We know that the top edge is the same length and angle as the bottom, but lies somewhere on y = 10; % all we have to do is specify one angle and we have a complete parallelogram. % % The following should work as it provides the following information: % the unit vector from z0 to z3 is at an angle 87 degrees anticlockwise from (0,0) -- (1,0). angle(z3-z0) = dir(87); endfig; end; This doesn't work; using the angle() function gives the error: Not implemented: angle(unknown pair). Strictly speaking, yes, z3 has an unknown x-coordinate at that time in execution. But I am told that METAPOST is declarative, so I would expect my line of code to mean: set the x-coordinate of z3 such that angle(z3-z0) = dir(87). AFAICS that provides all the needed information to draw the shape. So, is there another way I can do what I want without falling into low-level trig? Best, James ___ 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] METAPOST -- specifying an unknown point coordinate by giving the angle from another known point
James, Try this: z0 = origin; z1 = (5,0); z3 = 10*dir(87); z2 = z3-z0+z1; Troy Henderson ___ 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] METAPOST -- specifying an unknown point coordinate by giving the angle from another known point
James, I apologize, but the previous information that I gave you was wrong. Try this instead: z0 = origin; z1 = (5,0); BL:=87; r:=10/sind(BL); z3 = r*dir(BL); z2 = z3-z0+z1; Troy ___ 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] METAPOST -- specifying an unknown point coordinate by giving the angle from another known point
Aha! That certainly works. I suspected I would have to fall back on low-level trig :). Many thanks! On Fri, Feb 26, 2010 at 1:44 AM, Troy Henderson thend...@gmail.com wrote: James, I apologize, but the previous information that I gave you was wrong. Try this instead: z0 = origin; z1 = (5,0); BL:=87; r:=10/sind(BL); z3 = r*dir(BL); z2 = z3-z0+z1; Troy ___ 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] METAPOST -- specifying an unknown point coordinate by giving the angle from another known point
James, How about this. BL:=87; z0=origin; z1=(5,0); z4=dir(BL); % Intermediate point z3=10/y4*z4; z2=z3+z1; or alternatively without having to define z4 BL:=87; z0=origin; z1=(5,0); z3=10/(ypart dir(BL))*dir(BL); z2=z3+z1; ___ 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] Lua fonttester error
Hi Hans Hi all, since yesterday evening (Context 2010.02.25 19:46 MKIV) the Lua fonttester doesn't work anymore. After starting it with mtxrun --script server --auto (MAPS 39, page E75 :-) I can see the Startpage in my Browser. After clicking fonttest the script breaks with following errormessage: MTXrun | requested action: mtx-server-ctx-fonttest.lua MTXrun | performing action: mtx-server-ctx-fonttest.lua MTXrun | locating script: C:/contextminimal/texmf-context/scripts/context/lua/mtx-server-ctx-fonttest.lua MTXrun | loading script: C:/contextminimal/texmf-context/scripts/context/lua/mtx-server-ctx-fonttest.lua MTXrun | return type: function ...textminimal/texmf-context/tex/context/base/l-aux.lua:212: attempt to index field 'patterns' (a nil value) C:\contextminimal Greetings Lutz ___ 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] TeX syntax -- a guide?
On Thu, Feb 25 2010, James Fisher wrote: Obviously I don't expect answers to all these here, but can someone point me to somewhere on the 'net that could answer them? The only other possibilities I can see are buying an expensive copy of the TeXbook, etc. Hello James, Look for a second-hand version. I've bought mine for 10€ on eBay. 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] table alignment
Wolfgang Werners-Lucchini wrote: Hallo, I asked this question some times before but I can't remember if I got some answers. Sorry! I want some space on the left of \start\stoptables. What I get is SOME space, but not that what I wanted! --- \starttext vorher \setupnarrower[left=3cm] \startnarrower[left] \starttables[|l|] Where is that little space from? How can I get a left space of, say 3cm? \starttables[s0|l|] ? 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 ___