ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \head: broken?
@ 2014-07-12 23:11 Rob Heusdens
  2014-07-12 23:32 ` Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Heusdens @ 2014-07-12 23:11 UTC (permalink / raw)
  To: ntg-context

Hello to all,

I don't know if it is due to -the weather- or -the Worldchampionships-
or other but in my Context release [ConTeXt  ver: 2014.07.11 12:20 MKIV
beta  fmt: 2014.7.12  int: english/english] \head is broken.

Is that a feature or a bug?

greetings,

Rob
-------

\head: broken?

When the \head command is used without a following line of normal text, it
will result in a context-error.

MNWE:
\startitemize[n]
\head x
\stopitemize

MWE:
\startitemize[n]
\head x
anything
\stopitemize


___________________________________________________________________________________
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] 5+ messages in thread

* Re: \head: broken?
  2014-07-12 23:11 \head: broken? Rob Heusdens
@ 2014-07-12 23:32 ` Aditya Mahajan
  0 siblings, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2014-07-12 23:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> On Jul 12, 2014, at 7:11 PM, "Rob Heusdens" <robheus@xs4all.nl> wrote:
> 
> Hello to all,
> 
> I don't know if it is due to -the weather- or -the Worldchampionships-
> or other but in my Context release [ConTeXt  ver: 2014.07.11 12:20 MKIV
> beta  fmt: 2014.7.12  int: english/english] \head is broken.
> 
> Is that a feature or a bug?
> 
> greetings,
> 
> Rob
> -------
> 
> \head: broken?
> 
> When the \head command is used without a following line of normal text, it
> will result in a context-error.
> 
> MNWE:
> \startitemize[n]
> \head x
> \stopitemize
> 
> MWE:
> \startitemize[n]
> \head x
> anything
> \stopitemize

\head uses \par as a delimiter. So you either need to add an empty line or an explicit \par. 

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \head: broken?
  2014-07-16 12:52 ` Wolfgang Schuster
@ 2014-07-18 11:05   ` Rob Heusdens
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Heusdens @ 2014-07-18 11:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks. I think I could have figured out that one myself. I guess it's my
own head a bit broken atm...
But I should mention that the contextgarden article mentions only one
option for \startitemize, perhaps that is why I got misleaded there.

(http://wiki.contextgarden.net/Command/startitemize)

Greetings,

Rob

>
> You can’t mix keywords and assignment in the same argument of a
> setup-command, e.g.
>
>     \staritemize[packed,headstyle=bold]
>
> but some commands have multiple arguments which you use for both types,
> e.g.
>
>     \startitemize[packed][headstyle=bold]
>
> BTW: A minimal example should be compilable (i.e. you need \starttext and
> \stoptext) which isn’t the case with your example.
>
> 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
> ___________________________________________________________________________________
>


___________________________________________________________________________________
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] 5+ messages in thread

* Re: \head: broken?
  2014-07-16 11:07 Rob Heusdens
@ 2014-07-16 12:52 ` Wolfgang Schuster
  2014-07-18 11:05   ` Rob Heusdens
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2014-07-16 12:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 16.07.2014 um 13:07 schrieb Rob Heusdens <robheus@xs4all.nl>:

> Hello All,
> 
> Still having problem with \head in \setupitemize.
> 
> - When I set the headstyle in \setupitemize, the numbering disappears and
> the symbol appear (like when I used '1' instead of 'n'). (ex. 1: MNWE)
> 
> - If I comment the headstyle out, numbers do appear. (ex. 2: MWE).
> 
> Why is that?

You can’t mix keywords and assignment in the same argument of a setup-command, e.g.

    \staritemize[packed,headstyle=bold]

but some commands have multiple arguments which you use for both types, e.g.

    \startitemize[packed][headstyle=bold]

BTW: A minimal example should be compilable (i.e. you need \starttext and \stoptext) which isn’t the case with your example.

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] 5+ messages in thread

* \head: broken?
@ 2014-07-16 11:07 Rob Heusdens
  2014-07-16 12:52 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Heusdens @ 2014-07-16 11:07 UTC (permalink / raw)
  To: ntg-context

Hello All,

Still having problem with \head in \setupitemize.

- When I set the headstyle in \setupitemize, the numbering disappears and
the symbol appear (like when I used '1' instead of 'n'). (ex. 1: MNWE)

- If I comment the headstyle out, numbers do appear. (ex. 2: MWE).

Why is that?

Greetings,

Rob


MWE:

<<<
\startitemize[n,packed,]%headstyle=bold]
\head End notes at end of each part.

In the original text and first \CONTEXT\ version this was done without the
footnote mechanism.
This is now being tranformed to the footnote mechanism, which provides
clicable, interactive links to notes.

\head Bibliography.

The full list of referenced literature (Bibliography) is transformed into
the Bib\TEX\ format used by \CONTEXT.\textnote{Notes often refer to
Bibliography entries. Currently these references are set as endnote, but
the Bib\TEX\ mechanism (cite reference) could be used instead. This would
show the Bib\TEX{}-key linked to the Bibliography.}

\head Index.

All items (often used terms, names of persons) are indexed.

\head Emphasis.

Where used in the {\sc html} version, {\em emphasis} is set in the
\CONTEXT\ version. In addition: titles (of books, etc.) are {\em
emphasized}.

\head List of contents per part & per chapter.

At the beginning of each part a list of chapters and in the beginning of
each chapter a list of sections using the standard list mechanism of
\CONTEXT\ (clickable, interactive links as used in the master contents,
instead of normal text).

\stopitemize
>>>

MNWE:

<<<

\startitemize[n,packed,headstyle=bold]
\head End notes at end of each part.

In the original text and first \CONTEXT\ version this was done without the
footnote mechanism.
This is now being tranformed to the footnote mechanism, which provides
clicable, interactive links to notes.

\head Bibliography.

The full list of referenced literature (Bibliography) is transformed into
the Bib\TEX\ format used by \CONTEXT.\textnote{Notes often refer to
Bibliography entries. Currently these references are set as endnote, but
the Bib\TEX\ mechanism (cite reference) could be used instead. This would
show the Bib\TEX{}-key linked to the Bibliography.}

\head Index.

All items (often used terms, names of persons) are indexed.

\head Emphasis.

Where used in the {\sc html} version, {\em emphasis} is set in the
\CONTEXT\ version. In addition: titles (of books, etc.) are {\em
emphasized}.

\head List of contents per part & per chapter.

At the beginning of each part a list of chapters and in the beginning of
each chapter a list of sections using the standard list mechanism of
\CONTEXT\ (clickable, interactive links as used in the master contents,
instead of normal text).

\stopitemize
>>>


___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2014-07-18 11:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-12 23:11 \head: broken? Rob Heusdens
2014-07-12 23:32 ` Aditya Mahajan
2014-07-16 11:07 Rob Heusdens
2014-07-16 12:52 ` Wolfgang Schuster
2014-07-18 11:05   ` Rob Heusdens

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).