Re: [NTG-context] Buggy source code-- references disappears when I put sections and If I put subjects, \completecontent has void list.
En/na Hans Hagen ha escrit: Xan wrote: I running with the last version of MKII via minimals and I get the same problem. With MKIV via minimals I get error (it hangs!). So, please, can you let it a change: can you run context with this source with the last subsubsubject changed to subsubsection and you will see that there are a lot of warnings as a start: (1) the loop in mkiv ... something fishy with lastnode; temp solution: \let\removeunwantedspaces\relax For now I test with the latest version of MKII (in minimals) (2) fix your bib file (. outside ) A typo, thanks. (3) check math modes: \startmytheorem Per a tota presentació {\cal P} = \langle X \mid R \rangle, $\iota(X)$ genera $G({\cal P})$. Thanks another time. How do you do this check?. What tool do you use? Is there any tool for checking math mode? Even after fix these errors, I get the same warning error. I attach the fixed files (compressed) of source, bib and log. What's the next step? Thank you, __very__ much, Xan. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Buggy source code-- references disappears when I put sections and If I put subjects, \completecontent has void list.
En/na Xan ha escrit: En/na Hans Hagen ha escrit: Xan wrote: I running with the last version of MKII via minimals and I get the same problem. With MKIV via minimals I get error (it hangs!). So, please, can you let it a change: can you run context with this source with the last subsubsubject changed to subsubsection and you will see that there are a lot of warnings as a start: (1) the loop in mkiv ... something fishy with lastnode; temp solution: \let\removeunwantedspaces\relax For now I test with the latest version of MKII (in minimals) (2) fix your bib file (. outside ) A typo, thanks. (3) check math modes: \startmytheorem Per a tota presentació {\cal P} = \langle X \mid R \rangle, $\iota(X)$ genera $G({\cal P})$. Thanks another time. How do you do this check?. What tool do you use? Is there any tool for checking math mode? Even after fix these errors, I get the same warning error. I attach the fixed files (compressed) of source, bib and log. What's the next step? Thank you, __very__ much, Xan. Oops, the files. test2.tar.bz2 Description: application/bzip ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] leqslant for Cambria Math
Aditya Mahajan wrote: On Thu, 13 Aug 2009, Michail Vidiassov wrote: Dear All, using Cambria + Cambria Math (\usetypescript[cambria] \setupbodyfont[cambria]) makes Unicode math input and typesetting instantly possible (great for a newbie, even if not FSF-kosher) - but for missing glyphs for leqslant\geqslant. There is not much that we can do when the glyph is missing from the font. In principle, we can create a fallback, but creating fallbacks for each and every missing glyph is not really an option. What is the right way to fix or work around such problems? (Complaining to MS does not count). The best solution that I can think of is \let\leqslant=\leq Then you will atleast get something meaningful. at least we could start collecting missing bits and pieces (maybe a dedicated wiki page) so that at some point we can decide which ones to fill in with virtual glyphs (or take them from another font) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bold letters in math and does tikz work
Aditya Mahajan wrote: On Wed, 12 Aug 2009, Curiouslearn wrote: Aditya, thanks very much for your reply. Is the default font in context, a unicode font. The layout of my file is No. It is a virtual font created from latin modern math font. I do NOT get bold with $ {\bf x} $ command. It is upright, but not bold. Thanks for your help. Hans, there is a bug in math-vfu. In all bold variants in make_fonts, vector = is missing. See the attached patch. the other patch (spacing issue) how well is that tested? with/without whitespace and such Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to move an inframed block?
Hello Everybody, does somebody know how to move an inframed text, or framed text, RELATIVE to another framed text ( or inframed text). Minimal example: ### begin example: \setupcolors[state=start] \starttext \framed{\inframed{Hello} Everybody} \stoptext ### end example. How to move \inframed{Hello} relative to the framed text \framed{ Everybody}? Idea is to have a framed text with a head like Example, Definition or Theorem, just as the Zapf-examples in the MetaFun manual on page 132 and further. But I want a solution without the use of MetaFun. Can I put the text Hello in a frame on the boundary of the frame \framed{ Everybody}? If so, I'm interested how the backgrounds or overlays of the different frames react. I'm intersted in an easy solution, best regards, Rene' van Hassel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Multi-line labels in MetaPost
Hello, Is it possible to generate multi-line labels in MetaPost? I have naively tried the following hoping to get a line feed between the two words, but it doesn't work! label.rt( btex One \crlf Two etex, (0,0)); \defineframed[mplabel][frame=off,align=right,width=fit] label.rt(textext(\mplabel{One\\Two}),origin) ; Wolfgang Thank-you for a very elegant solution, Wolfgang, unfortunately I get an error: ! Argument of \dododefinecolor has an extra }. I have fixed this by using: label.rt(textext(\framed[frame=off,align=right]{One\\Two}),origin); which works okay. It's not as elegant but as the code is generated automatically it does not require any more typing on my part! Thanks again. Richard Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration Number: 2416188 Registered in England and Wales. Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU. CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. Please consider the environment before printing this e-mail ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Possible Bug(s) in bibl-ams.tex (mkii)
Hi Xan, I appreciate the detailed comments, but I cannot really work with it like this, it is too hard for me to extract actual actions. An easier way for me to handle this is if you create a small test document, run it with the current bib module, and write down all that is wrong with it. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Buggy source code-- references disappears when I put sections and If I put subjects, \completecontent has void list.
Xan wrote: Oops, the files. ok, i got 'm running in mkiv (we found a bug in luatex as well as in the mkiv description code; no need to update luatex but you need the mkiv beta) the ref messages themselves are harmless i think and i will sort them out later; might have to do with the fact that the sectioncounter is zero at that moment Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] latest beta has trouble loading fonts on OS X
Hi all, Hans, I have trouble using my own fonts with the latest beta on my OS X box. The problem appears to be that it is unable to create the database. When I run (on mtxrun --script fonts --list I get as the last lines of my output MTXrun | fontnames: globbing path /Library/Fonts/**.dfont MTXrun | fontnames: globbing path /System/Library/Fonts/**.dfont font loading failed for /System/Library/Fonts/Keyboard.dfont It appears this particular font cannot be loaded, so the entire database fails. On my linux laptop, everything works as expected. So my questions are: 1. What can be done about it? 2. Where is OSFONTDIR set on mkiv? I specifically do NOT want my system fonts used by ConTeXt; everything I want to use with TeX is in one of my texmf trees. How can I prevent mkiv from taking the system paths into account? All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [PATCH] Add begin_of_buffer and end_of_buffer hooks for lua pretty printers
(I've sent this mail before, but I think the mailing list troubles might have eaten it). Hi Hans, i uploaded a beta zip with two extra hooks I see the hooks, but I can't find the spot where they are called? It seems you missed this part of my patch? Also, I think you didn't update the definition of \type to use the typesingle lua function I proposed, which means that \type{} commands won't get begin_of_buffer and end_of_buffer called at all. Am I missing something, or did you? Will you fix this, or should I prepare a new patch? i also moved the pretty printers to another namespace so you need to use the buffers.newvisualizer function so that we don't get clashes with future features This change looks good indeed, those long function names weren't all that pretty. you need to adapt the wiki accordingly I will, as soon as I get things working again :-) Gr. Matthijs signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] latest beta has trouble loading fonts on OS X
Thomas A. Schmitz wrote: Hi all, Hans, I have trouble using my own fonts with the latest beta on my OS X box. The problem appears to be that it is unable to create the database. When I run (on mtxrun --script fonts --list I get as the last lines of my output MTXrun | fontnames: globbing path /Library/Fonts/**.dfont MTXrun | fontnames: globbing path /System/Library/Fonts/**.dfont font loading failed for /System/Library/Fonts/Keyboard.dfont It appears this particular font cannot be loaded, so the entire database fails. On my linux laptop, everything works as expected. So my questions are: 1. What can be done about it? currently only loading dfonts is implemented; the backend code in luatex has to be written yet (will happen soon) 2. Where is OSFONTDIR set on mkiv? I specifically do NOT want my system fonts used by ConTeXt; everything I want to use with TeX is in one of my texmf trees. How can I prevent mkiv from taking the system paths into account? indeed, putting them in the tree is more robust (and controllable) mojca is supposed to know the osfontdir details Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Buggy source code-- references disappears when I put sections and If I put subjects, \completecontent has void list.
En/na Hans Hagen ha escrit: Xan wrote: Oops, the files. ok, i got 'm running in mkiv (we found a bug in luatex as well as in the mkiv description code; no need to update luatex but you need the mkiv beta) How can I get via minimal? sh ./first-setup.sh --context=current ? I'm glad you found a bug in luatex. At least, my file served for something ;-) But why happens the same in MKII? the ref messages themselves are harmless i think and i will sort them out later; might have to do with the fact that the sectioncounter is zero at that moment I'm waiting notices. Xan. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bold letters in math and does tikz work
On Thu, 13 Aug 2009, Hans Hagen wrote: Aditya Mahajan wrote: On Wed, 12 Aug 2009, Curiouslearn wrote: Aditya, thanks very much for your reply. Is the default font in context, a unicode font. The layout of my file is No. It is a virtual font created from latin modern math font. I do NOT get bold with $ {\bf x} $ command. It is upright, but not bold. Thanks for your help. Hans, there is a bug in math-vfu. In all bold variants in make_fonts, vector = is missing. See the attached patch. the other patch (spacing issue) how well is that tested? with/without whitespace and such I did not test the other patch since I did not understand what it does. I will run it though my test docs and visually inspect the results. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Multi-line labels in MetaPost
On Thu, 13 Aug 2009, richard.steph...@converteam.com wrote: Hello, Is it possible to generate multi-line labels in MetaPost? I have naively tried the following hoping to get a line feed between the two words, but it doesn't work! label.rt( btex One \crlf Two etex, (0,0)); \defineframed[mplabel][frame=off,align=right,width=fit] label.rt(textext(\mplabel{One\\Two}),origin) ; Wolfgang Thank-you for a very elegant solution, Wolfgang, unfortunately I get an error: ! Argument of \dododefinecolor has an extra }. I have fixed this by using: label.rt(textext(\framed[frame=off,align=right]{One\\Two}),origin); which works okay. It's not as elegant but as the code is generated automatically it does not require any more typing on my part! Section 4.2 of Mojca's MyWay on sometxt http://dl.contextgarden.net/myway/sometxt.pdf provides another solution. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] forced JavaScript injection (mkiv)
Hi Hans, is there a switch to disable the default /JavaScript injection? For a good reason PDF/X doesn't allow JS in the document. And the preflight only checks the existence of the /JavaScript key, but not if there is any JS code in it. Best wishes, Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] forced JavaScript injection (mkiv)
Peter Rolf wrote: Hi Hans, is there a switch to disable the default /JavaScript injection? For a good reason PDF/X doesn't allow JS in the document. And the preflight only checks the existence of the /JavaScript key, but not if there is any JS code in it. hm, i can add something but it would probably demand an extra run in some cases Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] forced JavaScript injection (mkiv)
Hans Hagen schrieb: Peter Rolf wrote: Hi Hans, is there a switch to disable the default /JavaScript injection? For a good reason PDF/X doesn't allow JS in the document. And the preflight only checks the existence of the /JavaScript key, but not if there is any JS code in it. hm, i can add something but it would probably demand an extra run in some cases That would be nice. Extra runs are no problem, as long as it is possible to create valid PDF/X. :) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] loop textext and \MPstring{… }
Am 13.08.2009 um 05:00 schrieb Aditya Mahajan:You just need to work a little harder.\startbuffer[1]This is a test\stopbuffer\startbuffer[2]Another test\stopbuffer\startbuffer[3]And again\stopbuffer\startluacode userdata = userdata or {} function userdata.shift(i) return "(" .. i .. "cm ," .. i .. "cm )" end function userdata.buffers(i) local idx = string.format("%s",i) local b = buffers.data[idx] if b then if type(b) == "table" then return table.concat(b) else return b end else return "unknown" end end function userdata.draw_buffer(i) return "draw btex " .. userdata.buffers(i) .. " etex shifted ".. userdata.shift(i) .. ";" end\stopluacode\starttext\startluacode context.startMPpage({offset = "1ex", width = [[\paperwidth]], height = [[\paperheight]]}) for i = 1,3 do context(userdata.draw_buffer(i)) end context.stopMPpage()\stopluacode\stoptextThank you very much!I played today (a couple of hours) with your solution and adapted some things, so if someone is interested, I've attached the file. MP-Luatext2.tex Description: TeX document PS. I like the math.random() function I found in the Lua manual.Andreas___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] loop textext and \MPstring{… }
Am 12.08.2009 um 23:22 schrieb Hans Hagen: Mojca Miklavec wrote: On Wed, Aug 12, 2009 at 12:51, Andreas Harder wrote: Am 12.08.2009 um 07:40 schrieb Aditya Mahajan: Another way to do this is to use \TeXtext{1}{ABC} etc. and then call draw sometxt(i) For Sec 4.5 of Mojca's my way on sometxt http://dl.contextgarden.net/myway/sometxt.pdf when processing that one i found out that (1) syntax coloring was not enabled in mkii (due to tex-mkii renaming) (2) labels were not centered by default i fixed that as a bonus i implemented TeXtext in mkiv ... so those who use it have to buy Mojca a beer some day ... Thank you for your help. I've tried some examples form Mojca's MyWay but the pages still empty (without the do we need … question). Anyway, Aditya's solution works. Andreas Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___