Re: [NTG-context] Problem with MkIV and tikz
On Wed, Aug 27, 2008 at 9:27 PM, Marcin Borkowski [EMAIL PROTECTED] wrote: Hi, I've got yet another problem with ConTeXt... I was using MkII and \usemodule[tikz]. Everything went smoothly until I tried MkIV; it can't find the tikz module. What I did was: 1. I installed the ConTeXt minimals. 2. I downloaded pgf from sourceforge and unpacked it somewhere in the context tree. 3. I ran texhash so that the file database got rebuilt. 4. For MkII, this was enough. 5. But then, I wanted to use an earlier advice on fonts in MkIV and switched to platino (=pagella). 6. Although pagella works fine, ConTeXt no longer finds the tikz module. Does anyone have any idea what I am doing wrong? MkIV use it's own file database, you can update it with luatools --generate. 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] Some layout questions
Taco Hoekwater wrote: Ulrich Dirr wrote: After defining a typescript (see comlete example attached) I want to use protrusion and expansion (I've followed the description in co-typography.pdf): \definetypeface[kievit][rm][sans][kievit][default][features=hz] \definetypeface[kievit][ss][sans][kievit][default][features=hz] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02] \usetypescript[kievit] \setupbodyfont[kievit,ss,10pt] \definefontfeature[default][default] [protrusion=pure,expansion=quality,mode=node,script=latn] This line should read: \definefontfeature[hz][default] [prot Afaics, everything else looks ok. But has no effect :-( Best regards, Ulrich ___ 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 itemization, continued
On Wed, Aug 27, 2008 at 11:18 PM, Marcin Borkowski [EMAIL PROTECTED] wrote: Hi, it's me again... I managed to finish my first serious ConTeXt project (in fact, it was a two-page math test for my wife, who teaches maths;)). But I encountered quite a few problems with itemizations. To sum it up, I've prepared a minimal sample file illustrating them. Here it is: = cut here = \def\testitemize#1#2#3{{\bf #1}\par \startitemize #2 \item plplplpl \item plplplpl \startitemize #3 \item plplplpl \item plplplpl \item plplplpl \item plplplpl \item plplplpl \stopitemize \item plplplpl \stopitemize {\bf Blah, blah.} \page} \starttext \testitemize{Default values. Works fine.} {}{} \testitemize{Different numbering. Results in overfull hboxes---???} {}{[a][left=(,right=),stopper=]} Use [a,broad][...] or [a][width=...,...] for the inner list. \testitemize{Outer one packed. Inner one gets also packed---is this ok???} {[packed]}{} Yes but you could use [unpacked] for the inner list. \testitemize{Inner one packed. Works fine.} {}{[packed]} \testitemize{Both packed. Works fine.} {[packed]}{[packed]} \testitemize{Inner one joinedup. Works as packed---???} {}{[joinedup]} \testitemize{Inner one packed and joinedup. Works as packed---???} {}{[packed,joinedup]} \testitemize{Outer one joinedup. Does this imply packed?} {[joinedup]}{} \testitemize{Inner one twocolumn. Why is this packed, too?} {}{[columns]} \testitemize{Inner one 2-col and joinedup. What about the space {\em after} the inner one?} {}{[joinedup,columns]} \testitemize{Outer one twocolumn. packed implied???} {[columns]}{} \testitemize{Outer one 2-col. and joinedup. packed implied (?), apart from that fine.} {[joinedup,columns]}{} \stoptext = cut here = Most cases are wrong (or at least strange)---each page with at least one question mark is something I can't understand. Which ones are bugs and which ones are features? What to do to overcome these problems? Also, I've noticed that the [intro] option does not _prohibit_ page break---is that ok? The manual (or wiki, I can't remember) says it _discourages_ it---but shouldn't it prohibit it completely? And one more: what is the difference between \page[yes] and \page[makeup]? I didn't notice any. Hope you don't get fed up with me, folks... I promise to put some answers on the wiki soon (during the next few days). Maybe I'll even post a complete working file as a sample... I hope that all my questions (and your answers;)) will lead to a better typesetting tool... 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] Problems with itemization, continued
Dnia Thu, Aug 28, 2008 at 08:56:54AM +0200, Wolfgang Schuster napisa#322;(a): On Wed, Aug 27, 2008 at 11:18 PM, Marcin Borkowski [EMAIL PROTECTED] wrote: Hi, it's me again... I managed to finish my first serious ConTeXt project (in fact, it was a two-page math test for my wife, who teaches maths;)). But I encountered quite a few problems with itemizations. To sum it up, I've prepared a minimal sample file illustrating them. Here it is: = cut here = \def\testitemize#1#2#3{{\bf #1}\par \startitemize #2 \item plplplpl \item plplplpl \startitemize #3 \item plplplpl \item plplplpl \item plplplpl \item plplplpl \item plplplpl \stopitemize \item plplplpl \stopitemize {\bf Blah, blah.} \page} \starttext \testitemize{Different numbering. Results in overfull hboxes---???} {}{[a][left=(,right=),stopper=]} Use [a,broad][...] or [a][width=...,...] for the inner list. Thanks, it works - but still, for me it's a workaround; what if I don't want it to be broad or to fiddle with widths (I didn't check the width idea, I guess it's about explicitly giving the width of the (a) etc.; but even without broad/width I'd expect it to work.) (Not that I'm unhappy with ConTeXt in general, but as a user I'd like it to be as good and usable as possible...) \testitemize{Outer one packed. Inner one gets also packed---is this ok???} {[packed]}{} Yes but you could use [unpacked] for the inner list. Thanks, it also works. It isn't documented anywhere, I'm afraid - I'll try to post this to the wiki. The other ones are still mysterious to me. Greets -- Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) ___ 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] mswincontext.zip
I followed these directions exactly and scite is working out of the box on mswincontext.zip. To remove RubyGems from a single Ruby installation, from the site_ruby/1.8 directory of that installation, remove: * rubygems.rb (file) * rubygems (directory) If you do not have RubyGems installed in other Ruby installation directories, you can also remove the following files from whatever command directory is listed in your PATH: * gem * gemwhich * gem_server * gem_mirror * generate_yaml_index.rb And if you are removing RubyGems completely, don't forget to remove the RUBYOPT environment variable from your environment. Without actually trying it, I think that will do it. D. I also added import metapost in scite, but not all of the menu items on the tool menu work, in fact most of them don't work. Ctrl+6 doesn't open the console, I can't get gsview to work instead of gv, etc. D. On Aug 28, 2008, at 12:35 AM, Hans Hagen wrote: [EMAIL PROTECTED] wrote: I found all my gems problems were coming from an environment variable which pointed to rubygems. After I deleted it all the probs went away. You will nedd to search using set as I have forgotten the variable ah, if we know that variable we can delete it in the startup script - 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] setting mode in ctx-file
Peter Münster wrote: Hello, How can I set a mode in a ctx-file? I would like to pass such a file to context --ctx=file ... If further modes are passed with --mode=..., these modes should not replace the mode in the ctx-file, but should be added. ?xml version='1.0' standalone='yes'? ctx:job ctx:messagesome project/ctx:message ctx:preprocess/ ctx:flags ctx:flagtexengine=luatex/ctx:flag ctx:flaginterface=en/ctx:flag /ctx:flags ctx:process ctx:resources ctx:environmentsomestyle.tex/ctx:environment ctx:modeproofing/ctx:mode /ctx:resources /ctx:process ctx:postprocess/ /ctx:job - 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] Some Progress on Installing mswincontext.zip
On Wed, Aug 27, 2008 at 8:01 PM, David Arnold wrote: I tried to add metapost.properties to the global with import metapost. I can Build a file, but the Go command does not work because I don't have gv installed. So I opened metapost.properties and tried changing the gv command to gsview32 (and even tried c:\Program Files\ghostgum\gsview\gsview32.exe), but neither worked. Any suggestions how I can get the go command to work? I don't know much about windows, but zips don't install gs for you. I usually unzipped both gs and gv (gsview32) to some folder and added it to path manually. Mojca ___ 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] Still confused about \setuplayout
There is a context reference project, you can help to document it~ On Thu, Aug 28, 2008 at 4:15 PM, Alan Stone [EMAIL PROTECTED] wrote: Do you, or somebody else, know of any such other basic and precious documents which should be included in the main manual, instead of (for whatever reason) hidden in some subdomain or subdirectory ? Best, Alan On Wed, Aug 27, 2008 at 5:53 PM, Patrick Gundlach [EMAIL PROTECTED] wrote: Hi, Meanwhile found the underneath document, which seems to be the most corresponding ( though incomplete compared to pg 24 of the main manual ) Shows a page layout in half size http://levana.de/context/layout/testlay.pdf made with http://modules.contextgarden.net/t-layout Patrick -- ConTeXt wiki and more: 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 ___ ___ 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] wiki and MkIV
Hello! Is it possible to use on the wiki something like context source=yes ... some ConTeXt code ... /context with MkIV support? Thanks in advance -- Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) ___ 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] wiki and MkIV
Hi, Is it possible to use on the wiki something like context source=yes ... some ConTeXt code ... /context with MkIV support? Not at the moment. Is this a strong feature request? Patrick -- ConTeXt wiki and more: 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] Some layout questions
On Thu, Aug 28, 2008 at 8:43 AM, Ulrich Dirr [EMAIL PROTECTED] wrote: Taco Hoekwater wrote: Ulrich Dirr wrote: After defining a typescript (see comlete example attached) I want to use protrusion and expansion (I've followed the description in co-typography.pdf): \definetypeface[kievit][rm][sans][kievit][default][features=hz] \definetypeface[kievit][ss][sans][kievit][default][features=hz] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02] \usetypescript[kievit] \setupbodyfont[kievit,ss,10pt] \definefontfeature[default][default] [protrusion=pure,expansion=quality,mode=node,script=latn] This line should read: \definefontfeature[hz][default] [prot Afaics, everything else looks ok. But has no effect :-( \definefontfeature[latin-default] [default] [script=latn,expansion=quality,protrusion=pure] \definefontfeature[latin-smallcaps][smallcaps][script=latn,expansion=quality,protrusion=pure] \definefontfeature[latin-oldstyle] [oldstyle] [script=latn,expansion=quality,protrusion=pure] \starttypescript [sans] [kievit] \definefontsynonym [KievitProRegular] [name:KievitPro-Regular] [features=latin-default] \definefontsynonym [KievitProMedium] [name:KievitPro-Medium] [features=latin-default] \definefontsynonym [KievitProExtraBold] [name:KievitPro-ExtraBold] [features=latin-default] \definefontsynonym [KievitProItalic] [name:KievitPro-Italic] [features=latin-default] \definefontsynonym [KievitProMediumItalic] [name:KievitPro-MediumItalic][features=latin-default] \definefontsynonym [KievitProExtraBoldItalic] [name:KievitPro-ExtraBoldItalic] [features=latin-default] \stoptypescript \starttypescript [sans] [kievit] \setups[font:fallback:sans] \definefontsynonym [Sans] [KievitProRegular] [features=latin-default] \definefontsynonym [SansBold] [KievitProMedium] [features=latin-default] \definefontsynonym [SansItalic] [KievitProItalic] [features=latin-default] \definefontsynonym [SansBoldItalic] [KievitProMediumItalic] [features=latin-default] \definefontsynonym [SansCaps] [Sans] [features=latin-smallcaps] \stoptypescript \starttypescript [kieviet] \definetypeface [\typescriptone] [rm] [sans] [\typescriptone] [default] \definetypeface [\typescriptone] [ss] [sans] [\typescriptone] [default] \definetypeface [\typescriptone] [tt] [mono] [modern] [default] [rscale=1.12] \definetypeface [\typescriptone] [mm] [math] [iwona] [default] [rscale=1.02] \stoptypescript \usetypescript[kievit] \setupbodyfont[kievit,ss,10pt] \enableadjusting \enableprotruding 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] Reorganization of the main page
in fact i like the logo on the photo. It's cool On Wed, Aug 27, 2008 at 7:30 PM, Mojca Miklavec [EMAIL PROTECTED] wrote: Another request: can the photo please go to blog rather than being on the first page of the wiki? (It's been fun, but I feel that promoting Union on the first page is not the best idea :) Mojca ___ 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] Some layout questions
Hi Ulrich, Ulrich Dirr wrote: Afaics, everything else looks ok. But has no effect :-( I was apparently still sleeping when I wrote that. Here is what works for me: % engine=luatex \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definetypeface[kievit][rm][serif][times][default] \definetypeface[kievit][ss][serif][times][default] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02] \setupbodyfont[kievit,ss,10pt] \starttext \showframe \setupalign[hanging] \input tufte \stoptext % I used [serif][times] instead of [sans][kievit] because I don't have the font, but that should not matter. Things to note: * The relative ordering of commands matters, your \definefontfeature was too late. I'll try to document that in the manual. * You only need \usetypescript[xxx] if the \definetypeface commands are actually inside of a \starttypescript[xxx] block. * It turns out I could not use [features=hz] because at a lower level [times] already sets up [features=default], and that setting wins over the high-level one. But in your new setup for kievit, you could also do it this way: \definefontfeature [hz][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definetypeface[kievit][rm][serif][times][default][features=hz] just make sure not to attach any [features=...] to the \definefontsynonym commands. 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] 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 ___
Re: [NTG-context] context meeting
will www.river-valley.tv broadcast it? btw, I want to see all the presentations, but there are only a few on context garden:( On Thu, Aug 28, 2008 at 5:01 PM, Giuseppe Bilotta [EMAIL PROTECTED] wrote: 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 ___ ___ 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 meeting
will www.river-valley.tv broadcast it? btw, I want to see all the presentations, but there are only a few on context garden:( It will be updated (with the presentations we have, obviously). Arthur ___ 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 meeting
Giuseppe Bilotta wrote: I probably forget a few things You mean, like, git? right, how could i forget! Hans ps. and of course all those sessions regarding the right pronouciations of italian names -) - 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] Font questions once again...
On Thu, Aug 28, 2008 at 11:44 AM, Marcin Borkowski [EMAIL PROTECTED] wrote: Dnia Mon, Aug 25, 2008 at 11:05:18PM +0200, Thomas A. Schmitz napisa#322;(a): On Aug 25, 2008, at 10:46 PM, Marcin Borkowski wrote: * Is TeX Gyre support already working in MkIV? Yes * The page about Minimals on the wiki mentions LM, Antykwa Torunska, Iwona, Kurier, TeX Gyre, ams. Does this means they are available there? (And what about Antykwa Poltawskiego...?) Yes. Maybe you can investigate yourself about Antykwa Poltawskiego * How do I switch to any of these fonts (I mean for the whole document)? \usetypescriptfile[type-otf] \usetypescript[times] \setupbodyfont[times,12pt] for Termes, or palatino for Pagella, or... Just look at $TEXMF/tex/ context/base/type-otf.tex * How do I (globally) change the size of the font? \setupbodyfont[times,11pt] or 14pt or 9pt or... Thomas Thanks again... I tried to put some info on the wiki (as promised): http://wiki.contextgarden.net/A_Beginner's_Guide_to_Using_Fonts_in_Mark_IV However, I had serious problems with a few fonts. After skimming through type-otf.tex I thought these would work, but no - they don't... (See the above page for which fonts generate problems.) Also, please check whether the page I've written is correct, especially the last paragraph... And one more problem, just out of curiosity: is \usetypescriptfile[type-otf] really necessary? Why is it not the default (at least in MkIV)? It is default for XeTeX and LuaTeX. 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] Still confused about \setuplayout
There is a context reference project, you can help to document it~ I concur. This would be immensely more useful than contributing huge threads and smart-arse remarks to this mailing-list (I especially like the irony of your -- Alan's -- complaints about wasting [your] precious time). Arthur ___ 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] Font questions once again...
Marcin Borkowski wrote: And one more problem, just out of curiosity: is \usetypescriptfile[type-otf] really necessary? Why is it not the default (at least in MkIV)? it is loaded by default - 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] wiki and MkIV
Dnia Thu, Aug 28, 2008 at 10:48:11AM +0200, Patrick Gundlach napisa#322;(a): Hi, Is it possible to use on the wiki something like context source=yes ... some ConTeXt code ... /context with MkIV support? Not at the moment. Is this a strong feature request? Not really - rather something which I would like to be done some day...;) Patrick Greets -- Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) Computer science is no more about computers than astronomy about telescopes. (E. Dijkstra) ___ 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] Some layout questions
Hi Taco, On 2008-08-28 Taco Hoekwater wrote: % engine=luatex \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definetypeface[kievit][rm][serif][times][default] \definetypeface[kievit][ss][serif][times][default] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02] \setupbodyfont[kievit,ss,10pt] \starttext \showframe \setupalign[hanging] \input tufte \stoptext % This works! I used [serif][times] instead of [sans][kievit] because I don't have the font, but that should not matter. Things to note: * The relative ordering of commands matters, your \definefontfeature was too late. I'll try to document that in the manual. * You only need \usetypescript[xxx] if the \definetypeface commands are actually inside of a \starttypescript[xxx] block. * It turns out I could not use [features=hz] because at a lower level [times] already sets up [features=default], and that setting wins over the high-level one. But in your new setup for kievit, you could also do it this way: \definefontfeature [hz][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definetypeface[kievit][rm][serif][times][default][features=hz] just make sure not to attach any [features=...] to the \definefontsynonym commands. Thank you very much for explaining these mysteries. The whole typescript thingy is a strange black box for me ... Interesting is that you instruct me not to use any features in \definefontsynonym -- I had just copied this from the wiki. Then the wiki should be updated ;-) I would like to see on the wiki a real life working example for luatex/mkiv using OpenType pro fonts for roman and sans serif, e.g. MinionPro and MetaPro. Using several font features and languages (e.g. small caps, caps spacing, greek, etc.) This would demystify font handling a lot. Best regards, Ulrich ___ 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] Font questions once again...
Hi Marcin, Wolfgang Schuster wrote: On Thu, Aug 28, 2008 at 11:44 AM, Marcin Borkowski [EMAIL PROTECTED] wrote: Thanks again... I tried to put some info on the wiki (as promised): http://wiki.contextgarden.net/A_Beginner's_Guide_to_Using_Fonts_in_Mark_IV However, I had serious problems with a few fonts. After skimming through type-otf.tex I thought these would work, but no - they don't... (See the above page for which fonts generate problems.) Also, please check whether the page I've written is correct, especially the last paragraph... I have not seen your original post yet, so I am replying to Wolfgang's reply. It seems you have misunderstood the system slightly: the predefined typescripts are given in table 1.7 of co-typography.pdf, the tables in co-fonts.pdf are 'typescript building blocks', and those cannot be used directly, you have to write (at least) a \definetypeface line for those. 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] Some layout questions
Ulrich Dirr wrote: Interesting is that you instruct me not to use any features in \definefontsynonym -- I had just copied this from the wiki. Then the wiki should be updated ;-) Well, the wiki (Wolfgang) is more right than I am. I was trying to shortcut something and then later it became clear that that won't fly. The problem lies with features like smallcaps: these *have* to be defined at the font synonym level. It follows that Wolfgang's solution is better than mine. 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] Patching glyphtounicode.tex directly?
Vasile Gaburici wrote: There are a number of problems with the (global namespace) data in glyphtounicode.tex. Should submit a patch directly for this file, or is there a script somewhere that regenerates it? pdfr-def % comment : generated by mtxrun --script chars --pdf uses data in char-def.lua 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] passing dimensions to metapost
Thomas A. Schmitz wrote: Hi all, cleaning up the code in my module, I run into a very interesting problem. I want to pass a user-defined value to Metapost. Until now, the value scale had to be numeric, and I used it like this: draw fullcircle scaled \MPvar{scale}mm and Metapost was happy, and I was too. Now Aditya made the reasonable suggestion that users should be allowed to input any dimension and not be restricted to mm. Easy enough. However, I also want a fallback just in case they input a number, in that case, I want to fall back to mm as a default. So I tried (after Taco's excellent explanation on the wiki): \expandafter\processaction\expandafter[\CVERscale]% [\v!unknown={\doifdimensionelse% {\CVERscale}% {\setupMPvariables[CircleSomething][scale=\CVERscale]}% {\doifnumberelse% {\CVERscale}% {\newdimen\CIscale \global\CIscale=\CVERscale mm {\setupMPvariables[CircleSomething][scale=\the\CIscale]}}% {\setupMPvariables[CircleSomething][scale=10mm\relax]% \message{Please give a proper value for the scale argument!, \v!default={\setupMPvariables[CircleSomething][scale=10mm \relax]}] So what I want: first check if \CVERscale is a dimension; if it is, assign it to the scale parameter. If it isn't, check if it is a number; if this is the case, append the unit mm to it and put it into a dimension register. If it isn't a number either, make the value sufficiently absurd for the user to realize and write a message to the terminal. This is all fine and dandy and works, sort of: it works perfectly with dimensions, but when I try with a number as input, it doesn't fall back to the unit mm, but to pt, AFAICS. That's nice too, but I have no clue why, and I would prefer mm. If it helps, I can try to give you a minimal test file tomorrow, but maybe somebody spots what I'm doing wrong? (I tried both with mkii and mkiv, and always get the same result.) \startluacode document.mymodule = document.mymodule or { } function document.mymodule.checkdimen(str) return (str:find(%a%a$) and str) or (str .. mm) end \stopluacode \ctxlua{document.mymodule.checkdimen(#1)} or more fancy: function document.mymodule.checkdimen(str) if not str:find(%a%a$) then str = str .. mm ctx.writestatus(mymodule,you forgot a dimension unit, so I made it up for you: %s,str) end return str end for mkii you can use \doifdimensionelse (it reminds me to implement that in mkiv) - 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] paragraphs in columns query
It has been more than 15 hours since I last sent this , so I am trying again. Apologies for any duplication. A. ** Hans— Here is the text that produces the problem on the wiki (pdfTeX/MKII option). \starttext adeo aberratum est, ut C. Caesar pontifex maximus suo III et M.\ Aemilii Lepidi consulatu, quo retro delictum corrigeret, duos menses intercalarios dierum LXVII in mensem Novembrem et Decembrem interponeret, cum iam mense Februario dies III et XX intercalasset, faceretque eum annum dierum XLV, simul providens in futurum, ne iterum erraretur: nam intercalario mense sublato annum civilem ad solis cursum formavit. Itaque diebus CCCLV addidit decem, quos per septem menses, qui dies undetricenos habebant, ita discriberet, ut Januario et Sextili et Decembri bini accederent, ceteris singuli; eosque dies extremis partibus mensium adposuit, ne scilicet religiones sui cuiusque mensis a loco summoverentur. Quapropter nunc cum in septem mensibus dies singuli et triceni sint, quattuor tamen illi ita primitus instituti eo dinoscuntur, quod nonas habent septimanas, ceteri tres omnes alii reliqui quintanas.~[{\em De die nat}.\ 20.8||10] \starttabulate[|p|p|] \NC \noindent Things had deviated so much that Gaius Caesar, as \hbox{\em pontifex} {\em maximus} in his third consulship and that of M.\ Aemilius Lepi\-dus, in order to correct the past mistake, inserted between the months of November and December two intercalary months of 67 days, since he had already intercalated 23 days in the month of February, and made that a year of 445 days, at the same time taking care that the mistake would not be repeated in future; for with the intercalary month done away with, he shaped the civil year to the course of the sun. And so to the 355 days he added 10, which he distributed through the seven months which had 29 days as follows: two days were added to January, Sextilis, and December, and one to the others; and he placed these days at the ends of the months, evidently so that the religious ceremonies of each month might not be moved from their place. Therefore now, although there are 31 days in seven months, nevertheless four are distinguished by this feature of the original tradition, that they have the Nones on the seventh day, while the other three remaining ones have them on the fifth. \NC \noindent Things got so bad that Julius Caesar, when he was {\em pontifex max\-imus}, during his third consulship, which he shared with M.\ Aemilius Lepidus, in order to correct the accumlated errors, had to insert two intercalary months with a total of 67 days between November and December, even though he had already made the usual addition of 23 days in February, adding up to a total of 445 days for that year. At the same time he made sure that the problem would not return in the future, for he removed the additional month from the calendar and made the civil year conform to the course of the sun. He added 10 days to the old 355, dividing them up among the seven months that had 29 days. January, Sextilis [August], and December got two, the others (April, June, September, November) got one. He added these days at the end of each month, so that the religious festivals would not be moved from their usual places in the month. That is why to this day we have seven months with 31 days, but we can recognize the four which were set up in the ancient system by the fact they have the Nones on the seventh day, but the other three long months and all the short months have them on the fifth. [Parker, 47] \NC\NR \stoptabulate Of late my own approach to translation has been consciously to seek to replicate the sentence structures of the original Latin or Greek, however long or compressed or contorted they may seem to our English eyes. The often awkward structures of the original are a window into the minds and mental processes of the ancient (and let us not forget, foreign) writers. Thucydides and Tacitus, for instance, are not particularly easy \quote{reads} in the original, and I personally prefer to allow modern readers to gain a sense of the sometimes difficult structures that they use but which most modern translations attempt to smooth out into something more accessible to our ways of thinking and reading. The more we read like them, I tell myself, the more we may think like them and so ultimately appreciate how they saw the world around them. In a world where most of our students in Classics are devoid of Latin and Greek, exposure to the ancient modes of thought and expression increases in importance. \stoptext You will see that the columns “play nice” with text that follows, but not with text that precedes. Alan On Aug 27, 2008, at 13;06,01 , Hans Hagen wrote: Alan Bowen wrote: Thanks, Hans. I have now tried preliminary text \starttabulate[|p|p|] \NC long
Re: [NTG-context] Font questions once again...
Dnia Thu, Aug 28, 2008 at 11:58:35AM +0200, Hans Hagen napisa#322;(a): Marcin Borkowski wrote: And one more problem, just out of curiosity: is \usetypescriptfile[type-otf] really necessary? Why is it not the default (at least in MkIV)? it is loaded by default Thanks, it's my mistake. -- Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) ___ 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] Patching glyphtounicode.tex directly?
There are a number of problems with the (global namespace) data in glyphtounicode.tex. Should submit a patch directly for this file, or is there a script somewhere that regenerates it? ___ 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] paragraphs in columns query
On Thu, Aug 28, 2008 at 12:38 PM, Alan Bowen [EMAIL PROTECTED] wrote: It has been more than 15 hours since I last sent this , so I am trying again. Apologies for any duplication. A. Read my other mail, I already gave you a working solution! 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] Font questions once again...
Dnia Mon, Aug 25, 2008 at 11:05:18PM +0200, Thomas A. Schmitz napisa#322;(a): On Aug 25, 2008, at 10:46 PM, Marcin Borkowski wrote: * Is TeX Gyre support already working in MkIV? Yes * The page about Minimals on the wiki mentions LM, Antykwa Torunska, Iwona, Kurier, TeX Gyre, ams. Does this means they are available there? (And what about Antykwa Poltawskiego...?) Yes. Maybe you can investigate yourself about Antykwa Poltawskiego * How do I switch to any of these fonts (I mean for the whole document)? \usetypescriptfile[type-otf] \usetypescript[times] \setupbodyfont[times,12pt] for Termes, or palatino for Pagella, or... Just look at $TEXMF/tex/ context/base/type-otf.tex * How do I (globally) change the size of the font? \setupbodyfont[times,11pt] or 14pt or 9pt or... Thomas Thanks again... I tried to put some info on the wiki (as promised): http://wiki.contextgarden.net/A_Beginner's_Guide_to_Using_Fonts_in_Mark_IV However, I had serious problems with a few fonts. After skimming through type-otf.tex I thought these would work, but no - they don't... (See the above page for which fonts generate problems.) Also, please check whether the page I've written is correct, especially the last paragraph... And one more problem, just out of curiosity: is \usetypescriptfile[type-otf] really necessary? Why is it not the default (at least in MkIV)? Greets and thanks in advance (as usual);) -- Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) Computer science is no more about computers than astronomy about telescopes. (E. Dijkstra) ___ 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] Font questions once again...
On Thu, Aug 28, 2008 at 12:49 PM, Marcin Borkowski [EMAIL PROTECTED] wrote: Dnia Thu, Aug 28, 2008 at 12:29:41PM +0200, Taco Hoekwater napisa#322;(a): Hi Marcin, Wolfgang Schuster wrote: On Thu, Aug 28, 2008 at 11:44 AM, Marcin Borkowski [EMAIL PROTECTED] wrote: Thanks again... I tried to put some info on the wiki (as promised): http://wiki.contextgarden.net/A_Beginner's_Guide_to_Using_Fonts_in_Mark_IV However, I had serious problems with a few fonts. After skimming through type-otf.tex I thought these would work, but no - they don't... (See the above page for which fonts generate problems.) Also, please check whether the page I've written is correct, especially the last paragraph... I have not seen your original post yet, so I am replying to Wolfgang's reply. It seems you have misunderstood the system slightly: the predefined typescripts are given in table 1.7 of co-typography.pdf, the tables in co-fonts.pdf are 'typescript building blocks', and those cannot be used directly, you have to write (at least) a \definetypeface line for those. Well, misunderstood is not the right word - it seems I just don't understand it yet... I looked a bit at the type-otf.tex file. At the beginning, it says something like \starttypescriptcollection[examples]. Typescripts from this \start...\stop block work correctly (with the exception of Antykwa Torunska). Typescripts from the outside don't work (with the exception of Heros). Maybe I should mimick these definitions somehow? Still, the cases of Antykwa Torunska and Heros are mysterious to me. % Antykwa Torunska \usetypescript[antykwa-torunska] \setupbodyfont[antykwa] \starttext Antykwa Torunska \stoptext % Heros/Helvetica \usetypescript[helvetica] \setupbodyfont[helvetica,ss] \starttext TeX-Gyre Heros \stoptext The table 1.7 you mentioned is also a bit strange: it mentions palatino as commercial. Pagella is a free Palatino clone. What I was aiming at was: how to (easily) use the fonts shipped with ConTeXt (i.e., the Minimals). I would expect them to be usable out of the box; if they are not, please consider this a bug report/feature request;). In fact, I would expect something like \useptypescript[pagella] \setupbodyfont[pagella] work for the whole collection in the Minimals. (BTW, why is pagella called palatino etc? I guess that some aliases could also be default?) Because it's a Palatino clone. And thanks for the answer - I'm continuosly learning ConTeXt. It seems that it's not as nice and easy as I thought - but I hope that once I start using it, more and more things will clarify. 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] Font questions once again...
Marcin Borkowski wrote: I looked a bit at the type-otf.tex file. At the beginning, it says something like \starttypescriptcollection[examples]. Typescripts from this \start...\stop block work correctly (with the exception of Antykwa Torunska). Typescripts from the outside don't work (with the exception of Heros). The \starttypescriptcollection command is only relevant if \preloadtypescripts is given. If that is not the case, you can forget about it immediately. (and in the other case it is still undocumented, but it should not matter) Maybe I should mimick these definitions somehow? Still, the cases of Antykwa Torunska and Heros are mysterious to me. Answered by Wolfgang. The table 1.7 you mentioned is also a bit strange: it mentions palatino as commercial. You found a bug in the manual, I have corrected the table and uploaded a new version. Please let me know if it makes more sense now. What I was aiming at was: how to (easily) use the fonts shipped with ConTeXt (i.e., the Minimals). I would expect them to be usable out of the box; if they are not, please consider this a bug report/feature request;). In fact, I would expect something like \useptypescript[pagella] \setupbodyfont[pagella] work for the whole collection in the Minimals. The top-level typescripts provided by Hans are only examples. The typeface buildingblocks (from the tables in co-fonts.pdf) are all there, but the combination of those into typescripts (as in the top of type-otf and type-one) is generally left to the user. (BTW, why is pagella called palatino etc? I guess that some aliases could also be default?) answered by Wolfgang 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] paragraphs in columns query
Wolfgang— I apologize for this. There has been an intermittent glitch in my mail service. Some of my recent own posts and the replies have not make it to my box. Anyway, I have now checked the Archive and applied your solution. It works perfectly. Many thanks indeed! Alan On Aug 28, 2008, at 07;15,51 , Wolfgang Schuster wrote: On Thu, Aug 28, 2008 at 12:38 PM, Alan Bowen [EMAIL PROTECTED] wrote: It has been more than 15 hours since I last sent this , so I am trying again. Apologies for any duplication. A. Read my other mail, I already gave you a working solution! 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 ___ ___ 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] paragraphs in columns query
Alan Bowen wrote: It has been more than 15 hours since I last sent this , so I am trying hm, we need some time for sleeping as well again. Apologies for any duplication. A. \setuptabulate[split=yes] it's auto by default which is kind of wrong (i'll fix it) - 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] \placefigure not centering
Marcin Borkowski wrote: Dnia Wed, Aug 27, 2008 at 11:14:26AM +0200, Marcin Borkowski napisa#322;(a): Why this does not center the figure horizontally? What should I do to center it? \placefigure{none}{ \starttikzpicture[scale=0.3] \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle; \stoptikzpicture } I discovered that using combinations with 1*1 helps, but this is a dirty trick;). (Also, none as a label does not work with combinations - is it a bug or a feature?) OK, so I'm answering myself. The problem is (I guess so at least) that the second parameter somehow gets typeset as a paragraph - that is, with full paragraph's width (=width of the whole column). Since nothing is said about centering, it is flush left. This helps: \placefigure{none}{\hbox{ \starttikzpicture[scale=0.5] \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle; \stoptikzpicture }} Maybe it's not very clean, but it seems to work. If anyone has a cleaner (more ConTeXt-way-ish solution), I'd be thankful for a hint. You could probably use \framed[frame=off]{} instead of \hbox{} 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] passing dimensions to metapost
On Aug 28, 2008, at 9:45 AM, Hans Hagen wrote: Hans, thanks a lot for your reply. Amazing - the lua code is so simple that even I can understand it! I'm certain to use it later; for the time being, I want to remain compatible for mkii and XeTeX as well. \startluacode document.mymodule = document.mymodule or { } function document.mymodule.checkdimen(str) return (str:find(%a%a$) and str) or (str .. mm) end \stopluacode \ctxlua{document.mymodule.checkdimen(#1)} or more fancy: function document.mymodule.checkdimen(str) if not str:find(%a%a$) then str = str .. mm ctx.writestatus(mymodule,you forgot a dimension unit, so I made it up for you: %s,str) end return str end for mkii you can use \doifdimensionelse (it reminds me to implement that in mkiv) Hey, I WAS using \doifdimensionelse and \doifnumberelse! :-) And it appears to be working in mkiv as well! I found out the error in my code (it was too complex, and I was overwriting a variable with the same name; it looks like Metapost assigns sp as default unit to \MPvar). Problem solved, but it took me half a day... All best Thomas ___ 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] Patching glyphtounicode.tex directly?
On Thu, Aug 28, 2008 at 3:02 PM, Taco Hoekwater [EMAIL PROTECTED] wrote: Vasile Gaburici wrote: There are a number of problems with the (global namespace) data in glyphtounicode.tex. Should submit a patch directly for this file, or is there a script somewhere that regenerates it? As Hans said, context uses pdfr-def.tex, not glyphtounicode.tex (perhaps that is used by latex or plain?) Yes, that is the case. 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] paragraphs in columns query
On Aug 28, 2008, at 08;02,41 , Hans Hagen wrote: Alan Bowen wrote: It has been more than 15 hours since I last sent this , so I am trying hm, we need some time for sleeping as well My concern here was that I had not yet received a copy of my original post (never did get one). Not impatience with any delay in reply: I am fully appreciative of, and most grateful for, the work by you, Taco, Wolfgang, and other in developing ConTeXt, to say nothing of your generosity in answering my typically basic questions. Very best, Alan again. Apologies for any duplication. A. \setuptabulate[split=yes] . it's auto by default which is kind of wrong (i'll fix it) - 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] context meeting
On Thu, Aug 28, 2008 at 11:25 AM, Yue Wang wrote: will www.river-valley.tv broadcast it? Yes, but we have only recorded about a half of presentations (we did that for the first time, so I'm still quite lucky that we did what we did), and some will not be public (if we don't get permission by the author). btw, I want to see all the presentations, but there are only a few on context garden:( We had problems with network at the meeting and repository was screwed up completely. I have uploaded some files yesterday, and will try to finish the page in the following days. Mojca ___ 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] Padding in natural tables
Hi,, I have been searching the documentation on natural tables (\bTABLE), but haven't been able to resolve the following issue: I would like to specify an internal padding in the table cells, e.g. text content should start 0.4cm from the left edge of the table cell. Also, it would be nice to specify the distance from the top border. (In HTML this is accomplished with the padding option.) The table is composed with horizontal lines only. I have tried the distance option for the table columns, but this gives ugly broken horizontal lines. What is the best solution - is there an undocumented parameter, or do I have to add a block within the cell and specify an external margin for that block? Best regards, Tommy Jensen ___ 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] Still confused about \setuplayout
Hi Arthur, I would sooner have you hate me for telling the truth than adore me for telling lies. - Pietro Aretino As for the invitation to the reference project, thanks a lot. I have some work to finish first, then will have some free time to gladly contribute. Wishing you a nice day ( no irony ;O) Best, Alan On Thu, Aug 28, 2008 at 11:54 AM, Arthur Reutenauer [EMAIL PROTECTED] wrote: There is a context reference project, you can help to document it~ I concur. This would be immensely more useful than contributing huge threads and smart-arse remarks to this mailing-list (I especially like the irony of your -- Alan's -- complaints about wasting [your] precious time). Arthur ___ 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] space code trickery needed
Hi, please have a look at this (probably ugly) code: \starttext \definestartstop[MyFootNote] [before={\footnote},after={}] \def\startFN[#1]{\startMyFootNote\ignorespaces} \def\stopFN{\stopMyFootNote} This is a \startFN[65] test \stopFN and this is another \startFN[B65] test \stopFN. \stoptext What is need in the definition for \stopFN in order to keep the space when needed (see before and)? Thanks, Steffen ___ 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] Patching glyphtounicode.tex directly?
Vasile Gaburici wrote: There are a number of problems with the (global namespace) data in glyphtounicode.tex. Should submit a patch directly for this file, or is there a script somewhere that regenerates it? As Hans said, context uses pdfr-def.tex, not glyphtounicode.tex (perhaps that is used by latex or plain?) 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] Padding in natural tables
Sorry for polluting the mailing list with my question - I just discovered an offset property in the mail list archive that seems to do what I want. The TABLE package in Context is really powerful - it would be very nice to have an updated documentation for it, summarising all available options. Best regards, Tommy Jensen Hi,, I have been searching the documentation on natural tables (\bTABLE), but haven't been able to resolve the following issue: I would like to specify an internal padding in the table cells, e.g. text content should start 0.4cm from the left edge of the table cell. Also, it would be nice to specify the distance from the top border. (In HTML this is accomplished with the padding option.) The table is composed with horizontal lines only. I have tried the distance option for the table columns, but this gives ugly broken horizontal lines. What is the best solution - is there an undocumented parameter, or do I have to add a block within the cell and specify an external margin for that block? Best regards, Tommy Jensen ___ 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] space code trickery needed
On Thu, Aug 28, 2008 at 4:37 PM, Steffen Wolfrum [EMAIL PROTECTED] wrote: Hi, please have a look at this (probably ugly) code: \starttext \definestartstop[MyFootNote] [before={\footnote},after={}] \def\startFN[#1]{\startMyFootNote\ignorespaces} \def\stopFN{\stopMyFootNote} This is a \startFN[65] test \stopFN and this is another \startFN[B65] test \stopFN. \stoptext And this code works? What is need in the definition for \stopFN in order to keep the space when needed (see before and)? Use the last beta. http://archive.contextgarden.net/message/20080816.223412.74d6cb85.en.html 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] space code trickery needed
Am 28.08.2008 um 16:54 schrieb Wolfgang Schuster: On Thu, Aug 28, 2008 at 4:37 PM, Steffen Wolfrum [EMAIL PROTECTED] wrote: Hi, please have a look at this (probably ugly) code: \starttext \definestartstop[MyFootNote] [before={\footnote},after={}] \def\startFN[#1]{\startMyFootNote\ignorespaces} \def\stopFN{\stopMyFootNote} This is a \startFN[65] test \stopFN and this is another \startFN[B65] test \stopFN. \stoptext And this code works? Actually, this isn't code, it's homemade spaghetti. (It doesn't look like in a restaurant but feeds my needs) st. ___ 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] Padding in natural tables
On Aug 28, 2008, at 5:04 PM, B. Tommy Jensen wrote: Sorry for polluting the mailing list with my question - I just discovered an offset property in the mail list archive that seems to do what I want. Glad you found what you were looking for. One little hint about pollution: don't take an existing mail and use the reply function to start a new discussion; it confuses all mail clients which do proper threading. Best Thomas ___ 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] Reorganization of the main page
Hi, But the wiki search really sucks. Search for example for 'my Way': no matches found. Would it make sense to default to wiki search for the google search? Mojca, can this be done? Patrick -- ConTeXt wiki and more: 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] mswintex.zip versus mswincontext.zip
Vyatcheslav Yatskovsky yatskovsky at gmail.com writes: Hello,Don't know whether it is already answered or not, but if you have to run scite.bat from mswincontext folder, not first-setup.bat. It should work out of the box. First of all, build format files (Oprtions or Tools menu, don't remember exactly), and then press F7 each time you compile a document.Regards,Vyatcheslav Yatskovsky I think making a screencast would save new users ALOT of time. The following might be useful; a) http://www.screencast.com/ b) http://debugmode.com/wink/ Mohamed ___ 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] Reorganization of the main page
On Tue, 26 Aug 2008, Aditya Mahajan wrote: http://wiki.contextgarden.net/Main_Page_New If everyone agrees with the new design, I will replace the current main page. Since almost everyone liked the new design better, I have changed the main page. 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 ___
[NTG-context] problem with \useURL
Hello, The colon is misplaced here: % engine=luatex \setupinteraction[state=start] \starttext \useURL[xxx][http://www/]\from[xxx] \stoptext If you cannot reproduce this problem, try to delete your luatex-cache first. Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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] Reorganization of the main page
On Thu, Aug 28, 2008 at 5:51 PM, Patrick Gundlach [EMAIL PROTECTED] wrote: Hi, But the wiki search really sucks. Search for example for 'my Way': no matches found. Would it make sense to default to wiki search for the google search? Mojca, can this be done? It must be some very basic trick. I guess that you need to add a hidden field with something like input type=hidden name=q value=more:wiki / In any case: search needs to look like: q=bla+more:wiki But I didn't figure out how to do refined searches at the beginning yet. Mojca ___ 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] mswintex.zip versus mswincontext.zip
Mohamed Bana wrote: Vyatcheslav Yatskovsky yatskovsky at gmail.com writes: Hello,Don't know whether it is already answered or not, but if you have to run scite.bat from mswincontext folder, not first-setup.bat. It should work out of the box. First of all, build format files (Oprtions or Tools menu, don't remember exactly), and then press F7 each time you compile a document.Regards,Vyatcheslav Yatskovsky the formats should be in there already but i forgot to do that - 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] Font questions once again...
On Mon, Aug 25, 2008 at 10:46 PM, Marcin Borkowski wrote: * The page about Minimals on the wiki mentions LM, Antykwa Torunska, Iwona, Kurier, TeX Gyre, ams. Does this means they are available there? (And what about Antykwa Poltawskiego...?) That font is a bit messy. It uses its own encoding (maybe qx) and conventions and needs additional files to be functional in ConTeXt. I'm still optimistically waiting for Torunisation of Poltawskiego :) I do have documents using it, and I have scripts prepared to include the font in the minimals ... but I need someone to convince me to include it (again). Mojca ___ 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 position of framed sucks!
Hi, in order to write a command=... for \setuphead I am fighting with the following \framed: \starttext \showframe \def\TestFrame% {\hbox to \hsize\bgroup% \tbox{\midaligned\framed[frame=on,align=middle,width=0.85\textwidth] {{\kern0.75em}Test}}% \egroup} \TestFrame %Test% - \stoptext I only want the framed Test to be at the same vertical position as the plain Test (please compare). Just how??? Thanks, Steffen ___ 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] big are big with lucida
Are you sure? see the first line of the attachment. On Sat, Aug 23, 2008 at 5:58 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote: Hello The bigl, bigr ans so on are really BIG (huge even) when used with lucida. I think that math-lbr is guilty : it says ** \def\LBRbig {\@@dobig{8.20}} \def\LBRBig {\@@dobig{10.80}} \def\LBRbigg {\@@dobig{13.42}} \def\LBRBigg {\@@dobig{16.03}} \def\LBRbiggg{\@@dobig{17.72}} \def\LBRBiggg{\@@dobig{21.25}} ** Shouldn't it says ** \def\LBRbig {\@@dobig{0.920}} \def\LBRBig {\@@dobig{1.080}} \def\LBRbigg {\@@dobig{1.342}} \def\LBRBigg {\@@dobig{1.603}} \def\LBRbiggg{\@@dobig{1.772}} \def\LBRBiggg{\@@dobig{2.125}} ** ? There is a strange behavior : if I put \def\LBRbig {\@@dobig{0.930}} big is bigger than Big. How is this possible ? ___ 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 ___ attachment: example.jpg___ 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] Reorganization of the main page
Dnia Thu, Aug 28, 2008 at 04:35:18PM -0400, Aditya Mahajan napisa#322;(a): On Tue, 26 Aug 2008, Aditya Mahajan wrote: http://wiki.contextgarden.net/Main_Page_New If everyone agrees with the new design, I will replace the current main page. Since almost everyone liked the new design better, I have changed the main page. That's great - now I don't have to bookmark the Main_Page_New! Thanks! Aditya -- Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) 888 ___ 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] Font questions once again...
Dnia Fri, Aug 29, 2008 at 01:55:29AM +0200, Mojca Miklavec napisa#322;(a): On Mon, Aug 25, 2008 at 10:46 PM, Marcin Borkowski wrote: * The page about Minimals on the wiki mentions LM, Antykwa Torunska, Iwona, Kurier, TeX Gyre, ams. Does this means they are available there? (And what about Antykwa Poltawskiego...?) That font is a bit messy. It uses its own encoding (maybe qx) and conventions and needs additional files to be functional in ConTeXt. I'm still optimistically waiting for Torunisation of Poltawskiego :) I do have documents using it, and I have scripts prepared to include the font in the minimals ... but I need someone to convince me to include it (again). well... there is at least one person;) who would like to use it *very* much, especially for documents not containing maths. Unlike Antykwa Torunska, it is very good for longer texts as well as one-pagers. And gives a very nice look to texts - especially for (maybe older) Poles, who remember it from so many books... Mojca -- Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) ___ 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 ___