Re: [NTG-context] A strange error I haven't been able to create a minimal for...

2008-10-14 Thread Hans Hagen
. wrote:
> Hi,
> 
> I've been trying to create a minimal example for this most bizarre 
> error, up till now without success.
> 
> Nevertheless, I may be lucky someone has encountered a similar one. So 
> I'll ask anyway...
> 
> - project containing environments, product and components
> 
> - product with standardmakeup, frontmatter, bodymatter, backmatter
> 
> -  \startsectionblockenvironment[frontpart]% contains 
> ToC   
> \setupheader[state=start]
>\stopsectionblockenvironment
> 
> - \setuphead[chapter][header=empty]  (1)
> 
> - for some bodyfonts (arial, verdana) and with line (1) in the code, 
> /placecontent
>  and \completecontent (in the frontpart) generate a ToC with the 1st 
> chapter heading displayed
>  twice, aka

weird indeed, so font dependent and header dependent tocs? we really 
need an example then

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] luatex 0.30.1

2008-10-14 Thread Hans Hagen
Thomas A. Schmitz wrote:
> Hi Taco,
> 
> is it possible that luatex 0.30.1 is a little bit broken? When I try  
> to process an xml file with it and the latest beta, I get no pdf  
> output (but also no errors; it simply doesn't process the contents).  
> Downgrading to luatex 0.30.0 solves this problem; I get the expected  
> output.

hm, do you have a small test file?

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] Changing margins mid-page?

2008-10-14 Thread Alexandros Frantzis
On Tue, Oct 14, 2008 at 08:50:20AM +0200, Wolfgang Schuster wrote:
> On Tue, Oct 14, 2008 at 7:31 AM, Rory Molinari
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm sorry that the subject isn't clearer.
> >
> > I'm learning ConTeXt at the moment by trying to typeset a copy of my
> > resume.
> >
> > I'd like the format to be something like this (view in fixed width):
> >
> >
> >
> >  
> >   > address>
> >
> > 
> > ---
> >
> > EDUCATION   
> > 
> >
> > 
> > 
> >
> >
> >
> > WORK EXPERIENCE 
> > 
> > 
> > 
> > 
> > 
> >
> >
> > 
> > 
> > 
> > 
> >
> >
> > 
> >
> >
> >
> > ANOTHER SECTION 
> > 
> > 
> >
> >
> >
> > My first thought was to have "EDUCATION", "WORK EXPERIENCE", etc as
> > unnumbered sections, and to arrange that section titles would appear
> > in a (very large) left margin.  But then I couldn't work out how to
> > have "normal" margins for the top of the page containing my contact
> > information and name.  Margins appear to apply to the whole document.
> >

[snip]

> >
> > What is the right way to typeset this?
> 
> Use descriptions, it's possible to set a left margin and break the text
> across pages.
> 

Hello,

I, too, am trying to create a similar CV layout. As I have already
reported in other emails to the list, I have been having trouble when
the first thing after the title is an enumeration. More specifically,
the first item of the enumeration is not aligned with the title in the
margin (it is always placed a bit below). Unfortunately, this still
happens when using descriptions.

A way around this is to use something like \setupitemize[before=\vskip -20pt].
But this is specific to the font sizes I am using and a bit ugly. I have tried
suppressing the whitespace around itemizations (nowhite, joinedup) and/or using
stuff like \blank[disable] and \blank[back] but to no avail.

Does anyone know of a better, more generic way of doing this or even if
it is possible (judging from the lack of answers to my previous posts I
am guessing this is not something trivial)?

Thanks,
Alexandros

--- START CODE 
\definedescription[desc][location=inmargin,width=broad]

\starttext

\startdesc{Description1}
This is the text of desc1.
This is the text of desc1.
This is the text of desc1.
This is the text of desc1.
This is the text of desc1.
This is the text of desc1.
This is the text of desc1.
\stopdesc

\startdesc{Description2}

