Re: [NTG-context] typesetting verse?
Ah, this has been very helpful indeed. Thanks all. On 8/23/06, John R. Culleton [EMAIL PROTECTED] wrote: On Tuesday 22 August 2006 23:39, Derek Schmidt wrote: Hi, Another simple question--have at it! I'd like to typeset some poetry. It should be indented, obey lines, and the lines should be close together, not like separate paragraphs. So far I've got \definestartstop[verse][commands=\obeylines] What next? All best, Derek ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context In a book being set in plain pdftex I used the following; \newcount\numberoflines \newcount\stanza \stanza=5 \def\bpoem{% \\ \begingroup \everypar={\kern .18\hsize\advance\numberoflines1 \ifodd\numberoflines \ifnum\numberoflines=\the\stanza \vskip-\baselineskip\medskip\numberoflines=0\relax\fi% \else% \quad\fi}% \obeylines} \def\epoem{\everypar={}\par\endgroup\bigskip} For each poem the quantity \stanza would be set first. Stanza is the number of lines in each stanza plus one. A four lines per stanza poem gets the value of 5. Then the poem would be enclosed in \bpoem \epoem statements. Most pdftex statements will execute in Context. But if not, then the above can be used as pseudocode to guide the process. The poems themselves would look like e.g: \bpoem `` The things of Christ the Spirit takes, And to our heart reveals, Our bodies He His temple makes, And our redemption seals. Almighty Spirit! Visit thus, Our hearts, and guide our ways, Pour down thy quickening grace on us, And tune our lips to praise.'' \epoem Most pdftex statements will execute in Context. But if not, then the above can be used as pseudocode to guide the process. -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] typesetting verse?
Aditya, With the first group of code, I get indenting=yes actually appearing in there; yet the lines aren't indented or closer together (vertically). I removed the '%' but that didn't seem to make a difference. On 8/23/06, Aditya Mahajan [EMAIL PROTECTED] wrote: On Tue, 22 Aug 2006, Derek Schmidt wrote: Hi, Another simple question--have at it! I'd like to typeset some poetry. It should be indented, \startnarrower \stopnarrower obey lines, \startlines ... \stoplines (it is more customizable than \obeylines) You can actually say \setupindenting[medium] \startlines[indenting=yes] (other options are no, yes, odd, even) and see which one you like. and the lines should be close together, not like separate paragraphs. \setupinterlinespace[line=2em] \endgraf (default is 2.4 em) So far I've got \definestartstop[verse][commands=\obeylines] So you can try \def\startverse% {\bgroup \setupinterlinespace[line=2em] \startlines[indenting=yes]} \def\stopverse% {\stoplines \endgraf\egroup} You could have also done the equivalent \definestartstop[verse][before={\setupinterlinespace[line=2em]\startlines}, after={\stoplines\endgraf}] Aditya ___ 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] typesetting verse?
Ok guys, thanks. I eventually went with this: \setupindenting[medium,first] \def\startverse% {\bgroup \setupinterlinespace[medium] \setuplines[indenting=yes] \startlines} \def\stopverse% {\stoplines \endgraf\egroup} On 8/23/06, Aditya Mahajan [EMAIL PROTECTED] wrote: On Wed, 23 Aug 2006, Derek Schmidt wrote: Aditya, With the first group of code, I get indenting=yes actually appearing in there; yet the lines aren't indented or closer together (vertically). I removed the '%' but that didn't seem to make a difference. Sorry, that should have been \setuplines[indenting=yes]. Have a look at the code posted by Hans sometime back. Aditya On 8/23/06, Aditya Mahajan [EMAIL PROTECTED] wrote: On Tue, 22 Aug 2006, Derek Schmidt wrote: Hi, Another simple question--have at it! I'd like to typeset some poetry. It should be indented, \startnarrower \stopnarrower obey lines, \startlines ... \stoplines (it is more customizable than \obeylines) You can actually say \setupindenting[medium] \startlines[indenting=yes] (other options are no, yes, odd, even) and see which one you like. and the lines should be close together, not like separate paragraphs. \setupinterlinespace[line=2em] \endgraf (default is 2.4 em) So far I've got \definestartstop[verse][commands=\obeylines] So you can try \def\startverse% {\bgroup \setupinterlinespace[line=2em] \startlines[indenting=yes]} \def\stopverse% {\stoplines \endgraf\egroup} You could have also done the equivalent \definestartstop[verse][before={\setupinterlinespace[line=2em]\startlines}, after={\stoplines\endgraf}] Aditya ___ 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 -- 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] typesetting verse?
Hi, Another simple question--have at it! I'd like to typeset some poetry. It should be indented, obey lines, and the lines should be close together, not like separate paragraphs. So far I've got \definestartstop[verse][commands=\obeylines] What next? All best, Derek ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] doublesided
Horacio, I'm terribly new to this, but I'll offer what I know anyways: 1. Yes, the commands are the same. 2. I used \setuparranging[2*4,doublesided] to get what I *think* you might be trying to do. But I'm using A6 on A4, so you might want \setuparranging[2*2,doublesided] Also, running texexec with the -pdf switch will avoid converting a .dvi to a .ps and then .ps to .pdf. Maybe you knew that already. All best, Derek On 8/12/06, Horacio Suarez [EMAIL PROTECTED] wrote: I´m using context on slackware 10.2, I don´t have a command context. I´m using texexec. It´s the same? Now, texexec ignores some comands: \setuppapersize[a5][a4] \setuplayout[location=middle, marking=on] \setuppagenumbering[alternative=doublesided] Are they incomplete? some aditional command is needed? Thanks in advance. _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ ___ 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] compiling project files
Aditya, Sorry it took so long to get back to you. I've only just had a chance to try this now. The .tuo file for the _product_ file shows the files being loaded. Compiling the _project_ file yields no .tuo. My product file does indeed look like what you wrote. Shall I jump out the window or not? :) --Derek On 8/9/06, Aditya Mahajan [EMAIL PROTECTED] wrote: On Wed, 9 Aug 2006, Derek Schmidt wrote: Hi there, I'm a complete ConTeXt newbie, so please be patient with me. :) I'm putting together a book and I'm trying to use the project structure that Context likes so much. My components come out beautifully--they are chapters in the book. The product file is the actual book. I don't have the code in front of me, but it looks very much like the examples given in the manuals and at ContextGarden. When I texexec it, it runs but only produces and empty table of contents with the word Contents at the top. It won't list the chapters, forget about actually printing their content. I do not understand this. Do you mean that the components are not in the output? Any ideas on what I'm doing wrong? I'm guessing this might not be enough info for you to help. I'll try to answer any questions as best I can. It is pretty hard to guess. Does your product file look like this \startproduct product-name \environment env-name \component component-1 \component component-2 \stopproduct Maybe the components are not getting loaded. To actually see which files are being loaded, look at product.tui file. The enteries starting with f tell you which files are being read. What does the output of grep ^f product.tui look like? Aditya ___ 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] compiling project files
Hi there, I'm a complete ConTeXt newbie, so please be patient with me. :) I'm putting together a book and I'm trying to use the project structure that Context likes so much. My components come out beautifully--they are chapters in the book. The product file is the actual book. I don't have the code in front of me, but it looks very much like the examples given in the manuals and at ContextGarden. When I texexec it, it runs but only produces and empty table of contents with the word Contents at the top. It won't list the chapters, forget about actually printing their content. Any ideas on what I'm doing wrong? I'm guessing this might not be enough info for you to help. I'll try to answer any questions as best I can. Thanks and all best, Derek ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context