[NTG-context] Metafun example doesn't work
All, I've always wondered why this Metafun manual example doesn't work. \startMPgraphic draw unitsquare xscaled 5cm yscaled 1cm withpen pencircle scaled 2mm withcolor .625 red; \stopMPgraphic \hbox\bgroup \loadcurrentMPgraphic{width=5cm,height=1cm}\placeMPgraphic\quad \loadcurrentMPgraphic{width=8cm,height=1cm}\placeMPgraphic\egroup ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Need to compile individual components with proper numbering, etc.
All, With the structure (posted below for completeness), I will need to compile the individual components (small chunks to post online for students with modems). I know this is possible, with say texexec section1. However, if that is section1.tex of chapter8.tex, then I will need the run to produce all of the correct numbering of examples, equations, definitions, etc. I am hoping this is possible with this structure. Comments? All, I have files: ~/IntermediateAlgebraText/book.tex ~/IntermediateAlgebraText/bookenv.tex ~/IntermediateAlgebraText/chapter1/chapter1.tex ... ~/IntermediateAlgebraText/chapter8/chapter8.tex I also have: ~/IntermediateAlgebraText/chapter1/section1.tex ~/IntermediateAlgebraText/chapter1/section2.tex ~/IntermediateAlgebraText/chapter1/section3.tex And similar files for each of the eight chapters. Here is my project file: ~/IntermediateAlgebraText/book.tex %output=pdftex \startproject book \environment bookenv \product chapter1/chapter1 \product chapter2/chapter2 \product chapter3/chapter3 \product chapter4/chapter4 \product chapter5/chapter5 \product chapter6/chapter6 \product chapter7/chapter7 \product chapter8/chapter8 \stopproject %%% Local Variables: %%% mode: conTeXt-en %%% End: Here, for example, is my ~/IntermediateAlgebraText/chapter1/chapter1.tex \startproduct chapter1 \project book \startbodymatter \chapter[chap:1]{Functions} \input zapf \component section1 \component section2 \component section3 \stopbodymatter \stopproduct %%% Local Variables: %%% mode: conTeXt-en %%% End: As an example of a section, consider ~/IntermediateAlgebraText/ chapter1/section1.tex %output=pdf \startcomponent section1 \project book \product chapter1 \section[sec:1]{The Function Concept} \input knuth \stopcomponent %%% Local Variables: %%% mode: conTeXt-en %%% End: This look OK to folks? Will I get in trouble with this plan? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Legal Project Structure
All, I have files: ~/IntermediateAlgebraText/book.tex ~/IntermediateAlgebraText/bookenv.tex ~/IntermediateAlgebraText/chapter1/chapter1.tex ... ~/IntermediateAlgebraText/chapter8/chapter8.tex I also have: ~/IntermediateAlgebraText/chapter1/section1.tex ~/IntermediateAlgebraText/chapter1/section2.tex ~/IntermediateAlgebraText/chapter1/section3.tex And similar files for each of the eight chapters. Here is my project file: ~/IntermediateAlgebraText/book.tex %output=pdftex \startproject book \environment bookenv \product chapter1/chapter1 \product chapter2/chapter2 \product chapter3/chapter3 \product chapter4/chapter4 \product chapter5/chapter5 \product chapter6/chapter6 \product chapter7/chapter7 \product chapter8/chapter8 \stopproject %%% Local Variables: %%% mode: conTeXt-en %%% End: Here, for example, is my ~/IntermediateAlgebraText/chapter1/chapter1.tex \startproduct chapter1 \project book \startbodymatter \chapter[chap:1]{Functions} \input zapf \component section1 \component section2 \component section3 \stopbodymatter \stopproduct %%% Local Variables: %%% mode: conTeXt-en %%% End: As an example of a section, consider ~/IntermediateAlgebraText/ chapter1/section1.tex %output=pdf \startcomponent section1 \project book \product chapter1 \section[sec:1]{The Function Concept} \input knuth \stopcomponent %%% Local Variables: %%% mode: conTeXt-en %%% End: This look OK to folks? Will I get in trouble with this plan? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: interesting font
Thomas was too quick and made a mistake... Patrick has kindly uploaded a corrected version. If anyone has downloaded the first version, please discard the file type- gfsdidot.tex and get the new version. Thanks! Thomas On Dec 17, 2005, at 6:11 PM, Patrick Gundlach wrote: Thomas was quick and the fonts together with context stuff are now available at http://modules.contextgarden.net/gfsdidot ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] textbackground > bug
Something strange happens with textbackground (again, I am afraid). I defined: % Java typesetting with background. \definetyping[JAVA] \setuptyping[JAVA][option=JV, before={\bgroup\setupinterlinespace[line=2.2ex]% \testpage[1]\starttextbackground[code]}, after={\stoptextbackground\egroup}] Then I typeset some text: \startJAVA public void setUserManager( UserManager um ) { .. \stopJava If this falls precisely at the start of a new page I get the following error: ! Undefined control sequence. l.17 \s tartpdffontresource[ec] Forcing the typesetting to run further the output contains the rest of the source of macro \startpdffontresource[ec] . I.e. the output then shows (the \s has disappeared): tartpdffontresource[ec] /CIDInit /ProcSet findresource begin ... - and goes on until (the last part of the macro "end end \stoppdffontresource" not appearing) ... CMapName currentdict /CMap defineresource pop Hereafter typesetting is resumed. >>>Introducing something that puts another line of text at the top of the page results in normal typesetting.<<< Further experiment replacing "\startJava" by "\starttextbackground[somecolor]" leads to the same error. Therefore I suspect it has something to do with the output routine where \s is taken as the next macro. A simpe experiment (\def\s{something}) shows that indeed a macro \s is executed. Is someone here messing up the catcode's of the letters? It is of cource very annoying if one constantly has to shift textmaterial up and down to move it away from page breaks! yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: [Aleph] OpenType-to-TeX and other musings...
Thank you Taco and Gábor for your valuable comments-) Based on both of your comments, it seems that the most practical approach in the short run is for Aleph (whose raison d`etre is more focused on the short run->) is to just treat otf's like cid/enriched type1 fonts (a la Latin Modern), which is what ConTeXt (and I guess LaTeX too) are already doing (with smart encodings, etc.) The main thing that aleph offers on this front is >256-glyph encodings. Simple otp's could provide switches to turn on needed features (small caps, superiors, swashes, etc) in a large font without clogging the system with multiple encodings (Occam's razor); only a single encoding vector for the entire raw font would be needed. I know that loading encodings in ConTeXt would certainly be a lot simpler-) On Sat, 17 Dec 2005 06:13:21 -0700, <[EMAIL PROTECTED]> wrote: 3) OpenType fonts, as Taco has already mentioned, have a declarative nature: they tell you what to do but not how to do it. In the short run, for Aleph's purposes, these declarations and much/most/all of the metainfo can be treated as "suggestions" for the otp designer to consider in implementing things. There is no need to treat them as something "holy". Based on your comments and my other research, I will focus on enriched/CID type1 (which I guess is equivalent to cff-flavored opentype) font solution in my own work, and not worry about otf declarations for now. In the long run, of course, it would be great if a rewrite of Omega could execute a complete implementation of otf functionality. I wish dear Yannis and Gábor the very best in this regard! Best to all Idris -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: interesting font
> Thomas A. Schmitz wrote: >> Oh OK, that's what I was thinking about anyway. And in this case, we >> can even redistribute the fonts themselves, so the zip would contain >> everything needed, users have just to unzip it and can go... Thomas was quick and the fonts together with context stuff are now available at http://modules.contextgarden.net/gfsdidot > Precisely. And if we have a lot of those font things, I'm sure we can > convince Patrick to create a subdivision for fonts :-) My todo-list is a stack rather than a queue. So don't ask in advance :) Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] TUO loading bug
Hi, Renaud AUBIN wrote: [failing \cite commands in a component file] I've found the problem, and it is in fact not related to the bib module (and not really to the project structure either). The real culprit was a bug in the tuo file loader, triggered by your \useencoding[ffr] in the environment file. Your environment file is loaded *after* \startproduct (which implies \starttext), and therefore the switch comes too late. Moving the three french language related lines to the stop of the actual prd_phd.tex file (before \starttext) solves the problem. (What follows is for Hans' benefit mostly) Nasty little bug, this. I only found it because eventually, I decided to test the citations using explicit "\in{}[]" and found out that that didn't work either. I've attached a minimal file demonstrating the bug. Here is the problem in the tuo: \thisissectionseparator{-} % <= NOTE! \twopassentry{floatdata}{0}{1::1} % <= WRONG, loading of .tuo aborted \twopassentry{float}{1}{1} When I remove either this float, or the \useencoding line, all is fine, but simple redefining \dosavefloatdata was not enough apparently, because that did not work. Cheers, Taco test.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] source file for the manuals
On 12/17/05, Masoud Salehi <[EMAIL PROTECTED]> wrote: > Where can I find the source files for the context manuals. They can be of > invaluable help to how to typeset beautifully using this system. > http://context.aanhet.net/svn/manuals/ -- http://vnoss.org Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] source file for the manuals
Where can I find the source files for the context manuals. They can be of invaluable help to how to typeset beautifully using this system. Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] including swf files?
Hi, out of curiosity: how do I include a swf file into a pdf? So I can click on 'play' (or wherever) to start it? I have seen x-res-50.tex and created a PDF file using the example, but I'd like to have such an animation within my other documents. Does anybody know why acroread 7/mac asks for media player for flash? I have done all updates for my mac (10.4.3, qt 7). Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About \defineshortcut
Radhelorn wrote: Thanks Taco. I was experimenting with \bgroup \egroup and thinking about some more explicit and visible. BTW where is these \start \stop defined? core-sys.tex, line 128-136: \def\complexstart[#1]{\bgroup\getvalue{\e!start#1}} \def\complexstop [#1]{\getvalue{\e!stop #1}\egroup} \let\simplestart\bgroup \let\simplestop \egroup \definecomplexorsimple\start \definecomplexorsimple\stop Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About \defineshortcut
Taco Hoekwater wrote: Radhelorn wrote: Hello All! There is intresting macros in cont-new -- shortcuts. It works pretty well, but I have one question: how to undefine them back? For example after command: \defineshortcut [//] [] [style=\em] I can get slash only by \textslash (which is expected) and it breaks things like: \typefile {some/dir/file} So how to revert to previous meaning of '/'? It is possible to do it only temporarily? Explicit \start a /b/ c \stop style grouping is normally best, but a shortcut is just an active character with a closing defimiter, so this will work for you special case: \catcode`\/=\other \typefile {some/dir/file} \catcode`\/=\active Thanks Taco. I was experimenting with \bgroup \egroup and thinking about some more explicit and visible. BTW where is these \start \stop defined? -- Radhelorn <[EMAIL PROTECTED]> ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: interesting font
Thomas A. Schmitz wrote: Oh OK, that's what I was thinking about anyway. And in this case, we can even redistribute the fonts themselves, so the zip would contain everything needed, users have just to unzip it and can go... Precisely. And if we have a lot of those font things, I'm sure we can convince Patrick to create a subdivision for fonts :-) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Story of a newbie looking for a table
Jérôme Laurens wrote: > So, is it possible to have the Google search engine at context garden > also look into the manuals? As far as I know, there is no option in google to look to more than one domain at once. It means that you can only search on: - only contextgarden.net - only pragma-ade.com - on the whole www at once, but not at both contextgarden and pragma at once. However, if you use the google frame integrated into contextgarden, you can choose between four options where to search (in the second step): contextgarden. pragma, ctan or "everywhere". Try it. There is a documentation mirrored on contextgarden (http://mirror.contextgarden.net/overview.htm), but it's intentionally not indexed by google. Perhaps searching the manuals is the only good reason why it would partially make sense to let google index their content on contextgarden.net as well. Perhaps there is some workaround / some elgant way to add only the manuals to the "allow" section of mirror.contextgarden.net/robots.txt, while still somehow "preventing" people to refer to the mirrored documentation instead to the original one. (If there's a note on every page of mirror.contextgarden.net pointing to the original site or something similar ...) I'm not sure if I would do that, but if Hans/Patrick find a good way to do so, ... To Jérôme: as a newbie (as you claim it) you have a great opportunity to contribute to the wiki from your point of view and improve the page with tables. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: interesting font
Oh OK, that's what I was thinking about anyway. And in this case, we can even redistribute the fonts themselves, so the zip would contain everything needed, users have just to unzip it and can go... Best Thomas On Dec 17, 2005, at 10:33 AM, Taco Hoekwater wrote: Yes, but that is true for some modules as well. Just create a zip that has the whole needed subtree below texmf, ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] OpenType fonts
Idris Samawi Hamid wrote: Hi all, OpenType fonts are all the rage today. Are there any critiqes of the format, or discussions of its limitations? Despite it's apparent "smartness" and a lot of media hype, OpenType is still just a collection of glyphs and metainformation. XeTeX makes OpenType look intelligent, but that is because the program logic is wholly embedded in Mac OS X. At the core level, the real big difference with TTF and Type 1 is just that there is *more* metainfo (I am over simplifying it a bit, but not much). Aleph, or pdfetex, for that matter, will need extensions to make actual use of the extra metainformation. Whether that needs a new kind of OpenType-Font-Metric file or whether it can be done in macros/primitives is not clear yet (at least not for pdftex) How many typesetting applications can actually take full advantage of opentype fonts? There is a table at: http://www.opentype.com/html/opentype.aspx but how up-to-date that is, I do not know. What are the chances that OpenType (at least some of its advanced features) will go the way of MultipleMaster fonts? Do you mean "embedded metaness" or "terminated for marketing reasons"? the first, I doubt (too many font vendors involved with the spec; they can make more money from selling separate fonts) the latter is, of course, always possible but seems unlikely in short and medium time. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: interesting font
Thomas A. Schmitz wrote: On Dec 17, 2005, at 9:15 AM, Taco Hoekwater wrote: Why not pretend that these things are a 'module' and put them on modules.contextgarden.net? It would also make installation easier for other users Not quite sure how I'd do that -- the stuff has to go into different directories in order to be found. Or am I on the wrong track? Yes, but that is true for some modules as well. Just create a zip that has the whole needed subtree below texmf, like so: (aquamints as example) doc/context/third/aquamints/readme doc/context/third/aquamints/aquamints.tex doc/context/third/aquamints/aquamints.pdf tex/context/third/aquamints/t-symb-aquamints fonts/map/galapag.map fonts/tfm/galapag/aquamin.tfm fonts/type1/galapag/AquaMin_.pfb Do I make sense? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: interesting font
On Dec 17, 2005, at 9:15 AM, Taco Hoekwater wrote: Why not pretend that these things are a 'module' and put them on modules.contextgarden.net? It would also make installation easier for other users Not quite sure how I'd do that -- the stuff has to go into different directories in order to be found. Or am I on the wrong track? Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: interesting font
Thomas A. Schmitz wrote: On Dec 16, 2005, at 11:56 PM, Patrick Gundlach wrote: It would be easiest for me to put them on dl.contextgarden.net and in some subdir. But I guess you wouldn't be too statisfied with this solution, would you? No, that's exactly what I had in mind. I just think some central place for this stuff would be good. I'll send you a zip. Why not pretend that these things are a 'module' and put them on modules.contextgarden.net? It would also make installation easier for other users Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context