[NTG-context] Figures protruding into the margin in double-sided document
I am composing a double-sided document with wide outer margins to allow space for figures. One type of figure is in-line with the text and protrudes into the wide margin. This is easy to do on left-hand pages by saying \setupfloats[location=right] and on right-hand pages by saying \setupfloats[location=left]. Is there any way to automate this so that inserting a new page does not mean I have to fix all the figures? I tried using a macro along the lines of \ifoff\pageno\\setupfloats[location=right]\else\\setupfloats[location=left]\fi but the asynchronousness of output routines means that the page number is usually wrong. Any help much appreciated. Tim ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Index formatting: column leaks over page margin
On 2007-01-22, at 21:56.0, luigi scarso wrote: On 1/15/07, luigi scarso [EMAIL PROTECTED] wrote: hmm line map 17, 33, 52, 69, 70, 70, 70, 71, 71, is too much right? I've played with index settings some time ago: I will refresh my memories. luigi Ok, I hope these can help you. Wow - cool stuff! Thanks! Will study it today. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Long and short captions
Asked the same thing a while ago and Hans put 'selectors' in the ConTeXt core as an answer. See the end of http://www.ntg.nl/pipermail/ntg-context/2006/018204.html for an example. You shouldn't need any of the macro code any more ... HTH, Joh Robin Kirkham wrote: Hi again, Is there a way in ConTeXt to have long and short versions of a figure caption, as one can in LaTeX? The long caption is placed with the figure, the short one for the list of figures. Thanks, Robin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures protruding into the margin in double-sided document
Tim Eyre $B%F%#%` wrote: I am composing a double-sided document with wide outer margins to allow space for figures. One type of figure is in-line with the text and protrudes into the wide margin. This is easy to do on left-hand pages by saying \setupfloats[location=right] and on right-hand pages by saying \setupfloats[location=left]. Is there any way to automate this so that inserting a new page does not mean I have to fix all the figures? I tried using a macro along the lines of \ifoff\pageno\\setupfloats[location=right]\else\\setupfloats[location=left]\fi but the asynchronousness of output routines means that the page number is usually wrong. there are inner and outer related keys; see details.pdf -- - 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] Default preference for float location
Robin Kirkham wrote: Hi, I'd like to set up floats (figures, tables, etc) so they float to the bottom of the page, by default (as if you always wrote \placefigure [bottom][...]{}{}). There does not seem to be an option to \setupfloats[] that will do this, or have I missed something? \setupfloat[figure][default=...] Robin ___ 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] Columns and components
Jeff Smith wrote: Hi! I'm toying with a complex document environment involving multiple components, both in order to learn in general and to accomplish particular objectives. So I want a 2-column layout for all the document, which is made up of a bunch of components appended one after the other in a continuous fashion. The way I thought to acheive that is, instinctively, to use \startcolumns in my product file, before declaring the various components. However, when I do this, the use of \stopcolumns at the end doesn't work. The document does compile (with columns) when I don't use the stop command, but when I do, there is an error: ! Extra }, or forgotten \endgroup. \stopcolumns ...idecolumnsfalse \endgroup \egroup l.12 \stopcolumns What is the proper way of doing this? The thing is, I need to balance my columns, and balancing doesn't work with no \stopcolumns. looks like some grouping problem, make sure that you nest start/stop commands properly 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] Figures protruding into the margin in double-sided document
One type of figure is in-line with the text and protrudes into the wide margin. I use the following with a single-sided layout, for figures in the right part of the text, bleeding 0.5 inches into the margin (with no captions): \definefloat[bleedfig][figure] \setupfloat[bleedfig][rightmargindistance=-0.5in,default={force,none}] \def\rfig#1{\placebleedfig[right,none]{}{\externalfigure[#1]}} I learnt this method from Hans's details.pdf manual, which also has information on getting the same idea to work using a double-sided layout. I'll eventually do that. Menwahile, to use it: \rfig{somefile.pdf} Begin a paragraph, here's some text, and more text etc. and the paragraph will be typeset around somefile.pdf, with somefile.pdf bleeding into the right margin. See chapters 3 and 4 at http://web.mit.edu/18.098/ for examples. I learnt how to bleed the figures between writing chapters 2 and 3, so chapters 1 and 2 don't have the 0.5in protrusion. The source code is at the same location (see env.tex in it). -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX questions
Taco Hoekwater wrote: Thomas A. Schmitz wrote: 2. When generating the formats, texexec complained about unknow control sequence because of lines 25 and 26 in syst-xtx.tex \setcclcuc 201C 201C 201C \setcclcuc 201D 201D 201D I had to comment out these lines to generate the formats (this is with a texlive2007 snapshot of last week and the latest ConTeXt). Is this a known bug? In the latest context, this is a known problem. But the TeXlive This bug is fixed in today's release (uploaded already) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Can't create more than about 240 footnotes
On Monday 22 January 2007 20:30, Aditya Mahajan wrote: On Mon, 22 Jan 2007, Mike Bird wrote: I run out of space around the 240th footnote in a document. It appears that ConTeXt may be reloading or redefining a footnote font for each footnote or footnote number. Is this a known problem with a known solution? No. This works fine here \starttext \dorecurse{500} {\input knuth\footnote[note:\recurselevel]{this is a footnote}\endgraf} \stoptext Hi Aditya, Thanks for checking. I've been unable as yet to create a simple test case. It must be a combination of things. I'll post a test case when I have one. Thanks, --Mike Bird ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Preventing page break
Hi In my double sided layout how can I stop ConTeXt from adding an empty page when a section ends. Thanks, Elliot ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Preventing page break
On Tuesday 23 January 2007 16:25, Elliot Clifton wrote: In my double sided layout how can I stop ConTeXt from adding an empty page when a section ends. Hi Elliot, Does \setuphead[chapter][before={\page[yes]}] do what you want? --Mike Bird ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] database
On 1/23/07, Wolfgang Werners-Lucchini wrote: Hallo! I tried some examples with m-database and Mojca's 'My Way' and had some problems ==Example-1=== \defineseparatedlist[NaturalTable][separator=comma,%quotechar={}, before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD] \startseparatedlist[NaturalTable] Of,course ,it is! \stopseparatedlist == This example does only work as expected if one explicitly gives quotechar. So what is the default quotechar? Can anybody explain the above behaviour? If you activate quotechar, you're using completely other macros to process the data (CSV-like), \TeX-commands won't work. I first wanted to write that the example above without quotechar is a documented bug. But then I remembered that it was already fixed. I looked at the csv.tex again and tried to process it when I figured out that it doesn't even compile any more. Hmmm ... I don't have time to play until friday. It might be that I have some weird local version of m-database which is causing me problems or vice versa. I'll take a look at the end of the week (but I don't know how to fix serious bugs, so it will still be Hans's turn to fix what I find). With quotechar it probably works because Taco's code (with quotechar) was less buggy than Hans's ;) A bit of history: when I asked for that module, I got two responses - one from Hans and one from Taco. Each one of them has invented his own way of dealing with such input, but Taco's way works like \type{\TeX will be ignored}, while Hans's way obeys \TeX commands, so you can use \bf and such ... Since they were both useful, Taco has merged the two. But the difference is probably not documented well enough. ==Example-2=== \def\Whatever#1#2#3{[#1][#2][#3]\endgraf} \defineseparatedlist[CSVX][command=\Whatever, separator={,}, % quotechar={}, first=\bTR,last=\eTR, left=\bTD,right=\eTD, before=\bTABLE,after=\eTABLE] \startCSVX eins,und, zwei,drei one,two,three \stopCSVX == If I give an command (\Whatever) then the options 'first', 'last', 'left', 'right', 'before' and 'after' are ignored. That's ok, I think! I guess that I asked Hans for that behaviour, although it could be either way. I don't know if that's sensible or not, but you can place first and last inside the definition of \Whatever; left and right might need slightly more typing (if you decide that you need to do something repetitive on all the nine cells, so perhaps that's not so useless), but when I think a bit more about it ... before and after don't have their counterpart. It's a bad practice to define both command and left/right/first/last anyway ... so perhaps at least before and after (maybe left/right) should be enabled again? (I always have problems because I never know which one does what - I always mix up left/before/first ...) But if I uncomment the quotechar option, then the options 'left' and 'right' are no longer ignored. Commenting them out or settings like 'left=' etc. are not working. What I am doing wrong here? Taco's mode works differently. It's probably because I never tested that and/or reported problems. Thing should better be unified in this respect. (I have to test a bit - end of week.) ==Example-3=== \processquotedlist(){,}{}\command(a=b=c=d) == Does not work for me. Can anybody give an example? The thing right to \command is purely symbolic I guess (but don't aks me how Taco's ugliest macro works ;). But: it's low-level command I guess. It's not documented in MyWay either. '\processseplist' does not work too. There has to be an '%' in front of 'raw'! You're probably right about that '%'. But \processseplist should be an internal command unless I'm missing something. (LaTeX uses lots of '@' for internals and has so unreadable code ... ConTeXt has better readability, but I sometimes feel that some commands should be better hidden from the outside world - most low-level commands are visible to the user, which shouldn't be the case). Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context