ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vit Zyka <vit.zyka@seznam.cz>
Subject: Re: bug in beta: extra \else
Date: Wed, 18 Oct 2006 13:02:02 +0200	[thread overview]
Message-ID: <453609AA.8060102@seznam.cz> (raw)
In-Reply-To: <4533E2C9.5080601@wxs.nl>

Hans Hagen wrote:
> Vit Zyka wrote:
>> Hans Hagen wrote:
>>> Wolfgang Schuster wrote:
>>>> On Fri, 13 Oct 2006 19:16:58 -0400 (EDT)
>>>> Aditya Mahajan <adityam@umich.edu> wrote:
>>>>
>>>>  
>>>>> On Fri, 13 Oct 2006, Vit Zyka wrote:
>>>>>
>>>>>    
>>>>>> Hans Hagen wrote:
>>>>>>      
>>>>>>> Vit Zyka wrote:
>>>>>>>        
>>>>>>>> Hans Hagen wrote:
>>>>>>>>          
>>>>>>>>> Vit Zyka wrote:
>>>>>>>>>            
>>>>>>>>>> Hi all,
>>>>>>>>>>
>>>>>>>>>> there is some deep bug that was discovered translating 
>>>>>>>>>> Beginners manual. Let take single chapter e.g. 
>>>>>>>>>> ma-cb-cz-alignments.tex
>>>>>>>>>>
>>>>>>>>>> With today beta I got .log attached (error ! Extra \else)
>>>>>>>>>> This will appear in both modes screen and normal.
>>>>>>>>>>
>>>>>>>>>> Interesting is that no error appears in context 2006-05-28.
>>>>>>>>>>               
>>>>>>>>> quite some code is being rewritten / adapted to context mkiv so 
>>>>>>>>> there could be low level differences
>>>>>>>>>
>>>>>>>>> can you make a small example, since this else problem can come 
>>>>>>>>> from other places than reported
>>>>>>>>>             
>>>>>>>> There are demonstrative files. Please, run
>>>>>>>>   texmfstart texexec --pdf ma-cb-cz-test.tex
>>>>>>>> and
>>>>>>>>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex
>>>>>>>>           
>>>>>>> this file: ma-cb-env-cz.tex refers to itself and probably should 
>>>>>>> be :
>>>>>>> \startenvironment ma-cb-env-cz
>>>>>>>
>>>>>>> \environment ma-cb.tex
>>>>>>>
>>>>>>> \mainlanguage[cz]
>>>>>>> \language[en]
>>>>>>> \enableregime[latin2]
>>>>>>>
>>>>>>> \stopenvironment
>>>>>>>         
>>>>>> Sorry, my fault but it does not solve the problem. I obtain the 
>>>>>> same error with fresh context and corrected version of this file:
>>>>>>
>>>>>> -----------------------------------------
>>>>>> \startenvironment ma-cb-env-cz
>>>>>>
>>>>>> \mainlanguage[cz]
>>>>>> \language[en]
>>>>>> \enableregime[latin2]
>>>>>>
>>>>>> \stopenvironment
>>>>>> -----------------------------------------
>>>>>>       
>>>>> There is something wrong with ma-cb environment files. The file 
>>>>> ma-cb-en does not compile. I get an error
>>>>>
>>>>> ! Undefined control sequence.
>>>>> \@@olbackground ->\StatusAchtergrond
>>>>>
>>>>> \doifvaluesomething ...inga {\csname #1\endcsname
>>>>>                                                    }\ifx \!!stringa 
>>>>> \empty \e...
>>>>>
>>>>> \stoplocalframed ...ing {\@@framed \c!background }
>>>>>                                                    \dobackedbox 
>>>>> \handleframed...
>>>>>
>>>>> \PlaatschapterStatus ... [\v!chapter \v!number ]}}
>>>>>                                                     \vskip 0pt plus 
>>>>> \scratchc...
>>>>> <argument> \PlaatschapterStatus
>>>>>                                  {}{}{}
>>>>> \firstoftwoarguments #1#2->#1
>>>>>
>>>>> ...
>>>>> l.19     \Introduction   {Introduction}
>>>>>
>>>>>
>>>>> I tried making minimal example of the file that you posted, but 
>>>>> always get the same error. I am pretty certain that ma-cb-en.tex 
>>>>> used to compile in the past.
>>>>>
>>>>> Aditya
>>>>>     
>>>> Hi Aditya,
>>>>
>>>> I had the same problems in past in solved them by myself. The problems
>>>> are dutch commands in the style-files and a typo.
>>>>
>>>> I attached my corrected style-files, because it is faster to replace
>>>> send you the files than I need to look where I made corrections.
>>>>
>>>> The files did not correct the problem with the backgrounds in the
>>>> headers Vit has mentioned.   
>>>         \edef\StatusAchtergrond
>>>           {StatusAchtergrond%
>>>            \ifodd\realpageno R\else\ifdoublesided L\else R\fi\fi}%
>>>
>>> \ifdubbelzijdig -> \ifdoublesided 
>>>
>>> this low level if has been changed, ad a result tex's 'fast if then 
>>> else ' skip routine does not see the \ifdubbelzijdig is if and gets 
>>> confused
>>> Hans 
>> Great, thank you Hans!
>>
>> Let us process to teh next two problems also visible in the test file.
>>
>> 1. In the chapter ornament (a gray spiral with red dots) the red dots 
>> are not dots but lines.
> that was a tough one (esp because my by-now reference mkiv converter 
> also had this problem)
> 
> in meta-pdf.mkii patch:
> 
> \def\flushconcatMPsegment
>   {\ifcase\getMPkeyword\relax
>      \flushMPconcatmoveto
>      \resetMPmoveto
>      \doMPconcat{\gMPs1}\a{\gMPs2}\b%
>      \PDFcode{\!MP\a\space\!MP\b\space l}%
>    \or
>      \flushMPconcatmoveto
>      \resetMPmoveto
>      \doMPconcat{\gMPs1}\a{\gMPs2}\b%
>      \doMPconcat{\gMPs3}\c{\gMPs4}\d%
>      \doMPconcat{\gMPs5}\e{\gMPs6}\f%
>      \PDFcode{\!MP\a\space\!MP\b\space
>               \!MP\c\space\!MP\d\space
>               \!MP\e\space\!MP\f\space c}%
>    \or
>      \bgroup
>      \noMPtranslate
>      \flushMPconcatmoveto
>      \PDFcode{\!MP\lastMPmoveX\space \!MP\lastMPmoveY\space l S}
>      \egroup
>      \resetMPmoveto
>    \or
> %      \flushMPconcatmoveto
> %      \resetMPmoveto
>    \fi}

Great Hans, it works well! Thank you
Vit

      reply	other threads:[~2006-10-18 11:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-10 22:05 Vit Zyka
2006-10-11  7:47 ` Hans Hagen
2006-10-11 10:42   ` Vit Zyka
2006-10-11 19:40     ` Hans Hagen
2006-10-13 21:45       ` Vit Zyka
2006-10-13 23:16         ` Aditya Mahajan
2006-10-14 15:35           ` Wolfgang Schuster
2006-10-14 17:58             ` Hans Hagen
2006-10-15 21:59               ` Vit Zyka
2006-10-16 15:06                 ` Aditya Mahajan
2006-10-16 15:09                   ` Aditya Mahajan
2006-10-16 17:12                     ` Hans Hagen
2006-10-18 11:02                       ` Vit Zyka
2006-10-16 17:16                   ` Hans Hagen
2006-10-16 19:51                 ` Hans Hagen
2006-10-18 11:02                   ` Vit Zyka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=453609AA.8060102@seznam.cz \
    --to=vit.zyka@seznam.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).