ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Csikos Bela <bcsikos425@freemail.hu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: description questions
Date: Tue, 21 Feb 2017 11:58:13 +0100 (CET)	[thread overview]
Message-ID: <freemail.20170221115813.88670.1@fmxmldata07.freemail.hu> (raw)
In-Reply-To: <alpine.LNX.2.20.1702201210400.28077@ybpnyubfg.ybpnyqbznva>

Aditya Mahajan írta:
>> I am experimenting with descriptions and I couldn't find in the documentation
>> the following:
>>
>> 1. What is the default value of width option? It seems that default width uses the
>> longest head + some distance for every head in a descriptions list. 

Sorry, I wasn't right. context uses a default width for head. Accidentally the longest
term I used in my document was almost the same as the default head width, therefore
I thought that the head was calculated according to my term's width.

>>Neither  width=fit nor width=broad,distance=dimension results in the same.
>
>Some information is given here: http://www.ntg.nl/maps/36/09.pdf
>Enumerations and descriptions share a lot of settings.

Thank you. I read it. I have a question: is it possible to add some text or command
between the head and text in description? For example a dash or symbol which separates the head from the text. In enumerations it seems to be different, because
there the variable head (title) goes after a static head. I would need the opposite:
variable head part - static head part. I tried to use headcommand option but it puts
stuff before head.

>There is no way to reset options in ConTeXt. The canonical way to do this 
>is:
>
>\definedescription[defa]
>\definedescription[defb][defa][width=broad, distance=1cm]
>
>\startdefa ... \stopdefa
>
>\startdefb ... \stopdefb
>
>(Untested): This should also work:
>
>\startdefa[width=broad, distance=1cm] ... \stopdefa

I see. 

Thank you again,

bcsikos
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2017-02-21 10:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-20 14:30 Csikos Bela
2017-02-20 17:15 ` Aditya Mahajan
2017-02-21 10:58   ` Csikos Bela [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=freemail.20170221115813.88670.1@fmxmldata07.freemail.hu \
    --to=bcsikos425@freemail.hu \
    --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).