\startitemize[packed,nowhite,joinedup]
\item First item (should be right next to title)
\item Second item
\item Third item
\stopitemize

\stopdesc

\stoptext
 END CODE 

___
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] mp specials problem (mkii)

2008-10-14 Thread Peter Rolf
Hi.

I just updated mpost.dll (1.110) from the windows minimals, but the
*empty line* in the temporary ps file still remains and breaks
compilation. Mkiv works fine with the same example.

[anzeige-mpgraph.1]
...
%%EndResource
%%EndProlog
%%Page: 1 1
%%MetaPostSpecials: 2.0 123 1

%%MetaPostSpecial: 78 0 1 1 53.99107 14.23862 53.99107 3.01123 12
0.98828 0.98828 0.98828 0.96875 0.98438 0.98828 0.96094 0.96484 0.98828
0.95313 0.95703 0.98828 0.9375 0.9414 0.98438 0.91016 0.91797 0.95703
0.88672 0.89453 0.9375 0.86719 0.8711 0.92188 0.84766 0.85156 0.90234
0.83594 0.83984 0.90234 0.82031 0.8164 0.89063 0.80078 0.79688 0.8711
0.20116 0.2682 0.33525 0.40115 0.46706 0.53296 0.59886 0.66476 0.79887
0.86592 0 0 0 0.5 0 0.6 0 0.8 0 0.6 0 0.6 0 0.2 0 0.6 0 0.6 0 0.7 0 0.8 1 60
%%MetaPostSpecial: 15 0 1 1 0.98828 0.98828 0.98828 28.12476 0 0.9375
0.92969 0.91406 28.12476 17.24985 2 30
 0.0123 0.0013 0.0002 R
...

Using ConTeXt beta from 08.10.2008.

Best wishes, Peter
___
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] error in mag-01 module with luatex

2008-10-14 Thread Khaled Hosny
There seem to be some thing broken in latest betas that I can't use
mag-01 module (My Way) with luatex. Try the attached example.

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
% engine=luatex
\usemodule[mag-01]

% Substitute the text between <+...+> 
\setvariables
  [magazine]
  [  title=Title of MyWay,
author=Name of author,
   affiliation=Affiliation of author,
  date=date of publication,
  ]

\startbuffer[abstract]
Abstract of MyWay
\stopbuffer

\setupheadertexts[section] 

\starttext \setups [titlepage] \setups [title]

Write article here

\setups [listing]
\setups [lastpage] \stoptext



signature.asc
Description: Digital signature
___
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] Running Mark IV / luatex: unknown script: context

2008-10-14 Thread Arthur Reutenauer
> Thank you but that doesn't really help, the errors are just the same. I
> suppose both values for TEXMFCNF works.

  In principle, it should really be the name of the directory containing
texmf.cnf, not the path to the file itself.

  But in any case, you have to run "luatools --generate" after that.
And then, "luatools cont-en.tex" should return the location of the file.
Does it?  If it does, you should probably be able to proceed.

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] XeTeX old style numerals

2008-10-14 Thread Mohamed Bana
Thanks.  Works fine on Texlive 2008;

This is XeTeXk, Version 3.1415926-2.2-0.999.6 (Web2C 7.5.7)
...
ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2008.9.8  int: english/english


