[NTG-context] End notes and compile per chapter question
I have a book project with a structure I copied a few years ago from some instructional page. The product file looks like this: \startproduct prd_book \project project_teoada \starttext \start \startstandardmakeup \ss \hairline \start \switchtobodyfont[20pt]\bf \leftaligned{Test Project Title}% \stop \hairline \blank[line]\rightaligned{Gerben Wierda}% \blank[10cm]\start\leftskip=10cm\hairline\stop \rightaligned{1995--2006}% \stopstandardmakeup \stop \startfrontmatter \completecontent \component c_foo \stopfrontmatter \startbodymatter \component c_bar \component c_foobar \stopbodymatter \startappendices \component c_endnotes \stopappendices \stoptext \stopproduct My book has per page notes as well as more lengthy end notes which end up in a chapter at the end of the book. c_endnotes.tex looks like this: \startcomponent c_endnotes \product prd_book \project project_teoada \starttext \startbuffer [chapter:quote] ToDo \stopbuffer \chapter[h:endnotes]{Notes} \placenotes[endnote] \stoptext \stopcomponent But I would at this stage like to compile the chapters per chapter. This works, but if I compile c_chapter1.tex, I do not get the endnotes of the chapter. How do I go about it that when compiling per chapter, I get the endnotes for that chapter at the end of that file, while when compiling the entire book they go at the end of the book as they should? Thanks, G ___ 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] cont-enp.pdf on lulu
On Jul 22, 2008, at 2:37 AM, John Culleton wrote: There are days when I feel like collecting all the bits and pieces and writing somthing myself. But then I lie down until the fit passes. The lack of proper end user documentation is one of the main problems with ConTeXt. There was talk of a book about ConTeXt but I haven't heard about that one for a while. Probably impossible given the lack of stability (aka ongoing development) of ConTeXt. ConTeXt could become very popular in teh TeX world if it had: - A decent versioning support (where you can get documentation and code that match and not code from 2008 with documentation from 2001) - Side-by-side development of manuals and code As it is now, the developing community is restricted to the few gurus who can hack the ConTeXt source code. No other sane person will try to release and support something on such a volatile foundation. What ConTeXt looks to me currently, is a personal swiss army knife of a few people who have no need for end user documentation (so it never arrives). I moved to ConTeXt years ago for a project expecting ConTeXt to stabilize and come with better documentation. It never happened. G ___ 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] cont-enp.pdf on lulu
On Jul 26, 2008, at 1:31 AM, Aditya Mahajan wrote: The sources are very well documented in the most part. But then, that is not user interface documentation, it is code documentation Exactly. Let's give a simple example. My project needs both footnotes and endnotes. For footnotes I have \setupfootnotes[conversion=set 2,way=bypage] in my environment file. For endnotes, I use \endnote and \placenotes[endnote] in a separate chapter in \backmatter. When I asked Hans in 2005 if footnotes and endnotes together were possible he finished a part of ConTeXt that was not quite done and after some testing it ended up in ConTeXt. This is how it works. What I would like now is to get my end notes per chapter at the end of the chapter (because I want to work on my project per chapter and make per-chapter pdf-files I can send to people). I have been looking for documentation on endnotes. The term still does not appear in any official ConTeXt manual, not on the ConTeXt wiki. So, \endnote and \placenotes[endnote] have been there for *years*. But there is *no* mention of it anywhere. For fun: try googling for endnote placenote. So, let's look at the well documented code then \def\dodoflushnotes % per class, todo: handle endnotes here {\ifdim\ht\localpostponednotes\zeropoint \bgroup \dochecknote \ifendnotes \else ;-) Seriously, do you really expect ordinary users to look at the code of ConTeXt to find out how things can be done? I think nobody thinks that. Also funny: Look at what the wiki tells me about \setupfootnotes: http://texshow.contextgarden.net/cmd/setupfootnotes . How should a simple user like myself ever find out that the above is possible reading the table in the wiki? And who else than ConTeXt developers can write this? Or is it the idea that many people reverse engineer what ConTeXt does and fill a Wiki that way? So, what we have is Hans' and Taco's (and maybe some others) swiss army knife under development. WIth LuaTeX and MKIV all efforts go into the development of the entirely new engine and all the technical know how on the inside. My expectation is that the situation with respect to user documentation is not going to improve soon. G ___ 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] cont-enp.pdf on lulu
On Jul 27, 2008, at 9:40 PM, David wrote: From my own selfish point of view, the solution is simple. A freeze on all code, not even allowing bug fixes, until there's a comprehensive and unified document written by Hans and Taco (plus whoever else) that explains how to use all the features of ConTeXt, covering absolutely all possibilities including any features that are currently half-finished. Unless a new bug is introduced tomorrow that makes all ConTeXt projects come out completely blank, the nonexistent documentation makes all other bugs insignificant. (In fact, many apparent bugs turn out to have secret workarounds anyway, and those would obviously be in the documentation.) I know that such a project is viewed by Hans and Taco co. as a waste of their time, and as something that should be done only after the current burst of development is finished. I think this assessment is correct. And this is IMO also the problem. It is a waste for Taco Hans because they themselves do not need documentation. Others do. Hence my analysis that ConTeXt is not a product but a personal swiss army knife for those few that actually work on ConTeXt and for all other users it is a borrowed swiss army knife without a proper manual. - It's already proven that development isn't going to finish, but evolve. Hence my analysis that there will probably never be decent documentation unless attitudes change. And as long as Taco Hans keep developing ConTeXt it will probably not be documented. And gauging Hans Taco, they will keep on developing ConTeXt until they stop ConTeXt alltogether. - No one else can document ConTeXt without bothering the same people every five minutes anyway, so what's the difference? I was attracted to ConTeXt partly because at first sight the interface looked promisingly clean and orthogonal. But the fact that only Hans Taco can document ConTeXt for users and that all kind of secret workarounds are needed to make it work seems to indicate that assessment was wrong. - Documentation *could* be maintained and updated by someone outside of the small group, *IF* there was a reasonably up-to-date base of correct and complete documentation for them to start from. Currently, there is no such thing. Even that would not work because such a documentation maintainer would not be able to keep up with finding out what changed. You know what is funny and telling? Hans co quite recently produced a detailed, well written 158(!)-page document about the change from ConTeXt MkII to MkIV. This is documentation (promised to be kept up to date) about the technical process of developing ConTeXt/LUATeX. About how it works, about technical issues regarding speed etc. Most of it will be for ever hidden from and not interesting for ConTeXt users. 158 pages. That is book sized! For intermediary documentation of an ongoing technical development process. See: http://www.pragma-ade.com/general/manuals/mk.pdf There is no reason for a project to be frozen to create documentation. What is needed is that the developers accept that user documentation is as important as technical documentation and technical work. The developers currently see user documentation as a waste of time, because they do not need it themselves, they 'should do that when the development is finished'. What it actually means is that they like technical work far more than documentation work. So, technical work will for ever get a higher priority above user documentation work. And there will always be technical work that needs to be done before the nasty task of creating proper documentation is taken up. Concurrently, the technical work itself is indeed in many places unfinished, half, etc., mainly those places that the developers themselves are not interested in as users or where they know about workarounds and hacks. Writing user documentation in fact forces the developers to end that state of affairs and forces them not only to do documentation work (which they do not like) but it also forces them to do technical work in areas they do not like nor find interesting for their own uses. Hence, again, the assessment that ConTeXt is a personal swiss army tool for a few people. I am really wondering these days. Is there a serious stable and usable (and supported) alternative for TeX for large projects, with many cross references, footnotes, endnotes, etc. etc.? G ___ 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] cont-enp.pdf on lulu
On Jul 28, 2008, at 12:46 PM, Taco Hoekwater wrote: Hi, While most of what Gerben states is close enough to the truth to be a matter of opinion, I really object to the tone of 'there is no documentation'. There is, in fact, a whole lot of documentation. It may be incomplete (especially when it comes to recent developments), but that is quite different from not having documentation at all. There are thousands of pages of documentation on pragma-ade.com, and pretending they are totally inadequate by not even asserting their assistance is unfair. OK Taco, that is a fair point concerning my pov. To answer it: I have made my comments knowing quite well what documentation there is and my *personal* (your mileage may vary) experience is that it hardly helps me. My personal experience has been with a result of close to 100% that if I want to do something / find out something I am unable to find it in the docs. Also, depending on what doc you take, I recall getting different solutions (I am reminded of the various incompatible ways to do tables) and if I recall correctly some of it had to be hunted down in MAPS articles and such. Maybe the answers of my questions are there. But in that case the documentation is such that I consider myself in the situation that I am unable to get my help from it. And the documentation is not just incomplete for recent developments. I have an idea. Why not have a live ConTeXt manual.pdf where you add something in the proper location and compile the document every time you answer a question from a user? As you are the person answering anyway, it should be little extra work. For instance: I have put out a question about the (afaik completely undocumented, incomplete and certainly not recent) endnotes feature. Why not take the manual now, add the info in and recompile and do that every time a question arrives that is not in the manual or that is maybe unclear in the manual? I would suggest looking at ways to make it as easy as possible (that is, as little work as possible) for yourself to keep a userreference manual up to date. Something simple and fundamental as endnotes should not be undocumented. And limitations (like what to do if you want images in endnotes) should be available in documentation. In fact, you need only maintain one single integrated document en keep it up to date with the current ConTeXt version. Then, when you make MkIV the current ConTeXt version (and not a beta using a beta of a new compiler) you freeze the old and move to the new. Is it perhaps the case that the source of the manual is so old that it will not compile with a current ConTeXt anymore? If not, why not update it so it is less than 7 or 9 years out of date? If so, what does that possibly tell you about how valid the contents itself still are? Yours, G PS. To my own surprise (as I am a TeX fan) I have recently started to think about researching non-TeX alternatives. PPS. Before pressing send I just had a look at what is there on the pragma-ade site: http://www.pragma-ade.com/document-1.htm. I do not see any documentation other than the 1999 excursion and the 2001 'all of ConTeXt' manual. Maybe I am looking in the wrong place for documentation? ___ 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] cont-enp.pdf on lulu
On Jul 28, 2008, at 4:20 PM, Hans Hagen wrote: there's the matter of what a user expects ... the core of context is rather stable and in that respect the 'old documentation' is still valid i.e. apart from 'new features, which may of interest to only a small group', the date on a manual does not tell much (i run quite some software which rather ancient manuals); for instance ... how many users are really interested in tricky xml support? Only a few. But if I want to use ConTeXt to write a book I am definitely interested in something as mundane as endnotes. And stuff having to do with chapter beginnings, the way paragraphs should look (e.g. indentation, whitespace, line distance) for various types (e.g. a normal text paragraph, a long quote from another book, etc.). And with producing draft products (e.g. a B5 sized book that in draft is printed two-up with the even pages on the right). Or everything that has to do with ConTeXt's power in organizing projects and producing mltiple outputs from single sources. All stuff I have fought with in the past, some I find not intuitive, some of which to date I have not been able to solve in a satisfying way. Oh, and though the documentation may still be valid, I recall that I was trying to do cerrtain table stuff with what was available in the manual or excursion (the two documents that together make up the current ConTeXt documentation) and I was pointed to another way of doing tables in a MAPS article. Those are very, very mundane things you want when writing a book that are underdocumented, documented in locations that are outside the manual or not documented at all. I do not care if the manual is old. But the onging development of ConTeXt has been offered as a reason why the documentation is lacking. If this is nonsense, good. In that case there is no reason to improve the docs so they actualy give a good overview of how to do things in ConTeXt and understandable by non-ConTeXt-developers. G knuth.tex from the ConTeXt distribution says: Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt \TeX\ significantly. If I had not participated fully in all these activities, literally hundreds of improvements would never have been made, because I would never have thought of them or perceived why they were important. But a system cannot be successful if it is too strongly influenced by a single person. Once the initial design is complete and fairly robust, the real test begins as people with many different viewpoints undertake their own experiments. Somehow, this might be applied to ConTeXt I think ;-). Three out of four afaic... ___ 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] cont-enp.pdf on lulu
On Jul 28, 2008, at 10:36 PM, Hans Hagen wrote: Gerben Wierda wrote: Somehow, this might be applied to ConTeXt I think ;-). Three out of four afaic... well, it's one reason why we have multiple smaller manuals (often made in sync with the specific feature) anyhow ... taco and i only have one livetime, 24h/day etc etc As you know, I know what you are talking about. And it is important also to keep your cups from running over if we want ConTeXt to succeed. currently we spend quite some time on luatex/mp/mkiv (if not we could as well stop using tex in the near future) alongside our regular jobs ... I was wondering if you already know what you would have to use if not TeX. Is there an alternative at all? we simply have not much more time available ... on the other hand, we don't intend to stop soon, so eventually ... btw, quite some documentation about latex is *not* written by the author(s) so it's not entirely fair to expect that taco and i write all of it -) But the initial manual (as Knuth said) is different from overview books like Kopka Daly etc. Knuth wrote the TeXbook, the Metafont book. Lamport wrote the initial LaTeX book Packages for LaTeX like memoir come with a manual written by the authors. There are 'combination' manuals (Kopka etc) but they all are based on the availability of full initial manuals. But apart from that, the most imporant thing is that resources are scarce and you guys have limits we need to honour. I think we should find a way for you guys to go on and not get swamped by too much and thus we need to find a way to make your documentation work lighter (as obviously - for me - it does not get the attention it should). So I would propose to set up a way that a group of others can maintain documentation. Your task would then be an editor's task: proofread, suggest changes and agree. Minor changes can be done by the editors. major changes go past you and Taco as editors-in-chief. Your OK promotes it to alpha. And something like a manual (book) needs to be part of it. This should be based on (imo) merging the content of the excursion and the manual. The editors should be able to start a compilation run. The result should be the 'work in progress' pdf that has a fixed location on the pragma site. So, what we initially need is some sort of svn repository with access by a limited group, a mailing list for that group only. An e-mail adress to send documentation suggestions to. I am prepared to do some work on this (e.g. editor work). G ___ 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] cont-enp.pdf on lulu
On Jul 29, 2008, at 8:05 PM, Hans Hagen wrote: I was wondering if you already know what you would have to use if not TeX. Is there an alternative at all? no, i'd probably choose a completely other job then (ok, maybe general programming as part time then) ... i simply can not use a program that i know will be replaced within 5 years Did you look at Lout? Font-wise restricted at first glance, but interesting nonetheless. Anyway, I still feel that something like LuaTeX with a decent ConTeXt is the best option. But the project could do with funding by some rich former dot-com billionaire. Because if it does not get out of the tool shed phase, it will remain problematic for ordinary users like myself. G ___ 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] cont-enp.pdf on lulu
On Jul 29, 2008, at 2:44 PM, Aditya Mahajan wrote: Hi Gerben, On Tue, 29 Jul 2008, Gerben Wierda wrote: This should be based on (imo) merging the content of the excursion and the manual. Here (and sometime earlier in the thread) you have suggested that you find the scattered documentation of ConTeXt confusing and would like to see an exhaustive manual. I agree with that in principle, but still believe that excursion and the manual should be separate. The manual can be a superset of excursion, but there needs to be beginner's manual. If there is a exhaustive manual, it will be *huge*. An exhaustive manual on math will be of the size of a book; so would an exhaustive manual on metapost/mp-lib (think of an updated metafun manual). I can also imagine an exhaustive manual for fonts to be big (how do we handle fonts for lua/xetex/pdftex; how do we handle fonts for different scripts, etc.); and fairly large manuals for floats (three four mechanism for tables, about 20 ways to move around floats, etc.), critical editions (I don't know the status of the proposed module), bib module (the user manual for biblatex, which is similar in spirit to bib module, is huge), etc. So, if we want exhaustive documentation and a beginner's manual, I see that we only have the option of expanding on the excursion to have an upto date beginner's manual, expanding on the manual to have an upto date (but not exhaustive) user manual, and have a series of specialized exhaustive manuals. But that will still mean that the documentation is scattered. The way I see it, we can update the documentation, but not really solve the problem of scattered documentation :-( Before things balloon to a size it is not feasible anymore, I would suggest keeping manualreference apart from introductory documents like excursion or 'beginners manual'. And I would be very happy if there was only one decent manualreference maintained by a group of people, complete and up to date. thers could maintain a beginner's manual on the basis of that, but add the maintenance of a second beginner's manual and suddenly one needs to maintain two things. This cannot completely be avoided (as also in the manual the same thing will be in many places as technique 1 is part of the example for technique 2, etc.). At first, I would suggest that the documentation project would consider itself with one thing: a 'user reference manual' for ConTeXt. If that succeeds and people have energy left they can do a simplified beginner's manual. Note: personally, I think a beginner's manual could be part of the big manual. Say, an 'excursion' chapter or a 'beginner's section' at the start of each chapter.. G ___ 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] Overriding a chapter number
When I compile a chapter of a book separately, I want to override the automatic numbering because otherwise every separate pdf will have chapter 1. So I tried: \doifmode{standalone}{\setuphead[chapter][2]} \chapter[h:foo]{Foo} But the chapter still gets number 1 when I compile with texexec --pdf --mode=standalone c_foo.tex what am I doing wrong here? Thanks, G ___ 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] What happened to \reference
I have started (after a hiatus) to compile my project again using an updated ConTeXt ConTeXt ver: 2008.03.03 00:34 MKII fmt: 2008.3.4 int: english/english and something that used to work has stopped working: \reference[logic:implicationprogram] {\getbuffer[logic:implicationprogram]} gives an empty result. This used to (say a year ago) get me the contents of the buffer I set up earlier. I tried the excursion, manual and wiki but only got very confused. In the past I must have concluded that this should work and apparantly it did. But rereading everything about \reference (wiki gives me many hits and I cannot find the right one) I get completely confused about what \reference exactly does with the second argument. G ___ 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] endnotes and navigation
I am using endnotes and footnotes. Is it possible to add navigation to these, that is, when I am reading the PDF file I can click on a endnote number, go to the endnote and when I click on the endnote number there I get transported back to the location where it was used? G ___ 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] list bug when using margin?
The following list \startitemize[n,packed,joinedup] \item A is larger than B. \item B is larger than C. \item Therefore, A is larger than C. \stopitemize displays fine except it is not indented. So I added: \startitemize[n,packed,joinedup,margin=4em] \item A is larger than B. \item B is larger than C. \item Therefore, A is larger than C. \stopitemize and as a result, the list was not enumerated and it was not packed or joined up. Bug? Or misunderstanding? G ___ 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] endnotes and navigation
On Aug 1, 2008, at 12:57 PM, Taco Hoekwater wrote: Gerben Wierda wrote: I am using endnotes and footnotes. Is it possible to add navigation to these, that is, when I am reading the PDF file I can click on a endnote number, go to the endnote and when I click on the endnote number there I get transported back to the location where it was used? This works out of the box, afaik. Just do \setupinteraction[state=start] Indeed. Why isn't this on by default? G ___ 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] Migrating from old ConTeXt to new
Hello folks, I have been putting this off for years, but I think somewhere the coming months I'll want to migrate from my current ConTeXt setup to the most recent one so that when I encounter typesetting/ConTeXt problems, I will be asking for solutions in the current actively maintained environments. When I compile a book project, it currently looks like this: texexec --pdf --mode=editor ../products/prd_book.tex MTXrun | kpse fallback with progname 'context' initialized in 0.047062 seconds TeXExec | processing document '../products/prd_book.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file prd_book.top TeXExec | using randomseed 1038 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) restricted \write18 enabled. (/usr/local/texlive/2010/texmf/web2c/natural.tcx) entering extended mode (../products/prd_book.tex ConTeXt ver: 2010.05.24 13:05 MKII fmt: 2010.7.21 int: english/english As I understand, I need to setup a different way to run tex. (BTW, I'm going to migrate to MacTeX 2011 first) Important for me is the use of Optima, which is now done in an environment file. Will this still work? % Bypassing type-gtamacfonts.tex \starttypescript [sans,serif] [optima] [texnansi,ec] \definefontsynonym [Optima-Regular] [\typescriptthree-OptimaRegular] [encoding=\typescriptthree] \definefontsynonym [Optima-Italic] [\typescriptthree-OptimaItalic] [encoding=\typescriptthree] \definefontsynonym [Optima-Bold] [\typescriptthree-OptimaBold] [encoding=\typescriptthree] \definefontsynonym [Optima-BoldItalic] [\typescriptthree-OptimaBoldItalic] [encoding=\typescriptthree] \definefontsynonym [Optima-ExtraBlack] [\typescriptthree-OptimaExtraBlack] [encoding=\typescriptthree] \stoptypescript \starttypescript [sans,serif] [optima] [name] \setups[font:fallback:\typescriptone] \definefontsynonym [\typescriptprefix\typescriptone] [Optima-Regular] \definefontsynonym [\typescriptprefix\typescriptone Italic] [Optima-Italic] \definefontsynonym [\typescriptprefix\typescriptone Bold] [Optima-Bold] \definefontsynonym [\typescriptprefix\typescriptone BoldItalic] [Optima-BoldItalic] \definefontsynonym [\typescriptprefix\typescriptone Black] [Optima-ExtraBlack] \stoptypescript \definetypeface[allsans][rm][serif][optima][default][encoding=texnansi] \definetypeface[allsans][ss][sans][optima][default][encoding=texnansi] \loadmapfile [gtamacfonts.map] \setupbodyfont[allsans,12pt] Yours, G ___ 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] Merging PDF document of various page sizes. Can ConTeXt help?
Hello community, I have the following problem. I need to create a single PDF file where each page may have a different size and orientation. Say the first page is A4 portrait, the second is A3 landscape and so on. Can ConTeXr help? Each page contains a PDF image of some random size that is inserted. I have been looking around for a solution but haven't found one. I also tried Create.app, the drawing program. And I tried a program call PDF Merge and some others. Neither of these work, and most of the merge programs out there maybe merged, but changed the nice vector images into pixel images, completely destroying print quality. So, I am back where I started. Is there some fancy ConTeXt trickery I could use to do this? Summary: - One PDF as result - Each page has a different size and orientation - Each page contains a PDF vector image that is not to be converted to pixels Yours, G ___ 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] Merging PDF document of various page sizes. Can ConTeXt help?
Answering my own question, quite simple with ConTeXt: \definepapersize[a3landscape][A3,landscape] \definepapersize[a4portrait][A4,portrait] \setuppapersize[a4portrait] \starttext \externalfigure[foo.pdf] \page\setuppapersize[a3landscape] \externalfigure[bar.pdf] \stoptext G PS. The solution below does not work because it keeps the sizes of the images and does not set page sizes for the pages where the images are embedded. On 13 Jan 2012, at 16:33, Victor Ivrii wrote: NO, AR cannot do this. gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf source1.pdf source2.pdf source3.pdf works with TeX one can use attachfile2 package (may be attachfile also works) to create pdf bundle (aka portfolio). == However this is a question of combining. I remember that there is a LaTeX package - cannot recall its name - which changes the size on the fly (inside of document) Victor --- Please Consult the Following Before Posting --- TeX FAQ: http://www.tex.ac.uk/faq List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/ List Archive: http://tug.org/pipermail/macostex-archives/ TeX on Mac OS X Website: http://mactex-wiki.tug.org/ List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex On 13 Jan 2012, at 16:27, Mojca Miklavec wrote: On Fri, Jan 13, 2012 at 16:20, Gerben Wierda gerben.wie...@rna.nl wrote: Hello community, I have the following problem. I need to create a single PDF file where each page may have a different size and orientation. Say the first page is A4 portrait, the second is A3 landscape and so on. Can ConTeXr help? Each page contains a PDF image of some random size that is inserted. I have been looking around for a solution but haven't found one. I also tried Create.app, the drawing program. And I tried a program call PDF Merge and some others. Neither of these work, and most of the merge programs out there maybe merged, but changed the nice vector images into pixel images, completely destroying print quality. So, I am back where I started. Is there some fancy ConTeXt trickery I could use to do this? Summary: - One PDF as result - Each page has a different size and orientation - Each page contains a PDF vector image that is not to be converted to pixels Yes, this is easy. There are three options: 1.) \startTEXpage\externalfigure[...]\stopTEXpage 2.) same, but with TEXstream 3.) a shortcut for the above, \startpagefigure. See http://wiki.contextgarden.net/Including_pages_from_PDF_document 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 ___ ___ 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] Merging PDF document of various page sizes. Can ConTeXt help?
It still is weird. It sometimes work (but not completely) and sometimes not. For instance \definepapersize[a3landscape][A3,landscape] \definepapersize[a4portrait][A4,portrait] \setuppapersize[a3landscape] \starttext \externalfigure[foo.pdf] \stoptext foo.pdf is a 18.43x13.88 inch PDF image The end result is a 16.54x16.54 inch PDF image with the embedded image cropped. ?? G On 13 Jan 2012, at 16:47, luigi scarso wrote: On Fri, Jan 13, 2012 at 4:44 PM, Gerben Wierda gerben.wie...@rna.nl wrote: Answering my own question, quite simple with ConTeXt: \definepapersize[a3landscape][A3,landscape] \definepapersize[a4portrait][A4,portrait] \setuppapersize[a4portrait] \starttext \externalfigure[foo.pdf] \page\setuppapersize[a3landscape] \externalfigure[bar.pdf] \stoptext G PS. The solution below does not work because it keeps the sizes of the images and does not set page sizes for the pages where the images are embedded. Ah ok, you don't want to inherit the pagesize from the external pdf. -- 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 ___ ___ 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] Merging PDF document of various page sizes. Can ConTeXt help?
Weirder still. \definepapersize[large][a3,landscape] \definepapersize[small][a4,portrait] \setuppapersize[large] \starttext \externalfigure[foo.pdf] \page\setuppapersize[small] \externalfigure[bar.pdf] \stoptext The first page is now 11.69x11.69 inch and the second page is a4, but landscape So, let's make sure I use both layout size and print size in my definitions \definepapersize[large][a3,landscape][a3,landscape] \definepapersize[small][a4,portrait][a4,portrait] \setuppapersize[large] \starttext \externalfigure[foo.pdf][factor=fit] \page\setuppapersize[small] \externalfigure[bar.pdf][factor=fit] \stoptext Now both pages are a4 landscape. Another go: \setuppapersize[a3,landscape][a3,landscape] \starttext \externalfigure[BoudewijndeHaasOpgave2Totaalview.pdf][factor=fit] \page\setuppapersize[a4,portrait][a4,portrait] \externalfigure[FredRademakerOpgave2Totaalview.pdf][factor=fit] \stoptext Both a4 landscape again. Does this stuff work at all? Another go \setuppapersize[A3,landscape][A3,landscape] \starttext \externalfigure[foo.pdf][factor=fit] \page\setuppapersize[A4,portrait][A4,portrait] \externalfigure[bar.pdf][factor=fit] \stoptext Hmm, this works. I originally used lower case a4 and a3, as I saw that in an example somewhere. But somewhere else I saw A3, A4 etc. G On 13 Jan 2012, at 18:15, Gerben Wierda wrote: It still is weird. It sometimes work (but not completely) and sometimes not. For instance \definepapersize[a3landscape][A3,landscape] \definepapersize[a4portrait][A4,portrait] \setuppapersize[a3landscape] \starttext \externalfigure[foo.pdf] \stoptext foo.pdf is a 18.43x13.88 inch PDF image The end result is a 16.54x16.54 inch PDF image with the embedded image cropped. ?? G On 13 Jan 2012, at 16:47, luigi scarso wrote: On Fri, Jan 13, 2012 at 4:44 PM, Gerben Wierda gerben.wie...@rna.nl wrote: Answering my own question, quite simple with ConTeXt: \definepapersize[a3landscape][A3,landscape] \definepapersize[a4portrait][A4,portrait] \setuppapersize[a4portrait] \starttext \externalfigure[foo.pdf] \page\setuppapersize[a3landscape] \externalfigure[bar.pdf] \stoptext G PS. The solution below does not work because it keeps the sizes of the images and does not set page sizes for the pages where the images are embedded. Ah ok, you don't want to inherit the pagesize from the external pdf. -- 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 ___ ___ 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] \setuppapersize \externalfigure
\externalfigure[foo.pdf][factor=fit] nicely fits the mage on the page. The following snippet: \page\setuppapersize[A4,portrait][A4,portrait] \externalfigure[foo.pdf][factor=fit,orientation=90] behaves like this: the size is set to what fits *before* rotation. The order of orientation and factor does not matter. Is there anything I can do about that? Thanks, G ___ 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] Merging PDF document of various page sizes. Can ConTeXt help?
I did not see the possibility to influence page sizes of the PDF's you merge in the man page. G On 13 Jan 2012, at 23:43, Aditya Mahajan wrote: On Fri, 13 Jan 2012, Gerben Wierda wrote: Hello community, I have the following problem. I need to create a single PDF file where each page may have a different size and orientation. Say the first page is A4 portrait, the second is A3 landscape and so on. Can ConTeXr help? Each page contains a PDF image of some random size that is inserted. I have been looking around for a solution but haven't found one. I also tried Create.app, the drawing program. And I tried a program call PDF Merge and some others. Neither of these work, and most of the merge programs out there maybe merged, but changed the nice vector images into pixel images, completely destroying print quality. So, I am back where I started. Is there some fancy ConTeXt trickery I could use to do this? Summary: - One PDF as result - Each page has a different size and orientation - Each page contains a PDF vector image that is not to be converted to pixels In the past I have used pdftk to merge pdfs and found it to be pretty reliable. 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 ___ ___ 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] Page with minimum margins, maximum text width/textheight
How do I create a page with maximum text width, text height? I tried using \setuplayout with stuff like [textwidth=\pagewidth-1cm], but nothing happens. I need empty pages with minimum margins, just to be able to put other PDF's in that space. G ___ 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] Merging PDF document of various page sizes. Can ConTeXt help?
I wrote: - One PDF as result - Each page has a different size and orientation - Each page contains a PDF vector image that is not to be converted to pixels I have looked at many tools: All so far do not leave vector images vector images, they convert to pixels and at a pretty low resolution at that. All so far looked at do not ignore page sizes, they set a page size for the entire document. Anyway, ConTeXt is capable, though it is difficult to get it working properly because its arguments cannot stand combinations of fit-to-size and rotation in combination. But with a lot of specific hand work and nudging, I can get there eventually. G On 14 Jan 2012, at 00:03, Aditya Mahajan wrote: On Fri, 13 Jan 2012, Gerben Wierda wrote: I did not see the possibility to influence page sizes of the PDF's you merge in the man page. I thought that you did not want to influence the page size. From what I remember, pdftk does not change page sizes, it simply merges the pdfs. 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 ___ ___ 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] Page with minimum margins, maximum text width/textheight
I was already trying a lot of stuff with \setuplayout. I've found mentioning somewhere that you can adapt the backspace, topspace, height and width.So it must be something like \setuplayout[backspace=1cm,topspace=1cm,height=\paperheight,width=\paperwidth] but I forgot how to do something like width=\paperwidth-2cm (not like that obviously, but I have forgotten how to do simple addition and subtraction with dimensions in TeX) So, how do I set a margin of 1cm all around the makeup area? G On 14 Jan 2012, at 00:06, Aditya Mahajan wrote: On Fri, 13 Jan 2012, Gerben Wierda wrote: How do I create a page with maximum text width, text height? I tried using \setuplayout with stuff like [textwidth=\pagewidth-1cm], but nothing happens. I need empty pages with minimum margins, just to be able to put other PDF's in that space. \setuplayout[page], or if you want to do this for only one page, \adaptlayout[page] 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 ___ ___ 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] Page with minimum margins, maximum text width/textheight
Thanks. My external figures are PDFs with all weird sizes, the smaller ones, I want to print on portrait A4 (if they are more landscape than portrait, they will be rotated) and the larger ones on landscape A3 (again, rotated when they are more portrait than landscape). Distorting is not allowed. So far I am doing stuff like \externalfigure[foo.pdf][factor=max] \page\setuppapersize[A4,portrait][A4,portrait] \setuplayout[backspace=10mm,topspace=10mm,width=277mm,height=190mm,header=5mm,footer=1mm] \externalfigure[bar.pdf][orientation=90] \page\setuppapersize[A3,landscape][A3,landscape] \setuplayout[backspace=10mm,topspace=10mm,width=400mm,height=277mm,header=5mm,footer=1mm] \externalfigure[foobar.pdf][factor=max] \externalfigure[foo2.pdf][orientation=90] \externalfigure[foo3.pdf][orientation=90] But thanks to your suggestion, I am now doing \rotate[rotation=90]{\externalfigure[foo.pdf][width=\vsize]} The 'orientation' stuff of external figure doesn't work at all. It messes up size to fit and it rotates around points such that images are rotated partly out of the page. Your method works. G On 14 Jan 2012, at 01:20, Philipp Gesang wrote: Hi Gerben! On 2012-01-14 00:43, Gerben Wierda wrote: but I forgot how to do something like width=\paperwidth-2cm (not like that obviously, but I have forgotten how to do simple addition and subtraction with dimensions in TeX) See TeXbook p. 118f. So, how do I set a margin of 1cm all around the makeup area? Does the following fit your needs? · \newdimen\myborderoffset \myborderoffset=1cm \definelayout[mypage][page] \setuplayout [mypage][ backspace=\myborderoffset, topspace=\myborderoffset, ] \setuplayout[mypage] \showframe \def\docowpage{% \rotate[rotation=90]{\externalfigure[cow][width=\vsize,height=\hsize]}\page% } \starttext \dorecurse{5}{\docowpage} \stoptext · Regards, Philipp G On 14 Jan 2012, at 00:06, Aditya Mahajan wrote: On Fri, 13 Jan 2012, Gerben Wierda wrote: How do I create a page with maximum text width, text height? I tried using \setuplayout with stuff like [textwidth=\pagewidth-1cm], but nothing happens. I need empty pages with minimum margins, just to be able to put other PDF's in that space. \setuplayout[page], or if you want to do this for only one page, \adaptlayout[page] 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 ___ ___ 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ___ 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] Why doesn't his URL work?
This code below gets me a working URL, but instead of the word kudos in blue I get the entire URL in my text. Why is that? \setupcolors [state=start] \setupurl [color=blue] \setupinteraction [state=start,color=blue] \useURL[kudos][http://nl.wikipedia.org/wiki/Kudos_(computerterm)][][kudos] \setuppapersize[A4,portrait][A4,portrait] \starttext \url[kudos] \stoptext G ___ 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] Newbie questions
On Jun 24, 2006, at 16:56, Thomas Moore wrote: 2. I would like the math environment to be as close to the LaTeX AMS environment as possible. I have figured out how to download the t- amsl module and can successfully invoke it as long as the t-amsl.tex file is in the same folder as my document files. But how do I install it permanently so that I can invoke it in all my documents? I was unable to find instructions in the ConTexT garden for this, and what I could find on the archives was not helpful (something about running mktexlsr and/or texhash that I have don't know how to do in OS X, and would be afraid to do without instructions anyway for fear of screwing up my TeX distribution). Thanks for any help, and sorry if the questions are stupid. Tom Moore Depending on how you installed TeX, t-amsl.tex is there. If you installed with the TeX i-Package: $ kpsewhich t-amsl.tex /usr/local/teTeX/share/texmf.tetex/tex/context/maths/t-amsl.tex But it is the one from 1.5 years ago in the old ConTeXt that comes with the (discontinued) teTeX texmf tree. If you also installed the ConTeXt updater (which is pretty up-to-date), the math stuff is not in there (Hans, why not?) so you get a newer ConTeXt with an older t-amsl.tex and I have no idea if that works. If you have a (more recent) t-amsl.tex file and you are using the TeX i-Package, you can install th efile as ~/Library/texmf/tex/context/t-amsl.tex and it will be found. No mktexlsr or texhash is needed for that particular tree. If someone tells me what to include in the ConTeXt updater for this math stuff and where to get it, I can make life easy for you. If you installed with fink or in some other way, I have no idea how to help you. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] i-Installer and ConTeXt updater
On Jun 23, 2006, at 18:04, Otared Kavian wrote: Hi Gerben, Sorry, I did not see this until now. When trying to update ConTeXt with i-Installer, I see this: Remote Package: Remote is being updated since 2006/06/23 04:02:30 Is it a normal situation? If Hans or Taco changes something, the i-Package is rebuilt and seeded automatically every night (CET). Given that it is 8GB (with beta) and it is uploaded to at least 4 repositories that takes some time (I have a 1Mbps upload). But not hours. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
On Jun 27, 2006, at 21:59, David Arnold wrote: I updated to Gerben's latest context and now files that formally compiled will not. Let's shoot him! G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
On Jun 28, 2006, at 20:24, Mojca Miklavec wrote: 1. either alias texexec='/usr/local/teTeX/share/texmf.local/scripts/ context/stubs/unix/texexec or copy the content of that folder somewhere to PATH. Just make sure that texexec resolves to texmfstart texexec unless you really like writing it the long way. 2. write a page on the wiki about how you did it (or at least one of the mac users should do that) I will fix (but I have no idea if I can do it before my vacation) the ConTeXt updater such that texmfstart is supported out of the box. If you write instructions, make sure you remove them after I have fixed this. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] many unknown reference with the beta
On Jun 28, 2006, at 11:42, Hans Hagen wrote: Gerben Wierda wrote: With ConTeXt beta I get a lot of messages like references : unknown reference [][fnt:f:1] references : unknown reference [][fnt:t:2] references : unknown reference [][fnt:f:2] and sometimes referring to a reallabel references : unknown reference [][discrete:wave] What do these imply? I do not get them when using ConTeXt stable. they are auto-footnote cross refs; do you have two or more runs? I checked wit two times texexec --pdf --once. But it seems they go away after *three* runs. Figures. False alarm. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Still font issues with I-Installer Mac OSX
On Jun 28, 2006, at 18:34, Taco Hoekwater wrote: [1.1{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ original-empty. map}{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ original-base.m ap}{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ec- public-lm.map }{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ec- base.map}{/usr/ local/teTeX/share/texmf.tetex/fonts/map/dvips/context/8r-base.map}{/ usr/local/t eTeX/share/texmf.tetex/fonts/map/dvips/context/qx-base.map}{/usr/ local/teTeX/sh are/texmf.tetex/fonts/map/dvips/context/t5-base.map}{/usr/local/teTeX/ share/tex mf.tetex/fonts/map/dvips/context/texnansi-base.map}{/usr/local/teTeX/ share/texm f.tetex/fonts/map/dvips/context/original-ams-cmr.map}{/usr/local/ teTeX/share/te xmf.tetex/fonts/map/dvips/context/original-ams-euler.map}{/usr/local/ teTeX/shar e/texmf.tetex/fonts/map/dvips/context/original-public-lm.map}{/usr/ local/teTeX/ share/texmf.tetex/fonts/map/dvips/context/original-public-plr.map}{/ usr/local/t eTeX/share/texmf.tetex/fonts/map/dvips/context/original-public- csr.map}{/usr/lo cal/teTeX/share/texmf.tetex/fonts/map/dvips/context/original-public- vnr.map}{/u sr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/texnansi- public-lm.map You are using pdftex, so I assume it should load the font map files in map/pdftex, not in map/dvips. But I do not know what package supplied those map/dvips font files in the first place, so I cannot help you any further. (that whole folder does not exist on my system) The ConTeXt updater writes to texmf.local which takes precedence over texmf.tetex which contains a very old ConTeXt. It seems you installed the TeX i-Package but you did not install the ConTeXt updater. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] PSNFSS in new ConTeXt?
I don't know but it looks like a lot of palatino stuff is in teTeX and thus in gwTeX. Maybe it is just a matter of a map that has to be enabled? G On Jun 2, 2005, at 23:01, Matthias Weber wrote: After doing some gardening at the really useful ConTeXtGarden, I found that \starttext \usetypescript [adobekb][\defaultencoding] \setupbodyfont[pos] \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,12pt] Hello world! \stoptext which used to work before doesn't work neither on my Mac nor at live @ contextgarden.net. How does one access these fonts? (And sorry for blaming gwTeX for this!) Matthias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fwd: [OS X TeX] Re: a problem after reinstall TeX
On Jun 13, 2005, at 04:07, wrote: Dear Hans, I reinstalled TeX, ConTeXt updates, and XeTeX, and add two map file using updmap. Instead of uninstalling ConTeXt updates, I removed pdftex.map in /fonts/map/pdftex/context/ folder. After running texhash, pdflatex worked fine. It located font files and no more mktexpk things. I'll do the same thing in the another mac in school to double checking. Thank you so much. Regards, Dalyoung ther reason may be that there is a pdftex.map file in the context path and the tds is not that robust for multiple instances of the same file; make sure that there is no pdftex.map under fonts/map/*/context/* Is this something I should take care of upon install? Wht is this pdftex.map shipping with ConTeXt? Can I just remove it before repackaging? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Vacation
From July 7 until August 1 and from August 6 until August 15 I'll be unavailable to answer support requests for my TeX on Mac OS X redistribution or any other communication. I will unsubscribe from the mailing lists for that period. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] interline space in setupparagraphs
I have: \setupinterlinespace[medium] \defineparagraphs [mypar][n=2,before={\blank[small]},after={\blank[small]}] \setupparagraphs [mypar][1][width=.15\textwidth,style=bold] \setupparagraphs [mypar][2][width=.85\textwidth] But the lines in mypar are closely packed while others have medium inteline spacing. What should I do? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How can I minimize the vertical space taken by a \textrule
I have a after={\textrule} in my \setupparagraphs but it takes too much space for my purpose. What can I do about that? Thanks, G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How can I minimize the vertical space taken by a \textrule
On 27 Oct 2005, at 16:02, Peter Rolf wrote: Gerben Wierda wrote: I have a after={\textrule} in my \setupparagraphs but it takes too much space for my purpose. What can I do about that? \setuptextrules[ before=, after=, % {\blank[small]} ] I already had \setuptextrules [before=,after=,inbetween=] but that does not work. It seems that inside my paragraph environment, the settings made outside it are ignored. I also do not have my \setupinterlinespace[medium] there (see other thread). Looks like a startstopparagraph problem to me. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] interline space in setupparagraphs
On 27 Oct 2005, at 18:59, Peter Rolf wrote: Hi Gerben, Gerben Wierda wrote: I have: \setupinterlinespace[medium] \setupinterlinespace[line=\dimexpr1.25\bodyfontsize\relax] That works. But why? And does this relate to the fact that textrule spacing as done normally is not used inside the paragraph (see other thread)? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problem with special first page of chapter setup
I have this setup in my environment file: = \setuphead [chapter] [page=, before=\setups{chapter:before}, after=\setups{chapter:after}] \startsetups chapter:before \page[left] \noheaderandfooterlines \startalignment[left,nothyphenated] \startnarrower[4*left] \noindent \em \setups[chapter:quote] \stopnarrower \stopalignment \resetsetups[quote:text] \page[right] \noheaderandfooterlines \blank[force,2*big] \stopsetups \startsetups [chapter:after] \blank[3*big] \stopsetups === But when I call it === \starttext \startsetups [chapter:quote] Lee Chong's is to the right of the vacant lot (although why it is called vacant when it is piled high with old boilers, with rusting pipes, with great square timbers, and stacks of five-gallon cans, no one can say).\crlf {\tf John Steinbeck} --- Cannery Row\crlf \crlf Doc explained patiently, ``Both players know exactly the same things. The game is played in the mind.''\crlf ``I don't get it.''\crlf ``Well, look! You can't cheat in mathematics or poetry or music because they're based on truth. Untruth or cheating is just foreign, it has no place. You can't cheat in arithmetic.\crlf {\tf John Steinbeck} --- Sweet Thursday \stopsetups \chapter[h:foo]{Foo} === I get that every word that is in the input file at th eend of a line is glued (no whitespace) to the word that is on the next line of the input line. How can I solve this? Thanks G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How can I minimize the vertical space taken by a \textrule
On Oct 27, 2005, at 21:00, Peter Rolf wrote: I already had \setuptextrules [before=,after=,inbetween=] but that does not work. It seems that inside my paragraph environment, the settings made outside it are ignored. I also do not have my \setupinterlinespace[medium] there (see other thread). Looks like a startstopparagraph problem to me. I've tested it without an environment, so maybe you are right. Have you tried to add some setups (\setuptexrules,..) to \setupparagraphs[...][...][before=??? or command=???] I had tried about everything I could think of. That's the one big problem with ConTeXt, it's most of the tim ea matter of trial and error and a difficult process of trial and error even. Documentation often does only mentions the existence of something without an explanation (arguments to commands are seldomly adequately explained). I have been fighting with layout parameters yesterday for a document I needed to keep within one page. I'm sure there is a (context-)way (but I have not used this command 'til today). Someone should fund Hans for writing true documentation. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with special first page of chapter setup
On Oct 27, 2005, at 21:48, Peter Rolf wrote: Gerben Wierda wrote: I have this setup in my environment file: = \setuphead [chapter] [page=, before=\setups{chapter:before}, after=\setups{chapter:after}] ^^^ \setups[...] I changed it into \setuphead [chapter] [page=, before={\setups[chapter:before]}, after={\setups[chapter:after]}] That did not help. Then I changed \startsetups [chapter:quote] ^^^ maybe this is ok, but I don't use any brackets here to something without [] but that did not help either, G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with special first page of chapter setup
Thanks for the tip but I am having trouble getting this to work. I now have in my main text: === \startbuffer [chapter:quote] Lee Chong's is to the right of the vacant lot (although why it is called vacant when it is piled high with old boilers, with rusting pipes, with great square timbers, and stacks of five-gallon cans, no one can say).\crlf {\tf John Steinbeck} --- Cannery Row\crlf \crlf Doc explained patiently, ``Both players know exactly the same things. The game is played in the mind.''\crlf ``I don't get it.''\crlf ``Well, look! You can't cheat in mathematics or poetry or music because they're based on truth. Untruth or cheating is just foreign, it has no place. You can't cheat in arithmetic.\crlf {\tf John Steinbeck} --- Sweet Thursday \stopbuffer \chapter[h:foo]{Foo} === and in my environment file: === \definebuffer[chapter:quote] \setuphead [chapter] [page=, before={\setups[chapter:before]}, after={\setups[chapter:after]}] \startsetups chapter:before \page[left] \noheaderandfooterlines \startalignment[left,nothyphenated] \startnarrower[4*left] \noindent \em \getbuffer [chapter:quote] \stopnarrower \stopalignment \resetsetups[quote:text] \page[right] \noheaderandfooterlines \blank[force,2*big] \stopsetups \startsetups chapter:after \blank[3*big] \stopsetups === But now I get *nothing* on the page facing the chapter start. I changed it to === \startbuffer [chapter:quote] Lee Chong's is to the right of the vacant lot (although why it is called vacant when it is piled high with old boilers, with rusting pipes, with great square timbers, and stacks of five-gallon cans, no one can say).\crlf {\tf John Steinbeck} --- Cannery Row\crlf \crlf Doc explained patiently, ``Both players know exactly the same things. The game is played in the mind.''\crlf ``I don't get it.''\crlf ``Well, look! You can't cheat in mathematics or poetry or music because they're based on truth. Untruth or cheating is just foreign, it has no place. You can't cheat in arithmetic.\crlf {\tf John Steinbeck} --- Sweet Thursday \stopbuffer \startsetups [chapter:quote] \getbuffer [chapter:quote] \stopsetups \chapter[h:foo]{Foo} === and in my environment file: === \definebuffer[chapter:quote] \setuphead [chapter] [page=, before={\setups[chapter:before]}, after={\setups[chapter:after]}] \startsetups chapter:before \page[left] \noheaderandfooterlines \startalignment[left,nothyphenated] \startnarrower[4*left] \noindent \em \setups [chapter:quote] \stopnarrower \stopalignment \resetsetups[quote:text] \page[right] \noheaderandfooterlines \blank[force,2*big] \stopsetups \startsetups chapter:after \blank[3*big] \stopsetups === But that doesn't help either. Still nothing. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Bug in footnote mechanism when compiling per chapter?
I had in my project file \definenote[endnote][location=none] \setupfootnotes[conversion=set 2,way=bypage] which I moved to my environment file. But wherever I have it, when I compile per chapter, the footnote mechanism fails because it runs out of symbols to use. When I compile the entire book. no such problem occurs. Is this a ConTeXt bug? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with special first page of chapter setup
Hello Gerben, use your second try and *remove* \definebuffer[chapter:quote] from your environment. That's was all :) Indeed! I have no idea why this worked, but it did. Thank you very much. G PS. Now I only need to know how I can use \placefigure in an endnote (and not get the figure in the main text but in the end notes chapter) and how to get rid of the extra whitespace around a \textline ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mini-survey: What do you do with ConTeXt?
On Nov 4, 2005, at 15:49, Taco Hoekwater wrote: Hi all, For the next issue of the ntg's Maps journal, Hans and I believe it would be nice to publish the collected responses to this simple question: What do you do with ConTeXT? I have decided not too long ago to move my book-project form LaTeX to ConTeXt (it was my second try, the first one I stopped because there were too many problems). Reason: I dislike how LaTeX output generally looks (though I found memoir to be pretty good) and after reading the documentation I liked how ConTeXt looked as an interface. I think those ideas are generally still correct, but using ConTeXt is often a wrestling match for me. The documentation is a disaster if you want to find out how things work other than the few actual examples given. Going to the source to find out what options there are is not optimal. E.g. can somebody tell mem how to prevent \textline to take up so much vertical space (and yes, I tried all the settings)? Secondly, writing is less conceptual than LaTeX and more visually oriented. That is a logical consequence of its philosophy and its layout power, but I really miss a more conceptual approach (as in a LaTeX letter class or book class) on top of ConTeXt. Lately, I have also become disappointed by the non-local nature of things I ran into (e.g. having a float in an endnote and having the float end up in the vincinity of the endnote marker in the main text, not in the endnote chapter), which are things I completely did not expect to happen. I get the feeling that ConTeXt is running into TeX-as-a-programming-environment limitations. I stick to ConTeXt for my book project, but I keep everything else still in LaTeX (e.g. letters). I still think ConTeXt has the potential to outclass LaTeX completely, but it is not there yet. For ordinary non-TeXhackers like me, it is not a smooth ride. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Creatin metafun.mem on OSX
Andrea, what kind of installation are you using? Gerben's i-installer or fink or have you installed tetex on your own? If you want to find out where different files reside, run this command: kpsewhere mp-spec.mp on my system (Gerben's architecture), I get: /usr/local/teTeX/share/texmf.local/metapost/context/base/mp-spec.mp /usr/local/teTeX/share/texmf.tetex/metapost/context/base/mp-spec.mp The following comment is only valid for my redistribution: Normally, you would only have the second line (ConTeXt that is part of teTeX 3.0, which is roughly a year out of date). You only get the first line if you have installed my ConTeXt updater package. The texmf.local location is found before the texmf.tetex location, hence, installing the updater overrules what is in teTeX. Uninstalling the ConTeXt updater gets you back to the version in teTeX 3.0. You can set an automatic check for update for i-Packages in i-Installer after which you get a mail message telling you which packages have updated. The ConTeXt i-Package itself is updated automatically on the repositories if Hans releases a new version or a new beta. Which means that you'll hear about any ConTeXt update within 24 hours automatically. The ConTeXt updater is the only i-Package which is updated automatically on the repositories. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Creatin metafun.mem on OSX
On Nov 9, 2005, at 11:37, Hans Hagen wrote: andrea valle wrote: Gerben, Thomas, I'm cleaning my hard disk (and my mind) and reinstalling. I changed the PATH (via bash tutorial...) and removed the sw tree. I installed thru i-installer, including the context updater. Now I have the two files mentioned by Thomas in their right place. Updating ConTeXt I have obtained: You have just installed a ConTeXt installation 2005.10.27 So, I'm supposing that, as Hans has patched the bug-free version, I simply have to wait that automatically the new version is installable. Am I right? if you use gwtex, it will happen automatically since gerben keeps things pretty up to date *Almost* automatic. As soon as Hans updates either the beta or stable version of the ConTeXt zip files, the next night (CET) the ConTeXt Updtare i-Package is rebuilt and distributed to the repositories automatically. You still need to install it yourself (it is i-Installer's philosophy that no action will be performed unless a human accepts it, complete automation without user intervention is a big potential security risk) If you start i-Installer and go to the Preferences and you go to the Other tab you can set an automatic check for updates on i-Packages you have (Check packages for updates...). This creates a unix 'crontab' entry which is run at the time you have selected (e.g. every day a 07:00). This entry runs a helper program that checks the remote version of all your i-Packages and will report updated i-Packages via Mail. It won't automatically update install (as per the philosophy). G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Index
Correction: I goofed up; after correcting the file, I get exactly what I expected. AFAICS, index generation now works flawlessly with newtexexec! Great, wonderful, kudos to you! Um, I just noticed. newtexexec? Has the command name changed? Please say no. Because a command name change would mean that I have to redistribute the binaries (where the command lives) and not just the context trees in texmf. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Creatin metafun.mem on OSX
If you start i-Installer and go to the Preferences and you go to the Other tab you can set an automatic check for updates on i-Packages you have (Check packages for updates...). Already done. This creates a unix 'crontab' entry which is run at the time you have selected (e.g. every day a 07:00). This entry runs a helper program that checks the remote version of all your i-Packages and will report updated i-Packages via Mail. (Fine. How does this notification happen? Does he knows my email? Or am I asking something stupid?) The crontab tool takes care of this. You get mail as yourself on your system. Another obvious thing, but just to be sure. Using gwtex means for me typesetting from inside TeXShop with standard engine default. Right? Right (in 99.99% of the cases). Thanks a lot to all for the support So, know I'm waiting for updates They are already there. Hoever, I just noticed that people talk about newtexexec and that is a command and if that is indeed a new command it will not be available after the updated ConTeXt updater install. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bug in footnote mechanism when compiling per chapter
This one has not been fixed by the new release. ! Undefined control sequence. \lastnotenumber -\@@cvset 213 argument \lastnotenumber \domovednote \v!previouspage \v!nextpage \doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4 }\dostopattributes \dohighlow ...\scratchdimen \hbox {\dodohighlow #5 }}\ht \scratchbox \struthe... argument ...ednote \v!previouspage \v!nextpage } } \doifreferencefoundelse ...ferencefound #2\else #3 \fi \egroup \doresetgotowh... ... l.919 ...plication is a valid one (true)\footnote{ G On Oct 31, 2005, at 21:49, Gerben Wierda wrote: I had in my project file \definenote[endnote][location=none] \setupfootnotes[conversion=set 2,way=bypage] which I moved to my environment file. But wherever I have it, when I compile per chapter, the footnote mechanism fails because it runs out of symbols to use. When I compile the entire book. no such problem occurs. Is this a ConTeXt bug? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Compiling stops with ...
On 20 Nov 2005, at 19:45, David Arnold wrote: Gerben, Taco, OK, I am using Gerben's Context Updated with a beta, so I think what's running is the context in texmf.local. The current ConTeXt updater package does not contain a beta as there currently is no beta. I have two type-tmf.dat. lm $ locate type-tmf.dat /usr/local/teTeX/share/texmf.local/context/data/type-tmf.dat This is the one installedby the ConTeXt updater /usr/local/teTeX/share/texmf.tetex/context/data/type-tmf.dat This is the one that is part of teTeX's texmf tree lm $ Does it matter which of these I use? If you uninstall the ConTeXt updater, the one in texmf.local is uninstalled and you get the one in texmf.tetex. Note that that one is almost a year old. Before I run texfont --encoding=texnansi --batch type-tmf.dat, two things: 1. How do I figure out whether to set TEXMFMAIN or TEXMFDIST? That is, how can I tell where these environment variables point? Please do not go this route. If you really want to, read /usr/local/ teTeX/texmf.cnf and find out that TEXMFDIST does not exist in my setup. My setup does not mimick TeX Live here and the ConTeXt tools seem to be expecting TeX Live. 2. I could cut and paste in type-tmf.dat, but can I do it with one line in the file type-tmf.dat somehow? What would be the line I would add near the top of the file? I would advise against doing this just to compile the manuals. Wait until ConTeXt is fixed. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Compiling stops with ...
On 20 Nov 2005, at 20:39, Taco Hoekwater wrote: David Arnold wrote: Gerben, Taco, OK, I am using Gerben's Context Updated with a beta, so I think what's running is the context in texmf.local. I have two type- tmf.dat. lm $ locate type-tmf.dat /usr/local/teTeX/share/texmf.local/context/data/type-tmf.dat /usr/local/teTeX/share/texmf.tetex/context/data/type-tmf.dat lm $ Does it matter which of these I use? Take the one in texmf.local. It should not make a lot of difference, but that one is the latest, and also it belongs to the ConTeXt you are running. Before I run texfont --encoding=texnansi --batch type-tmf.dat, two things: 1. How do I figure out whether to set TEXMFMAIN or TEXMFDIST? That is, how can I tell where these environment variables point? kpsewhich --expand-var \$TEXMFMAIN expands the variable TEXMFMAIN (on the terminal). I'm not sure which one you need, because I am not familiar with gwTeX. You need the one that contains the afm files, like uhvr8a.afm. For me that file is in: /usr/local/teTeX/share/texmf-dist/fonts/afm/urw/helvetic/uhvr8a.afm $ locate uhvr8a.afm /usr/local/teTeX/share/texmf.tetex/fonts/afm/urw/helvetic/uhvr8a.afm so I needed the tree that starts with /usr/local/teTeX/share/texmf-dist Assuming a (ba)sh command line shell, this should do it (three lines): lm $ TEXMFMAIN=/usr/local/teTeX/share/texmf-dist lm $ export TEXMFMAIN lm $ texfont 2. I could cut and paste in type-tmf.dat, but can I do it with one line in the file type-tmf.dat somehow? What would be the line I would add near the top of the file? To answer the question anyway: I do not believe that is possible. But with the solution above, there is no need to edit type-tmf.dat. (I hope I'm not confusing you, but I am on Linux and teTeX so being precise is hard) Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Getting texfont to do batch installs on gwTeX (was Re: [NTG-context] Palatino)
David, Sorry I've been quiet on this front. I've been busy with other, non- ConTeXt things for a while, and am in the process of re-engaging with it. In order to run type-tmf.dat, you need a way around the hard-coded -- rootlist=TEXMFMAIN that's in the .dat file. gwTeX keeps the fonts we need in what it calls the TEXMFTE directory. My brutish workaround is as follows: 1) Go to some temp directory. 2) copy type-tmf into that directory: cp /usr/local/teTeX/share/texmf.local/context/data/type-tmf.dat . 3) munge type-tmf to something more gwTeX friendly: sed s/TEXMFMAIN/TEXMFTE/ type-tmf.dat type-tmf-gw.dat (literally: replace every occurrence of TEXMFMAIN with TEXMFTE and put it in type-tmf-gw.dat) 4) run texfont (prepend with sudo if you have errors): texfont type-tmf-gw.dat 5) run it again, if you want the ec encoding: texfont --en=ec type-tmf-gw.dat 6) process one or two test files to see if it really worked: texexec --once --mode=compact texnansi-urw-bookman.tex I hope that works for you. Gerben, Hans, can you think of a way to make this workaround unnecessary? texfont and/or ConTeXt seems to be keyed to a certain distribution setup. I would say that for ConTeXt that is ok (though as far as I know Hans himself keeps the fonts in TEXMFFONTS or so, so he needs a specialized type-tmf.dat as well). That the default is TeX Live also seems to be fine to me. The easiest way would be if you can give this as an argument to texfonts. Another issue is that fonts can be in multiple trees. Some i-Packages may install in texmf.local (so it can be easily uninstalled), or fonts can be in texmf.tetex or texmf.gwtex). I do not know enough about texfont, but if Hans wants to work with me we can sort that out. After all, I probably have a good example of a non-TL multi-tree setup. BTW, there are support reasons why I do not use the TEXMFMAIN name or the standard texmf-dist directory name. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Getting texfont to do batch installs on gwTeX (was Re: [NTG-context] Palatino)
Gerben Wierda wrote: texfont and/or ConTeXt seems to be keyed to a certain distribution setup. I would say that for ConTeXt that is ok (though as far as I know Hans himself keeps the fonts in TEXMFFONTS or so, so he needs a specialized type-tmf.dat as well). That the default is TeX Live also seems to be fine to me. the reason for a separate three texmffonts is that it permits me to update the main tree (wipe out, copy new) and still have my installed extra fonts (i tried to get a texmffonts var in the regular texmf.cnf but that was rejected: objection too many trees while in the meantime we have more trees in tl as well -) The easiest way would be if you can give this as an argument to texfonts. Another issue is that fonts can be in multiple trees. Some i-Packages may install in texmf.local (so it can be easily uninstalled), or fonts can be in texmf.tetex or texmf.gwtex). I do not know enough about texfont, but if Hans wants to work with me we can sort that out. After all, I probably have a good example of a non-TL multi-tree setup. BTW, there are support reasons why I do not use the TEXMFMAIN name or the standard texmf-dist directory name. ah, i see, so the problem is TEXMFMAIN in the dat file before we start hacking ... this --ro stands for --rootlist so it may be a list; so . --ro=TEXMFMAIN,TEXMF.TETEX,TEXMF.GWTEX --ro=TEXMFMAIN,TEXMFTE,TEXMFGW should work; can someone test that? Are these write or read trees? If it is write, then my guess is the default shoul dbe TEXMFLOCAL because officially that is the place where local site modifications should go. That would also survive an upgrade or install of TeX itself. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] *EXPERIMENTAL* TeX i-Package release
This release contains a small surprise, mainly created by Thomas A. Schmitz. When you install it, you can use (automatically unpacked) Apple fonts Hoefler Text, Didot, Optima, Baskerville en Gill Sans in PDFTeX. Setups for LaTeX and ConTeXt are provided. For this to work you need to have fondu installed. When fondu is installed, the fonts are automatically unpacked into the gwTeX tree during configuration (currently after install only). See the Readme of the TeX i-Package for some details. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mfonts.tex from manuals
On 25 Nov 2005, at 21:26, David Arnold wrote: Hans, Gerben, No pstoedit on my system. If I recall I looked into pstoedit a while back. The fact that I did not release a package probably means there were problems getting it to compile on OS X. G book $ pstoedit -bash: pstoedit: command not found Gerben, how should I proceed? On Nov 25, 2005, at 12:14 PM, Hans Hagen wrote: David Arnold wrote: Adam, Goodness gracious! I never saw that. Meanwhile, with these changes, the document compiled (almost). I have a title page with the beautiful background of letters, but I have no Fonts in Context, nor Hans Hagen, October 2001. Log file attached, it that's any help. that's your next excercise: to get makempy running, i.e. these chars are outlines made by pstoedit; is that installed on your system (i can probably cook up an alternative using low level pdf but ...) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New tmf files?
On 26 Nov 2005, at 11:49, Taco Hoekwater wrote: David Arnold wrote: Taco et al, There was some discussion before this current release about including more tmf files. I downloaded the latest cont-tfm.zip, but see no evidence of more tmf files. Is that still a future project? They are in a separate file. I do not know whether Gerben will eventually make that available through the i-installer as well, but for the moment, the zip file is here: http://www.pragma-ade.com/context/current/cont-fnt.zip Easy enough to add this to the updater. I have added it to my update script, so the next ConTeXt release will have this as part of the tree. As I combine the stuff in one or two archives, I might in the future have to let the updater follow the division that ConTeXt uses (-ext, -fnt, etc.), but that is for later. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New tmf files?
On 26 Nov 2005, at 18:50, David Arnold wrote: Gerben, Does this mean that if I wait the 24-hr period and use Context updater again, I will get these? On Nov 26, 2005, at 6:28 AM, Gerben Wierda wrote: On 26 Nov 2005, at 11:49, Taco Hoekwater wrote: David Arnold wrote: Taco et al, There was some discussion before this current release about including more tmf files. I downloaded the latest cont-tfm.zip, but see no evidence of more tmf files. Is that still a future project? They are in a separate file. I do not know whether Gerben will eventually make that available through the i-installer as well, but for the moment, the zip file is here: http://www.pragma-ade.com/context/current/cont-fnt.zip Easy enough to add this to the updater. I have added it to my update script, so the next ConTeXt release will have this as part of the tree. As I combine the stuff in one or two archives, I might in the future have to let the updater follow the division that ConTeXt uses (-ext, -fnt, etc.), but that is for later. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New tmf files?
On 26 Nov 2005, at 18:50, David Arnold wrote: Gerben, Does this mean that if I wait the 24-hr period and use Context updater again, I will get these? Only if ConTeXt itself is updated. But in this case I just triggered a rebuild by hand. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to setup this type of header?
On 21 Dec 2005, at 20:44, David Arnold wrote: Gerben, have we not installed the cont-fnt.zip Taco describes? The ConTeXt updater i-Package contains: cont-ext.zip cont-fnt.zip cont-img.zip cont-tmf.zip and it has whatever is on Hans' site not more than 24hr out of date. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How can I use postscript Times Roman font for entire document?
On 21 Dec 2005, at 20:19, David Arnold wrote: Hans, I can report it doesn't work here. And I am pretty up-to-date with GWTeX, although this makes me want to try updating today. This: % output=pdf \usetypescript[postscript][\defaultencoding] \setupbodyfont[postscript,10pt] \starttext \input tufte \stoptext Gave me this: (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)) kpathsea: Running mktextfm utmr8t mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input utmr8t This is METAFONT, Version 2.71828 (Web2C 7.5.5) kpathsea: Running mktexmf utmr8t ! I can't find file `utmr8t'. * ...:=ljfour; mag:=1; nonstopmode; input utmr8t Please type another input file name ! Emergency stop. * ...:=ljfour; mag:=1; nonstopmode; input utmr8t Map file trouble? Maybe you also need to load a map file in ConTeXt? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How can I use postscript Times Roman font for entire document?
On 21 Dec 2005, at 21:37, VnPenguin wrote: On 12/21/05, David Arnold [EMAIL PROTECTED] wrote: Hans, I can report it doesn't work here. And I am pretty up-to-date with GWTeX, although this makes me want to try updating today. This: % output=pdf \usetypescript[postscript][\defaultencoding] \setupbodyfont[postscript,10pt] \starttext \input tufte \stoptext works OK here with 2005.12.19 :-) Not on my system: (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)) kpathsea: Running mktextfm utmr8t mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input utmr8t This is METAFONT, Version 2.71828 (Web2C 7.5.5) kpathsea: Running mktexmf utmr8t ! I can't find file `utmr8t'. * ...:=ljfour; mag:=1; nonstopmode; input utmr8t Please type another input file name ! Emergency stop. * ...:=ljfour; mag:=1; nonstopmode; input utmr8t Transcript written on mfput.log. grep: utmr8t.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input utmr8t' failed to make utmr8t.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*postscript12ptrmtf*:=utmr8t at 12.0pt not loadable: Metric (TFM) file not found. to be read again \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi inserted text ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... argument \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.4 \setupbodyfont[postscript,10pt] ? If this is supposed to work on a basic ConTeXt install than on my system it doesn't. I'd like to know why not. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How can I use postscript Times Roman font for entire document?
On 21 Dec 2005, at 21:33, Taco Hoekwater wrote: Gerben Wierda wrote: Please type another input file name ! Emergency stop. * ...:=ljfour; mag:=1; nonstopmode; input utmr8t Map file trouble? Maybe you also need to load a map file in ConTeXt? See my urw metrics message. This is the same problem. So we wait for a ConTeXt update beyond 2005.12.19? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How can I use postscript Times Roman font for entire document?
On 21 Dec 2005, at 21:33, Taco Hoekwater wrote: Gerben Wierda wrote: Please type another input file name ! Emergency stop. * ...:=ljfour; mag:=1; nonstopmode; input utmr8t Map file trouble? Maybe you also need to load a map file in ConTeXt? See my urw metrics message. This is the same problem. After installing type-dis and regenerating cont-en I get w-helvetica.map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/ context/ec -urw-courier.map}] systems : end file ftest at line 11 kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 ptmr8r mktexpk: Running gsftopk ptmr8r 72 gsftopk(k) version 1.19.2/851 [1] [2] [3] [4] [5] [6] [7] [8] [9] [11] [12] [14] [15] [16] [17] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [159] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212] [213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225] [226] [227] [228] [229] [230] [231] [232] [233] [234] [235] [236] [237] [238] [239] [240] [241] [242] [243] [244] [245] [246] [247] [248] [249] [250] [251] [252] [253] [254] [255] mktexpk: /var/tmp/texfonts/pk/modeless/adobe/times/ptmr8r.72pk: successfully generated. ) /var/tmp/texfonts/pk/modeless/adobe/times/ptmr8r.72pk Output written on ftest.pdf (1 page, 9708 bytes). Transcript written on ftest.log. return code : 0 run time : 15 seconds total run time : 16 seconds hermione-a:~/Desktop gerben$ Doesn't look good. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How can I use postscript Times Roman font for entire document?
Gerben Wierda wrote: After installing type-dis and regenerating cont-en I get w-helvetica.map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/ context/ec -urw-courier.map}] systems : end file ftest at line 11 kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 That's not right either (duh). Sorry How is about the next one (attached)? Expected behaviour: It should find and use the fonts from cont-fnt.tex (and generate an error message about missing ec-ptmr8t otherwise). I tried this on the very simple test file that was posted earlier and this works. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] i-Installer / minimal TeX installation for ConTeXt?
On Jan 10, 2006, at 21:22, Idris Samawi Hamid wrote: By and by I've found that I am only using ConTeXt for my typesetting needs. I am curious as to whether someone can advise me how best to install a suitable yet minimal TeX installation: without LaTeX, etc. I am currently using Gerben's very helpful i-Installer. If someone can tell me which part of my redistro should stay, I can easily rearrange matters such that such a minimal install is possible. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texversion
In cases like these I generally do something like this: change the obsolete command to display a warning (or in this release a warning and the exec texexec --version, then a year later only the warning, then later the command disappears altogether.) G On 15 Jan 2006, at 22:05, Taco Hoekwater wrote: Hans van der Meer wrote: When running the command texversion it used to give nice and clean compact output. The functionality of texversion has been added to regular texexec, and development has stopped. Please forget about the standalone texversion command and use texexec --version instead. Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ConTeXt bug?
Have a look at this file: \definefont[SectionFont][SerifBold sa b] \setuphead[section][style=\SectionFont] \starttext \LaTeX {\bf \LaTeX} \subject{\LaTeX} \stoptext The \LaTeX in the subject is wrong. Something wrong the the \LaTeX definition? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems with Unicode and i-Installer
Hello, after installing the new ConTeXt package (same problem for 1/16 and 1/19 beta), the installation procedure reported some missing 'unic-ext.tex' file; compiling any files that used \enableregime[utf] didn't work anymore. Replacing 'unic-ext' by 'unic-exp' in the file context.tex and doing another configuration run in i-installer got rid of the error messages both during installation and compilation. So I'd like to know if there might be something wrong with my installation or if it really should say 'unic-exp.tex' in context.tex. In case (i), is there anything I could do besides rerunning the installation routines to fix my tex setup? Hans, Taco, I can confirm this. I missed this error ocurring when I checked the automatically updated i-Package. Can we have a quick fix for this? The 1.16 and 1.19beta are already out there and I am away from my desk so I cannot block people from installing it. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] music!
On 30 Jan 2006, at 17:21, andrea valle wrote: Dear list, I've finished my first complete score created with lily + context. It will be (should be) performed by the percussionist of the Orchestra Sinfonica Nazionale Rai (the National Television Orchestra) on february . (Apart from the music) Wow, everybody seeing it and used to Finale, Sibelius, etc, is deeply impressed. Me too, I have happily to say. Here you can see it: http://www.semiotiche.it/andrea/membrana/Iscrizioni/pdf/iscrizioni.pdf Beautiful. ConTeXt is obviously mentioned in the credit box. And TeXShop I see. But not TeX (Knuth) itself? Where would ConTeXt be without TeX? Con't... ;-) G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] music!
On 30 Jan 2006, at 22:58, andrea valle wrote: Beautiful. (Thanks) ConTeXt is obviously mentioned in the credit box. And TeXShop I see. But not TeX (Knuth) itself? Where would ConTeXt be without TeX? Con't... ;-) It's a problem of recursion. I consider TeX embedded... You know, also LilyPond includes many free libraries (from fondu to pango to imagfemagick). I cannot mention all. But thinking back again I can surely include i-Installer TeX distro. Fundamental... Sorry Gerben, I hope I will have another performance :-) Nah, leave me out of it. It would have worked as well with fink or TeX Live, or whatever. But not without TeX itself and I always think Knuth deserves the mentioning any time. Me, I am just a copy shop. ConTeXt is something real and so is TeX. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] write18
On 5 Feb 2006, at 05:10, David Arnold wrote: Gerben, With a default install of Context, I don't believe write18 is enabled nor run time development of Metapost graphics. Do you do any of that? I know about write18 and it is turned off bacause I have to ship a default `secure' setup. What the Metapost issue is, you'll have to explain. If so, what configuration steps do you take? Me personally, none. I use ConTeXt and it works fine as is. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] write18
On 5 Feb 2006, at 08:44, Gerben Wierda wrote: On 5 Feb 2006, at 05:10, David Arnold wrote: Gerben, With a default install of Context, I don't believe write18 is enabled nor run time development of Metapost graphics. Do you do any of that? I know about write18 and it is turned off bacause I have to ship a default `secure' setup. What the Metapost issue is, you'll have to explain. If so, what configuration steps do you take? Me personally, none. I use ConTeXt and it works fine as is. Let me be a bit more clear. If you want me to change my redistributions, you will have to make clear I understand what is needed and why. Most often it has just been something like add this or change size setting that. But here, I have no idea what does not work for you and in howfar configuration issues are the point to address. In cases like these, the best way is to send me a small example. If a change would require a non-secure standard config, I will not do it. Nor will I if there is a reasonable run-time (not configure time) workaround (e.g. adding -shell-escape to tex can be done runtime and is thus a better security strategy than turning it on by default). If it is possible to offer some configuration options to the user, I will investigate. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] core-bar in latest ConTeXt?
The automatic updated ConTeXt updater i-Package installs the new ConTeXt on Mac OS X but while rebuilding the formats, complains: ! I can't find file `core-bar.tex'. l.299 \input core-bar.tex Please type another input file name: ! Emergency stop. l.299 \input core-bar.tex G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] TeX i-Package update: Charis SIL font (ConTeXt)
The TeX i-Package for Mac OS X has been updated. This update contains the new Charis SIL fonts in Truetype format and support for those for use with ConTeXt. To use the font, just add \usetypescriptfile[type-silcharis] \usetypescript[SilCharis][ec] \setupbodyfont[SilCharis,12pt] or variants on that theme to your ConTeXt project. There is no support for LaTeX until either I need it myself or someone writes it (look at the gtamacfonts to see how it can be done) and sends it to me. During configuration, the SIL fonts are also installed in (copied to) /Library/Fonts/CharisSIL so they are available for GUI apps. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beta
On 29 Mar 2006, at 17:47, Hans Hagen wrote: i'll promote this to current when no problems are reported lettrine is missing G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Quotations
I use \startquotation and \stopquotation a lot. I would like to visually strengthen the quotations because some are pretty lengthy and a reader might forget that it is not me that is writing here. I have been thinking about applying a light grey background or a border of sorts (which should then be open at the top of bottom if the quotation flows over a page boundary. Can someone tell me how to do this? Thanks, G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] version dates confuse me after upgrade
On 6 Apr 2006, at 18:06, Taco Hoekwater wrote: Hi, All this confusion with the formats and their paths is why my teTeX installation page starts with: De-install any existing teTeX That really is the least confusing option, IMO. If you really do not want to do that (because you only ever use pdftex, for example) simply always copy the formats generated by texexec over the ones generated by texconfig/fmtutil. Currently, my fmtutil produced formats work fine: texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2006.04.05 20:06 cont-en : ver: 2006.04.05 20:06 fmt: 2006.4.6 mes: english cont-nl : ver: 2006.04.05 20:06 fmt: 2006.4.6 mes: dutch So, I wonder if I am misunderstanding something.What is wrong with using fmtutil to produce cont-en.fmt? G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Simple problem with quotation paragraph
I am having a simple problem I can't solve by reading the manuals. I want to quote a fragment of a book which contains amongst others a discussion (Plato's Protagoras to be precise). Normally, my book has no whitespace between paragraphs and small indentation, but here I want a small amount of whitespace between paragraphs and also narrower. I'd like to setup some form of quotation paragraph style to use. I started out with \startquotation but I do not want quotes, so now I use startnarrower, but what I need is a paragraph style. Maybe another font (1pt smaller) is nice too. And noindenting while the rest of the book uses indenting. What I would like to do is something like \startBookQuote \stopBookQuote and on the inside I get a small whitespace between paragraphs, no indentation, a smaller font and a narrower textwidth. My last try was: \defineparagraphs[BookQuote][n=1,before={\indenting[never]\whitespace\startnarrower},after={\indenting[yes]\nowhitespace\stopnarrower}] in my environment file, but that gave me page breaks as soon as \startBookQuote was given and the quotes themselves do not receive page breaks, hence a quote more than one page (I have a few) ends up being a column of one page but just running from the page. So, it seems \defineparagraphs is out, because I do not get page breaks inside the quote. But what should I do? Thanks in advance, G PS. any sight on a decent ConTeXt book, btw? The manuals and wiki seldomly give me answers that work for me and often I find ConTeXt rather counterintuitive, e.g. setupparagraphs for something that is a table/column kind of thing, or confusing (\define vs \setup vs rest) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ConTeXt frustrations (was: simple problem)
\defineparagraphs[BookQuote][n=1,before={\indenting[never]\whitespace\startnarrower},after={\indenting[yes]\nowhitespace\stopnarrower}] in my environment file, but that gave me page breaks as soon as \startBookQuote was given and the quotes themselves do not receive page breaks, hence a quote more than one page (I have a few) ends up being a column of one page but just running from the page. So, it seems \defineparagraphs is out, because I do not get page breaks inside the quote. But what should I do? Another try was simpler, using plain TeX instead of ConTeXt's mechanisms, but had another unexpected effect: \def\startBookQuote{\indenting[never]\whitespace\startnarrower} \def\stopBookQuote{\stopnarrower\indenting[yes]\nowhitespace} The result of which is close to what I want, but after the first \startBookQuote-\stopBookQuote pair the whitespace between paragraphs stays, surprisingly enough (notwithstanding the \nowhitespace). Si=o, I remove the entire whitespace/nowhitespace and find out that I *still* get whitespace!? OK, I seem to need to remove \setupwhitespace[small] from my environment file, where I had: \setupwhitespace[small] \nowhitespace But, contrary to indentation, the \setupwhitespace not only sets it up, it also turns it on. With indentation, I hat \setupindentation and did not get that working until I turned it on with \indenting[yes]. In other words, two opposite behaviours for likewise actions. I find this kind of chaotic behaviour typical for my experience with ConTeXt and I get pretty frustrated to the point I start thinking I should have stayed with LaTeX and use the memoir class. Whatever LaTeX's limitations in what it can do, it generally does what one expects. In my own personal experience with ConTeXt I can definitely not say that. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new release (Modified by Gerben Wierda)
On May 10, 2006, at 19:13, Hans Hagen wrote: Thomas A. Schmitz wrote: Hans, do I need to re-report that format generation with texmfstart newtexexec --make is still broken on OS X (I'll check on my linux box later)? I still get these monstrous paths like TeXExec | tex engine path: .:/Users/tas/texmf/web2c//:!!/usr/local/ teTeX/share//share/texmf-local/web2c//:!!/usr/local/teTeX/share// share/texmf/web2c//:!!/usr/local/teTeX/share//share/texmf-dist/web2c// pdfetex btw, i cannot test the mac here since the machine is broken (does not start up and i already wasted half a day on it) It seems like not the real paths are taken but only the main path and texmf-local, texmf-dist and such are hard coded subdirectories. This is one reason why I do not use the standard directories (like texmf-local and texmf-dist, but texmf.local, texmf.gwtex, texmf.tetex), to catch path `hard coding' errors as soon as possible. Another possibility (also a type of hard coding error) is parsing the wrong texmf.cnf file yourself instead of asking for the right paths by using kpsewhich. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new release (Modified by Gerben Wierda)
btw, doesn't gwtex set the TEXMFCNF env variable? It does not get a useful value. TEXMFCNF is defined at compile-time and its setting in a texmf.cnf file is ignored for obvious reasons. The compiled-in version shows my compile environment which differs from the install environment on people's system. Try kpsewhich -expand-var=\$TEXMFCNF in a Terminal window. I had to do this if I wanted to make my TeX install relocatable and I had to make it relocatable to enable the option that people who do not have sysadmin privileges can install the TeX i-Package in their home directory and still work with it. In short: everything in TeX is relocatable at run time except the location of texmf.cnf. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mac troubles
Hi, I uploaded a slightly patched distribution: = only fast kpse in minimals, unless forced A perfect solution. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new release (Modified by Gerben Wierda)
On May 11, 2006, at 17:16, Hans Hagen wrote: Gerben Wierda wrote: btw, doesn't gwtex set the TEXMFCNF env variable? It does not get a useful value. TEXMFCNF is defined at compile-time and its setting in a texmf.cnf file is ignored for obvious reasons. The compiled-in version shows my compile environment which differs from the install environment on people's system. Try kpsewhich -expand-var=\$TEXMFCNF in a Terminal window. I had to do this if I wanted to make my TeX install relocatable and I had to make it relocatable to enable the option that people who do not have sysadmin privileges can install the TeX i-Package in their home directory and still work with it. In short: everything in TeX is relocatable at run time except the location of texmf.cnf. but how then does it locate texmf.cnf, relative to the bin path of kpsewhich? The first texmnf.cnf it tries is indeed located that way: ../../texmf.cnf This is the only reason my precompiled TeX distro is relocatable. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] some patches
On 15 May 2006, at 09:23, Hans Hagen wrote: (btw, is there a clever way to avoid this sudo stuff and become real root?) This depends on what you want to do and on which system. On most unixes, you can say. You can in perl (and probably also ruby which I do not know) set all kinds of unixy things like real uid ($) and effective uid ($) as long as you already have the permissions. sudo -H -s to become root and also have root's home directory. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Simple question: how do I get the filename in the footer
Simple question, guys (and gals), how do I get the filename (full path not needed) in the footer of my document? I want it there while writing the book and remove it in the final stages. I am using MKII (TeXLive 2011 still) texexec --pdf --mode=editor --once ../products/prd_book.tex TeXExec | processing document '../products/prd_book.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | writing option file prd_book.top TeXExec | using randomseed 712 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en.mkii This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011) restricted \write18 enabled. (/usr/local/texlive/2011/texmf/web2c/natural.tcx) entering extended mode (../products/prd_book.tex ConTeXt ver: 2011.05.18 18:04 MKII fmt: 2011.11.14 int: english/english Thanks, G ___ 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] Simple question: how do I get the filename in the footer
On 20 Jan 2013, at 12:57, Philipp Gesang wrote: Hi Gerben, ···date: 2013-01-20, Sunday···from: Gerben Wierda··· how do I get the filename (full path not needed) in the footer of my document? I want it there while writing the book and remove it in the final stages. I am using MKII (TeXLive 2011 still) if the name of the main file suffices, then the TeX command \jobname is what you are looking for. Thanks but that is not the one. Because I use the standard project setup, and the job is always to typeset the file prd_book.tex, but I want the chapter file names (e.g. chapter1.tex) in the footer. So, prd_book contains: \startbodymatter \component chapter1 \component chapter2 \component chapter3 \stopbodymatter And I want chapter1.tex (maybe full path) in the footer. G ··· \setuppagenumbering[location=] \setupfootertexts[pagenumber][{\jobname.tex}] \starttext \dorecurse{5}{\input knuth\page} \stoptext ··· Regards Philipp ___ 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] Simple question: how do I get the filename in the footer
On 20 Jan 2013, at 16:09, Philipp Gesang wrote: ···date: 2013-01-20, Sunday···from: Gerben Wierda··· On 20 Jan 2013, at 12:57, Philipp Gesang wrote: Hi Gerben, ···date: 2013-01-20, Sunday···from: Gerben Wierda··· how do I get the filename (full path not needed) in the footer of my document? I want it there while writing the book and remove it in the final stages. I am using MKII (TeXLive 2011 still) if the name of the main file suffices, then the TeX command \jobname is what you are looking for. Thanks but that is not the one. Because I use the standard project setup, and the job is always to typeset the file prd_book.tex, but I want the chapter file names (e.g. chapter1.tex) in the footer. So, prd_book contains: \startbodymatter \component chapter1 \component chapter2 \component chapter3 \stopbodymatter And I want chapter1.tex (maybe full path) in the footer. If the component identifier matches the file name (e.g. if you use the asterisk instead of a name), you can use \currentcomponent. So the main file foo.tex would look like: \setuppagenumbering[location=] %% footer:main file-component file \setupfootertexts[pagenumber][{\jobname-\currentcomponent}] \startproduct * \input ward \page \component bar \stopproduct And bar.tex: \startcomponent * \input knuth \page \stopcomponent Hi Philipp, that runs into the problem that the file name might contain characters that TeX does not like, e.g. underscore. Is there a command to catch that? (./c_loosely.tex ! Missing $ inserted. inserted text $ to be read again _ \currentcomponent -c_ loosely Thanks, G Hth Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ___ 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] Simple question: how do I get the filename in the footer
On 20 Jan 2013, at 18:34, Wolfgang Schuster wrote: Am 20.01.2013 um 18:06 schrieb Gerben Wierda gerben.wie...@rna.nl: On 20 Jan 2013, at 16:09, Philipp Gesang wrote: ···date: 2013-01-20, Sunday···from: Gerben Wierda··· On 20 Jan 2013, at 12:57, Philipp Gesang wrote: Hi Gerben, ···date: 2013-01-20, Sunday···from: Gerben Wierda··· how do I get the filename (full path not needed) in the footer of my document? I want it there while writing the book and remove it in the final stages. I am using MKII (TeXLive 2011 still) if the name of the main file suffices, then the TeX command \jobname is what you are looking for. Thanks but that is not the one. Because I use the standard project setup, and the job is always to typeset the file prd_book.tex, but I want the chapter file names (e.g. chapter1.tex) in the footer. So, prd_book contains: \startbodymatter \component chapter1 \component chapter2 \component chapter3 \stopbodymatter And I want chapter1.tex (maybe full path) in the footer. If the component identifier matches the file name (e.g. if you use the asterisk instead of a name), you can use \currentcomponent. So the main file foo.tex would look like: \setuppagenumbering[location=] %% footer:main file-component file \setupfootertexts[pagenumber][{\jobname-\currentcomponent}] \startproduct * \input ward \page \component bar \stopproduct And bar.tex: \startcomponent * \input knuth \page \stopcomponent Hi Philipp, that runs into the problem that the file name might contain characters that TeX does not like, e.g. underscore. Is there a command to catch that? You can add the \nonknuthmode to your document which makes _ and ^ normal characters for text mode. Is that limited to a {}-scope? And more importantly, that catches ^ and _, but what about whitespace etc. Isn;t there a true verbatim that I can use on a macro like \currentcomponent? Something along the lines of \verbatimexpand{\currentcomponent}? G 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] Simple question: how do I get the filename in the footer
On 20 Jan 2013, at 22:32, Aditya Mahajan wrote: On Sun, 20 Jan 2013, Gerben Wierda wrote: You can add the \nonknuthmode to your document which makes _ and ^ normal characters for text mode. Is that limited to a {}-scope? And more importantly, that catches ^ and _, but what about whitespace etc. Isn;t there a true verbatim that I can use on a macro like \currentcomponent? Something along the lines of \verbatimexpand{\currentcomponent}? Untested: \filename{\currentcomponent} Works. When outside a component (e.g. index) it defaults to the string 'text'. Thanks, G 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 ___ ___ 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] MOving from MkII to MkIV / EPUB
Hello folks, I have a ConTeXt Project for a small and simple book, that has the 'basic example' project structure with .../images, .../chapters, .../products etc. I use a Makefile to comppile the book when in the .../chapters directory, as attached below. I use texexec --pdf and probably ConTeXt MkII from the MacTeX 2012 distribution. I'd like to make an EPUB from this book as well. I suspect that means going over to LuaTeX/MkIV and doing extra stuff. I got lost in the ConTeXt documentation (for as much as there is, old and new) and would appreciate an instruction on how to do this that does not suppose I am a ConTeXt wizard who is doing stuff like this daily. Is there such a thing? Gerben OPEN=echo MODE=--mode=standalone ONCE=--once .SUFFIXES: .pdf .tex .open .pdf.open: open $ .tex.pdf: texexec --pdf ${MODE} ${ONCE} $ IMAGEDIR=../images MPDIR=../mp PRODUCTSDIR=../products TEXS=c_loosely.tex c_standard.tex c_problem.tex c_index.tex c_endnotes.tex \ c_better.tex OPENS=c_loosely.open c_standard.open c_problem.open c_better.open PDFS=c_loosely.pdf c_standard.pdf c_problem.pdf c_better.pdf CDISCRETEIMAGES= CLOGICIMAGES= BOOKIMAGES= ${CDISCRETEIMAGES} ${CLOGICIMAGES} #.PHONY: $(OPENS) default: make ONCE=--once book-open full: make ONCE= book-open all:$(PDFS) clean: rm %* all-open: $(OPENS) book-open: book open prd_book.pdf book: prd_book.pdf prd_book.pdf: ${PRODUCTSDIR}/prd_book.tex $(TEXS) $(BOOKIMAGES) make MODE=--mode=editor ONCE=${ONCE} ${PRODUCTSDIR}/prd_book.pdf smime.p7s Description: S/MIME cryptographic 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Clean Machine, MacTeX 2013 installed, ConTeXt problem
As my computer died I had to set up a clean one. I installed MacTeX 2013 and tried to compile a ConTeXt project, but this failed: texexec --pdf --mode=editor --once ../products/prd_book.tex resolvers | caches | path '/Users/gerben/Library/texlive/2013/texmf-var' created/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501: invalid multibyte escape: /\xFF/ (SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in `main' It seems a problem in a ruby file in MacTeX 2013. Can someone help me get this working? Thanks, G smime.p7s Description: S/MIME cryptographic 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Clean Machine, MacTeX 2013 installed, ConTeXt problem
On 18 Sep 2013, at 11:18, Hans Hagen pra...@wxs.nl wrote: On 9/18/2013 10:47 AM, Gerben Wierda wrote: As my computer died I had to set up a clean one. I installed MacTeX 2013 and tried to compile a ConTeXt project, but this failed: texexec --pdf --mode=editor --once .../products/prd_book.tex resolvers | caches | path '/Users/gerben/Library/texlive/2013/texmf-var' created/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501: invalid multibyte escape: /\xFF/ (SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in `main' It seems a problem in a ruby file in MacTeX 2013. Can someone help me get this working? Maybe something utf in the latest ruby ... can you try to replace the \xFF with \xFFFC and see what happens? Same thing happens. Now it says \xFFFC is an invalid multibyte escape G Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 ___ smime.p7s Description: S/MIME cryptographic 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Clean Machine, MacTeX 2013 installed, ConTeXt problem
On 18 Sep 2013, at 19:31, Hans Hagen pra...@wxs.nl wrote: On 9/18/2013 4:53 PM, Gerben Wierda wrote: Same thing happens. Now it says \xFFFC is an invalid multibyte escape and \x01 ? That works. Now I run into the next problem. GTAMacFonts does not work anymore. Sigh. G ___ 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] \doifmodeselse?
Using --mode or --modes with texexec sets up modes which can be used in the files to parse different parts. For that I use \doifmodeelse{}{}{} But combining various modes in one \doiffmodeelse would be handy. e.g. (pseudocode) if mode is workinprogress or test or the other way around if mode is all or editor So I would like something like \doifmodeselse{all,editor) or even better booleans \doiffmodeselse{not test or editor} so I do not need to build a large setup of nested \ifmodeelse This is not in ConTeXt currently. Would it be easy to program such a multiple modes selector? G ___ 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] Printen van code met een PDF overlay, makkelijk met ConTeXt?
Beste allemaal, ik wil broncode uitprinten met regelnummers op pagina's met een bepaalde overlay. Ik heb dus ascii text files als input (de code) een overlay in PDF en wil deze gecombineerd printen. Ik zat te denken: is een ConTeXt based workflow hier een mogelijke oplossing? De regelnummers e.d. kan ik eventueel met het pr programma genereren. Met vriendelijke groet, Gerben ___ 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] Printen van code met een PDF overlay, makkelijk met ConTeXt?
Gerben Wierda wrote: Beste allemaal, ik wil broncode uitprinten met regelnummers op pagina's met een bepaalde overlay. Ik heb dus ascii text files als input (de code) een overlay in PDF en wil deze gecombineerd printen. Ik zat te denken: is een ConTeXt based workflow hier een mogelijke oplossing? De regelnummers e.d. kan ik eventueel met het pr programma genereren. \defineoverlay[myoverlay][\overlayfigure{myfile.pdf}] \setupbackgrounds[page][overlay=myoverlay] if it has to be on top: \setupbackgrounds[page][overlay={foreground,myoverlay}] Dank. Om het completer te maken. Stel ik heb een serie ASCII files met broncode. Deze files wil ik printen - landscape - in fixed width font en zonder de tekstfiles te hoeven aanpassen - met regelnummers - met PDF overlay (als hierboven) - met juiste vertaling van tabs naar posities Wat is dan de (slimste) ConTeXt oplossing? G ___ 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] Printing source code intelligently with ConTeXt (with overlay)
On 4 Jun 2009, at 16:17, Wolfgang Schuster wrote: Can you ask your questions in english, your question could be relevant for other users too and it would be a shame if the don't understand it because you use dutch. Sorry, I forgot. Here is the question. I have source code which i want to print using an overlay in PDF, linenumbers, fixed width font, correct indentation of tabs and in landscape mode. I could create some of this with the pr program, but preferably I would like some sort of ConTeXt setup which I could automate. Yours, Gerben Overlay answer from Hans: \defineoverlay[myoverlay][\overlayfigure{myfile.pdf}] \setupbackgrounds[page][overlay=myoverlay] if it has to be on top: \setupbackgrounds[page][overlay={foreground,myoverlay}] ___ 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] Printing source code intelligently with ConTeXt (with overlay)
The overlay if a prelimiary of IfSQ code inspection (http:// www.ifsq.org). Source code is printed with the overlay and then a visual inspection process is performed using the overlay to keep track of results. I tried the following with a test TeX file (no landscape or line numbers yet): \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \starttext \setupbackgrounds[page][overlay=ifsqoverlay] \typefile[SQL][]{details.pls} \stoptext And the start of file details.pls is: PACKAGE BODY DETAILS IS /* Let op: wanneer er foutmeldingen ontstaan als Invalid cursor en Missing mandotory parameter (ORA-01009) dan wordt de form waarschijnlijk aangeroepen met shared library data Kijk eerst bij de aanroep en zorg dat de aanroep met no_share_library_data is */ -- mantis 1055: g_aantal_items toegevoegd en in update_details p_aanroeper toege voegd. -- lokaal: -- globale variabelen, eenmalig gezet bij initialisatie g_debug boolean := false; -- aanzetten om debuggen te vergemakkelijken g_max_lengte NUMBER := 2.5; g_max_hoogte NUMBER := 1.5; g_begin_pos_x NUMBER := 5; g_begin_pos_y NUMBER := 2.844; g_alleen_tonen VARCHAR2(1) := 'N'; g_aantal_structuren NUMBER := -9; -- -9 en 9 zijn schakel-waarden g_multi BOOLEAN := TRUE; But that ends in tears: (/usr/local/texlive/2008/texmf-dist/tex/context/base/pdfr-def.tex) systems : begin file testsql at line 2 (/usr/local/texlive/2008/texmf-dist/tex/context/base/verb-sql.tex loading : Context Support Macros / Pretty SQL Verbatim (/usr/local/texlive/2008/texmf-dist/tex/context/base/verb-pl.tex loading : Context Support Macros / Pretty PERL Verbatim )) Overfull \hbox (23.9878pt too wide) in paragraph at lines 4--4 []|[] [][] [][] []\*12pftt*: dan[] []wordt[] []de[] []form[] []waarschijnli jk[] []aangeroepen[] []met[] []shared[] []library[] []data Overfull \hbox (61.03781pt too wide) in paragraph at lines 4--4 []|[] [][] [][] []\*12pftt*: Kijk[] []eerst[] []bij[] []de[] []aanroep[] [] en[] []zorg[] []dat[] []de[] []aanroep[] []met[] []no_share_library_data[] ! Undefined control sequence. \doSQLtypefourfour ...ntfalse \prettyverbatimfont \fi \else \endPLtypesix \b... argument */ \relax \flushrestofverbatimline \processverbatimline #1-#1 \dodoverbatimline ...ax \flushrestofverbatimline } \endverbatimline \global \... \presetnormalverbatimline ...\doflushverbatimline \fi \global \let \savedver... \readline ...line \else \presetnormalverbatimline \fi \fi \fi \fi \handlever... ... l.4 \typefile[SQL][]{details.pls} ? x The overlay I am using is: http://www.ifsq.org/resources/level-2/overlay.pdf If prettyprinting does not work I would be happy with verbatim print with line numbers and correct indentation. Gerben On 6 Jun 2009, at 15:58, Wolfgang Schuster wrote: Am 06.06.2009 um 15:52 schrieb Gerben Wierda: Here is the question. I have source code which i want to print using an overlay in PDF, linenumbers, fixed width font, correct indentation of tabs and in landscape mode. I could create some of this with the pr program, but preferably I would like some sort of ConTeXt setup which I could automate. What do you want to do with the overlay? 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 : 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 ___