Re: [NTG-context] bold small caps

2010-12-12 Thread Peter Münster
On Sun, Dec 12 2010, Wolfgang Schuster wrote: \unexpanded\def\sc{\doifelsecurrentfonthasfeature{smcp}{\addfs{smcp}}\normalsc} Nice! Hans, what about integration into the core? Thanks Wolfgang! Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] bold small caps

2010-12-11 Thread Peter Münster
Hello, Is there a font in the minimals with bold small caps? I've tried lm and some tex-gyre fonts, but no success so far... Test file: \setupbodyfont[???] \starttext {\sc\bf Test} or {\bf\sc Test} should give bold small caps... \stoptext http://wiki.contextgarden.net/Pseudo_Small_Caps seems

Re: [NTG-context] bold small caps

2010-12-11 Thread Peter Münster
On Sat, Dec 11 2010, Florian Wobbe wrote: {\setff{smallcaps} SmallCaps {\bf BoldCaps}} Hello, Thanks! What's the difference between \sc and \setff{smallcaps}? Could something like \def\sc{\setff{smallcaps}} in the preamble harm in any way? Depending on your answers, I would perhaps request

[NTG-context] metafun: formatting numbers

2010-12-11 Thread Peter Münster
Hello, Formatting numbers seems to be buggy: \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid (0, 20, 1, 20cm, 10cm) ; fmt_pictures := false ; % use TeX as formatting engine draw hlintext.lft(0, 20, 1, 20cm, @3e) ; \stopMPcode \stoptext See

Re: [NTG-context] colors for pretty-printing

2010-12-10 Thread Peter Münster
On Wed, Dec 08 2010, Renaud AUBIN wrote: In fact, I just need to find unique names for my colors to not overload the existing ones… \doifcolorelse{new funny color} {Error: funny color already exists!} {\definecolor[new funny color][...]} With \setupcolor[ema] or

Re: [NTG-context] colors for pretty-printing

2010-12-10 Thread Peter Münster
On Fri, Dec 10 2010, Renaud AUBIN wrote: Ok but then why did you define a specific color palet? local function color_init() color = 0 local def_colors = -- \setupcolor[ema] introduces new line... The comment says it: \setupcolor[ema] introduces new line and that's annoying when you

[NTG-context] colors for pretty-printing (was: Re: pret-c.lua - v-c.lua)

2010-12-07 Thread Peter Münster
On Mon, Dec 06 2010, Renaud AUBIN wrote: Concerning the color abstraction patch, one needs just to overload Ccomment, Cpreproc, Cstring, Ctype, Ckeyword, Cname and Cfuncnbound to use custom color scheme. You don't need that. There is already a standard interface for color and style

Re: [NTG-context] Unwanted spaces removing

