[NTG-context] Re: widow and orphan control
Hello Paul, > \clubpenalty=-600 > \widowpenalty=-600 > > But this had no effect. try inserting things like these after \starttext. There was a problem on the mailinglist like this some time ago. Patrick -- ConTeXt wiki: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: widow and orphan control
Hello Paul, > ConTeXt has not \flushbottom command. The \flushbottom gives the heigh > flexibility. what about looking in the wiki for \flushbottom? Patrick -- ConTeXt wiki: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with \type in captions
Nikolai Weibull wrote: * Hans Hagen (Mar 30, 2005 01:10): that's because the caption is passed as an argument and the catcode is frozen then (being active, the | expects something |...| ; try \type{0}\type{|} since the first token of type is not expanded at all Yeah, that will work. The problem is, though, that I'd really like it to be in one \type as I am actually using something called \TypedRegex that delimits the regular expression argument with "quotes". I guess I could fake the quotes and use the split-\type trick, nikolai \definetype[regexp][option=RAW] \starttext \type{0|} \section{test \regexp{0|} test} \stoptext this will trigger a pretty printing filter, and in this case the | is part of the deal 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] Another problem with \type , and a werid accent
Taco Hoekwater wrote: Try this, using new (LM) ConTeXt: \starttext \type{--} L'abbaye \stoptext oeps, i thought that that was fixed ... i'll ask jacko 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] widow and orphan control
Paul Tremblay wrote: On Mon, Mar 28, 2005 at 10:04:58PM -0500, Paul Tremblay wrote: How does one prevent orphans (the first line nof a paragraph on the last line of a page) and widows (the last line of a paragraph on a new page)? If I have the title of a new section that must not be the last line of a page, how can I do this? I've hunted around the web quite a bit, and there doesn't seem to be an easy way to do this. I tried: \clubpenalty=-600 \widowpenalty=-600 But this had no effect. What I would need is some type of macro that can determine how much space is left on the page. If the space is less than some small, pretermined amount (say, 24 points, for example), then put the title on the next page, or put in a \blank[24pt, flexible] I know nothing about writing macros, or if this is possible. \testpage[24pt] - 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] bibmodule: two small questions
Thomas A.Schmitz wrote: Thanks Taco! Actually, the \switchtobodyfont works even with \completepublications. Ok, cool. Nevertheless, the space between items in the publicationlist is slightly smaller than between normal lines. You can observe it best if you set the interlinespace to something like 5ex. I have to check this (and the crossrefs). Added to my todo list, I hope to so work on the bib module next week. Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Another problem with \type , and a werid accent
Try this, using new (LM) ConTeXt: \starttext \type{--} L'abbaye \stoptext Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] widow and orphan control
This works for LaTeX but not for ConTeXt: \widowpenalty=1 \clubpenalty=1 \flushbottom ConTeXt has not \flushbottom command. The \flushbottom gives the heigh flexibility. Paul -- *Paul Tremblay * [EMAIL PROTECTED]* ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with \type in captions
* Hans Hagen (Mar 30, 2005 01:10): > that's because the caption is passed as an argument and the catcode is > frozen then (being active, the | expects something |...| ; try > \type{0}\type{|} since the first token of type is not expanded at all Yeah, that will work. The problem is, though, that I'd really like it to be in one \type as I am actually using something called \TypedRegex that delimits the regular expression argument with "quotes". I guess I could fake the quotes and use the split-\type trick, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] widow and orphan control
On Mon, Mar 28, 2005 at 10:04:58PM -0500, Paul Tremblay wrote: > > How does one prevent orphans (the first line nof a paragraph on the last > line of a page) and widows (the last line of a paragraph on a new page)? > > If I have the title of a new section that must not be the last line of a > page, how can I do this? > I've hunted around the web quite a bit, and there doesn't seem to be an easy way to do this. I tried: \clubpenalty=-600 \widowpenalty=-600 But this had no effect. What I would need is some type of macro that can determine how much space is left on the page. If the space is less than some small, pretermined amount (say, 24 points, for example), then put the title on the next page, or put in a \blank[24pt, flexible] I know nothing about writing macros, or if this is possible. Paul -- *Paul Tremblay * [EMAIL PROTECTED]* ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with \type in captions
Nikolai Weibull wrote: \starttext \placefigure {\type{0|}} {} \stoptext gives me ! Argument of \next has an extra }. \par that's because the caption is passed as an argument and the catcode is frozen then (being active, the | expects something |...| ; try \type{0}\type{|} since the first token of type is not expanded at all 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] bibmodule: two small questions
Thanks Taco! Actually, the \switchtobodyfont works even with \completepublications. But the spacing seems to have a problem even in newer versions --I use the latest and greatest: TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4) context : ver: 2005.03.16 cont-en : ver: 2005.03.16 fmt: 2005.3.23 mes: english Nevertheless, the space between items in the publicationlist is slightly smaller than between normal lines. You can observe it best if you set the interlinespace to something like 5ex. I tried something like \setuppublicationlist [after={\vskip2pt}] but this is just a guesstimate and will have to be adapted when I change the bodyfont or the interlinespace. On an unrelated note: A couple of months ago, somebody posted about problems with cross-references. You supplied a workaround then: \setbox0\vbox{\placepublications} \completepublications This still works, but any chance that the bug will be fixed? But most importantly: thanks for providing this wonderful tool! Best Thomas On Mar 29, 2005, at 6:05 PM, Taco Hoekwater wrote: Hi Thomas, Thomas A.Schmitz wrote: I've been playing with Taco's bibmodule, and I'm absolutely thrilled how easy it is to customize things. Once you've groked how things work, you can simply copy code from bibl-apa.tex and modify, it's just wonderful (OT: what does "apa" stand for in this abbreviation? For me, it's the American Philological Association, but I guess that's not meant here.) American Psychological Association, http://www.apastyle.org 1. Is there a general option to have the publicationlist typeset in a smaller font size? The default seems to be the general bodyfont, but I couldn't see where this could be modified. The easiest solution is not to use \completepublications, but \placepublications, something like this (untested): \section{References} \switchtobodyfont[8pt] \placepublications 2. The space between the items does not follow the normal interlinespace, but is fixed to a somewhat smaller value, which looks a bit bizarre. Is there any way to modify this behavior. I believe this may depend a bit on your ConTeXt & bib module version(s). The current one looks fine (I think), but I know for a fact that there have been some problems with older versions, and perhaps they have not been resolved properly. See the options to \setuplist in texshow, if you want to tweak the spacing between items, you can use all those options inside a \setuppublicationlist command. Greetings, 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] Problem with \type in captions
\starttext \placefigure {\type{0|}} {} \stoptext gives me ! Argument of \next has an extra }. \par } ...p {\strutdepth }\begstrut \type {0|} \endstrut \endgraf \doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4 }\dostopattributes \putcompletecaption ...trut #3\endstrut \endgraf } \fi \dostopattributes \docheckcaptioncontent ...ecaption {#4}{#2}{#3}{0} }\ifdim \wd \tempcaptionbo... ... l.4 {} Remove the 0 and it works fine. Is there a quick fix?, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bibmodule: two small questions
Hi Thomas, Thomas A.Schmitz wrote: I've been playing with Taco's bibmodule, and I'm absolutely thrilled how easy it is to customize things. Once you've groked how things work, you can simply copy code from bibl-apa.tex and modify, it's just wonderful (OT: what does "apa" stand for in this abbreviation? For me, it's the American Philological Association, but I guess that's not meant here.) American Psychological Association, http://www.apastyle.org 1. Is there a general option to have the publicationlist typeset in a smaller font size? The default seems to be the general bodyfont, but I couldn't see where this could be modified. The easiest solution is not to use \completepublications, but \placepublications, something like this (untested): \section{References} \switchtobodyfont[8pt] \placepublications 2. The space between the items does not follow the normal interlinespace, but is fixed to a somewhat smaller value, which looks a bit bizarre. Is there any way to modify this behavior. I believe this may depend a bit on your ConTeXt & bib module version(s). The current one looks fine (I think), but I know for a fact that there have been some problems with older versions, and perhaps they have not been resolved properly. See the options to \setuplist in texshow, if you want to tweak the spacing between items, you can use all those options inside a \setuppublicationlist command. Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] footnote placement
>\setupnote[endnote][location=none] > >\starttext > >\dorecurse{100}{test \endnote{eee}\endgraf} > >\page > >\placenotes[endnote] > >\stoptext For the record, this also works:-) %\setupnote[endnote][location=none] \setupfootnotes[location=none] \starttext \dorecurse{14}{\ReadFile{tufte}\footnote{\ReadFile{tufte}}\par} \page %\placenotes[endnote] \placefootnotes[location=none] \stoptext It seems that \endnote is also new; nice-) Idris Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] footnote placement
>= Original Message From Hans Hagen <[EMAIL PROTECTED]> = > \starttext >> \startbuffer[tufte] >> \input tufte >> \stopbuffer >> \startbuffer[knuth] >> \input knuth >> \stopbuffer >> \dorecurse{100}{test \footnote{\typebuffer[knuth]} \endnote{eee}\endgraf} > >it's \getbuffer else you indeed get a verbatim buffer (which is what type does); > >\dorecurse{100}{test \footnote{\input knuth } \endnote{eee}\endgraf} So \endgraf (or \par) is needed here; I should have guessed-) >also works; put a space or \relax after \input, else tex keeps scanning; >alternatively use \ReadFile{knuth} or \readfile{knuth}{}{} I definitely prefer the \ReadFile option. I could not find it (or \readfile{}{}{}) in ConTeXt Commands or texshow; must be new... What's the difference between these two commands? Also: given the ConTeXt philosophy, shouldn't there be a non-cryptic replacement for \par or \endgraf, something like \paragraph or \endparagraph? Best Idris Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to place figures next to each other
Hans Hagen wrote: \starttext \placefigure [none] {} {\startcombination {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{one}} {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{two}} \stopcombination} \stoptext Wow, is it that simple and elegant... I had to figure out to replace 'figure' by 'figuur' in the dutch interface. But doing so gives me exactly what I want. Many thanks! Peter ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bibmodule: two small questions
I've been playing with Taco's bibmodule, and I'm absolutely thrilled how easy it is to customize things. Once you've groked how things work, you can simply copy code from bibl-apa.tex and modify, it's just wonderful (OT: what does "apa" stand for in this abbreviation? For me, it's the American Philological Association, but I guess that's not meant here.) I even managed to typeset the numbers of my bibliography flushright in a \hbox and was very proud of myself. Two small questions remain: 1. Is there a general option to have the publicationlist typeset in a smaller font size? The default seems to be the general bodyfont, but I couldn't see where this could be modified. 2. The space between the items does not follow the normal interlinespace, but is fixed to a somewhat smaller value, which looks a bit bizarre. Is there any way to modify this behavior. But these are just cosmetic flaws, overall, the module works wonderfully. Very impressive! Best Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to place figures next to each other
Peter wrote: Peter wrote: How can I place two figures next to each other without using a \startcombination ... \stopcombination group? I now have this, but it is not what I want: \gebruikexternfiguur[kortoctaaf][cekort][type=eps,hoogte=30mm] \gebruikexternfiguur[gebrokenoctaaf][gebroken][type=eps,hoogte=30mm] \plaatsfiguur [hier] [fig:klavieren] {Enkele varianten van het groot octaaf} {\startcombinatie[2*1] {\kortoctaaf}{kort octaaf} {\gebrokenoctaaf}{gebroken octaaf} \stopcombinatie} I want to have the two figures numbered as seperate, independent figures, but when using a combination, the whole combination is treated as one figure and gets only one number and one label. X X X X fig.n fig.n+1 I've consulted the manuals and searched the list archives, but I have not found a solution. tnx in advance, I now know how to suppress the caption of the combination. By using the option "none". Now I have to generate the captions of the two figures with the correct numbers and the reference-labels by hand. So my questions: - How can I increment the figure counter? - How can I print the current figure number? - How can I add labels for referencing to the two figures? - Is there a better approach to do this? I have two small figures. So I really want them next to each other. It's a waste of space to put them underneath each other. ok then, since no one comes to your help ... \starttext \placefigure [none] {} {\startcombination {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{one}} {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{two}} \stopcombination} \stoptext - 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] footnote placement
Gerben Wierda wrote: I have been trying to do this for a test with larger notes, but this fails: \starttext \startbuffer[tufte] \input tufte \stopbuffer \startbuffer[knuth] \input knuth \stopbuffer \dorecurse{100}{test \footnote{\typebuffer[knuth]} \endnote{eee}\endgraf} it's \getbuffer else you indeed get a verbatim buffer (which is what type does); \dorecurse{100}{test \footnote{\input knuth } \endnote{eee}\endgraf} also works; put a space or \relax after \input, else tex keeps scanning; alternatively use \ReadFile{knuth} or \readfile{knuth}{}{} \page \placenotes[endnote] \stoptext But I get "\input tufte" in my footnotes. Putting the \input directly in the \footnote also fails because TeX cannot open the fiile. G On 21 Mar 2005, at 17:42, Hans Hagen wrote: Idris Samawi Hamid wrote: Dear gang, I think this may have been missed, so I'm sending it again. replace your core-not.tex by the attached file and regenerate the format \starttext \dorecurse{100}{test \footnote{test} \endnote{eee}\endgraf} \page \placenotes[endnote] \stoptext should work then 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 -- - 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] line wrap marker
Stuart Jansen wrote: We have lines of text that shouldn't be wrapped. If one line must be wrapped onto the next, we'd like to insert a visual mark at the end of the line and (hopefully) indent the next line slightly. Obviously, there's the potential for wrapping over multiple lines. I've dug around TeX, LaTeX and ConTeXt, and none appear to support this yet. So far, ConTeXt has been the most enjoyable to work with, so I'm okay with a ConTeXt only answer. How hard will this be to implement? Where should I start looking to figure out how to do this? I'm hoping for an answer along the lines of "this set of macros will probably be helpful". just to get you some (wikiable) ideas: \startreusableMPgraphic{return} drawarrow (0,0)-- (1EmWidth,0)-- (1EmWidth,-.5ExHeight)-- (.5EmWidth,-.5ExHeight) ; \stopreusableMPgraphic \definesymbol[return][\reuseMPgraphic{return}] \setupcolors[state=start] \starttext \def\vcrlf{\symbol[return]\crlf\strut\kern1em\strut\ignorespaces} \setuptyping[option=commands] \starttyping test test test /vcrlf test test \stoptyping \setuptyping[option=color] \installnewpretty r \vcrlf \starttyping test \test{test} %%\ r test test \stoptyping \stoptext - 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] footnote placement
Gerben Wierda wrote: I have been trying to do this for a test with larger notes, but this fails: \starttext \startbuffer[tufte] \input tufte \stopbuffer \startbuffer[knuth] \input knuth \stopbuffer \dorecurse{100}{test \footnote{\typebuffer[knuth]} \endnote{eee}\endgraf} \page \placenotes[endnote] \setupnote[endnote][location=none] \starttext \dorecurse{100}{test \endnote{eee}\endgraf} \page \placenotes[endnote] \stoptext i'll make location=none the defautl for endnotes; (other alternatives will snap and add backgrounds and such which is one reason for the notes not breaking 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] PDF Forms
Bob Kerstetter wrote: Hi, Is there some way to create PDF docs (as forms maybe?) so end users can add their own contact information and logos just by using Adobe Reader, not Acrobat? These are one to four page documents. Right now I can do this by supplying them with Word docs. see widgets manual; you can edit forms with acrobat reader but not save them; you can however send the data to a server; 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] lmr (texnansi vs ec)
ishamid wrote: Dear gang, Why does lmr in ConTeXt use the ec instead of the texnansi encoding? I just noticed that all of my macros that use, e.g., \char'25 are now bringing up the wrong symbols. Shouldn't ConTeXt default to the encoding most consistent with cmr (surely I am not the only one who depended on the old TeX encoding->) i'd like to make texnansi default, but unfortunately most other (tex live) fonts ship only in ec encoding 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