Wolfgang Schuster wrote:
> On Sat, Oct 11, 2008 at 10:10 PM, Mohamed Bana <[EMAIL PROTECTED]> wrote:
>> So ... can someone provide a sample file of a document that uses old
>> style by default?
>>
>> Clearly the following doesn't work;
> 
> The fast way (works only for MkII):
> 
> \definefontfeature[default][deault][script=latn,onum=yes]
> 
>> \definetypeface[myface][rm][Xserif][Minion Pro]
>> % i've also tried
>> %\definetypeface[myface][rm][Xserif][Warnock Pro]
>> \definetypeface[myface][ss][Xsans][Myriad Pro]
>> \definetypeface[myface][tt][Xmono][Consolas]
>> \setupbodyfont[myface, 11pt]
> 
> The better way (works for MkII and MkIV):
> 
> \starttypescript [serif] [minion-pro]
>   \setups[font:fallback:serif]
>   \definefontsynonym [Serif]   [MinionPro-Regular]
> [features=default]
>   \definefontsynonym [SerifBold]   [MinionPro-Bold]   
> [features=default]
>   \definefontsynonym [SerifItalic] [MinionPro-Italic] 
> [features=default]
>   \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic] 
> [features=default]
> \stoptypescript
> 
> \starttypescript [serif] [minion-pro-os]
>   \setups[font:fallback:serif]
>   \definefontsynonym [Serif]   [MinionPro-Regular]
> [features=oldstyle]
>   \definefontsynonym [SerifBold]   [MinionPro-Bold]
> [features=oldstyle]
>   \definefontsynonym [SerifItalic] [MinionPro-Italic]
> [features=oldstyle]
>   \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic]
> [features=oldstyle]
> \stoptypescript
> 
> \starttypescript [serif] [minion-pro,minion-pro-os]
>   \definefontsynonym [MinionPro-Regular][file:MinionPro-Regular]
> [features=default]
>   \definefontsynonym [MinionPro-Bold]   [file:MinionPro-Bold]
> [features=default]
>   \definefontsynonym [MinionPro-Italic] [file:MinionPro-It]
> [features=default]
>   \definefontsynonym [MinionPro-BoldItalic] [file:MinionPro-BoldIt]
> [features=default]
> \stoptypescript
> 
> \starttypescript [minion-pro,minion-pro-os]
>   \definetypeface [minion-pro] [rm] [serif] [\typescriptone] [default]
> \stoptypescript
> 
> %\usetypescript[minion-pro]
> \usetypescript[minion-pro-os]
> \setupbodyfont[minion-pro]
> 
> 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
___


[NTG-context] luatex 0.30.1

2008-10-14 Thread Thomas A. Schmitz
Hi Taco,

is it possible that luatex 0.30.1 is a little bit broken? When I try  
to process an xml file with it and the latest beta, I get no pdf  
output (but also no errors; it simply doesn't process the contents).  
Downgrading to luatex 0.30.0 solves this problem; I get the expected  
output.

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
___


[NTG-context] A strange error I haven't been able to create a minimal for...

2008-10-14 Thread .
Hi,

I've been trying to create a minimal example for this most bizarre error, up
till now without success.

Nevertheless, I may be lucky someone has encountered a similar one. So I'll
ask anyway...

- project containing environments, product and components

- product with standardmakeup, frontmatter, bodymatter, backmatter

-  \startsectionblockenvironment[frontpart]% contains ToC

\setupheader[state=start]
   \stopsectionblockenvironment

- \setuphead[chapter][header=empty]  (1)

- for some bodyfonts (arial, verdana) and with line (1) in the code,
/placecontent
 and \completecontent (in the frontpart) generate a ToC with the 1st chapter
heading displayed
 twice, aka

Chapter 1 heading  (2)
Chapter 1 heading
   Chapter 1 - Section 1 heading
   Chapter 1 - Section 2 heading
   etc...
Chapter 2 heading
   Chapter 2 - Section 1 heading
   Chapter 2 - Section 2 heading
   etc...
etc...

- leaving out header=empty in (1) displays the ToC correctly, i.e. line (2)
disappears in the ToC

- the contents in the bodypart displays correctly (chaper 1, chapter 2,
etc... ) whatever the bodyfont


Any clues ?

Best,
Alan

-- 
* texexec --lua foo
* ConTeXt  minimals ver: 2008.10.08 23:34 MKIV  fmt: 2008.10.13  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Changing margins mid-page?

2008-10-14 Thread Rory Molinari

On Oct 13, 2008, at 11:50 PM, Wolfgang Schuster wrote:

> On Tue, Oct 14, 2008 at 7:31 AM, Rory Molinari
> <[EMAIL PROTECTED]> wrote:
>>

[Description of my problem, and a failed solution using paragraphs]
>> The problem with this is that this setup cannot break across pages,  
>> so
>> when a section becomes too long it first starts on a new page and  
>> then
>> runs off the bottom of that page.
>>
>>
>> What is the right way to typeset this?
>
> Use descriptions, it's possible to set a left margin and break the  
> text
> across pages.

Thanks Wolfgang!  That is exactly what I needed.

Cheers,
Rory

>
>
> 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] XeTeX old style numerals