2010-12-07 Thread Peter Münster
On Tue, Dec 07 2010, Jaroslav Hajtmar wrote: For some reason I need to use \placefigure environment in such a way that no space are before and after this environment (eg space for image caption under image). \setupfloats[spacebefore=none, spaceafter=none] \starttext \input knuth

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Peter Münster
On Tue, Dec 07 2010, Renaud AUBIN wrote: So you can simplify t-pretty-c.mkiv: \unprotect \setupcolor[ema] \definestartstop [CSnippetName] [\c!color=darkgoldenrod, \c!style=] and so on... OK, but anyway, I have to protect the color names (to prevent

Re: [NTG-context] pret-c.lua - v-c.lua

2010-12-06 Thread Peter Münster
On Mon, Dec 06 2010, Hans Hagen wrote: maybe better the name t-pretty-c is better, of if you follow some strategy t-pretty-emacs-c or so (if there are many variants possible) The only thing in common with emacs, is the default color-scheme. You can get any variant just by changing the color

Re: [NTG-context] C Pretty Printer module for ConTeXt Mark IV (from 2010.11.26 22:49 version)

2010-12-06 Thread Peter Münster
On Sun, Dec 05 2010, Renaud AUBIN wrote: A new c pretty printer is available on gitorious http://gitorious.org/c-pretty-printer-module-for-context-mark-iv. Mojca, could you please add this module to the minimals? Perhaps we need to copy it to tlcontrib in the first place? Peter -- Contact

Re: [NTG-context] pret-c.lua - v-c.lua

2010-12-05 Thread Peter Münster
On Sun, Dec 05 2010, Renaud AUBIN wrote: Peter: could you test it? Hello Renaud, Yes, I've tested with my standard test.tex and it's really good, even more coloring than my pret-c.lua ! I let you add your copy(left) stuff Why me? and I will make a public git repo on gitorious if you

[NTG-context] pret-c.lua - v-c.lua

2010-12-03 Thread Peter Münster
Hello, Do I have to learn lpeg now, in order to port pret-c.lua to v-c.lua, or is there a simpler way? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to

Re: [NTG-context] pret-c.lua - v-c.lua

2010-12-03 Thread Peter Münster
On Fri, Dec 03 2010, Renaud AUBIN wrote: I can either help or port if needed… Yes, that would be really great!! Thank you! In the meantime, I'll work with an older version. (no time to learn lpeg now...) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] \enableregime (was: Re: Problem with context.startsection)

2010-12-01 Thread Peter Münster
On Wed, Dec 01 2010, Hans Hagen wrote: support for 8 bit is rather trivial so what is the problem? Test file: \enableregime[cp1250] \starttext bla \stoptext Error: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/regi-ini.lua:100: attempt to call global 'translate' (a nil value).

Re: [NTG-context] how to write morsecode?

2010-12-01 Thread Peter Münster
On Thu, Dec 02 2010, Jonas Stein wrote: \define[]\kurz{\blackrule[width=0.3em]} \define[]\lang{\blackrule[width=1.4em]} \starttext \kurz \kurz \lang \kurz Signal \stoptext You need \dontleavehmode, see also:

Re: [NTG-context] Problem with context.startsection

2010-11-30 Thread Peter Münster
On Tue, Nov 30 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \enableregime[cp1250] Remove this line, see also page 6 of http://meeting.contextgarden.net/2010/talks/2010-09-15-documentworkflow/workflows.pdf (ok, there seems to be a bug with \enableregime[], but if Hans could drop support

Re: [NTG-context] minimal update

2010-11-19 Thread Peter Münster
On Fri, Nov 19 2010, luigi scarso wrote: Yes, but I agree that existing files should still not be deleted. Either that, or /user should not be present at all. The auto- removal is confusing. I don't think so. One can end in a mixed minimals which is really a mess. I agree. Please

Re: [NTG-context] stack words for explanation

2010-11-19 Thread Peter Münster
On Fri, Nov 19 2010, Jonas Stein wrote: The example does not work here. Will i have to install ruby manual on debian testing? If you use the minimals, you'll get all the extra modules with ./first-setup.sh --extras=all Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] Scaling with \filterpages not working?

2010-11-18 Thread Peter Münster
On Thu, Nov 18 2010, Peter Rolf wrote: \setuplayout[fullpage] fullpage is not needed. There is already \setuplayout[page]. Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question

Re: [NTG-context] How to center a table horizontally?

2010-11-17 Thread Peter Münster
On Wed, Nov 17 2010, Lukas Prochazka wrote: I'm creating a table, but I cannot center it horizontally: --- \starttext \startalignment[center] \dontleavehmode \starttable[|c|] \NC CCC \NC\NR \stoptable \stopalignment \stoptext --- I can't explain, what

Re: [NTG-context] Placing boxes anywhere on the page

2010-11-16 Thread Peter Münster
On Tue, Nov 16 2010, Peter Davis wrote: Is there a way to place a box at some specified x and y position on the page, and then typeset one or more paragraphs of text into the box? I guess I'm thinking of something like LaTeX's minipage, but with the ability to specify absolute coordinates,

Re: [NTG-context] Placing boxes anywhere on the page

2010-11-16 Thread Peter Münster
On Tue, Nov 16 2010, Peter Davis wrote: Layers or overlays are certainly the right method. But there is also the \position macro: Thanks! I didn't find much in the ConTeXt reference manual on this. Is there more info somewhere? Not much. A bit is in mp-cb-en.pdf Cheers, Peter --

Re: [NTG-context] problem with beta for linux-64

2010-11-14 Thread Peter Münster
On Sun, Nov 14 2010, Mojca Miklavec wrote: I don't understand why this happens. My only explanation is that Peter might be using an older version of building script that forgot to set the missing permissions. Since it works OK on other platforms. Strange, I do always: cd ~/minimals svn up

Re: [NTG-context] Dummy buff-ver.mkiv question

2010-11-13 Thread Peter Münster
On Sat, Nov 13 2010, Renaud AUBIN wrote: I conclude that we are limited to a four colors palet for our custom pretty printer… Right or wrong? Hello Renaud, No. Ok, from that basis, one solution could be to directly define custom colors within pret-xxx.lua… but how? See

Re: [NTG-context] Dummy buff-ver.mkiv question

2010-11-13 Thread Peter Münster
On Sat, Nov 13 2010, Peter Münster wrote: On Sat, Nov 13 2010, Renaud AUBIN wrote: I conclude that we are limited to a four colors palet for our custom pretty printer… Right or wrong? No. Better: wrong. Cheers, Peter -- Contact information: http://pmrb.free.fr/contact

Re: [NTG-context] New module: t-gantt-tikz

2010-11-10 Thread Peter Münster
On Wed, Nov 10 2010, Hans Hagen wrote: you can submit your code to tlcontrib.metatex.org Does it mean, that modules.contextgarden.net is obsolete? Peter -- Contact information: http://pmrb.free.fr/contact/ ___

Re: [NTG-context] helping on Wiki Command Reference

2010-11-10 Thread Peter Münster
On Sun, Nov 07 2010, Jonas Stein wrote: would it be useful to write examples in the Wiki Command Reference Hello, I would rather include examples in the wiki¹ and the ConTeXt Manual² (prose) and let the command reference cover only the dry descriptions. or will there be some automatism

Re: [NTG-context] Wiki: Searching for »Mac« giv es no result.

2010-11-03 Thread Peter Münster
On Wed, Nov 03 2010, Paul Menzel wrote: as the subject says, searching for »Mac« does not find any results [1]. Searching for for example »linux« works though. I didn't find any documentation about that, but I suppose, that words with 3 or less letters are filtered out. And even other common

Re: [NTG-context] asciimode

2010-10-29 Thread Peter Münster
On Fri, Oct 29 2010, Taco Hoekwater wrote: if I only want to benefit of asciimode in controlled situations (inline?) ... how do I completely switch it off again (see below)?? \donknuthmode, I assume Perhaps something like this could be added to the core:

Re: [NTG-context] hyphenated url

2010-10-28 Thread Peter Münster
On Thu, Oct 28 2010, Steffen Wolfrum wrote: \startuseURL[anotherurl][urldescription] http://test%it.example.com \stopuseURL this doesn't work ... the address gets corrupt! Just run it, open the PDF in Acrobat and test the link: Acrobat is attempting to connect to

[NTG-context] wrong link with url + footnote

2010-10-28 Thread Peter Münster
Hello, Minimal example: \setupinteraction[state=start] \starttext \hyphenatedurl{www.test.com}\footnote{a footnote} Problem: the link is \quote{www.test.com1}. \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] space breaks url-links

