ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A description question
Date: Tue, 6 Sep 2011 02:45:12 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.02.1109060243440.3205@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <1315290718.1655.7.camel@marcin-laptop>

On Tue, 6 Sep 2011, Marcin Borkowski wrote:

> Hi all!
>
> I have something like this:
>
> \definedescription[definition][
>  text=Definition,
>  location=hanging,
>  width=fit,
>  align=flushleft,
>  headstyle=bold,
>  style=normal,
> ]
>
> \startdefinition{whatever}
>  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent arcu
>  nisl, interdum nec dignissim sit amet, blandit eu purus. Nulla
>  facilisi. Vivamus quis metus mauris. Sed laoreet vulputate rhoncus.
>  Suspendisse quis metus nibh, sed ultricies orci. Ut dolor diam,
>  convallis vitae mollis a, ultricies vel mi. Integer leo nisl,
>  scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas augue
>  risus, suscipit id sodales sit amet, sagittis non augue. Praesent
>  tellus lorem, vulputate sed porta ut, eleifend ac leo. In et odio
>  libero, eget vulputate risus.
> \stopdefinition
>
> And I get something like this (stars mean bold):
> *Definitionwhatever* Lorem ipsum dolor sit amet, consectetur adipiscing
>  elit. Praesent arcu nisl, interdum nec dignissim sit amet, blandit eu
>  purus. Nulla facilisi. Vivamus quis metus mauris. Sed laoreet
>  vulputate rhoncus. Suspendisse quis metus nibh, sed ultricies orci. Ut
>  dolor diam, convallis vitae mollis a, ultricies vel mi. Integer leo
>  nisl, scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas
>  augue risus, suscipit id sodales sit amet, sagittis non augue.
>  Praesent tellus lorem, vulputate sed porta ut, eleifend ac leo. In et
>  odio libero, eget vulputate risus.
>
> And what I want is:
>
> *Definition* (whatever). Lorem ipsum dolor sit amet, consectetur
> adipiscing elit. Praesent arcu nisl, interdum nec dignissim sit amet,
> blandit eu purus. Nulla facilisi. Vivamus quis metus etc...
>
> That is, I'd like to have the following:
> - no indentation of the second and subsequent lines;
> - whatever should be prefixed with a space and an opening brace and
> suffixed with a closing brace and a period;
> - whatever should not be bold.
>
> Is it possible to accomplish this automatically?

Untested. Try

titleleft=(, titleright=), titlestyle=normal, distance=0.5em, 
location=serried,

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
___________________________________________________________________________________


  reply	other threads:[~2011-09-06  6:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-06  6:31 Marcin Borkowski
2011-09-06  6:45 ` Aditya Mahajan [this message]
2011-09-06  7:31   ` Marcin Borkowski
2011-09-06  7:44     ` Wolfgang Schuster
2011-09-06  7:58       ` Marcin Borkowski

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=alpine.LNX.2.02.1109060243440.3205@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).