Re: [NTG-context] context meeting
Wednesday, August 27, 2008 Hans Hagen wrote: Hi, I really enjoyed myself at last weeks's meeting. Mojca and friends have done a great job. In addition to a filled up program we had a wonderful day going around Slovenia (incredibly silent outside the facilities and a sky full of stars, something impossible in nl), terrific bonfires, This ConTeXt meeting has been for me a really wonderful chance to get back in the loop of the TeX world in general and the ConTeXt world in particular. My most grateful thanks go to the organizers (and the participants!) for the the wonderful week spent in Slovenia. I probably forget a few things You mean, like, git? 8-D -- Giuseppe Oblomov Bilotta ___ 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] Layers in ConTeXt
Hello all, I have a couple of questions concerning the use of layers in ConTeXt. I'm working with Luigi Scarso on a layout which is characterized by some fixed-position elements surrounding the actual main body of text. For the fixed-position elements, I'm using layers. However, my ConTeXt is a little rusty[*], so there are a couple of things which I need hints for. The first one is very simple: is there a way to 'fix' the layer's content until they change? I've currently set them as page backgrounds, but their content gets reset on each new page. The second question is slightly more complex: is there a way to add contents to a layer, rather than replacing the current layer content? Something like a macro \addtolayer[layername][hoffset=whatever(optional)]{additional content} Thanks in advance, -- Giuseppe Oblomov Bilotta P.S. To prove that it's really me, I'll signal two minor typos in the context source: core-tab.tex:88:%D {inintable, ifsplittables} (first should be ifintable), and page-lyr.tex:81: \c!x=\zeropoint,\c!y=\zeropoint,\c!position=\v!no, page-lyr.tex:87: \c!location=rb,\c!position=\v!no,\c!page=, position=no is set twice in the same setup. [*] I've been out of the loop for a couple of years, the University has sucked up most of my time. I was never too happy with it, and I'm planning on a comeback :D ___ 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] Layers in ConTeXt
Friday, July 13, 2007 Peter Rolf wrote: Hi Guiseppe, welcome back ;) Thanks :) (btw, it's gIUseppe :D) Giuseppe Bilotta schrieb: The first one is very simple: is there a way to 'fix' the layer's content until they change? I've currently set them as page backgrounds, but their content gets reset on each new page. use a collector (Details, p.75) instead; I have no experience with them, but setup should be the same as for layer. % - - - - - \definecollector[foo][state=repeat] \starttext \switchtobodyfont[32pt] \setcollector[foo]{\strut eat more...} \flushcollector[foo] \page[yes] \setcollector[foo][hoffset=6cm]{\strut poppler} \flushcollector[foo] \stoptext % - - - - - Excellent, thanks. BTW, just to show how out of the loop I am, where can I get the Details manual? :D -- Giuseppe Oblomov Bilotta ___ 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] Layers in ConTeXt
Friday, July 13, 2007 Peter Rolf wrote: Giuseppe Bilotta schrieb: The first one is very simple: is there a way to 'fix' the layer's content until they change? I've currently set them as page backgrounds, but their content gets reset on each new page. use a collector (Details, p.75) instead; I have no experience with them, but setup should be the same as for layer. % - - - - - \definecollector[foo][state=repeat] Excellent, thanks. BTW, just to show how out of the loop I am, where can I get the Details manual? :D http://www.pragma-ade.com/general/manuals/details.pdf Oh yeah thanks. I'll be able to get a few more tricks from that. I've found that [state=repeat] works for layers too. I wonder if there are any technical differences between them ... -- Giuseppe Oblomov Bilotta ___ 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] Linetables ROW alignment
Hello all again, I'm using linetables, because despite their lack of documentation they've been rather easy to set up to achieve the effects I needed (colors, alignment, etc). I have a small problem with the title row though, because I would like its entries to be all typeset centered (whereas the rest of columns has them partly left and partly right aligned) but apparently there is no (easy) way to override alignment in a single row. In particular, \setuplinetable[r][1][align=middle] doesn't work, even though all other specifications (color, background, style) work as expected. I think that if a row alignment is required, it should be applied and take precedente over column alignment. Any suggestions? -- Giuseppe Oblomov Bilotta P.S. Looking at core-ltb.tex I've found that \BH and \EH are mapped to \linetableBR and \linetableER. Is this intentional, or a cut-n-paste error? The way it is now, \linetableBH and \linetableEH are never triggered ... ___ 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] Section marking forgotten on next even page?
Hello all, why does \page[even] reset the section marks? Shouldn't this feature be configurable by the user? -- Giuseppe Oblomov Bilotta ___ 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] Layers in ConTeXt
Saturday, July 14, 2007 Aditya Mahajan wrote: On Fri, 13 Jul 2007, Giuseppe Bilotta wrote: Hello all, Welcome back Giuseppe. I had benifitted a lot from your efforts of improving the math support in ConTeXt. Had it not been for the amsl module, I might have never switched to ConTeXt and would have missed a lot of fun. Thanks :) I really hope I'll be able to get back at ConTeXt development and/or other contributions to the TeX world. This is how I would do it. Not sure if this is the best way. Use tokens to keep track of the current information that should go to the layer, and repeat the layer on each page. \newtoks\testtoks \definelayer[test] [ width=\paperwidth, height=\paperheight, ] \startsetups make:test \setlayer[test][x=5cm,y=3cm]{\framed[align=normal,width=5cm]{\the\testtoks}} \stopsetups \setupbackgrounds[page][setups=make:test,background=test] An interesting approach. I really need to learn to use setups. In the end, as the layout specifications got defined more accurately, it turns out the number and position of the layer elements is much less flexible than I originally thought, so I don't need this approach anymore, but I'll keep it in mind for future needs. One thing that I've noticed with repeating layers is that they appear also on 'empty' pages (as in those left by forcing an even or odd page). Is it possible to suppress then in those cases? Do the blank pages left by these commands have a particular setup that can be tweaked? -- Giuseppe Oblomov Bilotta ___ 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] Symmetrical layer positioning?
Hello all, is there a secret power switch to tell ConTeXt that a particular layer has different positioning depending on wether it's on a left or right page? I can of course do it manually, either by changing the layer position on each page or by using two layers instead of one, but I wanted to know if there was a more straightforward way that I was missing. -- Giuseppe Oblomov Bilotta ___ 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] Symmetrical layer positioning?
Monday, July 16, 2007 Aditya Mahajan wrote: On Mon, 16 Jul 2007, Giuseppe Bilotta wrote: Hello all, is there a secret power switch to tell ConTeXt that a particular layer has different positioning depending on wether it's on a left or right page? You can possible use setups and use \doifoddpageelse to set the layers. See http://archive.contextgarden.net/thread/20061102.171506.2fa793e2.en.html Thanks a lot. I don't know if using presets is actually going to reduce the coding, though. In the mean time, I've found that layers have a doublesided option. This apparently allows you to override the left/right settings of a layer, so I tried \definelayer[title][ x=\dimexpr\backspace+\wdall-\wdtit, y=\topspace, width=\wdtit, height=\httit, state=repeat, doublesided=true, ] \setuplayer[lefttitle][ x=\backspace, ] \definelayer[desc][ x=\backspace, y=\topspace, width=\wddesc, height=\htdesc, state=repeat, doublesided=true, ] \setuplayer[leftdesc][ x=\dimexpr\backspace+\wdall-\wddesc, ] \definelayer[figs][ x=\dimexpr\backspace+\wdall-\wdfig, y=\dimexpr\topspace+\makeupheight-\htfig, width=\wdfig, height=\htfig, ] \setuplayer[leftfigs][ x=\backspace, ] \setupbackgrounds[page][background={color,title,desc,figs},backgroundcolor=elux-ultralight] However, the 'main' setup is always used, the left one is never used. Am I doing something wrong? -- Giuseppe Oblomov Bilotta ___ 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] Symmetrical layer positioning?
Monday, July 16, 2007 Giuseppe Bilotta wrote: Monday, July 16, 2007 Aditya Mahajan wrote: On Mon, 16 Jul 2007, Giuseppe Bilotta wrote: Hello all, is there a secret power switch to tell ConTeXt that a particular layer has different positioning depending on wether it's on a left or right page? You can possible use setups and use \doifoddpageelse to set the layers. See http://archive.contextgarden.net/thread/20061102.171506.2fa793e2.en.html Thanks a lot. I don't know if using presets is actually going to reduce the coding, though. In the mean time, I've found that layers have a doublesided option. This apparently allows you to override the left/right settings of a layer, so I tried \definelayer[title][ x=\dimexpr\backspace+\wdall-\wdtit, y=\topspace, width=\wdtit, height=\httit, state=repeat, doublesided=true, ] \setuplayer[lefttitle][ x=\backspace, ] \definelayer[desc][ x=\backspace, y=\topspace, width=\wddesc, height=\htdesc, state=repeat, doublesided=true, ] \setuplayer[leftdesc][ x=\dimexpr\backspace+\wdall-\wddesc, ] \definelayer[figs][ x=\dimexpr\backspace+\wdall-\wdfig, y=\dimexpr\topspace+\makeupheight-\htfig, width=\wdfig, height=\htfig, ] \setuplayer[leftfigs][ x=\backspace, ] \setupbackgrounds[page][background={color,title,desc,figs},backgroundcolor=elux-ultralight] However, the 'main' setup is always used, the left one is never used. Am I doing something wrong? Apparently, I mistook what the doublesided option does for layers. I've currently solved the problem in the following way: \unexpanded\def\titlexpos{% \ifodd\realpageno\dimexpr\wdinside+\wdall-\wdtit\else\wdinside\fi } \definelayer[title][ x=\titlexpos, y=\topspace, width=\wdtit, height=\httit, ] \unexpanded\def\descxpos{% \ifodd\realpageno\wdinside\else\dimexpr\wdinside+\wdall-\wddesc\fi } \definelayer[desc][ x=\descxpos, y=\topspace, width=\wddesc, height=\htdesc, ] \unexpanded\def\figsxpos{% \ifodd\realpageno\dimexpr\backspace+\wdall-\wdfig\else\wdinside\fi } \definelayer[figs][ x=\figsxpos, y=\dimexpr\topspace+\makeupheight-\htfig, width=\wdfig, height=\htfig, ] \setupbackgrounds[page][background={color,title,desc,figs},backgroundcolor=elux-ultralight] However, this solution doesn't strike me as particularly elegant. I've seen in page-lyr.tex that support for left/right layers is currently in progress, but if I read the code correctly it just creates three layers (name, leftname, rightname) and they have to be filled individually. It would be nice to have a simpler interface to repeated layers with position recalculated on each page. -- Giuseppe Oblomov Bilotta ___ 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] Symmetrical layer positioning?
Tuesday, July 17, 2007 Wolfgang Schuster wrote: 2007/7/17, Giuseppe Bilotta [EMAIL PROTECTED]: Apparently, I mistook what the doublesided option does for layers. I've currently solved the problem in the following way: \definelayer[test][doublesided=yes] \setlayer[test][odd][..,..=..,..]{content} \setlayer[test][even][..,..=..,..]{content} Indeed, but if I want both sides to always have the same content, I need to double-code every content insertion, or write a macro to do that for me. It just moves the trickery somewhere else :) My expectation was that when \setlayer is used without specification on a doublesided layer, it would set the content for both sides. Alternatively, a way to specify (even via presets) a position which is page-parity dependent would be a good thing. -- Giuseppe Oblomov Bilotta ___ 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] factor=fit images don't fit
Hello all, I have to place a number of images into some given-size frames in a layer. The images should be scaled proportionally to fit into the frame. The code I'm working with is: \defineframed[framedimg][ frame=on,framecolor=elux, background=color, backgroundcolor=white, width=\wdfig, height=\htfigone, offset=overlay, ] \setlayer[figs][voffset=\nextfigvoff]{% \framedimg{% \externalfigure[#1][ factor=fit, % maxwidth=\wdfig, % maxheight=\htfigone, % frame=on, ]% }% }% where \wdfig, \htfigone are the frame size and \nextfigvoff is the vertical offset which must be placed. I've tried factor=fit, factor=max, but in both cases I get images which cross the boundaries of the frame, mostly in the horizontal direction. If I add the maxwidth/maxheight specification, images don't get scaled at all. I would expect factor=fit to scale the image in such a way that the biggest direction fits into the enclosing box, while factor=max would scale the image in such a way that the smallest direction fits into the enclosing box. Instead, in both cases the vertical direction is being fitted, with no apparent consideration for the horizontal direction. What am I doing wrong and what should I do to fix it? -- Giuseppe Oblomov Bilotta ___ 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] factor=fit images don't fit
Friday, July 20, 2007 Giuseppe Bilotta wrote: Hello all, I have to place a number of images into some given-size frames in a layer. The images should be scaled proportionally to fit into the frame. The code I'm working with is: \defineframed[framedimg][ frame=on,framecolor=elux, background=color, backgroundcolor=white, width=\wdfig, height=\htfigone, offset=overlay, ] \setlayer[figs][voffset=\nextfigvoff]{% \framedimg{% \externalfigure[#1][ factor=fit, % maxwidth=\wdfig, % maxheight=\htfigone, % frame=on, ]% }% }% where \wdfig, \htfigone are the frame size and \nextfigvoff is the vertical offset which must be placed. I've tried factor=fit, factor=max, but in both cases I get images which cross the boundaries of the frame, mostly in the horizontal direction. If I add the maxwidth/maxheight specification, images don't get scaled at all. I would expect factor=fit to scale the image in such a way that the biggest direction fits into the enclosing box, while factor=max would scale the image in such a way that the smallest direction fits into the enclosing box. Instead, in both cases the vertical direction is being fitted, with no apparent consideration for the horizontal direction. What am I doing wrong and what should I do to fix it? Ok, I've tried studying the source and I really think that the way factor scaling is computed is wrong. However, the fix is nontrivial, and a somewhat thorough checking should be implemented, with earlier check for the factor value (fit, max, broad), since the logic selecting which dimension to scale depends on the kind of scaling. Anyway, I've found a temporary solutin to my problem by using a very large value of scale=, coupled with appropriate maxwidth and maxheight values. -- Giuseppe Oblomov Bilotta ___ 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] factor=fit images don't fit
Saturday, July 21, 2007 Brian R. Landy wrote: Hi, What version of ConTeXt are you using? I just noticed a difference a few days ago between the version installed by TeXLive 2007 and the April 2007 release (tested locally through contextgarden) placing an image into a natural table, using factor=max. I'll post an example in a separate thread shortly. According to the log: ConTeXt ver: 2007.04.17 12:51 MKII fmt: 2007.7.17 int: english/english It's the one shipped with Debian. -- Giuseppe Oblomov Bilotta ___ 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] factor=fit images don't fit
Monday, July 23, 2007 luigi scarso wrote: the fit assumes operating on a page not in a box; an alternative is: \framed[width=5cm,height4cm] {\externalfigure[mill.png][maxwidth=4cm,maxheight=5cm,width=10cm]} i.e. setting the maximum values hmm, \frame can be slow. Maybe something like \vbox to4cm{\hsize=5cm ..} ? Well, I'm already in a frame so it's not a problem. -- Giuseppe Oblomov Bilotta ___ 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] \setupheader: leftstyle rightstyle
Sunday, July 22, 2007 Mojca Miklavec wrote: However, there seems to be a little bug. This works perfectly well for section (\getmarking[section]), but for chapter the chapter labels seem to be erased after the first appearance. Do you have a \page[even] in between? I've found that the markings of the last section get cleared when an empty page is inserted. See also my thread Section marking forgotten on next even page? -- Giuseppe Oblomov Bilotta ___ 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] factor=fit images don't fit
Sunday, July 22, 2007 Hans Hagen wrote: the fit assumes operating on a page not in a box; Ah, didn't know that. I couldn't even tell from the sources, since it uses enclosing box dimensions and not page or paper sizes. I suspect the logic is broken at the page level too though, let me explain why. Currently, if I understand the code correctly, factor=fit expands the figure to have its major direction fit, while factor=max expands the figure to have its minor direction fit. Instead, the behavior I would expect from fit (resp. max) is for the *expansion ratio* to be the minimum (resp. maximum) of the expansion ratios in the two directions (not the sizes in those directions, but the ratio between the sizes of the figure and the container). The difference is noticeable when the container and contained have different aspect ratios. Consider for example a 20x30mm figure in a 50x150mm page (strange numbers, just used to show what I mean): with the current code, using 'fit' would consider the largest dimension (30) and thus calculate a factor of 150/30 = 5, but this gives us an image which is 100x150mm, i.e. an image that doesn't fit! Whereas, if we computed the ratios 50/20 = 2.5 and 150/30 = 5, we would know that the ratio to be picked was 2.5 in 'fit' and 5 in 'max'. Or I misintepreting the meaning of 'fit' and 'max'? an alternative is: \framed[width=5cm,height4cm] {\externalfigure[mill.png][maxwidth=4cm,maxheight=5cm,width=10cm]} i.e. setting the maximum values I hadn't thought about using width and maxwidth (and maxheight) at the same time, thanks. Of course, I'd rather have 'fit' and 'max' usable in boxes :) -- Giuseppe Oblomov Bilotta ___ 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] Typo in xtag-pre.tex
Hello all, [EMAIL PROTECTED]:/usr/share/texmf/tex/context/base$ grep letterhar * xtag-pre.tex:\defineXMLentities [tex-hat]{\letterhar}{\^{}} [EMAIL PROTECTED]:/usr/share/texmf/tex/context/base$ grep letterhat * cont-new.tex: \let\normalsuper\letterhat cont-new.tex: {\let\normalsuper\letterhat syst-chr.tex:.catcode `.^ 12 .xdef .letterhat B.string^E xtag-ini.tex:\letcatcodecommand\xmlcatcodesr `\^ \letterhat xtag-map.tex: \defineXMLentity[tex-hat]\letterhat xtag-raw.tex:\defineXMLentity [tex-hat]{\letterhat} xtag-run.tex: .catcode`.^=.@@active .let^.letterhat I suspect xtag-pre should read letterha*t* and not letterha*r* ... Should these kind of bugs be reported to the bugtracker too, or maybe just there? -- Giuseppe Oblomov Bilotta ___ 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] Framing a linetable?
Hello all, is it possible to put a frame around a linetable? -- Giuseppe Oblomov Bilotta ___ 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] Linetable columns with natural width
Hello all, I really like linetables, but there's one thing I'm having problems with: setting its column to have a 'natural' width depending on maximum content width, and letting ConTeXt calculate this automatically. Is it possible? -- Giuseppe Oblomov Bilotta ___ 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] Vertical align inside a frame?
Hello all, how do I tell ConTeXt that I want the frame content to be top, bottom or middle aligned? I found no way to specify *vertical* alignment except by nesting frames and specifying the location= of the inner frame as desired. Am I missing something obvious? -- Giuseppe Oblomov Bilotta ___ 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] Vertical align inside a frame?
Saturday, July 28, 2007 Thomas A. Schmitz wrote: Are you maybe looking for p. 254 of cont-eni.pdf? Oh yes! top and bottom. Thanks a lot! -- Giuseppe Oblomov Bilotta ___ 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] Vertical align inside a frame?
Saturday, July 28, 2007 Patrick Gundlach wrote: Hi Giuseppe, the location= of the inner frame as desired. Am I missing something obvious? I don't think so, this was an example from Hans: \framed[width=2cm,align=middle,location=hanging]{location\\equals\\hanging} \framed[width=2cm,align=middle,location=depth] {location\\equals\\depth} \framed[width=2cm,align=middle,location=height] {location\\equals\\height} B} [snip] Yeah, this is what I was thinking too. But as Thomas pointed out, top and bottom can be used to tune the internal vertical alignment. PS: welcome back! Thanks :) -- Giuseppe Oblomov Bilotta ___ 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] Framing a linetable?
Tuesday, July 24, 2007 Hans Hagen wrote: Giuseppe Bilotta wrote: Hello all, is it possible to put a frame around a linetable? you mean the whole table? probably a matter of hooks; linetables work page-wise which may complicate things a bit so it has to be applied piecewise I've been experimenting with this a little. Putting the whole linetable inside a frame doesn't work because of the \nointerlinelineskip in \ifdim\topskipgap=\zeropoint\else¶ \verticalstrut\nobreak\kern-\struttotal\kern-\parskip\nobreak\nointerlineskip % fix topskip¶ \fi¶ in \flushlinetableparts -- if I comment out this section of the code, the table gets placed, but the frame is somewhat short. This is in fact a bug in linetables which I noticed before, even though it didn't affect me until recently: if the last line in a table is a \vtop (\linetablemode is 0) with more than one line of text, the flattening of its depth in \flushlinetableparts \dp\tablebox\linetablepart\strutdepth causes the text after the table to appear *in* the table itself. So I commented out the depth smashing, and the frame now has the correct size. There is one more thing missing, though, and it's the fact that the table is typeset halfway to the right of the frame, as if a large indentation was placed before each line. If I manage to squeeze out this last bug, I can frame the table automatically which will be a great advantage for me. -- Giuseppe Oblomov Bilotta ___ 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] Linetable height (actually, depth) bug
Hello all, as I mentioned in the 'framing a linetable' thread, there is a bug in the stable (march '07) version of ConTeXt concerning the linetable *depth*. Example file: \setupcolors[state=start] \starttext \setuplinetable[r][2][height=30pt,background=color,backgroundcolor=blue] \startlinetable \BR \BC one \EC \BC two \EC \ER \BR \BC three \EC \BC four \EC \ER \stoplinetable more text \stoptext more text will appear in the blue area of the second line, instead of after the linetable, because the depth of the table lines are smashed to be one strutdepth in \flushlinetableparts -- Giuseppe Oblomov Bilotta ___ 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] Non-printing macro disturbs line justification.
Saturday, July 28, 2007 John R. Culleton wrote: I did a big project in Context and becuse I wanted to use the special features of eplain's interface to makeindex I wrote my own indexing macro. Every place I inserted a call to this macro extra space appeared at that point. Here is my macro: \def\sidx#1{\write\ind{\\indexentry{#1}{\the\pageno}}} I had to retreat to the regular Context indexing tag. Can someone spot the flaw in my definition? Don't know if it's significant, but what if you use \slash instead of \\ ? -- Giuseppe Oblomov Bilotta ___ 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] Boxed items don't like sidefloats
Hello all, here's a test document: \setuppagenumbering[alternative=doublesided] \newbox\testbox \starttext \setbox\testbox\vbox{% \placefigure[outer,none,fit]{}{% \framed[width=.2\hsize,height=.2\hsize,offset=none]{}% }% \startitemize \item some test \item \input knuth \item \input tufte \stopitemize } \box\testbox \page \setbox\testbox\vbox{% \placefigure[outer,none,fit]{}{% \framed[width=.2\hsize,height=.2\hsize,offset=none]{}% }% \startitemize \item some test \item \input knuth \item \input tufte \stopitemize } \box\testbox \stoptext As you may notice, items think the placefigure refers to all of them, so that if a particular item is bigger than the figure height, it will wrap correctly around the (inexistent) box, otherwise it will just side it. Interesting, the same thing does *not* happen when not going through a box, but typesetting things directly in the page. However, for my application I need to typeset the sidefloat and the itemization in a box, so I hit the bug ... Suggestions? -- Giuseppe Oblomov Bilotta ___ 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] Linetable height (actually, depth) bug
Sunday, July 29, 2007 Hans Hagen wrote: Giuseppe Bilotta wrote: Hello all, as I mentioned in the 'framing a linetable' thread, there is a bug in the stable (march '07) version of ConTeXt concerning the linetable *depth*. Example file: \setupcolors[state=start] \starttext \setuplinetable[r][2][height=30pt,background=color,backgroundcolor=blue] \startlinetable \BR \BC one \EC \BC two \EC \ER \BR \BC three \EC \BC four \EC \ER \stoplinetable more text \stoptext more text will appear in the blue area of the second line, instead of after the linetable, because the depth of the table lines are smashed to be one strutdepth in \flushlinetableparts can you test with the version from the beta if this problem is still there? I just tried with ConTeXt ver: 2007.07.29 22:06 MKII fmt: 2007.7.31 int: english/english and I get the same problem. -- Giuseppe Oblomov Bilotta ___ 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] Boxed items don't like sidefloats
Tuesday, July 31, 2007 Wolfgang Schuster wrote: you can use ConTeXt's stream mechanism. \setuppagenumbering[alternative=doublesided] \usemodule[streams] \definestreamlayer[giuseppe][width=\textwidth] \newbox\giuseppe \starttext \startstreamlayer[giuseppe] \placefigure [outer,none,fit] {} {\framed[width=.2\hsize,height=.2\hsize,offset=none]{}} \startitemize \item some test \item \input knuth \item \input tufte \stopitemize \stopstreamlayer \vbox{\placestreamlayer[giuseppe]} \stoptext Ah, excellent, it works perfectly, thanks a lot! Of course, I'm still curious about the reason why a standard vbox wouldn't do it ... -- Giuseppe Oblomov Bilotta ___ 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] Boxed items don't like sidefloats
Tuesday, July 31, 2007 Wolfgang Schuster wrote: you can use ConTeXt's stream mechanism. \setuppagenumbering[alternative=doublesided] \usemodule[streams] \definestreamlayer[giuseppe][width=\textwidth] I've noticed that specifying width= in the streamlayer definition is not enough to force the stream width. If the width is different from the textwidth, I have to use something like \startsetups streamlayer:giuseppe:settings \overloadtextwidth\gbwidth \stopsetups I would have expected \definestreamlayer[giuseppe][width=\gbwidth] to handle this automatically though. -- Giuseppe Oblomov Bilotta ___ 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] Boxed items don't like sidefloats
Tuesday, July 31, 2007 Hans Hagen wrote: Giuseppe Bilotta wrote: Ah, excellent, it works perfectly, thanks a lot! Of course, I'm still curious about the reason why a standard vbox wouldn't do it ... sidefloats hook into the output routine and that does ot work in a box; Makes sense. streams intercept the page stream (nasty but neat); expect more of that kind of stuff You know, seeing how streams work made me think about an extension I was considering for Alpeh: \pageboxnumber, being 255 by default but which could be changed at runtime, choosing which box was used to build the MVL. I originally thought about it because my mathematically aesthetical sense complained that box 255 had to be used in e-TeX and Omega/Aleph as well (the last box number in each system made more sense), but now that I see your streams idea I think it would have been a useful addition. (Oh yes, I should really get back to Aleph. I see that luatex builds on that too. I must say that I'm glad to see that the project has been taken over when I disappeared without a trace :P) -- Giuseppe Oblomov Bilotta ___ 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] Boxed items don't like sidefloats
Wednesday, August 1, 2007 Hans Hagen wrote: Giuseppe Bilotta wrote: You know, seeing how streams work made me think about an extension I was considering for Alpeh: \pageboxnumber, being 255 by default but which could be changed at runtime, choosing which box was used to build the MVL. I originally thought about it because my mathematically aesthetical sense complained that box 255 had to be used in e-TeX and Omega/Aleph as well (the last box number in each system made more sense), but now that I see your streams idea I think it would have been a useful addition. this will become configurable in luatex Ah, good to know. (Oh yes, I should really get back to Aleph. I see that luatex builds on that too. I must say that I'm glad to see that the project has been taken over when I disappeared without a trace :P) well, luatex renders aleph kind of obsolete -) Yeah, I got that impression :) also, luatex has pdf output (also for aleph stuff) This is a very good thing. I have big hopes up for it. Also, as part of my getting back into the loop, do you think there's some where/some how I can give a hand? -- Giuseppe Oblomov Bilotta ___ 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] Boxed items don't like sidefloats
Wednesday, August 1, 2007 Hans Hagen wrote: Giuseppe Bilotta wrote: This is a very good thing. I have big hopes up for it. Also, as part of my ?getting back into the loop?, do you think there's some where/some how I can give a hand? well, mplib ... apart from going megapost (your speciality) 3d will be added and since you're the mathemagician who can think in 6 dimensions ... Ah, this is something I can more probably involve my university with. While my advisor doesn't care much about TeX per se, numerical things are much more of its taste. -- Giuseppe Oblomov Bilotta ___ 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] [ot] \relax
Friday, August 10, 2007 luigi scarso wrote: Martina was born on thursday,August 09 2007 (09/08/07). Mum and baby are allright, daddy a bit blurred, as the photo says . Congratulazioni! :) Ora comincia il bello ... Congratulations! :) Now the fun starts ... -- Giuseppe Oblomov Bilotta ___ 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] installing MKIV
Friday, August 10, 2007 Taco Hoekwater wrote: Giuseppe Bilotta wrote: Actually, /usr/bin/luatex --luaonly could be used as shebang. It doesn't work on all systems, but it should work on most modern installations. Yes, but #!/usr/bin/env luatex --luaonly is much less portable, and tex-related binaries are hardly ever in fixed locations. Oh right, env. Well, it works on my system even with env, but I know, I'm just lucky :) -- Giuseppe Oblomov Bilotta ___ 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] Why does ConTeXt try to load Latin Modern?
I just upgraded my MiKTeX and ConTeXt, and I found out that ConTeXt tries to load Latin Modern regardless of my choice. Example document: \setupbodyfont[ppl,rm,12pt]% \starttext Hello, world! \stoptext Discarding my \setupbodyfont, ConTeXt tries to load ec-lmr12. Suggestions? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Wednesday, July 6, 2005 Hans Hagen wrote: Adam Lindsay wrote: Giuseppe Bilotta said this at Wed, 6 Jul 2005 14:02:10 +0200: \setupbodyfont[ppl,rm,12pt]% ppl is defined in type-pre, which is apparently deprecated in the latest ConTeXt. \usetypescript[palatino][ec] \setupbodyfont[palatino,rm,12pt] instead ConTeXt still tries to load lmr12, though: This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded format=cont-en 2005.7.6) 6 JUL 2005 15:47 entering extended mode **tesi.tex (tesi.tex ConTeXt ver: 2005.06.27 fmt: 2005.7.6 int: english mes: english language: language en is active protectionstate 0 system : cont-new loaded (C:\localtexmf\tex\context\base\cont-new.tex systems : beware: some patches loaded from cont-new.tex color : palette rollover is available ) system : cont-old loaded (C:\localtexmf\tex\context\base\cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (C:\localtexmf\tex\context\base\cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (C:\localtexmf\tex\context\user\cont-sys.rme (C:\localtexmf\tex\context\base\./type-exa.tex) (C:\localtexmf\tex\context\base\./type-syn.tex) (C:\localtexmf\tex\context\base\./type-enc.tex) (C:\localtexmf\tex\context\base\./type-dis.tex) (C:\localtexmf\tex\context\base\./type-siz.tex) (C:\localtexmf\tex\context\base\./type-map.tex) (C:\localtexmf\tex\context\base\./type-spe.tex) (C:\localtexmf\tex\context\base\./type-akb.tex)) bodyfont: 12pt rm is loaded ! Font \*12ptrmtf*=ec-lmr12 not loadable: Metric (TFM) file not found. to be read again \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...ame #1\csname #2#3#4#5\endcsname \tryingfontfalse \fi inserted text ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \ifskipfontchar... argument \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.1 \usetypescript[palatino][ec] ? x Here is how much of TeX's memory you used: 636 strings out of 61510 10115 string characters out of 652806 478845 words of memory out of 1054075 36224 multiletter control sequences out of 6 7 words of font info for 0 fonts, out of 50 for 1000 156 hyphenation exceptions out of 4999 27i,0n,26p,200b,473s stack positions out of 1500i,500n,5000p,20b,32768s No pages of output. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Wednesday, July 6, 2005 luigi.scarso wrote: Giuseppe Bilotta wrote: ConTeXt still tries to load lmr12, though: This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded format=cont-en 2005.7.6) 6 JUL 2005 15:47 entering extended mode **tesi.tex (tesi.tex I N B O C C A A L L U P O !!! Crepi il lupo! :) -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Wednesday, July 6, 2005 Hans Hagen wrote: this is weird, esp since this is pretty old untouched stuff I'll bet it's because lm is the new default font, so regardless of what I try to load it still tries to get that, first thing. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Wednesday, July 6, 2005 Hans Hagen wrote: ! Font \*12ptrmtf*=ec-lmr12 not loadable: Metric (TFM) file not found. maybe its a fall back font that is loaded here; in any case, you need to have latin modern on your machine (well, you want that any way in order to hyphenate italian -) By no reason I should *need* Latin Modern. I want to use Palatino, not Latin Modern. If ConTeXt can't find a font, it should complain about *that* font missing. I also tried Otared's suggestion. Same thing. Regardless of what's in the document, ConTeXt *still* tries loading Latin Modern. Why? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Wednesday, July 6, 2005 Giuseppe Bilotta wrote: I just upgraded my MiKTeX and ConTeXt, and I found out that ConTeXt tries to load Latin Modern regardless of my choice. Example document: \setupbodyfont[ppl,rm,12pt]% \starttext Hello, world! \stoptext Discarding my \setupbodyfont, ConTeXt tries to load ec-lmr12. Suggestions? Ok, in the end my solution was to \let\preloadfonts\relax in my cont-loc. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[4]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Wednesday, July 6, 2005 Otared Kavian wrote: \usetypescript [adobekb] [ec] Thank you very much. This, combined with the suppression of \preloadfonts, fixed all of my problems. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Wednesday, July 6, 2005 Taco Hoekwater wrote: By no reason I should *need* Latin Modern. I want to use Palatino, not Latin Modern. If ConTeXt can't find a font, it should complain about *that* font missing. Context behaves precisely like before: it loads the fallback family at \everyjob. It absolutely has to, because otherwise plain compatibility wouldn't work (when typesetting is done without or before \starttext) This one-liner: $ pdfetex \cont-en \\bye also loads ec-cmr12, as well as some latin moderns, and the whole set of cmr math fonts. The only reason why people notice now is that they do not have lmr12 while everybody had cmr12. The fallback being a fallback, it should be something that everybody has for sure. So it should stay cmr12. This, at least, is MNHO. Is there a way to set the fall-back font? (In cont-usr or something) -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Wednesday, July 6, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: The fallback being a fallback, it should be something that everybody has for sure. So it should stay cmr12. This, at least, is MNHO. Is there a way to set the fall-back font? (In cont-usr or something) actually, lmr will be in all distributions, if it isn't already; it will replace cmr (at least the non math part) [either or not by map file entries]; the reason why i push it a bit is (1) it needs testing and (2) well, i want to push usage, and (3) it is simply a better solution esp with accented characters. So, even if you use cmr12, it will be mapped onto lmr12 (either in (con)tex(t) or by means of a map file); don't worry, it is compatible; (although there may be future variants that have improvements) Yes, but my point is that I *don't* use cmr (at least not in this document), so I see no reason why ConTeXt shoud load lmr :) So, how do I set my preferred fall-back font? BTW, does ConTeXt support the pazo family of fonts? http://www.ctan.org/tex-archive/help/Catalogue/entries/mathpazo.html -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \openlineheight not set
It seems that \setupbodyfont does not set \openlineheight, I have to call \switchtobodyfont to call it. Is this as intended? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Thursday, July 7, 2005 Adam Lindsay wrote: Me neither, but they look to be of good quality, but of lesser glyph coverage (lacking AMS symbols) than the PX fonts. That said, the basic three fonts are 99.8% glyph compatible with the existing PX support. So ConTeXt uses the PX family for math support when Palatino is in use? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?
Friday, July 8, 2005 Adam Lindsay wrote: Giuseppe Bilotta said this at Fri, 8 Jul 2005 10:11:01 +0200: Thursday, July 7, 2005 Adam Lindsay wrote: Me neither, but they look to be of good quality, but of lesser glyph coverage (lacking AMS symbols) than the PX fonts. That said, the basic three fonts are 99.8% glyph compatible with the existing PX support. So ConTeXt uses the PX family for math support when Palatino is in use? That's my understanding of it, yes. Reading more about it yesterday, that does indeed sound non-optimal. Can you say what the requirements would be for improving Palatino math support would be? Well, all things considered I would say that augmenting the mathpazo collection would be the best thing. (And have you tried my little typescript hack?) Yes. It works perfectly, thanks :) For those trying to follow along: Young Ryu's pxmath: * Current ConTeXt choice + Complete AMS glyph coverage - Some spacing bugs - No longer supported, and deprecated in LaTeX world Diego Puga's mathpazo: * LaTeX's preferred choice (of free fonts) + heavily tested spacing - only 'basic' math support I think some sort of hybrid is possible. Without relying on virtual fonts, it would be necessary to make a choice between the two blackboard options. Is it possible to set mathpazo as the default math font for Palatino, and setting px as the fallback? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] How to override a font in a typescript
Friday, July 8, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: Practical example: when I set up palatino, the typescript file set 'modern' as the typeface (which again tries to load the lm files :)) Assume now that I want to overrule that choice, and only that choice. Can I do this from within my source file? one problem is that a typescript not always defines rm, ss tt mm so that leaves you with holes in your font system; one option is to nil the preloader in for instance the palatino typescript; put this in your local copy of cont-sys.tex: \let\preloadfonts\relax \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,rm,12pt] I already nihiled preloadfonts in my cont-loc. Otherwise, I wouldn't have been able to compile anything so far :) The problem is that the Palatino typescript *explictily* mentions 'modern' as its tt font (scaled by 1.75). I would like to override that in my source file. Is this possible? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] How to override a font in a typescript
Friday, July 8, 2005 Hans Hagen wrote: you can define any typescript that you want, so \starttypescript [my-palatino] [ec] \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=\typescripttwo] \definetypeface [palatino] [tt] [mono] [courier] [default] [encoding=\typescripttwo,rscale=1.075] % probably smaller, say .95 \definetypeface [palatino] [mm] [math] [palatino] [default] [encoding=default] \stoptypescript \usetypescript[my-palatino][ec] ... Ok so far, but having to rewrite all of it just to override a single value seems excessive, to me. Isn't there a simple way to only override only some things? I had tried a \definetypeface line on its own, but it didn't seem to work ... -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Preliminary support for the Luxi typeface
I couldn't find the appropriate typescript definition in ConTeXt, so here's the initial stuff: \starttypescript[mono][luxi][\defaultencoding] \definefontsynonym[Luxi] [\defaultencoding-ul9r8a] [encoding=\defaultencoding] \definefontsynonym[LuxiBold] [\defaultencoding-ul9b8a] [encoding=\defaultencoding] \definefontsynonym[LuxiOblique] [\defaultencoding-ul9ro8a][encoding=\defaultencoding] \definefontsynonym[LuxiBoldOblique] [\defaultencoding-ul9bo8a][encoding=\defaultencoding] \stoptypescript % Maybe should map Slanted, not Italic \starttypescript[mono][luxi][name] \definefontsynonym[Mono][Luxi] \definefontsynonym[MonoBold][LuxiBold] \definefontsynonym[MonoItalic][LuxiOblique] \definefontsynonym[MonoBoldItalic][LuxiBoldOblique] \stoptypescript Of course there's the usual Berry name mapping needed if you only have the LaTeX metrics, which go to the regular expression ul9[rb]o?8[artc] as usual. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Need more documentation on tables
Ok, even with the wiki and all the manuals around (which are getting obsolete, too) there is definitely too little documentation on the various tabulation formats. The biggest problem is that each table type has its ability, but there is nothing that can do everything. Simplest example, I'm currently having a problem using a start/stoptabulate (which I need because \RC friends don't work in start/stoptable) but I don't know how to span multiple columns (which can be done in start/stoptable with \use, which doesn't work in start/stoptabulate) What am I supposed to do? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Need more documentation on tables
Saturday, September 10, 2005 Giuseppe Bilotta wrote: Ok, even with the wiki and all the manuals around (which are getting obsolete, too) there is definitely too little documentation on the various tabulation formats. The biggest problem is that each table type has its ability, but there is nothing that can do everything. Simplest example, I'm currently having a problem using a start/stoptabulate (which I need because \RC friends don't work in start/stoptable) but I don't know how to span multiple columns (which can be done in start/stoptable with \use, which doesn't work in start/stoptabulate) What am I supposed to do? Read the sources, of course. Once I found about \ReFormat in the TaBlE mechanism, I was done. It's more verbose than the tabulate way, but it works perfectly. Should I write some documentation about TaBlE preambles and commands (for the Wiki), or would it be against some rule about its ($$$) documentation? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Switching to smaller font more thoroughly
For a particular table, I need to switch to a smaller body font. Currently I'm using {\tfxx \placetable etc \par} but this way the math in the table doesn't get switched. Is there a way to make a more thorough switch? I tried \switchtobodyfont but it didn't work ... -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Switching to smaller font more thoroughly
Monday, September 12, 2005 Taco Hoekwater wrote: Giuseppe Bilotta wrote: For a particular table, I need to switch to a smaller body font. Currently I'm using {\tfxx \placetable etc \par} but this way the math in the table doesn't get switched. Is there a way to make a more thorough switch? I tried \switchtobodyfont but it didn't work ... Have you tried to put the \swichtobodyfont inside the argument? \placetable[here][tables]{Caption}{ \switchtobodyfont[5pt] etc. } It doesn't work either way. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Disappearing figures
Monday, September 12, 2005 Taco Hoekwater wrote: Same problem here, even with only this: \starttext \externalfigure[curves.1] \stoptext I've copied curves.1 from the tests dir to its parent, and I still get a 'not found' on the second run. Makes no sense. Interestingly, it's even *much* slower (probably because it goes looking for files trying every possible extension) -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] No parindent?
Monday, September 12, 2005 Idris Samawi Hamid wrote: This is a known bug-) Try declaring indentation twice, \setupindenting[medium,next] \setupindenting[medium,next] It worked 4 me-) Bingo! (And keep your hopes up, I'm steadly heading towards the end of my PhD :)) -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Need more documentation on tables
Monday, September 12, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: Ok, even with the wiki and all the manuals around (which are getting obsolete, too) there is definitely too little documentation on the various tabulation formats. The biggest problem is that each table type has its ability, but there is nothing that can do everything. Simplest example, I'm currently having a problem using a start/stoptabulate (which I need because \RC friends don't work in start/stoptable) but I don't know how to span multiple columns (which can be done in start/stoptable with \use, which doesn't work in start/stoptabulate) What am I supposed to do? maybe bTABLE cum suis No, table is actually all right. I seem to have met a bug, though. The key c doesn't seem to work in a \ReFormat \placetable[here][approx-1-0.11269]{Results for curve 1, radius 0.11269} {\tfxx \starttable[|l|l|r|ra.o0|l|ra.o0|l|ra.o0|l|] \HL \NC\ReFormat[Bc]{Method}% \NC\ReFormat[Bc]{Options}% \NC\ReFormat[Bc]{Iterations}% \NC\use2\ReFormat[Bc]{Error}% \NC\use2\ReFormat[Bc]{Error\%}% \NC\use2\ReFormat[Bc]{$L^2$}% \SR \HL \NC Kinch\NC \NC 0\NC 0\NC 01891\NC 16\NC 7785\NC 0\NC 00761\%\NC\AR \NC Legendre\NC direct, 2 samples\NC 8\NC 0\NC 01468\NC 13\NC 02819\NC 0\NC 0074\%\NC\AR \NC Legendre\NC Kinch, 2 samples\NC 8\NC 0\NC 01468\NC 13\NC 02819\NC 0\NC 0074\%\NC\AR \HL \stoptable \par } Am I supposed to be using a terminator different from \SR? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Switching to smaller font more thoroughly
Monday, September 12, 2005 Taco Hoekwater wrote: Giuseppe Bilotta wrote: \placetable[here][tables]{Caption}{ \switchtobodyfont[5pt] etc. } It doesn't work either way. Do you have an example? See the example I just posted in the Need more documentation on tables thread. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] No small caps?
I have Palatino as main font set up with \usetypescript[adobekb][8r] \loadmapfile[context-base] \usetypescript[palatino][8r] \setupbodyfont[palatino,rm,12pt] \switchtobodyfont[12pt] Plus I have \setupcapitals[sc=yes] \definestartstop[abstract] [before={\sc Abstract.\hskip1em}] But \starttext \startabstract In this article we will analyze a few techniques that can be used to approximate, by means of Bézier cubics, envelopes of circles centered on Bézier cubics. Such an approximation is useful, if not necessary, in several applications in many branches of computer graphics, ranging from CAD to outline font conversions. \stopabstract \stoptext does not give me Abstract in small caps. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Switching to smaller font more thoroughly
Monday, September 12, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: Monday, September 12, 2005 Hans Hagen wrote: \setuptables[bodyfont=small] \setuptabulate[bodyfont=small] the reason is that spacing depends on the bodyfont size so it need to be controlled somehow What if want it for only some of the tables? \placetable {some clever things} {\setuptable[...] \starttable} The math still comes up full-sized, though. Could be an unexpected interaction with the nath package ... -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] No small caps?
Monday, September 12, 2005 Taco Hoekwater wrote: The corrected input is: \usetypescript[adobekb][ec] \definefontsynonym [ec-uplr8a-capitalized-800] [pplrc8t] [encoding=ec] \loadmapfile[context-base] \usetypescript[palatino][ec] \setupbodyfont[palatino,rm,12pt] \switchtobodyfont[12pt] I made a similar fix for 8r. I also had to install the fpls package (SC and OsF for URW Palladio) ... and now pdfetex 1.21a produces a flaky pdf! (xref table at the end is incomplete) I'll tru to debug the problem ... -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Bold BibTeX refs in text?
This is my bibliography set up \usemodule[bib] \setupbibtex[database={mrabbrev,bezier}] \setuppublications[numbering=yes, sorttype=cite, numbercommand=\bracketed, refcommand=num] I would have liked the in-text bibtex refs to come out in bold, so I tried: \setupcite[num][before={\start\bf},after={\stop}] but this isn't working. I'm pretty sure I'm missing something obvious here ... While we're at it, the reference compression method is a little too aggressive: I have a \cite[onething,another] and it gives me [1--2] in text ... in this case [1,2] would be better, IMO. Compression is good if you have three or more consecutive refs. BTW, how do I add the whole database to the reference list? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Bold BibTeX refs in text?
Tuesday, September 13, 2005 Mojca Miklavec wrote: Giuseppe Bilotta wrote: I would have liked the in-text bibtex refs to come out in bold, so I tried: \setupcite[num][before={\start\bf},after={\stop}] \setupcite[num][left={[\start\bf},right={\stop]}] Aha! Left and right, not before and after. BTW, how do I add the whole database to the reference list? Do you mean \setuppublications[criterium=all] (to print all the publications in the database, even the uncited ones) or perhaps \setupbibtex[database=filename]? criterium=all, thanks. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] [BIB] Extra space before surname
Hello, I just noticed that there is an extra space before the surname if there is no von part. My setup: \def\bracketed#1{[#1]} \usemodule[bib] \setupbibtex[database={mrabbrev,bezier}] \setuppublications[numbering=yes, sorttype=cite, criterium=all, numbercommand=\bracketed, refcommand=num] \setupcite[num][left={\start\bf[},right={]\stop}] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] [BIB] Extra space before surname
Tuesday, September 13, 2005 Taco Hoekwater wrote: Giuseppe Bilotta wrote: Hello, I just noticed that there is an extra space before the surname if there is no von part. Sounds like a familiar bug. Please try this (and let me know if it works or not): \usemodule[bib] % % next 3 lines hopefully fix a bug % \let\bibdoif \doifnotemptyvalue \let\bibdoifnot \doifemptyvalue \def\bibdoifelse#1#2#3{\doifemptyvalueelse{#1}{#3}{#2}} Looks like something else is needed: title : - \headtext {pubs} (./bez-art.tuo ! Missing \endcsname inserted. to be read again \penalty \nonbreakablespace -\penalty \!!tenthousand \ argument P.~ E. \bibdoif #1-[EMAIL PROTECTED] \ifx \csname #1 \endcsname \empty \expandafter \gobbleonear... \invertedshortauthor ...c!juniorsep }\bibdoif {#4} {#4\unskip } \@@ar@@1 ...author\the \scratchcounter \endcsname \ifnum \etallimitcounter ... ... l.105 ...ion {bezier93}}{2::0:0:9:0:0:0:0::20}{20} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] [BIB] Extra space before surname
Tuesday, September 13, 2005 Taco Hoekwater wrote: \def\invertedshortauthor#1#2#3#4#5% {\doifnotempty{#2}{#2\bibalternative\c!vonsep}% #3\bibalternative\c!surnamesep \doifnotempty{#5}{#5\bibalternative\c!juniorsep}% \doifnotempty{#4}{#4\unskip}} No luck ... subject : - \headtext {pubs} (./bez-art.tuo ! Missing \endcsname inserted. to be read again \vtop \bottomaccent #1#2#3#4#5-\dontleavehmode \vtop {\forgetall \baselineskip \z... \dohandleaccent ...acterencoding #1\endcsname {#2} \fi \fi \fi \invertedshortauthor ...nsep}#3\bibalternative \c !surnamesep \doifnotempty ... \@@ar@@1 ...author\the \scratchcounter \endcsname \ifnum \etallimitcounter ... \redoloop -\expandrecursecontent \endofloop ... l.159 ...ion {bezier93}}{2::0:0:7:1:0:0:0::25}{25} (we slowly are getting to the point where it is easier on you to send me the actual document and a list of errors in t-bib :)) Can do that, if you want :) -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] [BIB] Extra space before surname
Tuesday, September 13, 2005 Taco Hoekwater wrote: oh, I'm sorry. Wrap the definition in \unprotect ... \protect, please. Bingo. Thank you very much. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[3]: [NTG-context] Need more documentation on tables
Monday, September 12, 2005 Giuseppe Bilotta wrote: No, table is actually all right. I seem to have met a bug, though. The key c doesn't seem to work in a \ReFormat \placetable[here][approx-1-0.11269]{Results for curve 1, radius 0.11269} {\tfxx \starttable[|l|l|r|ra.o0|l|ra.o0|l|ra.o0|l|] \HL \NC\ReFormat[Bc]{Method}% \NC\ReFormat[Bc]{Options}% \NC\ReFormat[Bc]{Iterations}% \NC\use2\ReFormat[Bc]{Error}% \NC\use2\ReFormat[Bc]{Error\%}% \NC\use2\ReFormat[Bc]{$L^2$}% \SR \HL \NC Kinch\NC \NC 0\NC 0\NC 01891\NC 16\NC 7785\NC 0\NC 00761\%\NC\AR \NC Legendre\NC direct, 2 samples\NC 8\NC 0\NC 01468\NC 13\NC 02819\NC 0\NC 0074\%\NC\AR \NC Legendre\NC Kinch, 2 samples\NC 8\NC 0\NC 01468\NC 13\NC 02819\NC 0\NC 0074\%\NC\AR \HL \stoptable \par } Am I supposed to be using a terminator different from \SR? Any news on this? I really need it for my thesis ... -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Including images in included files in subdirectory
Situation: Tree structure: main.tex subdir/inc.tex subdir/fig.1 in main .tex \include subdir/inc.tex in subdir/inc.tex \externalfigure[fig.1] texexecing main.tex doesn't find the figure fig.1 subdir/inc.tex must use \externalfigure[subdir/fig.1] for the figure to be found. IMO this is a bug. Image should be checked for existence using as base the directory of the current input file *first*, then in the others. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Need more documentation on tables
Thursday, September 15, 2005 Hans Hagen wrote: \def\!tfReFormat#1% {\the \!taLeftGlue \vbox{\forgetall\ialign{\span\the\!taDataColumnTemplate\cr#1\cr}}% \the \!taRightGlue \kern\zeropoint} % prevents \unskip put this in cont-new.tex (or core-tab.tex); it replaces a thrd-tab macro. And it works, thank you very much. Now to find a way to have 100 floats hanging around without killing TeX ... -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Including images in included files in subdirectory
Friday, September 16, 2005 Taco Hoekwater wrote: I agree with Willi and Wolfgang's remarks, but I also agree with Giuseppe that the behaviour is a bit weird. Assuming context will not be changed, something about this should be written down somewhere (in manual or Wiki). Good point. It's all right if it's WAD (Working As Designed), but it would be less surprising if it was documented :) -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] A side by side float that takes advantage of the margin
I have a situation when I have to put side by side two floats (a table and figure). My current code is \placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} } The problem is that sometimes the combined width of table and figure is bigger than the textwidth. I would like the combo to be centered across the page, not starting from the left margin of the text and invading the right margin only. How can I achieve this? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] A side by side float that takes advantage of the margin
Friday, September 16, 2005 Taco Hoekwater wrote: Giuseppe Bilotta wrote: I have a situation when I have to put side by side two floats (a table and figure). My current code is \placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} } Have you tried \centerline (may not work)? \placetable[here][label]{caption}% {\centerline{\placesidebyside{table code}{figure code}}} It works, but it needs a \scantokens inside the centerline because of the active stuff in the tables setups. Thanks. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] lilypond inclusion + pdf crop (getting off-topic)
Friday, September 16, 2005 Hans Hagen wrote: Adam Lindsay wrote: This cuts very close to my day job, yet I never would have imagined ConTeXt could enable this for people... wait till you see what a lua enhancec context can do (playing with it now) -) Perl, Ruby, Lua ... what next? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Complex layout question
Hi all, I have a LARGE (we're talking about the hundred scale) number of floats I would like to distribute across a document. These are paired (a table and a figure). The layout that results from coupling them side by side doesn't satisfy me, so I was looking for a different approach. I would like them to be distributed across the pages by placing the tables at the top left and the figure at the bottom right, text flowing around them. Since there is a very large number of floats, I would like this placement to be automatic: From now on, do this until you run out of text/floats I already did something like the following \newcount\curvenum \global\curvenum=1 \def\newpar{ \oldpar \glet\par\oldpar \input tests/curves-\the\curvenum.tex \global\advance\curvenum1 \ifnum\curvenum8\let\par\newpar\fi } \let\oldpar\par \let\par\newpar to delay-load floats, since loading them all at once fills up the main memory. But how to achieve the layout? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Top-aligned startcombination?
I have \start/\stopcombinations where the elements in a row have different heights, and the combinations bottom-align them. Is there a way to top-align them? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] No math font???
Strange ... this simple document \starttext \startformula a^2+b^2 = 1 \stopformula \stoptext says the formula had to be deleted for lack of symbol fonts ... do I have a flaky installation? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] No math font???
Sunday, September 18, 2005 Giuseppe Bilotta wrote: Strange ... this simple document \starttext \startformula a^2+b^2 = 1 \stopformula \stoptext says the formula had to be deleted for lack of symbol fonts ... do I have a flaky installation? Bah. Forget this, I forgot I was set up to not preload fonts. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[3]: [NTG-context] Switching to smaller font more thoroughly
Tuesday, September 13, 2005 Giuseppe Bilotta wrote: Monday, September 12, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: Monday, September 12, 2005 Hans Hagen wrote: \setuptables[bodyfont=small] \setuptabulate[bodyfont=small] the reason is that spacing depends on the bodyfont size so it need to be controlled somehow What if want it for only some of the tables? \placetable {some clever things} {\setuptable[...] \starttable} The math still comes up full-sized, though. Could be an unexpected interaction with the nath package ... No, it was because I had disabled \preloadfonts. Interesting. Is this intentional or unintended? It would seem that without preloadfonts math never gets properly initialized. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] lilypond inclusion + pdf crop (getting off-topic)
Sunday, September 18, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: Perl, Ruby, Lua ... what next? megapost (by Giuseppe Bilotta) lualeph (by Giuseppe Bilotta) i'm told that he will start with that when he finished his thesis -) Who's this nutcase? ;) Seriously, as long as it keeps being hobbistic, I'd better stick to a single project at a time :) (btw, could you do your thesis work without megapost? i thought that it was a prerequisite) No, my thesis only deals with the theory behind Kinch's method to convert fonts, and how it can be improved. Megapost would only fit the scene because it could be possible to implement such conversion directly in it, whereas metapost doesn't have enough precision. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Complex layout question
Sunday, September 18, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: Hi all, I have a LARGE (we're talking about the hundred scale) number of floats I would like to distribute across a document. These are paired (a table and a figure). The layout that results from coupling them side by side doesn't satisfy me, so I was looking for a different approach. I would like them to be distributed across the pages by placing the tables at the top left and the figure at the bottom right, text flowing around them. Since there is a very large number of floats, I would like this placement to be automatic: From now on, do this until you run out of text/floats the text flowing around is is beyond current tex (fyi: this is one of the things we hav ein mind with the lua extensions combined with karl skoupy's arbitary par shape handling; too long term for your thesis) Actually, these urgent matters are for an article which deals with the main topic of the thesis, but the thesis will have to be ready in a couple of months at most so it's still too close :) so, let's see what other options are there. - side by side is still an option: move them partially into the outer margins (details.pdf shows how to do this) - put two/three of them per page, using the postponing mechanism, that way you probably don't run into memory problems - or use a very narrow layout (wide page) and put all graphic in the margin area (i can help with setting up those layouts if needed) I went for the side-by-side option, using \start/stopcombinations because \placesidebyside put the figure and table too close together. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Top-aligned startcombination?
Monday, September 19, 2005 Wolfgang Zillig wrote: Perhaps this exaple helps (fron cont-eni.pdf, p254). Here it is done with a test in a box, but should be possible with figures as well. Wolfgang \setupframed[width=.2\hsize,height=3cm,align=middle] \startcombination[4] {\framed[bottom=\vss,top=\vss]{just\\in the\\middle}} {\type{top=\vss}\crlf\type{bottom=\vss}} {\framed[bottom=\vss,top=] {just\\in the\\middle}} {\type{top=} \crlf\type{bottom=\vss}} {\framed[bottom=,top=\vss] {just\\in the\\middle}} {\type{top=\vss}\crlf\type{top=}} {\framed[bottom=,top=] {just\\in the\\middle}} {\type{top=} \crlf\type{bottom=}} \stopcombination I had tried putting a \vfill after the table, but it wasn't working ... Anyway, I'm thinking that in my case I probably need to define my own combination. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Need more documentation on tables
Thursday, September 15, 2005 Patrick Gundlach wrote: [...] Should I write some documentation about TaBlE preambles and commands (for the Wiki), Giuseppe, please do so. Done http://wiki.contextgarden.net/Table -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bold next table row?
Sunday, September 18, 2005 Giuseppe Bilotta wrote: Is there a way to enforce the next table row (in \starttable...\stoptable) to be in bold? I know I can change the color with \\CL[color] ... Anybody knows if this is possible or not? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Block of text with natrual width but right-aligned
I have a few lines that I need to push towards the right maring. The lines should all have their natural width, and be all left-aligned to the left of the block, but the block itself should be right aligned. Like the following First line of text | Second line of text | One more line of text| How do I achieve this? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Block of text with natrual width but right-aligned
Thursday, September 22, 2005 Adam Lindsay wrote: Talking to myself... Adam Lindsay said this at Thu, 22 Sep 2005 11:22:18 +0100: (I played with location= in \framedtext, but it didn't have the results I expected.) (Silly mistake...) \defineframedtext[Giuseppe] [align=raggedright,width=fit,offset=0pt, frame=off,location=right] \startGiuseppe One line\\ Two lines\\ And a couple more \stopGiuseppe \input ward \par \startGiuseppe Here is\\ another short text to demonstrate things. \stopGiuseppe Thank you very much. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bib module: support \noopsort
Hello Taco, would it be possible for your module to support the \noopsort command you can find in some .bib files? Basically, a key like key = {\noopsort{value1}}value2 will print as value2 but be sorted under value1 (details in the bibtex references? For the time being I'm just putting a \let\noopsort\relax in my document. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] bib module: support \noopsort
Friday, October 7, 2005 Taco Hoekwater wrote: Giuseppe Bilotta wrote: Hello Taco, would it be possible for your module to support the \noopsort command you can find in some .bib files? Sure, will do (new beta later today). THanks. For the time being I'm just putting a \let\noopsort\relax in my document. That's wrong, I think. Should be \def\noopsort#1{}, yes? Yes, of course. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Automatic next indent
Hello all, and Hans in particular: Some time ago http://www.mail-archive.com/ntg-context@ref.ntg.nl/msg01744.html I had proposed a patch that added the auto value to some commmon indentnext options. I would *really* this to be taken into consideration. Rationale: things like formulas, itemgroups and the like (basically, everything that allows indentnext) are displays. Displays are parts of the document that are embedded in a paragraph but are put in display by appropriate indenting other tricks. Now, there are cases in which the paragraph continues after the display, and cases when it doesn't. So for example Some text in a paragraph, plus other text, still in the same paragraph and a displayed thing and a continuation of the same paragraph with some more text and other text would be different from Some text in a paragraph, plus other text, still in the same paragraph and a displayed thing In a separate pragraph, we have some other text Note that the two cases should be handled separately: in the first case, I *don't* want any indentation nor any blank line; in the second case, I might want either or both. indentnext=auto would NOT put an indent in cases like this: some paragraph \startdisplayedmaterial displayed stuff (formula or itemgroup or anything else) \stopdisplayedmaterial still same paragraph but WOULD put an indent here some paragraph \startdisplayedmaterial displayed stuff (formula or itemgroup or anything else) \stopdisplayedmaterial Different paragraph Hans, can you please consider it for inclusion? The patch is somewhat out of date, given the age, but the principle should be obvious. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Smart \in
Hello all, I have a document which is split into separate \parts. I would like the \in command ( friends) to automatically add the part reference when cross-referencing across parts. Example: \part[part:one]{Part one} \chapter[ch:one]{Chapter one} \chapter[ch:two]{Chapter two} As seen in \in chapter[ch:one] \part[part:two]{Part two} \chater[ch:2-1]{Chapter two} As seen in \in chapter[ch:one] The first \in would say chapter~1, the second chapter~1, part~1. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \setupregister - \setupindex
I just noticed that \setupindex is not exactly the same as \setupregister[index]; indeed, \setupindex does not allow the syntax \setupindex[form][options=values] whereas \setupregister[index][form][options=values] is valid. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] A particular form of index (register) coupling
Hello, I have a register where all the entries appear once (and only once) in a particular form (\index[def::]{entry}) but can appear any number of times in the standard form (\index{entry}). I would like the particular coupling to make all standard form entries clickable and linking to the one and only \index[def::]{entry}. This could be of course generalized to some kind of couplingcommand=\command#1#2 that is user-defineable ... -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bib module: interaction (wish)
Hello all, and Taco in particular, I'm a great fan of interaction, and I was wondering about what kind of interaction the BibTeX module could support. I'm thinking of two of them in particular. One of them is the obvious link to list of references on click. However, I'm also a great fan of balloons, so I was thinking of something like a popup-on-hover showing the full reference, thus sparing the need to go back-and-forth through the document. (Can these things be optimized so that the popup is only stored once in the PDF?) A potential problem would be with compressed citations, but I guess that in this case making only the displayed numbers active is the right solution. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Smart \in
Saturday, October 8, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: Hello all, I have a document which is split into separate \parts. I would like the \in command ( friends) to automatically add the part reference when cross-referencing across parts. Example: \part[part:one]{Part one} \chapter[ch:one]{Chapter one} \chapter[ch:two]{Chapter two} As seen in \in chapter[ch:one] \part[part:two]{Part two} \chater[ch:2-1]{Chapter two} As seen in \in chapter[ch:one] The first \in would say chapter~1, the second chapter~1, part~1. \setuphead[part][prefix=part] \setuphead[chapter][prefix=ch] \setuphead[chapter]prefix=+] % kind of automatic (actually, prefixes are blabla::whatever deep down in context) Looks like I didn't make myself clear. I don't want the label prefix to be automatic. I want the reference to automatically add part ... (in the text) when the current part is different from the part of the referenced thing. I see that the example was too verbose to be minimal enough. Second go: \starttext \part{Part one} \chapter[interest]{Chapter one} \chapter{Chapter two} As seen in \in chapter[interest] \part{Part two} \chapter{Chapter one of part two} \chapter{Chapter two of part two} As seen in \in chapter[interest] \stoptext If you compile this example, you'll see that both \in's print the same output, but the second one is referring to chapter 2 in part 1, and this is not clear (it seems it's referring to chapter 1 in the same part), so it should add , part 1 to make it clear. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Vowels with accent (teTeX - Linux)
Sunday, October 9, 2005 Jilani Khaldi wrote: \mainlanguage[italian] \setupbodyfont[12pt] \setuppapersize[A4] \enableregime[il1] % il = iso-latin-1; change it % based on the encoding you use in your editor \starttext perché, sarà, così, totò, più \stoptext -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Please add Fraktur to the math fonts
The Fraktur fonts are missing from the standard math definitions. Currently, I have this kind of hack in t-amsl: \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt] [mm] [mc=eufm10 sa 1] \definebodyfont [8pt,7pt,6pt] [mm] [mc=eufm7 sa 1] \definebodyfont [5pt] [mm] [mc=eufm5] Basically, for what I can see, the problem is that mc= is not defined in the default typescript files. Adding it would be as simple as replicating the mi lines into mc lines, at least for computer-modern similar, since the actual font used is the same. Could this please be done for the official distribution? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Par break/justification problem
I have a paragraph that is formed by two parts: these are normally run together, except when the last line of the first part ends at less than a certain amount max_amount from the right margin. In this case, there should a 'seamless line break', i.e. a line break with the text still fully justified to the right margin. Example: First part of the paragraph: second part is run in and then the text continues. Second example: This is still the first part of the pagrah: second part will now be put on the next line but the last line of the first part should be fully justified. What kind of hskip/penalty/whatever combo should I put between the first and last part for this to happen? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Insufficient symbol fonts error
Sunday, October 30, 2005 Alan Bowen wrote: I am getting some puzzling errors when I try to use the Greek fonts in math formulae (to represent Greek numerals as written in mss.) In a short file, both \overbar{\grk{kj}} and $\overline{\hbox{\grk{kj}}}$ work as expected, even when they occur in Greek text. But in a long, complicated file with lots of Greek etc. and the same environment file, I get ! Math formula deleted: Insufficient symbol fonts. Are you using the amsl or nath modules? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Insufficient symbol fonts error
Sunday, October 30, 2005 Alan Bowen wrote: Giuseppe I am not using either the amsl or the nath modules. Never had to before. (The file has compiled successfully in its current form, but that was about a week ago.) If I should be using one of these modules, which do you recommend? Sorry, I wasn't suggesting you should use these modules :) On the contrary, I just recently found a bug in them that gave an error similar to the one you found, when using point sizes over 12. Since I knew the fix for that I was hoping it was your problem, but sadly it isn't. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Insufficient symbol fonts error
Sunday, October 30, 2005 Alan Bowen wrote: Giuseppe I inserted \usemodule[t-amsl] into the preamble and got the same error message: ! Math formula deleted: Insufficient symbol fonts. But, when I inserted \usemodule[t-nath] the error message was !TeX capacity exceeded, sorry [input stack size=5000] which seems much more promising. Assuming that increasing the input stack is possible and desirable, how do I do it? Please disregardi this, and remove the two modules. Since it seems the 'Missing symbol fonts' problem only happens with a big document, try the usual 'divide and conquer method': terminate your document right after the formula that gives the error, and progressively comment out halves of the preceding text until you manage to isolate the chunk of text preceding the formula that generates the error. Example: say that that from \starttext to \stoptext there are 300 lines, and that the formula is at the last line. Then you comment the first 150 lines and see if the error occurs. If it doesn't happen, you uncomment the first 150 and comment the subsequent 150 (Except for the formula, of course). This way you can tell which half causes the error. In the uncommented half that causes the error you repeat the process (75 lines at a time), then again and again until you manage to focus around the shortest document that causes the error. -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context