2010-10-28 Thread Peter Münster
Hello, Minimal example: \setupinteraction[state=start] \useURL[test][http://test.com/space space/] \starttext url: \url[test] hyphenatedurl: \hyphenatedurl{http://test.com/space space/} \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] hyphenated url

2010-10-28 Thread Peter Münster
On Thu, Oct 28 2010, Hans Hagen wrote: If we can agree that asciimode also makes % a characters I can add that preset. I agree. It's more consistent. Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] hyphenated url

2010-10-28 Thread Peter Münster
On Thu, Oct 28 2010, Khaled Hosny wrote: Me too :) We just need some other way to put inline comments. I don't know, if it's possible, but \% could be nice. Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] wrong link with url + footnote

2010-10-28 Thread Peter Münster
On Thu, Oct 28 2010, Hans Hagen wrote: \setupinteraction[state=start] \starttext \hyphenatedurl{www.test.com}\footnote{a footnote} Problem: the link is \quote{www.test.com1}. \stoptext \goto{wherever}[url(www.test.com)]\footnote{a footnote} Now I understand: it's not ConTeXt that creates

Re: [NTG-context] hyphenated url

2010-10-27 Thread Peter Münster
On Wed, Oct 27 2010, Aditya Mahajan wrote: That has to do with the definition of typing: http://tracker.luatex.org/view.php?id=505 Ah, that means, that buffers can solve the problem: \starttext \startbuffer \starttyping bla%bla \stoptyping \stopbuffer bla\footnote{ bla \getbuffer

Re: [NTG-context] hyphenated url

2010-10-27 Thread Peter Münster
On Mon, Oct 25 2010, Steffen Wolfrum wrote: http://www.cirp.ru/conferences/new%20neighborhood%20policy/publications/frellesen%20paper.doc There is no way to typeset this in ConTeXt MkIV??? No problem here: \setupinteraction[state=start] \starttext No hexa-code after percent, so Acroread