2008-10-14 Thread Wolfgang Schuster
On Sat, Oct 11, 2008 at 10:10 PM, Mohamed Bana <[EMAIL PROTECTED]> wrote:
> So ... can someone provide a sample file of a document that uses old
> style by default?
>
> Clearly the following doesn't work;

The fast way (works only for MkII):

\definefontfeature[default][deault][script=latn,onum=yes]

> \definetypeface[myface][rm][Xserif][Minion Pro]
> % i've also tried
> %\definetypeface[myface][rm][Xserif][Warnock Pro]
> \definetypeface[myface][ss][Xsans][Myriad Pro]
> \definetypeface[myface][tt][Xmono][Consolas]
> \setupbodyfont[myface, 11pt]

The better way (works for MkII and MkIV):

\starttypescript [serif] [minion-pro]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [MinionPro-Regular][features=default]
  \definefontsynonym [SerifBold]   [MinionPro-Bold]   [features=default]
  \definefontsynonym [SerifItalic] [MinionPro-Italic] [features=default]
  \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic] [features=default]
\stoptypescript

\starttypescript [serif] [minion-pro-os]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [MinionPro-Regular]
[features=oldstyle]
  \definefontsynonym [SerifBold]   [MinionPro-Bold]
[features=oldstyle]
  \definefontsynonym [SerifItalic] [MinionPro-Italic]
[features=oldstyle]
  \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic]
[features=oldstyle]
\stoptypescript

\starttypescript [serif] [minion-pro,minion-pro-os]
  \definefontsynonym [MinionPro-Regular][file:MinionPro-Regular]
[features=default]
  \definefontsynonym [MinionPro-Bold]   [file:MinionPro-Bold]
[features=default]
  \definefontsynonym [MinionPro-Italic] [file:MinionPro-It]
[features=default]
  \definefontsynonym [MinionPro-BoldItalic] [file:MinionPro-BoldIt]
[features=default]
\stoptypescript

\starttypescript [minion-pro,minion-pro-os]
  \definetypeface [minion-pro] [rm] [serif] [\typescriptone] [default]
\stoptypescript

%\usetypescript[minion-pro]
\usetypescript[minion-pro-os]
\setupbodyfont[minion-pro]

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] minimal example for Cyrillic

2008-10-14 Thread Radhelorn
Some time ago this example used to work:

\enableregime[utf]

\usetypescript[modern-base][t2a]
\setupbodyfont[modern]

\starttext
Немного текста.
\stopbuffer

This requires cm-super package. Unfortunately after some update this
stopped working.

If someone puts me on a right way to start debugging font loading
mechanism I'll try to sort this out. Problem is that map files seem to
be loaded, fonts are installed in right places but ConTeXt doesn't try
to generate tfm. It just always uses default fonts (LM ones with ec
encoding). I've tried varous combinations (\setupencoding, fiddling with
typescripts) with no difference. Tried this on MkII, as MkIV seem to
require even more tuning.

