ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Xan <dxpublica@telefonica.net>
Subject: Re: I can't change startitemize[n]--> startitemize[1]
Date: Thu, 23 Jul 2009 16:05:01 +0200	[thread overview]
Message-ID: <4A686E0D.7000505@wxs.nl> (raw)
In-Reply-To: <99771342-5FD0-4A61-97F8-E49B383CD6EE@gmail.com>

Wolfgang Schuster wrote:
> Hi Xan,
> 
> Have you ever considered to create a minimum example, your example is 
> far away from
> this and you would do not only other people a favor with this but you too.

indeed as it takes me 10 minutes of selective deletion to zoom in on the 
error (tip: use a bit more empty lines in your source)

\defineregister[symbol][symbols]

\starttext

\startitemize[1] \item test \stopitemize

\stoptext

as you redefine \symbol to be a register entry resolving \symbol[1] 
inside the itemize does not work any more as expected

so, when defining commands

- avoid built incommands
- for instance by using longer names
- or names that are unlikely to show up in the core
- or Symbol or MySymbol or so

furthermore, a few tips:

\setupbodyfont [cmr,11pt] % cmr, 11pt

% no need for cmr

\setuphead[chapter][style={\tfd\bf}]

% \bfd is a bit faster (no need for {} unless embedded [])

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=memoria,sort=author]

% avoid this in examples as we don't have your data

\usemodule[newmat]

% most math is in the core so that module is kind of obsolete

\usemodule[math-ams]

% not needed, as it is preloaded or loaded automatically

\hyphenation{do-cu-ment}
\hyphenation{pro-ble-ma}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{cor-res-po-nents}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% collect these exceptions and send then to mojca or arthur

\usemodule[tikz]
\usemodule[pgfmath]
\usetikzlibrary[mindmap,arrows,calc,decorations.pathmorphing,decorations.markings]

% it seems that something is loaded twice (or at least dimension 
registers are redefined)

\setupunderbar[alternative=b] % Fix underline style

% you can use the textbackgrounds for this (see anch-bar)


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
___________________________________________________________________________________


  reply	other threads:[~2009-07-23 14:05 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-23 12:06 Xan
2009-07-23 12:45 ` Wolfgang Schuster
2009-07-23 14:05   ` Hans Hagen [this message]
2009-07-23 14:33     ` Xan
2009-07-23 14:37       ` Hans Hagen
2009-07-23 14:48         ` luigi scarso
2009-07-23 14:58           ` Wolfgang Schuster
2009-07-23 15:05             ` luigi scarso
2009-07-23 15:10               ` Wolfgang Schuster
2009-07-23 15:16                 ` luigi scarso
2009-07-23 15:26                   ` luigi scarso
2009-07-23 15:33                   ` Wolfgang Schuster
2009-07-23 15:46                     ` luigi scarso
2009-07-23 15:05           ` Aditya Mahajan
2009-07-23 15:11             ` luigi scarso
2009-07-23 15:16             ` Wolfgang Schuster
2009-07-23 15:52               ` Aditya Mahajan
2009-07-23 15:57                 ` luigi scarso
2009-07-23 16:04                 ` Hans Hagen
2009-07-23 15:42         ` Xan

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=4A686E0D.7000505@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=dxpublica@telefonica.net \
    --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).