Re: [NTG-context] line justification alignment.

2010-10-23 Thread Peter Münster
On Sat, Oct 23 2010, seasoul wrote: I use the setting, that works. Then the line became ugly, the length of lines are irregular. Is it possible to fine-tune it. Use landscape, with about 200 characters per line, that should resolve your problem... ;) The most important: mention somewhere,

Re: [NTG-context] line justification alignment.

2010-10-23 Thread Peter Münster
On Sat, Oct 23 2010, Peter Münster wrote: I use the setting, that works. Then the line became ugly, the length of lines are irregular. Is it possible to fine-tune it. Use landscape, with about 200 characters per line, that should resolve your problem... ;) Oh, stupid answer, I'm sorry

Re: [NTG-context] ConTeXt editors (vim?)

2010-10-22 Thread Peter Münster
On Fri, Oct 22 2010, S Barmeier wrote: Other suggestions are also welcomed. http://wiki.contextgarden.net/Text_Editors Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is

Re: [NTG-context] A few puzzling problems (bugs?) with enumerations

2010-10-16 Thread Peter Münster
On Fri, Oct 15 2010, Aditya Mahajan wrote: cont-en.xml and send the diff file to Hans. (There were plans to reimplement that in lua, but I do not know what is the current state of it). Early beginning stage. See also: http://foundry.supelec.fr/svn/contextman/context-commands Cheers, Peter --

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Peter Münster
On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). \starttext% 1 \typefile[range=3]{test.tex} % 2 bla % 3 bla % 4

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Peter Münster
On Fri, Oct 15 2010, Cedric Mauclair wrote: Today I wanted to use the command \date[d=15,m=10,y=2010][weekday]. It gives Friday as it should. However \date[d=2,m=1,y=2011][weekday] gives the same result which is wrong (it's a Sunday). In fact, whatever the supplied date, it gives Friday. I

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Peter Münster
On Fri, Oct 15 2010, Cedric Mauclair wrote: Any ideas? Test file: \def\mydate{\doifnextcharelse\space\domydate\domydate } \def\domydate #1/#2/#3{\date[d=#1,m=#2,y=#3][weekday,day+,month,year]} \starttext \mydate 2/1/2011 \par % token #3 = 2 \mydate 2/1/2 \par % token #3 = 2 \mydate

Re: [NTG-context] Titles that spill out

2010-10-14 Thread Peter Münster
On Thu, Oct 14 2010, Brian Wedde wrote: \setuphead[section][align={flushleft,nothyphenated}] \setuphead[section][align={flushleft,nothyphenated,tolerant}] Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] Access figure data?

2010-10-14 Thread Peter Münster
On Thu, Oct 14 2010, Peter Rolf wrote: Nice to have. Is this also possible from the lua side? Hello, Perhaps with the img library of luatex (see luatex manual). Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Peter Münster
On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \enableregime[cp1250] \starttext ABC ŽŠČ \typefile[]{t-TypeF.ctx} \stoptext --- The letters ŽŠČ to be printed during \typefile are the problem. Hello, It seems, that \typefile assumes utf8 independently

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Peter Münster
On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: All runs programs run under Windows and all [mentioned] are using CP 1250. Perhaps with a filter: windows-program | recode windows-1250..u8 output-file Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] Page-breakable \subsubsubject?

2010-10-12 Thread Peter Münster
On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: The problem is that typesetting n-th \subsubject doesn't go to the next page, but is typeset on the same page, so that the last ones disappear. This works, but I can't explain why: \starttext

Re: [NTG-context] one line caption

2010-10-01 Thread Peter Münster
On Fri, Oct 01 2010, Patrick Gundlach wrote: I also tried without luck \setupcaptions[minwidth=fit] (no effect) and \setupcaptions[minwidth=\textwidth] (left aligned) \setupcaptions[minwidth=\textwidth, align=middle] Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] colsep / left rule in TABLE

2010-09-30 Thread Peter Münster
On Thu, Sep 30 2010, Patrick Gundlach wrote: 2) how do I get a left rule only in a TABLE cell? I've tried: \bTR \bTD[leftframe=on,rulethickness=2pt] 2 \eTD \eTR Hello Patrick, \setupTABLE[frame=off] \starttext \bTABLE \bTR \bTD[leftframe=on,rulethickness=2pt] 2 \eTD \eTR \eTABLE \stoptext