Gour wrote:
> Hello!
>
> I was able to persuade one user to prepare ConTeXt package for NixOS
> distro, but, unfortunately, being from Russia he quickly discovered that
> he minimal example from wiki (http://wiki.contextgarden.net/Russian)
> does not work, i.e.
>
> \enableregime[utf]
> \useencoding[cyr]
>
> \definetypeface [russian]
>   [rm] [serif] [computer-modern] [default] [encoding=t2a]
>
> \setupbodyfont[russian]
> \starttext
> Мама и Папа % Some Russian characters
> \stoptext
>
>
> does transliterate Russian characters.
>
> I do not have any experience working with Cyrillic, so if anyone can
> provide minimal working example it would be very nice?
>
> I persistently claimed that "it must work!" :-)
>
>
> Sincerely,
> Gour
>
>   
> 
>
> ___
> 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
> ___
>   

-- 
Best Regards,
Oleg Kolosov

___
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] Equivalent of LaTeX \cancel? and Thanks!

2008-10-14 Thread Wolfgang Schuster
On Sun, Oct 12, 2008 at 4:17 PM, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Benjamin R. Haskell wrote:
>> Hi all,
>>
>> I recently transitioned from LaTeX to ConTeXt. There was some particular
>> thing I needed to do (which escapes me at the moment) that was far, far
>> easier to do in ConTeXt than in LaTeX. And, as I've learned, I've found
>> that that's quite often the case. So, a huge thank you to everyone
>> involved.
>>
>> A couple hours ago I was annoyed that I couldn't find an equivalent for
>> the LaTeX 'cancel' environment/command/style(?)[1]. Now, I'm truly amazed
>> that 'cancel' required a whole package.
>>
>> After discovering that 'underline' and 'strikethrough' were implemented as
>> overlays, I quickly coded up the following:
>>
>> \startuseMPgraphic{MyCancel}
>>  draw (0,.2*\overlayheight)--(\overlaywidth,\overlayheight);
>> \stopuseMPgraphic
>> \defineoverlay[mycancel][\useMPgraphic{MyCancel}]
>>
>> \def\cancel#1{\framed[background=mycancel,frame=off]{#1}}
>>
>>
>> Now, I'm sure this is not *quite* the right way to do it. The 'cancel'ed
>> items end up being placed too high on the line, and other spacings are
>> slightly off. But, taking a cue from underlining, I kept the MyCancel
>> graphic and tried:
>>
>> \definetextbackground
>> [cancel]
>> [location=text,
>>  alternative=1,
>>  background=mycancel]
>> % plus boilerplate for setting up \startcancel\stopcancel
>>
>> But, while composing this email, I found what I wanted, which still
>> isn't ``right'' in some sense:
>>
>> \def\cancel#1{\framed[background=mycancel,frame=off,width=fit,height=fit,strut=no]{#1}}
>>
>> I found the parameters for \framed. I'm still learning to Read The
>> Fantastic Manuals, but sent this anyway since I wanted to say thanks.
>
>
> \startuseMPgraphic{mpos:par:cancel}
> for i=1 upto nofmultipars :
> draw
> .2[llcorner multipars[i],ulcorner multipars[i]] --
> .2[urcorner multipars[i],lrcorner multipars[i]] ;
> endfor ;
> \stopuseMPgraphic
>
> \definetextbackground[cancel][location=text,mp=mpos:par:cancel]
>
> \def\startcancel{\starttextbackground[cancel]}
> \def\stopcancel {\stoptextbackground}
> \def\cancel {\groupedcommand\startcancel\stopcancel}
>
> however, this is kind of fuzzy when you cross lines
>
> an alternative is to use:
>
> \definetextbackground[cancel][location=text,alternative=4,background=,frame=off]
>
> \definestartstop
>   [cancel]
>   [before={\starttextbackground[cancel]},
>after=\stoptextbackground]

\definestartstop is not neccessary because \definetextbackground defines
\start/\stopcancel and \cancel as shortcuts ;-)

