* setuphead bug?
@ 2014-10-07 15:28 Meer, H. van der
2014-10-07 15:59 ` Otared Kavian
0 siblings, 1 reply; 7+ messages in thread
From: Meer, H. van der @ 2014-10-07 15:28 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 514 bytes --]
There seems to be a problem in \setuphead, it produces a spurious else from the alternative=middle.
In the reference manual I see the possibilities: alternative = normal inmargin middle TEXT. Of these middle is the only one giving the else.
minimal example:
\setuphead[chapter][alternative=middle]
\starttext
\startchapter[title=TITLE]
\stopchapter
\stoptext
Is there a quick repair?
ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: english/english
Hans van der Meer
[-- Attachment #1.2: Type: text/html, Size: 1128 bytes --]
[-- Attachment #2: else-bug.pdf --]
[-- Type: application/pdf, Size: 6644 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: setuphead bug?
2014-10-07 15:28 setuphead bug? Meer, H. van der
@ 2014-10-07 15:59 ` Otared Kavian
2014-10-07 16:40 ` Meer, H. van der
0 siblings, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2014-10-07 15:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1270 bytes --]
Don’t you mean rather
\setuphead[chapter][align=middle]
instead of « alternative »?
Best regards: OK
On 07 Oct 2014, at 17:28, Meer, H. van der <H.vanderMeer@uva.nl> wrote:
>
> There seems to be a problem in \setuphead, it produces a spurious else from the alternative=middle.
>
> In the reference manual I see the possibilities: alternative = normal inmargin middle TEXT. Of these middle is the only one giving the else.
>
> minimal example:
>
> \setuphead[chapter][alternative=middle]
> \starttext
> \startchapter[title=TITLE]
> \stopchapter
> \stoptext
>
> Is there a quick repair?
>
> ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: english/english
>
>
> Hans van der Meer
>
>
>
> <else-bug.pdf>___________________________________________________________________________________
> 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 : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2593 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: setuphead bug?
2014-10-07 15:59 ` Otared Kavian
@ 2014-10-07 16:40 ` Meer, H. van der
2014-10-07 19:22 ` Otared Kavian
0 siblings, 1 reply; 7+ messages in thread
From: Meer, H. van der @ 2014-10-07 16:40 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 2174 bytes --]
\setuphead[chapter][align=middle] works out ok for me. Thanks!
But then, \setuphead[chapter][alternative=middle] seems quite correct, following the manual. The else seems strange then.
Hans van der Meer
On 07 Oct 2014, at 17:59, Otared Kavian <otared@gmail.com<mailto:otared@gmail.com>> wrote:
Don’t you mean rather
\setuphead[chapter][align=middle]
instead of « alternative »?
Best regards: OK
On 07 Oct 2014, at 17:28, Meer, H. van der <H.vanderMeer@uva.nl<mailto:H.vanderMeer@uva.nl>> wrote:
There seems to be a problem in \setuphead, it produces a spurious else from the alternative=middle.
In the reference manual I see the possibilities: alternative = normal inmargin middle TEXT. Of these middle is the only one giving the else.
minimal example:
\setuphead[chapter][alternative=middle]
\starttext
\startchapter[title=TITLE]
\stopchapter
\stoptext
Is there a quick repair?
ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: english/english
Hans van der Meer
<else-bug.pdf>___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl<http://www.pragma-ade.nl/> / http://tex.aanhet.net<http://tex.aanhet.net/>
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net<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<mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 4038 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: setuphead bug?
2014-10-07 16:40 ` Meer, H. van der
@ 2014-10-07 19:22 ` Otared Kavian
2014-10-07 20:32 ` Wolfgang Schuster
2014-10-07 20:32 ` Wolfgang Schuster
0 siblings, 2 replies; 7+ messages in thread
From: Otared Kavian @ 2014-10-07 19:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3439 bytes --]
Hi,
You are right, it seems that there is a trailing « else » somewhere in the sources…
Actually the possible keys for « alternative= » are
alternative=paragraph normal inmargin margin middle top bottom IDENTIFIER
and the following works fine also:
\setuphead[chapter] [number=no, alternative=middle]
\starttext
\startchapter[title=TITLE]
\input knuth.tex
\stopchapter
\stoptext
However, saying
\setuphead[chapter] [alternative=middle]
gives the wrong result you mentioned, suggesting that there is somewhere an « else » which shouldn’t be there.
Maybe Hans H. with the above informations can nail it down?
Best regards: OK
On 07 Oct 2014, at 18:40, Meer, H. van der <H.vanderMeer@uva.nl> wrote:
> \setuphead[chapter][align=middle] works out ok for me. Thanks!
>
> But then, \setuphead[chapter][alternative=middle] seems quite correct, following the manual. The else seems strange then.
>
> Hans van der Meer
>
>
>
> On 07 Oct 2014, at 17:59, Otared Kavian <otared@gmail.com> wrote:
>
>> Don’t you mean rather
>> \setuphead[chapter][align=middle]
>> instead of « alternative »?
>>
>> Best regards: OK
>>
>> On 07 Oct 2014, at 17:28, Meer, H. van der <H.vanderMeer@uva.nl> wrote:
>>
>>>
>>> There seems to be a problem in \setuphead, it produces a spurious else from the alternative=middle.
>>>
>>> In the reference manual I see the possibilities: alternative = normal inmargin middle TEXT. Of these middle is the only one giving the else.
>>>
>>> minimal example:
>>>
>>> \setuphead[chapter][alternative=middle]
>>> \starttext
>>> \startchapter[title=TITLE]
>>> \stopchapter
>>> \stoptext
>>>
>>> Is there a quick repair?
>>>
>>> ConTeXt ver: 2014.10.06 00:29 MKIV beta fmt: 2014.10.6 int: english/english
>>>
>>>
>>> Hans van der Meer
>>>
>>>
>>>
>>> <else-bug.pdf>___________________________________________________________________________________
>>> 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 : http://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 : http://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 : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 6453 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: setuphead bug?
2014-10-07 19:22 ` Otared Kavian
@ 2014-10-07 20:32 ` Wolfgang Schuster
2014-10-07 22:33 ` Hans Hagen
2014-10-07 20:32 ` Wolfgang Schuster
1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2014-10-07 20:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 07.10.2014 um 21:22 schrieb Otared Kavian <otared@gmail.com>:
> Hi,
>
> You are right, it seems that there is a trailing « else » somewhere in the sources…
> Actually the possible keys for « alternative= » are
>
> alternative=paragraph normal inmargin margin middle top bottom IDENTIFIER
>
> and the following works fine also:
>
> \setuphead[chapter] [number=no, alternative=middle]
> \starttext
> \startchapter[title=TITLE]
> \input knuth.tex
> \stopchapter
> \stoptext
>
> However, saying
>
> \setuphead[chapter] [alternative=middle]
>
> gives the wrong result you mentioned, suggesting that there is somewhere an « else » which shouldn’t be there.
> Maybe Hans H. with the above informations can nail it down?
strc-ren.mkiv
\startsetups[\??headrenderings:\v!middle]
\vbox {
\headsetupspacing
\veryraggedcenter
\let\\\endgraf
\let\crlf\endgraf
\ifconditional\headshownumber
\strut
\headnumbercontent
\par
- else
+ \else
\fakeheadnumbercontent % will also be done in the other ones (force consistency with numbered)
\fi
\begstrut
\headtextcontent
\endstrut
}
\stopsetups
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: setuphead bug?
2014-10-07 19:22 ` Otared Kavian
2014-10-07 20:32 ` Wolfgang Schuster
@ 2014-10-07 20:32 ` Wolfgang Schuster
1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2014-10-07 20:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 07.10.2014 um 21:22 schrieb Otared Kavian <otared@gmail.com>:
> Hi,
>
> You are right, it seems that there is a trailing « else » somewhere in the sources…
> Actually the possible keys for « alternative= » are
>
> alternative=paragraph normal inmargin margin middle top bottom IDENTIFIER
>
> and the following works fine also:
>
> \setuphead[chapter] [number=no, alternative=middle]
> \starttext
> \startchapter[title=TITLE]
> \input knuth.tex
> \stopchapter
> \stoptext
>
> However, saying
>
> \setuphead[chapter] [alternative=middle]
>
> gives the wrong result you mentioned, suggesting that there is somewhere an « else » which shouldn’t be there.
> Maybe Hans H. with the above informations can nail it down?
strc-ren.mkiv
\startsetups[\??headrenderings:\v!middle]
\vbox {
\headsetupspacing
\veryraggedcenter
\let\\\endgraf
\let\crlf\endgraf
\ifconditional\headshownumber
\strut
\headnumbercontent
\par
- else
+ \else
\fakeheadnumbercontent % will also be done in the other ones (force consistency with numbered)
\fi
\begstrut
\headtextcontent
\endstrut
}
\stopsetups
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-10-07 22:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-07 15:28 setuphead bug? Meer, H. van der
2014-10-07 15:59 ` Otared Kavian
2014-10-07 16:40 ` Meer, H. van der
2014-10-07 19:22 ` Otared Kavian
2014-10-07 20:32 ` Wolfgang Schuster
2014-10-07 22:33 ` Hans Hagen
2014-10-07 20:32 ` Wolfgang Schuster
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).