Re: [NTG-context] Problems with TABLE

2010-09-30 Thread Peter Münster
On Thu, Sep 30 2010, Patrick Gundlach wrote: I still have some problems with TABLE: \bTABLE[frame=on] We need to know the values for rulethickness and offset, so let's define them: \bTABLE[frame=on, rulethickness=0.5pt, offset=0.1em] \bTD[frame=off,rightframe=on,rulethickness=1mm] abc

Re: [NTG-context] colsep / left rule in TABLE

2010-09-30 Thread Peter Münster
On Thu, Sep 30 2010, Patrick Gundlach wrote: 1) how do I define colsep in a TABLE table? To clarify my wish: I would like to get a distance between two columns, see the attached image. \setupTABLE[c][1][distance=2cm] \starttext \framed[offset=0pt, strut=no]{% \bTABLE \bTR \bTD 1 \eTD

Re: [NTG-context] colsep / left rule in TABLE

2010-09-30 Thread Peter Münster
On Thu, Sep 30 2010, Wolfgang Schuster wrote: 1) how do I define colsep in a TABLE table? Are these enough options? Perhaps not, there is still the ugly one: \starttext \bTABLE \bTR \bTD \input zapf \eTD \bTD[width=1cm]\eTD

Re: [NTG-context] Still struggling with TABLE width

2010-09-30 Thread Peter Münster
On Thu, Sep 30 2010, Patrick Gundlach wrote: as the subject says: I am still confused about widths of TABLE tables. \bTD[nc=2] %\hbox{A very very long text in one line, perhaps more} A very very long text in one line, perhaps more \eTD It's the same issue as with the cow. Perhaps a

Re: [NTG-context] Info about creating modules for beginners.

2010-09-26 Thread Peter Münster
On Sun, Sep 26 2010, Aditya Mahajan wrote: You are essentially maintaining two modules, one for mkii and one for mkiv. At least for the filter module, I would like to maintain only one module. The current version has manual parameter handling. Some of which can be automated using

Re: [NTG-context] $TEXINPUT worries

2010-09-24 Thread Peter Münster
On Fri, Sep 24 2010, Rolf Marvin Bøe Lindgren wrote: It seems that the commands context and texexec cause ConTeXt to look in different paths. Hello, Are you talking about $TEXINPUTS ? Then you should unset this variable. See also:

Re: [NTG-context] export

2010-09-23 Thread Peter Münster
On Thu, Sep 23 2010, Cedric Mauclair wrote: There is a typo in the link: it should be setupbackends and not setupbackeds. The command is fine though. All right, yet another redirect: http://wiki.contextgarden.net/Reference/en/setupbackends ;)) Cheers, Peter -- Contact information:

Re: [NTG-context] Removing banner from mtxrun output

2010-09-21 Thread Peter Münster
On Tue, Sep 21 2010, Johan Sandblom wrote: Is there a way to instruct \typefile to ignore the last four lines of the outputfile? I assume defining an alternative command which does just that is not too difficult, but sadly beyond me. It seems, that it's not possible at the moment. There is a

Re: [NTG-context] pdf file not found (final question)

