Re: [NTG-context] Duplicate names in figure libraries
Hans et al, I'm afraid I don't know enough xml to understand this. How would something lik this change with your suggested strategy? figure filesec4twoa.png/file labelsec4twoa/label copyrightCollege of the Redwoods Mathematics Department/copyright comment/comment /figure Here's why I asked. You have a team working on Chapter 5, which has sections 1-7. Let's say each person volunteers to write a section. Unless they agree on a naming strategy beforehand, there could be duplicate names in the figure library files. And then you could have several chapters with more sections. On May 3, 2006, at 1:27 PM, Hans Hagen wrote: Willi Egger wrote: Hi David, unless Hans releases some magic, there is no way than to have different labels in both files. we can consider adding a rl:collectionsomename/rl:collection element so that one has to use somename:somelabel to locate a graphic Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Align with comments
Hi David, On Wed, 3 May 2006, David Arnold wrote: I think a while back you provided an align example with comments, such as: 2x+3=5 Add -3 to both sides 2x+3-3=5-3 Simplify 2x=2 Divide both sides by 2 Etc. Could you provide another sample of this for us? Assuming that you want to align at the = in the equations, you can use the following \startformula \startalign[m=2,distance=4em] \NC 2x + 3 \NC = 5 \NC\NC \text{Add -3 to both sides} \NR \NC 2x + 3 - 3 \NC = 5 - 3 \NC\NC \text{Simplify} \NR \NC 2x \NC = 2 \NC\NC \text{Divide both sides by 2} \NR \stopalign \stopformula If you use this kind of thing frequently, you can add some syntax sugar. \definemathalignment [aligncomments] [m=2,distance=4em] \def\Comment#1\NR{\NC\NC\text{#1}\NR} \startformula \startaligncomments \NC 2x + 3 \NC = 5 \Comment Add -3 to both sides \NR \NC 2x + 3 - 3 \NC = 5 - 3 \Comment Simplify \NR \NC 2x \NC = 2 \Comment Divide both sides by 2 \NR \stopaligncomments \stopformula If you simply want to left align the equations, you can use \definemathalignment [aligncomments] [n=1,align={left},m=2,distance=4em] \def\Comment#1\NR{\NC\text{#1}\NR} \startformula \startaligncomments \NC 2x + 3 = 5 \Comment Add -3 to both sides \NR \NC 2x + 3 - 3 = 5 - 3 \Comment Simplify \NR \NC 2x = 2 \Comment Divide both sides by 2 \NR \stopaligncomments \stopformula Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Part head centering and empty header
Johannes Graumann wrote: Hans Hagen wrote: \defineXMLenvironment [appendices] {\directsetup{appendices:start}} {\directsetup{appendices:stop}} \startsetups appendices:start \startappendices \setuppagenumbering [ way=bytext, partnumber=no, conversion=numbers, location={header,right} ] \startstandardmakeup [ headerstate=empty, pagestate=start ] \framed [ width=\textwidth, frame=off ] { \switchtobodyfont[60pt,ss] \setupinterlinespace[line=2.8ex] Appendices \writetolist[part]{Appendices}{} } \stopstandardmakeup \stopsetups \startsetups appendices:start \stopappendices \stopsetups This produces nothing. Fixing 'start' to 'stop' on the third to last line oeps doesn't change that. strange -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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
[NTG-context] dbcontext
Hello, Just for your information, dbcontext-0.1.0 is now released and available at http://dblatex.sf.net. It is another attempt to convert DocBook V4 documents to PDF by using ConTeXt, by using XSL stylesheets to translate from XML to context macros. It is quite experimental but can already handle basic documents. Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Part head centering and empty header
Hans Hagen wrote: This produces nothing. Fixing 'start' to 'stop' on the third to last line oeps doesn't change that. strange OKOK, a new day, more sleep thanks to sleeping son: works now and is (naturally) much cleaner than what I came up with. Thank you, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Simple problem with quotation paragraph
On Thu, 4 May 2006, Gerben Wierda wrote: 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}] \startstop narrower form a group, so \indenting[yes] and \nowhitespace have no effect. You should change the order of those with stopnarrow. 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? Does this work? \definestartstop [BookQuote] [before={\startnarrower\whitespace\setupindenting[no]\tfx}, after={\stopnarrower}] I am using \tfx for a smaller font, but you can define your own for getting something 1pt smaller. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Simple problem with quotation paragraph
Hi Gerben, here is a solution that works with a local layout. For sure there are better ways to reach your desired style, but I have no experience with this stuff. Greets, Peter Gerben Wierda wrote: 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 % interface=en output=pdftex % Time-stamp: Donnerstag, 04 Mai 2006 19:39:38; gerben.tex % \setupindenting[medium,yes] \starttext \dorecurse{5}{\input knuth\par\relax} \start % here starts something. % local definitions (layout/font stuff,...) \startlocal \setupwhitespace[medium] \setupindenting[none] \switchtobodyfont[10pt] %\setuplayout[] \stoplocal % the content between \stoplocal and the final \stop % is shown in the local layout \startnarrower \dorecurse{5}{\input dawkins\relax\par} \stopnarrower \stop % .and here it ends \dorecurse{5}{\input ward\par\relax} \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: %%% End: ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] texexec
Hi, I'd like to make the ruby version of texexec the default. Are there any strong objections to this? Also, i'd like the stubs to run texmfstart as launcher. For that purpose i'll add a /scripts/context/stubs/[mswin|unix] path with the default stubs that one can copy to some bin path Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MyWay doesn't agree
Hi David, This code: \starttext \startformula \startalign[m=2,distance=5em] \NC a_1 x + b_1 y \NC = c_1 \NC d_1 u + e_1 v \NC = f_1 \NR \NC a_2 x + b_2 y \NC = c_2 \NC d_2 u + e_2 v \NC = f_2 \NR \stopalign \stopformula \stoptext Doesn't produce the result advertised in your MyWay. I get the same result as on page 3 of MyWay. Is your result match what you get on live.contextgarden.net? Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Itemize head symbol
On Wed, 26 Apr 2006, nico wrote: On Wed, 26 Apr 2006 00:13:09 +0200, Hans Hagen [EMAIL PROTECTED] wrote: nico wrote: Hello, Is it possible to change the symbol of \head in an itemize list, like \sym does for \item? i'm not sure if i understand the question ... heads are like items so the same symbols apply (or do you want different symbols for \item and \head in one itemize?) Yes, that's it. I wondered if it was possible a to specify a different symbol for a head, something like this: \startitemize[n][headstyle=bold] \head Default head symbol (here a number)\par Body \head Default head symbol again\par Body \symhead{U} The head symbol is U\par Body ^^^ How about \headsym{U} \head The default symbol again\par Body \stopitemize Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] defineenumeration and setupenumeration
WN wrote: I am a bit confused, the example setups the enumaration *remark* and specifies the location=top But on page 224 the command \setupenumerations is shown where one can also specify the location among others. What is the difference, reason or usage for doing this ? Much of the functionality of the \define and \setup commands is using shared code (for efficiency and QA). What is the proper Context way, should I define the location with \defineenumeration or with \setupenumerations ? Where ConTeXt provides both, the use of \setup version depends on your input file. I've had documents where the location changed based on the placement of the enumeration in the overall document (chapters with different layout styles), so I clearly needed a \setup version for that. If you do not need that, I suggest you just put it in the \define. Otherwise you have two macros where one is enough, and at one point you may become confused when a change somewhere in your environment does not work at all. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context