\hbox to ... equivalent in ConTeXt (\framed)
Hi list. Is there an interface for \hbox to <size> via framed? I think it's not the ConTeXt spirit to do something like \framed[offset=0cm]{\hbox to 10cm{Uno dos tres}} where spacing is stretched so all the available space is filled, so I want to know about a better way. Thank you beforehand. Cordially, Jairo
On Fri, 26 Feb 2021, Jairo A. del Rio wrote:
Hi list.
Is there an interface for \hbox to <size> via framed? I think it's not the ConTeXt spirit to do something like
\framed[offset=0cm]{\hbox to 10cm{Uno dos tres}}
\framed[width=10cm]{....} and \framed[height=3cm, width=10cm]{...} if you want a box with a specified width and height.
where spacing is stretched so all the available space is filled, so I want to know about a better way. Thank you beforehand.
Aditya
Jairo A. del Rio schrieb am 26.02.2021 um 22:38:
Hi list.
Is there an interface for \hbox to <size> via framed? I think it's not the ConTeXt spirit to do something like
\framed[offset=0cm]{\hbox to 10cm{Uno dos tres}}
where spacing is stretched so all the available space is filled, so I want to know about a better way. Thank you beforehand.
\starttext \framed{Uno dos tres} \framed{\stretched[width=10cm]{Uno dos tres}} \framed[width=10cm,align=normal]{\stretched{Uno dos tres}} \stoptext Wolfgang
Nice, but it also adds spacing between characters inside a word. So, what I was asking is if I can stretch only spaces between words via key-value pairs in \framed, if possible, of course. Thank you very much. Jairo :) El vie, 26 de feb. de 2021 a la(s) 17:06, Wolfgang Schuster ( wolfgang.schuster.lists@gmail.com) escribió:
Jairo A. del Rio schrieb am 26.02.2021 um 22:38:
Hi list.
Is there an interface for \hbox to <size> via framed? I think it's not the ConTeXt spirit to do something like
\framed[offset=0cm]{\hbox to 10cm{Uno dos tres}}
where spacing is stretched so all the available space is filled, so I want to know about a better way. Thank you beforehand.
\starttext
\framed{Uno dos tres}
\framed{\stretched[width=10cm]{Uno dos tres}}
\framed[width=10cm,align=normal]{\stretched{Uno dos tres}}
\stoptext
Wolfgang
Jairo A. del Rio schrieb am 26.02.2021 um 23:09:
Nice, but it also adds spacing between characters inside a word. So, what I was asking is if I can stretch only spaces between words via key-value pairs in \framed, if possible, of course. Thank you very much.
\starttext \framed[width=10cm,align=normal]{\maxaligned{Uno dos tres}} \framed[width=10cm,align=paragraph]{Uno dos tres} \stoptext Wolfgang
Wow, both \maxaligned and "paragraph" are new (and useful) to me. Thank you again. Jairo El vie, 26 de feb. de 2021 a la(s) 17:24, Wolfgang Schuster ( wolfgang.schuster.lists@gmail.com) escribió:
Jairo A. del Rio schrieb am 26.02.2021 um 23:09:
Nice, but it also adds spacing between characters inside a word. So, what I was asking is if I can stretch only spaces between words via key-value pairs in \framed, if possible, of course. Thank you very much.
\starttext
\framed[width=10cm,align=normal]{\maxaligned{Uno dos tres}}
\framed[width=10cm,align=paragraph]{Uno dos tres}
\stoptext
Wolfgang
participants (3)
-
Aditya Mahajan
-
Jairo A. del Rio
-
Wolfgang Schuster