2010-09-12 Thread Peter Münster
On Fri, Sep 10 2010, Peter Münster wrote: Can anybody reproduce the following problem (Taco can't ...): \startbuffer[pdf-pages] \starttext page 1 \page page 2 \stoptext \stopbuffer \savebuffer[pdf-pages][pdf-pages.tex] \executesystemcommand{context pdf-pages; mkdir testdir

Re: [NTG-context] pdf file not found (final question)

2010-09-12 Thread Peter Münster
On Sun, Sep 12 2010, Hans Hagen wrote: On 12-9-2010 8:41, Peter Münster wrote: - or don't ever use * in a filename? in all our projects we normalize to a-z and a dash, otherwise you always get into problems esp when graphics come from a third party ... multiple spaces in names, funny case

[NTG-context] pdf file not found

2010-09-10 Thread Peter Münster
Hello, Can anybody reproduce the following problem (Taco can't ...): \startbuffer[pdf-pages] \starttext page 1 \page page 2 \stoptext \stopbuffer \savebuffer[pdf-pages][pdf-pages.tex] \executesystemcommand{context pdf-pages; mkdir testdir; mv pdf-pages.pdf testdir/2*8.pdf} \starttext

Re: [NTG-context] pdf file not found

2010-09-10 Thread Peter Münster
On Fri, Sep 10 2010, Hans Hagen wrote: \starttext \setupexternalfigures[directory={./testdir}] \externalfigure[28][page=3] \stoptext so, no * in the filename Does this mean, that you can reproduce the problem, or not? I just want to know, how to compile the context manual, see

Re: [NTG-context] pdf file not found

2010-09-10 Thread Peter Münster
On Fri, Sep 10 2010, Hans Hagen wrote: i get empty pages in the case of a * but that can be simply because a * might not be in a filename on windows Ok, I can rename the file. But I think, the behaviour is so strange, that there is somewhere a hidden bug. Strange, because 2*8 is the only

[NTG-context] !LuaTeX error: PDF inclusion: required page 2 does not exist

2010-08-28 Thread Peter Münster
Hello, When - creating the file test.tex: \starttext \setupexternalfigures[directory={./arranging}] \externalfigure[2*8][page=2] \stoptext - creating a sub-directory arranging - putting into this directory the file

Re: [NTG-context] questions regarding `\date`

2010-08-28 Thread Peter Münster
On Sat, Aug 28 2010, Wolfgang Schuster wrote: It's a problem with the optional argument, if the second argument is missing the space after the first is gobbled but it can be fixed. It's a general problem with ConTeXt macros. The same applies for example for \externalfigure. Should this be

Re: [NTG-context] problem with \setuptyping[option=LUA, escape=//]

2010-08-26 Thread Peter Münster
On Wed, Aug 25 2010, Hans Hagen wrote: \definetyping[LUA] \setuptyping[LUA][option=LUA,escape={/btex,/etex}] Hopefully you wikify this Hello Hans, I don't know what to wikify, because I don't understand what is supposed to work and what is not. Here another example with strange behaviour:

[NTG-context] [***SPAM***] How to break lines with \type{}?

2010-08-26 Thread Peter Münster
Hello, How can I teach \type{} to break lines just as \hyphenatedurl{} does? \starttext \hsize1pt \type{C:bla/blub/foo/bar} \hyphenatedurl{C:bla/blub/foo/bar} \stoptext TIA for any help! Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] mtx-context.lua:1161: attempt to call field 'join' (a nil value)

2010-08-26 Thread Peter Münster
Hello, context --purgeall gives this error: ...ex/texmf-context/scripts/context/lua/mtx-context.lua:1161: attempt to call field 'join' (a nil value) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] How to break lines with \type{}?

2010-08-26 Thread Peter Münster
On Thu, Aug 26 2010, Hans Hagen wrote: On 26-8-2010 11:02, Peter Münster wrote: Hello, How can I teach \type{} to break lines just as \hyphenatedurl{} does? \starttext \hsize1pt \type{C:bla/blub/foo/bar} \hyphenatedurl{C:bla/blub/foo/bar} \stoptext not, but there is \typ for normal

[NTG-context] \typefile without the last n lines

2010-08-25 Thread Peter Münster
Hello, Here a little feature request: \starttext \typefile[start=1, stop=-3]{test.tex} % printing this file without the % last 3 lines % line to print \stoptext % don't print this line % don't print this line % don't print this line TIA for any help! Peter

[NTG-context] [***SPAM***] Re: Trouble with # character in TABLE environment...

2010-08-25 Thread Peter Münster
On Wed, Aug 25 2010, Hans Hagen wrote: the next version will have \asciimode which will make all those chars regular characters (apart from % \ { }) Why not %? Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] [***SPAM***] problem with \setuptyping[option=LUA, escape=//]

2010-08-25 Thread Peter Münster
Hello, The escape=// option is ignored here: \setuptyping[option=LUA, escape=//] \starttext \starttyping bla // \em sometex \stoptyping \stoptext What could be done, to make it work? TIA for any help! Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] attempt to index global 'references' (a nil value)

2010-08-24 Thread Peter Münster
Hello, Here a minimal example that generates that error: \usemodule[pre-stepwise] \setupinteraction[state=start] \starttext bla \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If

Re: [NTG-context] Troubles with backgrounds in bTABLE

2010-08-04 Thread Peter Münster
On Wed, Aug 04 2010, Willi Egger wrote: Please refer to the attached test file. Hello Willi, Here some workaround: \startuniqueMPgraphic{Topline} path p,q; p := unitsquare xscaled \overlaywidth yscaled \overlayheight; draw urcorner p -- ulcorner p withpen pencircle

Re: [NTG-context] footnote missing

2010-07-31 Thread Peter Münster
On Wed, Jul 28 2010, Peter Münster wrote: \starttext \startlocalfootnotes AAA\footnote{aaa} \placelocalfootnotes \stoplocalfootnotes BBB\footnote{bbb} \startlocalfootnotes CCC\footnote{ccc} % footnote missing \placelocalfootnotes \stoplocalfootnotes \stoptext Thanks Hans

Re: [NTG-context] figures after columns

2010-07-28 Thread Peter Münster
On Wed, Jul 28 2010, Horacio Suarez wrote: I want to add a figure after a balanced \startcolumns ... \stopcolumns. When the last page uses less than aprox half a page, the figure appears after the text ends, but if the page uses about half a page o more, the figure jumps to the next page.

Re: [NTG-context] Paragraph or item goes on a new page along with section (MkIV only)

2010-07-28 Thread Peter Münster
On Wed, Jul 28 2010, Vedran Miletić wrote: just in the process of optimizing it ... you can run some tests with \let\dopreventbreakafterstructureheadauto\relax and see if heads end up along at the bottom It seems you fixed it, at least in MTXrun | current version: 2010.07.27 16:30

[NTG-context] footnote missing

2010-07-28 Thread Peter Münster
Hello, Example: \starttext \startlocalfootnotes AAA\footnote{aaa} \placelocalfootnotes \stoplocalfootnotes BBB\footnote{bbb} \startlocalfootnotes CCC\footnote{ccc} % footnote missing \placelocalfootnotes \stoplocalfootnotes \stoptext Cheers, Peter -- Contact information:

[NTG-context] strc-not.lua:87: attempt to index field '?' (a nil value)

2010-07-26 Thread Peter Münster
Hello, Perhaps I don't use localfootnotes the right way? Example: \starttext blub\footnote{blub} bla \startlocalfootnotes blub\footnote{blub} \placelocalfootnotes \stoplocalfootnotes \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

[NTG-context] how to prevent page-break after \blank

2010-07-22 Thread Peter Münster
Hello, How is it possible to prevent a page break after the \blank? \starttext \dorecurse{730}{text } \blank[small] \page[no] % does not work bla bla bla \stoptext TIA for any help, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] how to prevent page-break after \blank

