Re: [NTG-context] Typing in natural width box

2016-11-09 Thread Hans Hagen

On 11/8/2016 3:10 PM, Henri Menke wrote:

Dear list,

To answer this question on TeX.SX 
https://tex.stackexchange.com/questions/338135/ I was trying to put a typing 
environment into a natural width box.  It first seemed that framedtext is doing 
what I was after but it turned out that only the frame is adjusted to natural 
width, the underlying box is still full width.  Therefore I tried framed but 
there I obtain spurious vertical space out of nowhere.  How can I place typing 
into a natural sized box?

Cheers, Henri

---

\starttext

\ruledhbox{%
  \startframedtext[width=fit,offset=0pt]


location=none


\starttyping
  print("Hello World!")
\stoptyping
  \stopframedtext
}

\ruledhbox{%
  \startframed[width=fit,align=right,offset=0pt]
\starttyping
  print("Hello World!")
\stoptyping
  \stopframed
}

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] indenting and whitespace in framedtext

2016-11-09 Thread Meer, Hans van der
Quoting from the command reference:

\startframedtext inherits \setupframedtext
and
\setupframedtext ... indenting = inherits \setupindenting

I interprete this as \setupindenting is carried to the inside of the framedtext 
but this thus not happen. Instead one explicitely sets it on the call of 
\startframedtext.
Why doesn't \startframedtext inherit the value from the document? This is a 
problem because I need this setup for framedtexts called in an inner module.

A second, even more serious problem for me is that the framedtext is ignoring 
the \setupwhitespace.

For both problems see the example below.

Hans van der Meer


\setupindenting[yes,first,medium]
\setupwhitespace[big]
\starttext
\ConTeXt-version = \contextversion

Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.

Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.

\tex{startframedtext[width=\textwidth]}\crlf
\startframedtext[width=\textwidth]
Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.

Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.
\stopframedtext

\tex{startframedtext[width=\textwidth,indenting={yes,first,medium}]}\crlf
\startframedtext[width=\textwidth,indenting={yes,first,medium}]
\setupwhitespace[big]\tex{setupwhitespace[big]}\par
Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.

Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.
\stopframedtext
\stoptext








indenting-framedtext.pdf
Description: indenting-framedtext.pdf
___
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
___

Re: [NTG-context] indenting

2016-11-09 Thread Meer, Hans van der
Indeed!
But it is a bit surprising that the default space for turning on indenting is 
identing by zero.

Hans van der Meer

On 9 Nov 2016, at 11:38, Mikael P. Sundqvist 
> wrote:

On Wed, Nov 9, 2016 at 11:12 AM, Meer, Hans van der 
> wrote:
I do not understand why this is not indented by the latest ConTeXt beta.
Neither do options [yes] or [first] on \setupindenting.

Hans van der Meer


\setupindenting[always]
\setupwhitespace[big]
\starttext
\ConTeXt version = \contextversion

Text fot testing indenting of praragraphs. A lot of nonsense just to fill
the paragraph so that more than one line is typeset. A lot of nonsense just
to fill the paragraph so that more than one line is typeset. A lot of
nonsense just to fill the paragraph so that more than one line is typeset.

Text fot testing indenting of praragraphs. A lot of nonsense just to fill
the paragraph so that more than one line is typeset. A lot of nonsense just
to fill the paragraph so that more than one line is typeset. A lot of
nonsense just to fill the paragraph so that more than one line is typeset.

Text fot testing indenting of praragraphs. A lot of nonsense just to fill
the paragraph so that more than one line is typeset. A lot of nonsense just
to fill the paragraph so that more than one line is typeset. A lot of
nonsense just to fill the paragraph so that more than one line is typeset.
\stoptext

I think you have to give the amount of indenting as well. Try for example

\setupindenting[always,medium]

/Mikael
___

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

Re: [NTG-context] indenting

2016-11-09 Thread Mikael P. Sundqvist
On Wed, Nov 9, 2016 at 11:12 AM, Meer, Hans van der  wrote:
> I do not understand why this is not indented by the latest ConTeXt beta.
> Neither do options [yes] or [first] on \setupindenting.
>
> Hans van der Meer
>
>
> \setupindenting[always]
> \setupwhitespace[big]
> \starttext
> \ConTeXt version = \contextversion
>
> Text fot testing indenting of praragraphs. A lot of nonsense just to fill
> the paragraph so that more than one line is typeset. A lot of nonsense just
> to fill the paragraph so that more than one line is typeset. A lot of
> nonsense just to fill the paragraph so that more than one line is typeset.
>
> Text fot testing indenting of praragraphs. A lot of nonsense just to fill
> the paragraph so that more than one line is typeset. A lot of nonsense just
> to fill the paragraph so that more than one line is typeset. A lot of
> nonsense just to fill the paragraph so that more than one line is typeset.
>
> Text fot testing indenting of praragraphs. A lot of nonsense just to fill
> the paragraph so that more than one line is typeset. A lot of nonsense just
> to fill the paragraph so that more than one line is typeset. A lot of
> nonsense just to fill the paragraph so that more than one line is typeset.
> \stoptext

I think you have to give the amount of indenting as well. Try for example

\setupindenting[always,medium]

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

[NTG-context] indenting

2016-11-09 Thread Meer, Hans van der
I do not understand why this is not indented by the latest ConTeXt beta. 
Neither do options [yes] or [first] on \setupindenting.

Hans van der Meer


\setupindenting[always]
\setupwhitespace[big]
\starttext
\ConTeXt version = \contextversion

Text fot testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset. A lot of nonsense just to 
fill the paragraph so that more than one line is typeset.

Text fot testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset. A lot of nonsense just to 
fill the paragraph so that more than one line is typeset.

Text fot testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset. A lot of nonsense just to 
fill the paragraph so that more than one line is typeset.
\stoptext






indenting.pdf
Description: indenting.pdf
___
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
___