> however, there is a glitch in the drawing so you need a patch
>
> \startMPinclusions
> def draw_multi_pars  =
>   for i=1 upto nofmultipars :
> do_draw_par(multipars[i]) ;
> if boxgridtype= 1 :
>   draw baseline_grid (multipars[i],if multilocs[i]=1: down else: up
> fi,true) ; % withcolor boxgridcolor ;
> elseif boxgridtype= 2 :
>   draw baseline_grid (multipars[i],if multilocs[i]=1: down else: up
> fi,false) ; % withcolor boxgridcolor ;
> elseif boxgridtype= 3 :
>   draw baseline_grid (multipars[i],if multilocs[i]=1: down else: up
> fi,true) ; % withcolor boxgridcolor ;
>   draw baseline_grid (multipars[i],if multilocs[i]=1: down else: up
> fi,true) shifted (0,ExHeight) ; % withcolor boxgridcolor ;
> elseif boxgridtype= 4 :
>   draw baseline_grid (multipars[i],if multilocs[i]=1: down else: up
> fi,true) shifted (0,ExHeight/2) ; % withcolor boxgridcolor ;
> elseif boxgridtype=11 :
>   draw
> graphic_grid(multipars[i],boxgriddistance,boxgriddistance,boxgriddistance/2,boxgriddistance/2)
> ;
> elseif boxgridtype=12 :
>   draw graphic_grid(multipars[i],boxgriddistance,boxgriddistance,0,0) ;
> fi ;
>   endfor ;
> enddef ;
> \stopMPinclusions
>
> (will be fixed in the next release)

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] XML

2008-10-14 Thread Wolfgang Schuster
On Thu, Oct 9, 2008 at 8:13 PM, Johannes Graumann
<[EMAIL PROTECTED]> wrote:
> Wolfgang Schuster  googlemail.com> writes:
>
>> \xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
>>
>> or
>>
>> \usezipfile[\inputfilename.odt]
>> \xmlprocess{main}{*/content.xml}{}
>
> Thank you very much - very nice!
>
>> You could use this for the start but it behavious a little bit weird.
>>
>>   \unprotect
>>
>>   \def\switchfontstyle
>> {\ifx\fontalternative\c!tf \it \else
>>  \ifx\fontalternative\c!bf \bi \else
>>\it \fi\fi}
>>
>>   \protect
>>
>>   \xmlmapvalue {fo:font-style}  {italic} {\switchfontstyle}
>
> Hmm ... if I understand this correctly this is aimed at dealing with nested
> bold/italic attributes?
>
> While I'm certainly going to fall over this rather soon, I think the issue 
> here
> is that the following excerpt, where "T1" and "T2" correspond to bold and 
> italic
> definitions further up, is misinterpreted such that the opening "text:span" of
> the "T1" section is taken for the beginning of the "T2" section instead and 
> "T2"
> is accordingly applied to the whole construct ...
>
> 
>   Versuch
>   
>  Bold Versuch
>   
>   
>  Italic Versuch
>   
> 
>
> Where in Hans' snippet below might that be fixable?
>
> \startxmlsetups office
>   \xmlsetsetup{main}{text:p|text:span}{*}
> \stopxmlsetups
> xmlregistersetup{office}
>
> \startxmlsetups text:p
>   \xmlflush{#1}\par
> \stopxmlsetups
>
> \startxmlsetups text:span
>   \bgroup
>
> \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties
> /command(do:style:text-properties)}
>  \xmlflush{#1}
>   \egroup
> \stopxmlsetups

  \startxmlsetups text:span
\bgroup
  \xmlfilter{main}{office:automatic-styles/style:[EMAIL 
PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
  \xmlflush{#1}
\egroup
  \stopxmlsetups

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] bib module or other in luatex

2008-10-14 Thread Andrea Valle

Ok, thanks, I'll update

Best
-a-

On 13 Oct 2008, at 09:56, Taco Hoekwater wrote:




Andrea Valle wrote:


What am I missing?


It could be a bug in that beta, it works for me
(with the latest beta, 2008.10.09)

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
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.myspace.com/andreavalle
--> [EMAIL PROTECTED]
--


"
Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty
"
(Ken Perlin on noise)





___
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
___