2010-07-22 Thread Peter Münster
On Thu, Jul 22 2010, Peter Münster wrote: How is it possible to prevent a page break after the \blank? \starttext \dorecurse{730}{text } \blank[small] \page[no] % does not work bla bla bla \stoptext Solution: \starttext \dorecurse{730}{text } \blank[small, samepage] bla bla bla

Re: [NTG-context] Paragraph or item goes on a new page along with section (MkIV only)

2010-07-22 Thread Peter Münster
On Thu, Jul 22 2010, Hans Hagen wrote: just in the process of optimizing it ... Great Hans! You will then update the tracker item http://tracker.luatex.org/view.php?id=389 ? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] Creating PDF Bookmarks

2010-07-20 Thread Peter Münster
On Tue, Jul 20 2010, Steffen Wolfrum wrote: \starttitle[title={Table of contents},bookmark=TOC] .. \stoptitle when I run your code with todays MkIV, then there is no bookmark created for Table of contents! See also here: http://tracker.luatex.org/view.php?id=429 Cheers, Peter --

Re: [NTG-context] Tables for newbies [WAS Re: imbalanced columns]

2010-07-16 Thread Peter Münster
On Thu, Jul 15 2010, Idris Samawi Hamid ادريس سماوي حامد wrote: Question for all: for MkIV, should we recommend ONLY natural tables to newcomers, e.g., in a ConTeXt Book? Hello Idris, For me, it's yes! But newcomers need to pay attention in some cases: - alignment (see issue

[NTG-context] require(module.so) on cygwin

2010-07-15 Thread Peter Münster
Hello, How can I load a lua-lib in cygwin? Example: file test.tex: \startluacode package.cpath = ?.so require(testmod) \stopluacode \starttext bla \stoptext file testmod.c: #include lua.h #include lauxlib.h static int l_test(lua_State *L) { int n = luaL_checknumber(L, 1)

Re: [NTG-context] require(module.so) on cygwin

2010-07-15 Thread Peter Münster
On Thu, Jul 15 2010, luigi scarso wrote: I dont't have the answer , but what is the message ? Hello Luigi, There is no message, luatex just hangs... (no cpu usage). 1) Why don't you use mingw (luatex is compiled with mingw)? I switched from mingw to cygwin some time ago for several

