Horizontal space and framedtext
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
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
___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
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
___________________________________________________________________________________
participants (2)
-
Fabrice Couvreur
-
Wolfgang Schuster