Re: [NTG-context] ConTeXt in texlive versus Minimal ConTeXt
Dnia Fri, Nov 14, 2008 at 08:31:54AM +0100, Maurice Diamantini napisa#322;(a): Le 13 nov. 08 à 10:45, Hans Hagen a écrit : Fengnan Gao wrote: I have some problem when using ConTeXt in tl08, ... I don't exactly know what that means but clearly I cannot use ConTeXt. Can someone help me? just use the minimals ... then you have the latest binaries and sources Is there any advantage (for ConTeXt) of using the Texlive (other than being multi-platform!) or other full xTeX distribution? Yes. If you use _both_ ConTeXt and LaTeX (and some of us - including me - are kind of forced to use LaTeX, too, because of: * having a number of old LaTeX files which wuold be a trouble to convert; * sending papers to journals accepting LaTeX; * writing LaTeX stuff to order) Personally I'd find it inconvenient to have two TeX trees and having to change my environment to use one or another. (Possibly, I could arrange it so that I don't have to change any environment variables, but still, since I don't need the state-of-the-art MkIV, texlive is ok for me.) If the minimal ConTeXt is the only standard way of using a full ConTeXt, then it could be rename maximal ;-) or more seriously something lire standard, hot or independant (longish) Well, it is minimal in the sense of dependencies, I guess. -- Maurice Greets -- Marcin Borkowski (http://mbork.pl) Wołałem Pana w moim udręczeniu; mego Boga, mego Boga przyzywałem! I usłyszał mój głos ze Swej świątyni, i dotarł do Jego ucha mój krzyk! I ziemia poruszyła się i zadrżała, i fundamenty świata się odsłoniły; I wyciągnął Swą rękę i mnie pochwycił, wydźwignął mnie z głębokości wó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] no en dash with otf fonts
luigi scarso wrote: On Fri, Nov 14, 2008 at 6:04 AM, Yi Zhang [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I'm using some otf fonts but '--' does not produce the en dash. How can I get over this problem? Thanks, what fonts ? did you specify tlig=yes ? (btw, there are fonts with multiple dashes and hyphens (multiple unicode points for the same glyph) and to some extend - + - with - being one or the other works ok) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Feature request: 4SIDE
Marcin Borkowski wrote: Hi all, it seems that we have a feature request flood;) so I'm putting my $3*10^{-2}. I'd need 4SIDE (analogous to 2SIDE). How to obtain it? Could it be added to page-imp.tex? sure, but it's up to you and the imposition wizzard Willi to make the right definition Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Feature request: indent parameter for delimitedtexts
Aditya Mahajan wrote: On Thu, 13 Nov 2008, Wolfgang Schuster wrote: Hi Hans, is it possible to add a indent key to delimitedtexts, I use in one own my documents the following setup \setupdelimitedtext [blockquote] [spacebefore=line, before={\setupindenting[next]}] but it makes more sense to have a built-in option to control the indenting of longer quotes. I second this. Being lazy, I have been sprinkling \noindentation in my texts. Actually, it will be nice to have this for start-stop narrower also. remind me once we have split core-mis in mkii/mkiv Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] ConTeXt in texlive versus Minimal ConTeXt
Marcin Borkowski wrote: Well, it is minimal in the sense of dependencies, I guess. and also in the sense that there is much left out that would never be used at all; once luatex/mkiv is stable and once we have open type math fonts, even more font stuff can go away (since xetex does not need it either) keep in mind that small trees run faster (when kpse is used) also, they archive better (think of running 10 projects on a machine where each needs a frozen tree) another feature of the minimals is that by default they support texmf-project and texmf-fonts which makes separation of project specific files (and fonts) as well as commercial fonts more convenient. - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Place externalfigure in middle position
mattia schirosa wrote: I looking in documentation for a long time, but i didn't find a command to set a image in middle area without using the \placefigure command. Anyone can help me? \centerbox {...} \centerbox width 1cm height 20cm {...} \starttext \startstandardmakeup \sc \startalignment[middle] Politecnico di Torino \crlf Tesi di laurea specialistica \vfill \setupheads[alternative=middle] \title{Un modello per la generazione dinamica \crlf di paesaggi sonori} \blank[line] Ingegneria del cinema e dei mezzi di comunicazione \blank[line] \vfill %\useexternalfigure[some logo][logopolito][width=5cm] %\placeexternalfigure{'}{\externalfigure[some logo]} % whit this i can put the figure in the middle, but i don't want text {\externalfigure[D:/Documenti/ProgettoTesi/MaterialeTeorico/Immagini/logopolito][width=5cm]} \vfill Autore: Mattia Schirosa \blank[line] I Relatore: Masoero Marco Carlo \crlf II Relatore: Andrea Valle \crlf Torino, 28$/$12$/$2008 \stopalignment \page \stopstandardmakeup \stoptext Best regards Mattia Scopri la community di Io fotografo e video Il nuovo corso http://us.rd.yahoo.com/SIG=11ud6kror/**http%3A%2F%2Fwww.flickr.com%2Fgroups%2Fiofotografoevideo%2F di Gazzetta dello sport per diventare veri fotografi! ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] layout parameter testing
On Thu, Nov 13, 2008 at 9:48 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Am 13.11.2008 um 20:52 schrieb Alan STONE: Hi, With \definelayout[myLayout][...], how do you test whether one of its parameters has a certain value, is greater than 0, etc... ? \definelayout [mylayout] [backspace=3cm, width=12cm] \starttext \doifdimensionelse{\namedlayoutparameter{mylayout}{width}} % width could be 'fit' {\ifdim\namedlayoutparameter{mylayout}{width}10cm ... \else ... \fi} {\processaction [\namedlayoutparameter{mylayout}{width}] [fit=..., unknown=...]} \stoptext Wolfgang Whoopie... way cool! Thanks Wolfgang. Seems there are a few system macros hiding in the source code. -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2008.56.06 19:11 MKIV fmt: 2008.11.10 int: english/english * Ubuntu 8.04 Hardy Heron ___ 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] ConTeXt in texlive versus Minimal ConTeXt
Maurice Diamantini wrote: Le 13 nov. 08 à 10:45, Hans Hagen a écrit : Fengnan Gao wrote: I have some problem when using ConTeXt in tl08, ... I don't exactly know what that means but clearly I cannot use ConTeXt. Can someone help me? just use the minimals ... then you have the latest binaries and sources Is there any advantage (for ConTeXt) of using the Texlive (other than being multi-platform!) or other full xTeX distribution? tex live is fine for mkii but for mkiv you need recent binaries and macros (tex live was frozen before the summer) If the minimal ConTeXt is the only standard way of using a full ConTeXt, then it could be rename maximal ;-) well, if you choose to install only one engine, then it's really much smaller -) (a full tex live installation is about 1.5 gig; i just run context dev on top of tex live but in projects and such i use minimals) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Breaking footnotes across pages
Am 14.11.2008 um 01:11 schrieb Wolfgang Schuster: Hi, I have in a document a very long footnote and want it to break over two pages, what do I have to do to change the default behaviour? I tested my document with a few different settings and it turned out the problem is font dependend, I place my now on the grid and it seems to work for the moment. Wolfgang ___ 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] Feature request: 4SIDE
Am 14.11.2008 um 01:44 schrieb Wolfgang Schuster: Am 14.11.2008 um 01:09 schrieb Marcin Borkowski: Hi all, it seems that we have a feature request flood;) so I'm putting my $3*10^{-2}. I'd need 4SIDE (analogous to 2SIDE). How to obtain it? Could it be added to page-imp.tex? I reused my old code to write a new flexible XSIDE style, you could use it 2SIDE, 2SIDE, 4SIDE ... http://wiki.contextgarden.net/User:Wolfgang_Schuster#Arranging_pages You could also use the predefined 'xy' arranging. http://wiki.contextgarden.net/Imposition Wolfgang ___ 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] Problems with: \completepublications in index
Hi, i try to put my bibliography in index and in end of the book. So: -it works only with \completepublications, but i have no reference in index - if i call a chapter{Bibliography} and then i call the bibliography with \placepublications, it doesn't work, context don't make me see the biblio in pdf. - if i comment %\startappendices %\stopappendices it works but i have not correct numbering in index! There is a bug? \stopbodymatter \startappendices %\chapter{Bibliografia} NO WORKING with \startappendices \completepublications %\placepublications NO WORKING with \stopappendices \stopappendices Thanks Mattia Unisciti alla community di Io fotografo e video, il nuovo corso di fotografia di Gazzetta dello sport: http://www.flickr.com/groups/iofotografoevideo___ 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] Problems with: \completepublications in index
mattia schirosa wrote: Hi, i try to put my bibliography in index and in end of the book. So: -it works only with \completepublications, but i have no reference in index - if i call a chapter{Bibliography} and then i call the bibliography with \placepublications, it doesn't work, context don't make me see the biblio in pdf. - if i comment %\startappendices %\stopappendices it works but i have not correct numbering in index! There is a bug? \stopbodymatter \startappendices %\chapter{Bibliografia} NO WORKING with \startappendices \completepublications %\placepublications NO WORKING with \stopappendices \placepublications[criterium=all] should work Best wishes, Taco ___ 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] Problems with: \completepublications in index
Am 14.11.2008 um 11:50 schrieb mattia schirosa: Hi, i try to put my bibliography in index and in end of the book. So: -it works only with \completepublications, but i have no reference in index What do you want in index? - if i call a chapter{Bibliography} and then i call the bibliography with \placepublications, it doesn't work, context don't make me see the biblio in pdf. - if i comment %\startappendices %\stopappendices it works but i have not correct numbering in index! There is a bug? \stopbodymatter \startappendices %\chapter{Bibliografia} NO WORKING with \startappendices \completepublications %\placepublications NO WORKING with \stopappendices \stopappendices Send a complete example. Wolfgang ___ 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] define command
Hi, For example \define\somemacro[3]{...} gets invoked with \somemacro{#1}{#2}{#3} How do you get rid of those repeating pesky curly brackets and invoke a user defined macro with \somemacro{#1,#2,#3} instead ? :O) -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2008.56.06 19:11 MKIV fmt: 2008.11.10 int: english/english * Ubuntu 8.04 Hardy Heron ___ 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] define command
Am 14.11.2008 um 12:58 schrieb Alan STONE: Hi, For example \define\somemacro[3]{...} gets invoked with \somemacro{#1}{#2}{#3} How do you get rid of those repeating pesky curly brackets and invoke a user defined macro with \somemacro{#1,#2,#3} \starttext \def\somemacro#1% {\def\dosomemacro##1{(##1)}% \processcommalist[#1]\dosomemacro} \somemacro{A,B,C} \stoptext http://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists http://wiki.contextgarden.net/Inside_ConTeXt Wolfgang ___ 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] define command
On Fri, Nov 14, 2008 at 12:58 PM, Alan STONE [EMAIL PROTECTED]wrote: Hi, For example \define\somemacro[3]{...} gets invoked with \somemacro{#1}{#2}{#3} How do you get rid of those repeating pesky curly brackets and invoke a user defined macro with \somemacro{#1,#2,#3} Not what you want, but I have found useful this \def\SomeMacro[#1]{% \getparameters[SOMEMACRO][#1] %% %%now you have \csname SOMEMACRO{}\endcsname %% %% } \SomeMacro[foo=2,boo=4,goo=\TeX, my name is =joe] \SOMEMACROfoo \SOMEMACROboo \SOMEMACROgoo \csname SOMEMACROmy name is\endcsname -- luigi ___ 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] \definefont problem with latest beta (mkiv)
Hans Hagen schrieb: Peter Rolf wrote: Peter Rolf schrieb: Taco Hoekwater schrieb: Peter Rolf wrote: I followed that one. But my problem is more the *wrong strut height*, e.g. using a \totalstrut value of 12pt with a 8pt font. The strut height is simply not adapted to the actual font size anymore (even if I use \setstrut). I can understand why you think this is a different problem, but both struts and interline spaces depend on the value of 1ex, which has changed in an incompatible way. Perhaps you should post a complete minimal example. But (unless the font data is really bad) we are talking about slight differences. And you can't call a 12.6pt strut for a 8pt font a slight change. :) I will (try to) make a minimal example... Looks like this is font related. I have tried the attached example with LM and there where no noticible differences (not at first sight). Same example with Tahoma and things go the wrong way. nothing wrong ... it's just that afm2tfm (or whatever you use for mkii) uses some funny method for calculating the ex height in mkiv we use the xheight spec from the font (defined in the font in this case) or the height of an 'x' \showstruts 2.8ex: \the\dimexpr2.8ex\par \strut qgjyQWT\par 1ex: \the\dimexpr 1ex\par \setbox0\hbox{x}ht(x):\the\ht0\par 2.8*ht(x): \the\dimexpr2.8\ht0 if you look at the font it's pretty clear that it has a large x-height so you can best use a different interline specification, like x\strut qgjyQWT\par \setupinterlinespace[line=1.2\bodyfontsize] x\strut qgjyQWT\par you might even want to change the height:depth ratio (keep in mind that we cannot predict these things, so it always is a matter of tuning I see clear now. Would have been much faster, if I hadn't interrupted this problem by screwing on my new computer (sorry, I couldn't resist). Anyhow I need to rethink my font concept. If I have to setup all these parameters, the simple \definefont isn't sufficient anymore. Probably an external defined \setup will do best. Thanks to all of you who helped me with this problem, also for your patience :) Best wishes, Peter - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___ ___ 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] layout parameter testing
On Thu, Nov 13, 2008 at 9:48 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Am 13.11.2008 um 20:52 schrieb Alan STONE: Hi, With \definelayout[myLayout][...], how do you test whether one of its parameters has a certain value, is greater than 0, etc... ? \definelayout [mylayout] [backspace=3cm, width=12cm] \starttext \doifdimensionelse{\namedlayoutparameter{mylayout}{width}} % width could be 'fit' {\ifdim\namedlayoutparameter{mylayout}{width}10cm ... \else ... \fi} {\processaction [\namedlayoutparameter{mylayout}{width}] [fit=..., unknown=...]} Re: http://wiki.contextgarden.net/System_Macros/Action_Processing What is 'fit' ? \stoptext Wolfgang Alan ___ 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] layout parameter testing
Am 14.11.2008 um 15:06 schrieb Alan STONE: On Thu, Nov 13, 2008 at 9:48 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: Am 13.11.2008 um 20:52 schrieb Alan STONE: Hi, With \definelayout[myLayout][...], how do you test whether one of its parameters has a certain value, is greater than 0, etc... ? \definelayout [mylayout] [backspace=3cm, width=12cm] \starttext \doifdimensionelse{\namedlayoutparameter{mylayout}{width}} % width could be 'fit' {\ifdim\namedlayoutparameter{mylayout}{width}10cm ... \else ... \fi} {\processaction [\namedlayoutparameter{mylayout}{width}] [fit=..., unknown=...]} \stoptext Re: http://wiki.contextgarden.net/System_Macros/Action_Processing What is 'fit' ? You could set the the width of the textarea in three different ways: 1) as absolute value, 2) as remaining space between backspace and cutspace (useful in presentations) and 3) as remaining space between equal margins. \definelayout[1][backspace=4cm,width=12cm] \definelayout[2][backspace=5cm,cutspace=7cm,width=fit] \definelayout[3][backspace=3cm,width=middle] \showframe \starttext \dorecurse{3} {\starttabulate \NC backspace \EQ \PtToCm\backspace \NC\NR \NC textwidth \EQ \PtToCm\textwidth \NC\NR \NC cutspace \EQ \PtToCm\cutspace \NC\NR \stoptabulate \page} \stoptext Regards, Wolfgang ___ 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] Kerning
Bart C. Wise wrote: I tried the above code and it failed. I looked around on the ConTeXt site and the web in general. It seems like a \defineproperty[stretch] needs to be declared, but I can't find it anywhere. You'll have to excuse my ignorance, but will you be explicit on how to use the \startproperty[stretch] stretch \stopproperty. hm, something is missing in the mkii file \unprotect \definepropertyhandler \v!stretch{0} \protect (you can also tune the 'normal effect') consider all this a hack, since tex does not know about the right dimensions in mkiv there's \start \dosetstretch{.25em} \setuptolerance[tolerant,stretch] \input tufte \endgraf \stop \start \dosetstretch{.5em} effe flink doorfietsen \stop (not yet interfaced but it should work) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] How to box \useMPgraphic?
I'd like to insert a little MetaPost square into the running text and properly align it vertically. So I tried: --- \startuseMPgraphic{square} draw unitsquare scaled StrutHeight; \stopuseMPgraphic \starttext I want a square \raisebox{-\strutdepth}{\useMPgraphic{square}} in my running text. \stoptext --- Unfortunately, to no avail. TeX seems to be asking for some boxed content, so I tried to wrap the figure inclusion into a box: \hbox{\useMPgraphic{square}}. It doesn't solve the problem either. \inframed[frame=off]{\useMPgraphic{square}} Thanks! So is this the preferred command for all (horizontal) boxing related tasks in ConTeXt (over hbox)? Oliver ___ 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] ansi codes
On Oct 1, 2008, at 10:00 PM, Hans Hagen wrote: lesser geeks loom in s-fnt-10.tex -) Hans Hi Hans, the file s-fnt-10.lua needs to be added to the distribution. Best Thomas function fonts.otf.show_all() local tfmdata = fonts.tfm.id[font.current()] if tfmdata and tfmdata.shared then local otfdata = tfmdata.shared.otfdata if otfdata and otfdata.luatex then local unicodes = otfdata.luatex.unicodes tex.sprint(tex.ctxcatcodes,string.format(\\starttabulate[| l|r|c|])) for i, name in ipairs(table.sortedkeys(unicodes)) do local unicode = unicodes[name] if unicode = 0 then tex.sprint(tex.ctxcatcodes,string.format(\\NC %s \ \NC %s \\NC \\char%s \\NC\\NR,name,unicode,unicode)) end end tex.sprint(tex.ctxcatcodes,string.format(\\stoptabulate)) end end end function fonts.show_all() local tfmdata = fonts.tfm.id[font.current()] if tfmdata and tfmdata.shared then local chars = tfmdata.characters tex.sprint(tex.ctxcatcodes,string.format(\\starttabulate[|l|r| r|c|])) for k, v in ipairs(table.sortedkeys(chars)) do tex.sprint(tex.ctxcatcodes,string.format(\\NC %s\\NC %s\ \NC \\char%s\\NC %s\\NC\\NR,chars[v].name or unknown,v,v,chars[v].index)) end tex.sprint(tex.ctxcatcodes,string.format(\\stoptabulate)) end end ___ 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] How to box \useMPgraphic?
Am 13.11.2008 um 18:14 schrieb Wolfgang Schuster: Am 13.11.2008 um 17:18 schrieb Oliver Buerschaper: Hello all, I'd like to insert a little MetaPost square into the running text and properly align it vertically. So I tried: --- \startuseMPgraphic{square} draw unitsquare scaled StrutHeight; \stopuseMPgraphic \starttext I want a square \raisebox{-\strutdepth}{\useMPgraphic{square}} in my running text. I want a square \raisebox{-.5\strutdp}\hbox{\useMPgraphic{square}} in my running text. Thanks! I was close: if I had only left out the outer braces in {\hbox{\useMPgraphic{square}}} ... Oliver ___ 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] debugging
Another debugging question: how do you return the filename of the file being compiled ? -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2008.56.06 19:11 MKIV fmt: 2008.11.10 int: english/english * Ubuntu 8.04 Hardy Heron ___ 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] Feature request: linespacing in (foot)notes
On Fri, 14 Nov 2008, Wolfgang Schuster wrote: Hi, I try to change the linedistance in my footnotes but this is a pain with the current interface, I slightly modified the \setnotebodyfont macro and hope this could also be done in core-not. You can also exploit the before key for this. http://archive.contextgarden.net/message/20070314.020258.3501cc05.en.html \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[\noteparameter\c!bodyfont]% \setuptolerance[\noteparameter\c!tolerance]% \setupalign[\noteparameter\c!align]% \noteparameter\c!commands} % - new I would suggest using setups key rather than commands. In fact, I wish all commands had a setup=... key. Tweaking the before key is not always convinient. Aditya ___ 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] no en dash with otf fonts
On Fri, Nov 14, 2008 at 3:28 AM, Hans Hagen [EMAIL PROTECTED] wrote: luigi scarso wrote: On Fri, Nov 14, 2008 at 6:04 AM, Yi Zhang [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I'm using some otf fonts but '--' does not produce the en dash. How can I get over this problem? Thanks, what fonts ? did you specify tlig=yes ? (btw, there are fonts with multiple dashes and hyphens (multiple unicode points for the same glyph) and to some extend - + - with - being one or the other works ok) Hi all, tlig works! Thanks so much for all the replies! -- Yi ___ 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] define command
On Fri, 14 Nov 2008, Alan STONE wrote: Hi, For example \define\somemacro[3]{...} gets invoked with \somemacro{#1}{#2}{#3} How do you get rid of those repeating pesky curly brackets and invoke a user defined macro with \somemacro{#1,#2,#3} instead ? :O) Others have replied how to define this if you want arbitrary number of parameters. But if you want something similar to \somemacro#1#2#3 you can use (the is some extra book-keeing because you want {..} as delimiters. Which means you either change catcodes, or do this shuffling around of arguments) \def\somemacro#1% {\dosomemaco[#1]} \def\dosomemacro[#1,#2,#3]% {whatever you want the macro to be} Aditya ___ 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] debugging
On Fri, 14 Nov 2008, Alan STONE wrote: Another debugging question: how do you return the filename of the file being compiled ? \jobname There is also \currentproject \currentproduct \currentenvironment \currentcomponent Aditya ___ 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] no en dash with otf fonts
On Fri, 14 Nov 2008, Yi Zhang wrote: Hi, I'm using some otf fonts but '--' does not produce the en dash. How can I get over this problem? Thanks, Do you have feature=default in your typescripts? Aditya ___ 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] Feature request: linespacing in (foot)notes
Am 14.11.2008 um 17:07 schrieb Aditya Mahajan: On Fri, 14 Nov 2008, Wolfgang Schuster wrote: Hi, I try to change the linedistance in my footnotes but this is a pain with the current interface, I slightly modified the \setnotebodyfont macro and hope this could also be done in core-not. You can also exploit the before key for this. http://archive.contextgarden.net/message/20070314.020258.3501cc05.en.html I already tried the before key but it comes to early and \restoreglobalbodyfont cancels the setting. I tried also \setupbodyfontenvironment but I don't want this because I could have also normal running text in the same size as the footnote but the linedistance need to be bigger. \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[\noteparameter\c!bodyfont]% \setuptolerance[\noteparameter\c!tolerance]% \setupalign[\noteparameter\c!align]% \noteparameter\c!commands} % - new I would suggest using setups key rather than commands. In fact, I wish all commands had a setup=... key. Tweaking the before key is not always convinient. I don't care if the key is commands, setups, inbetween ... as long as it possible to change the linedistance I'm happy but something need to be done and I mean now and not in a few months/years, we live long enough with this restriction. Wolfgang ___ 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] How to box \useMPgraphic?
Oliver Buerschaper wrote: So is this the preferred command for all (horizontal) boxing related tasks in ConTeXt (over hbox)? if you want to position yes .. howeler, take a look in supp-box for more low level stuff Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] How to produce two side-by-side boxes
Hi, How can I produce two side-by-side boxes, one flushed to the left and the other to the right? Thanks, -- Yi ___ 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] Problems with: \completepublications in index
I just want the bibliography in index with A, and not with a number. Here the example that should be work but it doesn't: i can't see the bibliography list in bibliography chapter. why? and if i comment %\startappendices %\stopappendices it works but i have not correct numbering in index! \enableregime [utf] \mainlanguage [it] \usemodule[bib] \setupheadtext[it][pubs={Bibliografia}] \setupbibtex [database=PaesaggioSonoro, sort=author] \starttext \title {Indice} \placecontent \startbodymatter \chapter{first} \cite[LoValle_AudioMultimedia] \chapter{second} \cite[SaggiEcoMusica] \chapter{3} \stopbodymatter \startappendices \chapter{Biblio} \placepublications \stopappendices \stoptext Thanks for your work. Best regards Mattia --- Ven 14/11/08, Wolfgang Schuster [EMAIL PROTECTED] ha scritto: Da: Wolfgang Schuster [EMAIL PROTECTED] Oggetto: Re: [NTG-context] Problems with: \completepublications in index A: [EMAIL PROTECTED], mailing list for ConTeXt users ntg-context@ntg.nl Data: Venerdì 14 novembre 2008, 11:58 Am 14.11.2008 um 11:50 schrieb mattia schirosa: Hi, i try to put my bibliography in index and in end of the book. So: -it works only with \completepublications, but i have no reference in index What do you want in index? - if i call a chapter{Bibliography} and then i call the bibliography with \placepublications, it doesn't work, context don't make me see the biblio in pdf. - if i comment %\startappendices %\stopappendices it works but i have not correct numbering in index! There is a bug? \stopbodymatter \startappendices %\chapter{Bibliografia} NO WORKING with \startappendices \completepublications %\placepublications NO WORKING with \stopappendices \stopappendices Send a complete example. Wolfgang Unisciti alla community di Io fotografo e video, il nuovo corso di fotografia di Gazzetta dello sport: http://www.flickr.com/groups/iofotografoevideo provabib.pdf Description: application/applefile provabib(withcomment).pdf Description: application/applefile ___ 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] catcode change in macros
Hi, I make in a module the comment sign a simple letter to pass number formats to a lua function and want to know if should use another (better) way to change the catodes. \def\ax{ax} \bgroup \catcode`\%=11 \catcode`\:=14 \gdef\setupaxis {\catcode`\%=11 \catcode`\:=14 \dodoubleargument\dosetupaxis} \gdef\dosetupaxis[#1][#2]: {\catcode`\%=11 \catcode`\:=14 \def\docommand##1{\getparameters[\ax##1][#2]}: \catcode`\%=14 \catcode`\:=12 \processcommalist[#1]\docommand} \egroup \setupaxis [\c!x,\c!y] [\c!format=%d] Regards, Wolfgang ___ 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] catcode change in macros
On Fri, 14 Nov 2008, Wolfgang Schuster wrote: Hi, I make in a module the comment sign a simple letter to pass number formats to a lua function and want to know if should use another (better) way to change the catodes. I think it will be cleaner to use catcode tables. See syst-cat.mkiv. Aditya ___ 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] catcode change in macros
On Fri, 14 Nov 2008, Aditya Mahajan wrote: On Fri, 14 Nov 2008, Wolfgang Schuster wrote: Hi, I make in a module the comment sign a simple letter to pass number formats to a lua function and want to know if should use another (better) way to change the catodes. I think it will be cleaner to use catcode tables. See syst-cat.mkiv. and syst-cat.tex Aditya ___ 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] catcode change in macros
Am 14.11.2008 um 19:37 schrieb Aditya Mahajan: On Fri, 14 Nov 2008, Aditya Mahajan wrote: On Fri, 14 Nov 2008, Wolfgang Schuster wrote: Hi, I make in a module the comment sign a simple letter to pass number formats to a lua function and want to know if should use another (better) way to change the catodes. I think it will be cleaner to use catcode tables. See syst-cat.mkiv. and syst-cat.tex I already know them but you're right, it's better to use them and avoid low level code. P.S. Should I now send all my questions to you or still use the mailing list :) Thanks and regards, Wolfgang ___ 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] How to randomize points in a given area?
Hi, Hans, In your metapost graphics pdf document, I can find a card which randomizes points in a path of Christmas tree, how to do that? thanks. Yue Wang ___ 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 ___