* Problem to create PDF File @ 2001-06-30 11:41 Karsten Hachmeister 2001-06-30 12:09 ` Berend de Boer 0 siblings, 1 reply; 9+ messages in thread From: Karsten Hachmeister @ 2001-06-30 11:41 UTC (permalink / raw) Hello, I have a question to ConTeXt. I try to create a document and I want create a PDF-File from it. When I write the document I use DVI, because it is easier to use for me. To create a DVI-File works, but if I want to create a PDF-File I get the following error: ! Font \10ptrmbf=uplb8t at 10.0pt not loaded: Not enough room left. I don't know what it mean exactly. I have no idea how to solve this problem. Can anyone explain to me what this error means and what I can do to solve it. --- Karsten EMail: mailto:Karsten@Hachmeister-Online.de Homepage: http://www.Hachmeister-Online.de ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem to create PDF File 2001-06-30 11:41 Problem to create PDF File Karsten Hachmeister @ 2001-06-30 12:09 ` Berend de Boer 2001-06-30 14:28 ` Karsten Hachmeister 0 siblings, 1 reply; 9+ messages in thread From: Berend de Boer @ 2001-06-30 12:09 UTC (permalink / raw) Cc: ConTeXt "Karsten Hachmeister" <Karsten@Hachmeister-Online.de> writes: > I have a question to ConTeXt. I try to create a document and I want create a > PDF-File from it. When I write the document I use DVI, because it is easier > to use for me. To create a DVI-File works, but if I want to create a > PDF-File I get the following error: > > ! Font \10ptrmbf=uplb8t at 10.0pt not loaded: Not enough room left. Does this happen with a small test file? Else you might want to look at texmf/web2c/texmf.cnf. That file has various constants you might want to enlarge. -- Groetjes, Berend. (-: ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem to create PDF File 2001-06-30 12:09 ` Berend de Boer @ 2001-06-30 14:28 ` Karsten Hachmeister 2001-06-30 17:21 ` Re[2]: " Giuseppe Bilotta 0 siblings, 1 reply; 9+ messages in thread From: Karsten Hachmeister @ 2001-06-30 14:28 UTC (permalink / raw) > > I have a question to ConTeXt. I try to create a document and I want create a > > PDF-File from it. When I write the document I use DVI, because it is easier > > to use for me. To create a DVI-File works, but if I want to create a > > PDF-File I get the following error: > > > > ! Font \10ptrmbf=uplb8t at 10.0pt not loaded: Not enough room left. > > Does this happen with a small test file? No, with small files, there is no error. > Else you might want to look at texmf/web2c/texmf.cnf. That file has > various constants you might want to enlarge. There is no such file in my TeX distribution. I use MikTeX 2.1. Maybe you can send me an example of this file, so I can modify it for my purpose. --- Karsten EMail: mailto:Karsten@Hachmeister-Online.de Homepage: http://www.Hachmeister-Online.de ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re[2]: Problem to create PDF File 2001-06-30 14:28 ` Karsten Hachmeister @ 2001-06-30 17:21 ` Giuseppe Bilotta 2001-07-02 8:11 ` Labeling a tree with MetaObj Tarik Kara 0 siblings, 1 reply; 9+ messages in thread From: Giuseppe Bilotta @ 2001-06-30 17:21 UTC (permalink / raw) Cc: ntg-context Saturday, June 30, 2001 Karsten Hachmeister wrote: >> Else you might want to look at texmf/web2c/texmf.cnf. That file has >> various constants you might want to enlarge. KH> There is no such file in my TeX distribution. I use MikTeX 2.1. Maybe you KH> can send me an example of this file, so I can modify it for my purpose. MiKTeX's equivalent of texmf.cnf is miktex.ini (under texmf/miktex/config). Under the [ConTeXt] section, add the following: font_mem_size=500000 (or a higher number) To see all of possible options, look down to the first [MiKTeX] section where the defaults (for all format files) are set. Copy (and modify) the appropriate ones to the [ConTeXt] section. Giuseppe "Oblomov" Bilotta ^ permalink raw reply [flat|nested] 9+ messages in thread
* Labeling a tree with MetaObj. 2001-06-30 17:21 ` Re[2]: " Giuseppe Bilotta @ 2001-07-02 8:11 ` Tarik Kara 2001-07-02 8:15 ` Hans Hagen 2001-07-02 19:23 ` Denis B. Roegel 0 siblings, 2 replies; 9+ messages in thread From: Tarik Kara @ 2001-07-02 8:11 UTC (permalink / raw) [-- Attachment #1: Type: TEXT/PLAIN, Size: 270 bytes --] I would like to draw the tree diagram shown at the attachement with MetaObj. I can label the terminal nodes and the edge labeled "o". But I had no luck with the nodes label "1", "2", and the other edges. Any succestions is appreciated. Thanks in advance. Tar{\i}k Kara [-- Attachment #2: Type: APPLICATION/PDF, Size: 9260 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Labeling a tree with MetaObj. 2001-07-02 8:11 ` Labeling a tree with MetaObj Tarik Kara @ 2001-07-02 8:15 ` Hans Hagen 2001-07-02 19:23 ` Denis B. Roegel 1 sibling, 0 replies; 9+ messages in thread From: Hans Hagen @ 2001-07-02 8:15 UTC (permalink / raw) Cc: ntg-context At 11:11 AM 7/2/01 +0300, Tarik Kara wrote: >I would like to draw the tree diagram shown at the attachement with >MetaObj. I can label the terminal nodes and the edge labeled "o". But I >had no luck with the nodes label "1", "2", and the other edges. Any >succestions is appreciated. Thanks in advance. this is for denis to solve one remark from my side: as soon as i find some time for it, i will look into a way to interface to context core code; this is needed in order to get diagrams with for instance hyperlinks and graphics Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Labeling a tree with MetaObj. 2001-07-02 8:11 ` Labeling a tree with MetaObj Tarik Kara 2001-07-02 8:15 ` Hans Hagen @ 2001-07-02 19:23 ` Denis B. Roegel 2001-07-02 21:13 ` Tarik Kara 1 sibling, 1 reply; 9+ messages in thread From: Denis B. Roegel @ 2001-07-02 19:23 UTC (permalink / raw) Cc: ntg-context On Mon, Jul 02, 2001 at 11:11:07AM +0300, Tarik Kara wrote: > I would like to draw the tree diagram shown at the attachement with > MetaObj. I can label the terminal nodes and the edge labeled "o". But I > had no luck with the nodes label "1", "2", and the other edges. Any > succestions is appreciated. Thanks in advance. Below is a solution. I didn't bother to get the same dimensions as you, though. I have used the (unfortunately) undocumented treeroot macro, which I should actually extend a bit. I know this solution looks complex and that's why a TeX (or ConTeXt) interface is really needed! :-) Feel free to post other queries. I'll use them for the next version of the metaobj manual. However, I am not sure everybody is interested in this group, so it might be a better idea to post the questions on the metafont/metapost mailing list, even though I doubt anybody else than I will answer for some time... Denis % Example requested by Tarik Kara. % A useful inspiration was the figure on page 109 of the metaobj manual. % D. Roegel, 2 July 2001 input metaobj setCurveDefaultOption("arrows","draw"); setObjectDefaultOption("Tree")("hideleaves")(true); def mytc=new_Circle_("")("filled(true)") enddef; labeloffset:=2bp; % 3bp is the default in plain.mp beginfig(1); t:=T_(mytc)(mytc,T_(mytc)(mytc,mytc)("hbsep(2cm)"))("hbsep(2cm)"); Obj(t).c=origin; % |ObjLabel| should appear after an object is positionned (this is not % clearly stated in the manual); one can always move the object afterwards; % this constraint appears when |ObjLabel| is used on subtrees, since % |ObjLabel| temporarily attaches the object; when it unties it, links % to the embedding object(s) are lost. ObjLabel.ntreepos(Obj(t))(1)(btex $(0,2)$ etex) "labcard(s)"; ObjLabel.ntreepos(Obj(t))(2,1)(btex $(-1,0)$ etex) "labcard(s)"; ObjLabel.ntreepos(Obj(t))(2,2)(btex $(1,1)$ etex) "labcard(s)"; % the |treeroot| function should also work for an empty second argument, % but this is currently not the case, so one has to use |obj| and |root| % in order to dig into the object; it will be corrected in the next version % of metaobj. ObjLabel.obj(Obj(t)root)(btex $1$ etex) "labcard(n)"; ObjLabel.treeroot(Obj(t))(2)(btex $2$ etex) "labcard(ne)"; ObjLabel.Obj(t)(btex $o$ etex) "labpathid(1)", "labdir(lft)"; ObjLabel.Obj(t)(btex $e$ etex) "labpathid(2)", "labdir(rt)"; ObjLabel.ntreepos(Obj(t))(2)(btex $f$ etex) "labpathid(1)", "labdir(lft)"; ObjLabel.ntreepos(Obj(t))(2)(btex $a$ etex) "labpathid(2)", "labdir(rt)"; draw_Obj(t); endfig; end ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Labeling a tree with MetaObj. 2001-07-02 19:23 ` Denis B. Roegel @ 2001-07-02 21:13 ` Tarik Kara 2001-07-02 21:27 ` Denis B. Roegel 0 siblings, 1 reply; 9+ messages in thread From: Tarik Kara @ 2001-07-02 21:13 UTC (permalink / raw) Cc: ntg-context Thank you very much for the nice package and the answer to my problem. One small comment: It would be nice if one could also use ObjLabel.ntreepos(Obj(t))(btex $o$ etex) "labpathid(1)","labdir(lft)"; In addition to ObjLabel.Obj(t)(btex $o$ etex) "labpathid(1)", "labdir(lft)"; Just for the sake of symmetry between a tree and its subtrees: The same idea as to get the "treeroot" function to work with an empty argument. Thanks again. I loved the package. Looking forward to see what Hans will do about the interface (though I am still having problems with using ConText) Tar{\i}k On Mon, 2 Jul 2001, Denis B. Roegel wrote: > > Below is a solution. I didn't bother to get the same dimensions > as you, though. > > I have used the (unfortunately) undocumented treeroot macro, which I should > actually extend a bit. > > I know this solution looks complex and that's why a TeX (or ConTeXt) interface > is really needed! :-) > > Feel free to post other queries. I'll use them for the next version > of the metaobj manual. However, I am not sure everybody is interested > in this group, so it might be a better idea to post the questions > on the metafont/metapost mailing list, even though I doubt anybody else > than I will answer for some time... > > Denis > > % Example requested by Tarik Kara. > % A useful inspiration was the figure on page 109 of the metaobj manual. > % D. Roegel, 2 July 2001 > input metaobj > > setCurveDefaultOption("arrows","draw"); > setObjectDefaultOption("Tree")("hideleaves")(true); > > def mytc=new_Circle_("")("filled(true)") enddef; > > labeloffset:=2bp; % 3bp is the default in plain.mp > > beginfig(1); > t:=T_(mytc)(mytc,T_(mytc)(mytc,mytc)("hbsep(2cm)"))("hbsep(2cm)"); > Obj(t).c=origin; > % |ObjLabel| should appear after an object is positionned (this is not > % clearly stated in the manual); one can always move the object afterwards; > % this constraint appears when |ObjLabel| is used on subtrees, since > % |ObjLabel| temporarily attaches the object; when it unties it, links > % to the embedding object(s) are lost. > ObjLabel.ntreepos(Obj(t))(1)(btex $(0,2)$ etex) "labcard(s)"; > ObjLabel.ntreepos(Obj(t))(2,1)(btex $(-1,0)$ etex) "labcard(s)"; > ObjLabel.ntreepos(Obj(t))(2,2)(btex $(1,1)$ etex) "labcard(s)"; > % the |treeroot| function should also work for an empty second argument, > % but this is currently not the case, so one has to use |obj| and |root| > % in order to dig into the object; it will be corrected in the next version > % of metaobj. > ObjLabel.obj(Obj(t)root)(btex $1$ etex) "labcard(n)"; > ObjLabel.treeroot(Obj(t))(2)(btex $2$ etex) "labcard(ne)"; > ObjLabel.Obj(t)(btex $o$ etex) "labpathid(1)", "labdir(lft)"; > ObjLabel.Obj(t)(btex $e$ etex) "labpathid(2)", "labdir(rt)"; > ObjLabel.ntreepos(Obj(t))(2)(btex $f$ etex) "labpathid(1)", "labdir(lft)"; > ObjLabel.ntreepos(Obj(t))(2)(btex $a$ etex) "labpathid(2)", "labdir(rt)"; > draw_Obj(t); > endfig; > > end > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Labeling a tree with MetaObj. 2001-07-02 21:13 ` Tarik Kara @ 2001-07-02 21:27 ` Denis B. Roegel 0 siblings, 0 replies; 9+ messages in thread From: Denis B. Roegel @ 2001-07-02 21:27 UTC (permalink / raw) Cc: Denis B. Roegel, ntg-context On Tue, Jul 03, 2001 at 12:13:32AM +0300, Tarik Kara wrote: > Thank you very much for the nice package and the answer to my problem. > One small comment: It would be nice if one could also use > > ObjLabel.ntreepos(Obj(t))(btex $o$ etex) "labpathid(1)","labdir(lft)"; > > In addition to > > ObjLabel.Obj(t)(btex $o$ etex) "labpathid(1)", "labdir(lft)"; > > Just for the sake of symmetry between a tree and its subtrees: The same > idea as to get the "treeroot" function to work with an empty argument. This is not easily possible, maybe even impossible, because ntreepos expects two arguments. However, it is possible to write a macro Ntreepos such that Ntreepos(t) Ntreepos(t,1) Ntreepos(t,1,1) Ntreepos(t,1,2,1) etc., are accepted. Here Ntreepos takes one argument, which is a list of numbers (t is also a number). This would restore the symmetry, and even make it easier to use! (And actually treeroot can also be simplified along these lines!) I'll probably write such a macro for the next version, but I'll keep the current ones for compatibility. I am sure other things can be simplified. The problem is that I still want to keep the package as general as possible. Thanks for your comments! Denis ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-07-02 21:27 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-06-30 11:41 Problem to create PDF File Karsten Hachmeister 2001-06-30 12:09 ` Berend de Boer 2001-06-30 14:28 ` Karsten Hachmeister 2001-06-30 17:21 ` Re[2]: " Giuseppe Bilotta 2001-07-02 8:11 ` Labeling a tree with MetaObj Tarik Kara 2001-07-02 8:15 ` Hans Hagen 2001-07-02 19:23 ` Denis B. Roegel 2001-07-02 21:13 ` Tarik Kara 2001-07-02 21:27 ` Denis B. Roegel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).