[NTG-context] framedtext and itemize

2014-07-22 Thread Meer, H. van der
I have a question regarding the interplay between framedtext and itemize.

Example
\startitemize[n]\startitem
\startframedtext[left][width=0.5\textwidth]\leavevmode
   some text
\stopframedtext
\stopitem\stopitemize

The framedtext is put on the next line instead of on the first of the item.
[cid:3B8394EB-ADB8-4DA9-9E09-6ACFB9389BB4]
How do I get here the top frameline of the framedtext aligned with the 1. of 
the itemnumber? Playing with the location-parameter on the \startframedtext 
doesn't seem to make any difference. Especially I would like the baseline of 
the  first line inside the framed text to be at the same level as the itemlabel.

Hans van der Meer



___
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
___

Re: [NTG-context] framedtext and itemize

2014-07-22 Thread Otared Kavian
Hi,

Maybe you want something like this:

\starttext
\startitemize[n]
\setlocalhsize
\item \framed[width=\localhsize,align=right]{Some text.}
\item \startframed[width=\localhsize,align=right] Some text. \stopframed
\stopitemize
\stoptext

Best regards: OK

On 22 Jul 2014, at 12:05, Meer, H. van der h.vanderm...@uva.nl wrote:

 I have a question regarding the interplay between framedtext and itemize.
 
 Example
 \startitemize[n]\startitem
 \startframedtext[left][width=0.5\textwidth]\leavevmode
some text
 \stopframedtext
 \stopitem\stopitemize
 
 The framedtext is put on the next line instead of on the first of the item.
 notframed.jpg
 How do I get here the top frameline of the framedtext aligned with the 1. of 
 the itemnumber? Playing with the location-parameter on the \startframedtext 
 doesn't seem to make any difference. Especially I would like the baseline of 
 the  first line inside the framed text to be at the same level as the 
 itemlabel.
 
 Hans van der Meer
 
 
 
 ___
 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
 ___

___
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
___

Re: [NTG-context] framedtext and itemize

2014-07-22 Thread Herbert Voss
Am 22.07.2014 16:12, schrieb Otared Kavian:

 Maybe you want something like this:
 
 \starttext
 \startitemize[n]
 \setlocalhsize
 \item \framed[width=\localhsize,align=right]{Some text.}
 \item \startframed[width=\localhsize,align=right] Some text. \stopframed
 \stopitemize
 \stoptext

or

\item \inframed[width=\localhsize,align=right]{Some text.}


Herbert


___
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
___


[NTG-context] framedtext in itemize

2012-01-04 Thread Hans van der Meer
Why does framedtext extends to the right in \itemize? Shouldn't the width be 
reduced by the extend of the item-shift? Isn't that the idea behind the 
fit-parameter.

It wouldn't be a problem to calculate a reduced width, but how can I access the 
marginshift caused by the item?

A minimal example:

\starttext
\startitemize[a]
\item \startframedtext[offset=0pt,width=fit]\input tufte\stopframedtext
\item \input tufte
\stopitemize
\startframedtext[offset=0pt,width=fit]\input tufte\stopframedtext
\stoptext

Hans van der Meer



itemize-frame.pdf
Description: Adobe PDF document

___
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
___

Re: [NTG-context] framedtext in itemize

2012-01-04 Thread Wolfgang Schuster

Am 04.01.2012 um 16:25 schrieb Hans van der Meer:

 Why does framedtext extends to the right in \itemize? Shouldn't the width be 
 reduced by the extend of the item-shift? Isn't that the idea behind the 
 fit-parameter.
 
 It wouldn't be a problem to calculate a reduced width, but how can I access 
 the marginshift caused by the item?

Use “width=local”.

Wolfgang
___
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
___


Re: [NTG-context] framedtext in itemize

2012-01-04 Thread Meer, H. van der
That is it! Thanks.

Hans van der Meer


On 4 jan. 2012, at 17:09, Wolfgang Schuster wrote:

 
 Am 04.01.2012 um 16:25 schrieb Hans van der Meer:
 
 Why does framedtext extends to the right in \itemize? Shouldn't the width be 
 reduced by the extend of the item-shift? Isn't that the idea behind the 
 fit-parameter.
 
 It wouldn't be a problem to calculate a reduced width, but how can I access 
 the marginshift caused by the item?
 
 Use “width=local”.
 
 Wolfgang


___
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
___