ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Taco Hoekwater <taco@elvenkind.com>
Subject: Re: Removing Introduction section number
Date: Mon, 14 Jun 2010 12:30:30 +0200	[thread overview]
Message-ID: <201006141230.30408.alan.braslau@cea.fr> (raw)
In-Reply-To: <4C15FBDC.6070201@wxs.nl>

On Monday 14 June 2010 11:52:28 Hans Hagen wrote:
> On 14-6-2010 9:39, Alan BRASLAU wrote:
> >     \section[number=no]{Whatever}
> 
> this will not happen as the first argument is optional and reserved for
> a cross reference
> 
> Hans

Yes, of course!
How about \section[reference][number=no]{Whatever}?



The following is a bit verbose. It is related, but is more general than the 
subject of unnumbered sections...

I have to say that I am now a bit confused about the use of arguments in 
ConTeXt.

In LaTeX, optional arguments are contained within [] and required arguments 
are grouped within {}. However, in ConTeXt, the situation is not quite so 
clear. Take \section[reference]{Title} for example. Here, the reference is 
optional and the Title is required, so a title-less section would be 
\section{}. This is somewhat sane, even though one may well use sections 
without titles.

Contrast this with \cite (I choose this example as I just figured-out that its 
misuse was the cause of some obscure problems in a big project). We have 
\cite[key], rather then \cite{key} as in LaTeX. Is this because we may also 
have \cite[authoryear][key]? Of course, the key is not optional as one can 
hardly imagine using \cite without some sort of key, so one might expect 
usage: "as remarked by \cite[authoryear]{Einstein1905}."

My error was to have reflexively used \cite{key}, and this sort-of worked so I 
did not pay it any attention. However, here and there in my document, 
references, for example \chapter[ImportantStuff]{Important stuff} were broken, 
with no obvious reason. After correcting my use of \cite[key], other 
references were suddenly fixed.

Alan
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2010-06-14 10:30 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-13 20:08 Vyatcheslav Yatskovsky
2010-06-14  6:52 ` Taco Hoekwater
2010-06-14  7:39   ` Alan BRASLAU
2010-06-14  7:54     ` Taco Hoekwater
2010-06-14  8:04       ` Alan BRASLAU
2010-06-14  8:14         ` Taco Hoekwater
2010-06-14  9:52     ` Hans Hagen
2010-06-14 10:14       ` Peter Münster
2010-06-14 10:21         ` Hans Hagen
2010-06-14 10:27           ` John Haltiwanger
2010-06-14 10:30       ` Alan BRASLAU [this message]
2010-06-14 11:17         ` Taco Hoekwater
2010-06-14 13:40           ` Alan BRASLAU
2010-06-14 13:55             ` Hans Hagen
2010-06-14 10:12     ` Hans Hagen
     [not found] <mailman.1702.1276514035.4277.ntg-context@ntg.nl>
2010-06-14 11:18 ` Vyatcheslav Yatskovsky
     [not found] <mailman.0.1276509602.1911.ntg-context@ntg.nl>
2010-06-14 10:54 ` Vyatcheslav Yatskovsky
     [not found] <mailman.1480.1275862490.4277.ntg-context@ntg.nl>
2010-06-06 22:21 ` Vyatcheslav Yatskovsky
2010-06-06 22:23 ` Vyatcheslav Yatskovsky
2010-06-07 22:00   ` Rogutės Sparnuotos
     [not found] <mailman.1477.1275853449.4277.ntg-context@ntg.nl>
2010-06-06 20:57 ` Vyatcheslav Yatskovsky
2010-06-06 21:15   ` Wolfgang Schuster
2010-06-13 20:03     ` Vyatcheslav Yatskovsky
2010-06-14  6:48       ` Taco Hoekwater
2010-06-14 12:27       ` Wolfgang Schuster
2010-06-14 12:30         ` Vyatcheslav Yatskovsky
2010-06-06 21:20   ` Yury G. Kudryashov
2010-06-06 21:46     ` Alan BRASLAU

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=201006141230.30408.alan.braslau@cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    --cc=taco@elvenkind.com \
    /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).