Re: [NTG-context] require(module.so) on cygwin

2010-07-15 Thread Peter Münster
On Thu, Jul 15 2010, Taco Hoekwater wrote: Peter Münster wrote: On Thu, Jul 15 2010, luigi scarso wrote: I dont't have the answer , but what is the message ? Hello Luigi, There is no message, luatex just hangs... (no cpu usage). You could try with just a lua file, without

Re: [NTG-context] require(module.so) on cygwin

2010-07-15 Thread Peter Münster
On Thu, Jul 15 2010, Peter Münster wrote: New results: I've built luatex under cygwin and replaced luatex.exe in my windows installation. Now it creates a pdf, but there is a stack-dump in the end: mkiv luv stats : runtime - 41.469 seconds, 1 processed pages, 1 shipped

Re: [NTG-context] require(module.so) on cygwin

2010-07-15 Thread Peter Münster
On Thu, Jul 15 2010, Taco Hoekwater wrote: gcc -shared -o testmod.so testmod.c /usr/lib/liblua.dll.a On Linux, the .so does not need a liblua dependency. Indeed, I only need it on cygwin. The test works fine with just gcc -shared -o testmod.so testmod.c I tried to reproduce what

Re: [NTG-context] Example ConTeXt document: PS output

2010-07-10 Thread Peter Münster
On Sat, Jul 10 2010, Michael Talbot-Wilson wrote: I have a PostScript printer. I'd prefer not to have to run pdf2ps. Hello, Normally, the printing system (cups for example) will run pdf2ps for you, and you should be able to do something like lpr file.pdf without any problems. How can ps

[NTG-context] feature request: callback for \installprettytype

2010-07-05 Thread Peter Münster
Hello, It would be nice, if we could have a function in pret-XXX.lua, that is called at the moment of \installprettytype. (I need it for http://modules.contextgarden.net/pret-c ) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Peter Münster
On Thu, Jul 01 2010, Alan BRASLAU wrote: Functionality such as the subject of this thread should be available by default, without having to mess with macros. In particular, functionality present in LaTeX for quite some time should be possible within ConTeXt rather easily, the ConTeXt way, of

Re: [NTG-context] nomarking function in MKIV

2010-06-30 Thread Peter Münster
On Wed, Jun 30 2010, Alan BRASLAU wrote: I would then expect to be able to use: \setupchapter [bookmark=list] to select to put the short title (if list={short}) in the bookmarks, unless there be bookmark={shorter}. Good idea, +1 ! Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] nomarking function in MKIV

2010-06-29 Thread Peter Münster
On Tue, Jun 29 2010, John Devereux wrote: so that Short Title Rest Of Title appears as the chapter title, but just Short Title appears in the TOC, PDF bookmarks and footers. \setupinteraction[state=start] \placebookmarks[all] \setupfootertexts[chapter] \starttext \completecontent

Re: [NTG-context] title page ( \framed)

2010-06-27 Thread Peter Münster
On Sun, Jun 27 2010, Alan BRASLAU wrote: In typesetting a title page, why in this minimal example is the framed title not centered? \starttext \startstandardmakeup [doubleside=no,align=middle] \framed {Title} \stopstandardmakeup \stoptext Hello, You need

Re: [NTG-context] post-commit hook for contextman

2010-06-27 Thread Peter Münster
On Mon, Jun 07 2010, Taco Hoekwater wrote: Is it possible, to get email on every commit to http://foundry.supelec.fr/gf/project/contextman ? Sure. Subscribe to the Lists - contextman-commits mailing list Hello, The list seems to be broken. I don't get any email... Cheers, Peter --

Re: [NTG-context] vim syntax highlighting in MKIV

2010-06-27 Thread Peter Münster
On Sun, Jun 27 2010, Aditya Mahajan wrote: In the spirit of MkIV, I have attempted to redo the vim module from scratch. http://github.com/adityam/filter Download t-vim.tex t-filter.tex and 2context.vim. For testing just place them in the current directory. Hello Aditya, Thanks for

[NTG-context] incrementnumber and bookmark

2010-06-23 Thread Peter Münster
Hello, What is the relationship between incrementnumber and bookmarks? I don't get the desired bookmark here: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \placebookmarks[title] \starttext \starttitle[title=Test title] bla \stoptitle \stoptext But with

<    1   2   3   4   5   6   7   8   9   10   >