ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Horizontal space and framedtext
@ 2019-11-03  9:56 Fabrice Couvreur
  2019-11-03 10:53 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2019-11-03  9:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 377 bytes --]

Hello,
The \hspace [ ] command has no effect in an environment framedtext.
Why ?
Thank you.
Fabrice

\usecolors[xwi]
\starttext
\startframedtext[width=fit,frame=off,

 background=color,backgroundcolor=paleturquoise]

{\it lancers}\unknown

{\it dé}\unknown

Tant que {\it dé}\unknown Faire

\hspace[4em]\unknown

Fin Tant que
\stopframedtext
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1266 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Horizontal space and framedtext
  2019-11-03  9:56 Horizontal space and framedtext Fabrice Couvreur
@ 2019-11-03 10:53 ` Wolfgang Schuster
  2019-11-03 21:46   ` Fabrice Couvreur
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2019-11-03 10:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 283 bytes --]

Fabrice Couvreur schrieb am 03.11.2019 um 10:56:
> Hello,
> The \hspace [ ] command has no effect in an environment framedtext.
> Why ?
The \hspace command expects a named/predefined argument, e.g. 
\hspace[small] and all unknown names result in a horizontal skip of 0pt.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 946 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Horizontal space and framedtext
  2019-11-03 10:53 ` Wolfgang Schuster
@ 2019-11-03 21:46   ` Fabrice Couvreur
  2019-11-03 21:54     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2019-11-03 21:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1414 bytes --]

Hi Wolfgang,
I know it takes a predefined argument, but I wanted to quote the name of
the command as such  \hspace[]. Nevertheless, it does not work with this :

\usecolors[xwi]
\starttext
\startframedtext[width=fit,frame=off,

 background=color,backgroundcolor=paleturquoise]

{\it lancers}\unknown

{\it dé}\unknown

Tant que {\it dé}\unknown Faire


*\unknown*
*\hspace[big]\unknow*n

Fin Tant que
\stopframedtext
\stoptext

Thanks.
Fabrice


Le dim. 3 nov. 2019 à 11:54, Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> a écrit :

> Fabrice Couvreur schrieb am 03.11.2019 um 10:56:
>
> Hello,
> The \hspace [ ] command has no effect in an environment framedtext.
> Why ?
>
> The \hspace command expects a named/predefined argument, e.g.
> \hspace[small] and all unknown names result in a horizontal skip of 0pt.
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3842 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Horizontal space and framedtext
  2019-11-03 21:54     ` Wolfgang Schuster
@ 2019-11-03 21:53       ` Fabrice Couvreur
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Couvreur @ 2019-11-03 21:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1464 bytes --]

Thanks !

Le dim. 3 nov. 2019 à 22:54, Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> a écrit :

> Fabrice Couvreur schrieb am 03.11.2019 um 22:46:
>
> Hi Wolfgang,
> I know it takes a predefined argument, but I wanted to quote the name of
> the command as such  \hspace[]. Nevertheless, it does not work with this :
>
> \usecolors[xwi]
> \starttext
> \startframedtext[width=fit,frame=off,
>
>  background=color,backgroundcolor=paleturquoise]
>
> {\it lancers}\unknown
>
> {\it dé}\unknown
>
> Tant que {\it dé}\unknown Faire
>
>
> *\unknown*
> *\hspace[big]\unknow*n
>
> Fin Tant que
> \stopframedtext
> \stoptext
>
>
> \hspace works only in horizontal mode and when you try the command at the
> start of a paragraph you need \dontleavehmode to start the paragraph.
>
> \starttext
>
> \hspace[big]\unknown
>
> \dontleavehmode\hspace[big]\unknown
>
> \stoptext
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2965 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Horizontal space and framedtext
  2019-11-03 21:46   ` Fabrice Couvreur
@ 2019-11-03 21:54     ` Wolfgang Schuster
  2019-11-03 21:53       ` Fabrice Couvreur
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2019-11-03 21:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 760 bytes --]

Fabrice Couvreur schrieb am 03.11.2019 um 22:46:
> Hi Wolfgang,
> I know it takes a predefined argument, but I wanted to quote the name 
> of the command as such  \hspace[]. Nevertheless, it does not work with 
> this :
>
> \usecolors[xwi]
> \starttext
> \startframedtext[width=fit,frame=off,
>  background=color,backgroundcolor=paleturquoise]
>
> {\it lancers}\unknown
>
> {\it dé}\unknown
>
> Tant que {\it dé}\unknown Faire
>
> *\unknown
> *
> *\hspace[big]\unknow*n
>
> Fin Tant que
> \stopframedtext
> \stoptext

\hspace works only in horizontal mode and when you try the command at 
the start of a paragraph you need \dontleavehmode to start the paragraph.

\starttext

\hspace[big]\unknown

\dontleavehmode\hspace[big]\unknown

\stoptext

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1889 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-11-03 21:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-03  9:56 Horizontal space and framedtext Fabrice Couvreur
2019-11-03 10:53 ` Wolfgang Schuster
2019-11-03 21:46   ` Fabrice Couvreur
2019-11-03 21:54     ` Wolfgang Schuster
2019-11-03 21:53       ` Fabrice Couvreur

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).