ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Xan <dxpublica@telefonica.net>
To: ntg-context@ntg.nl
Subject: Re: Demostrations ala AMS
Date: Fri, 17 Apr 2009 15:40:50 +0200	[thread overview]
Message-ID: <49E886E2.3040300@telefonica.net> (raw)
In-Reply-To: <49E885FB.7000908@telefonica.net>

En/na Xan ha escrit:
> Hi,
>
> I like to have the same environments in ConTeXt like in amsthm LaTeX.
> With defineenumeration I did emulate thm and others, but now I trying 
> to have something like demostration.
>
> My code is:
>
> % AMSTHM
> \defineenumeration
>  [exercici]
>  
> [text={Problema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, 
>
> stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit, 
>
> before={\bgroup\startframedtext[background=screen,frame=off,width=broad]}, 
>
> after={\stopframedtext\egroup}]
>
> \defineenumeration
>  [lemma]
>  
> [text={Lema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, 
>
> stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,style=italic] 
>
>
> \definedescription[demo][location=serried,text={Demostración.},headstyle=bold, 
>
> indentnext=yes,between=\blank,before={\bgroup},after={$\Box$\egroup}]
>
>
> The **problem** is how to put qed symbol (for example $\Box$ in my 
> case) at the end of demo. I try with after but it's not works: \Box 
> appears in the next line at the begginning. Can someone help me?
>
> Thanks,
> Xan.
>
With
\definedescription[demo][location=serried,text={Demostración.},headstyle=bold,indentnext=yes,
between=\blank,before={\bgroup},after={\hfill$\Box$\egroup}]

demo puts \Box at the end of the following line. How to put _exactly_ at 
the end of the current line.?

Xan.
___________________________________________________________________________________
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-04-17 13:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-17 13:36 Xan
2009-04-17 13:40 ` Xan [this message]
2009-04-17 13:51   ` Wolfgang Schuster
2009-04-17 18:04   ` Xan
2009-04-17 19:05     ` Aditya Mahajan

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=49E886E2.3040300@telefonica.net \
    --to=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).