Placing SVG icons and text side by side
How can I place an SVG icon "inline", i.e. side by side to some text? Here's my MWE ``` \useURL [github] [https://github.com/test] [] [github.com/test] \starttext \placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]} \from[github] \stoptext ``` I have attached a screenshot of the output and the SVG file.
Am 07.10.2021 um 11:24 schrieb noib3 via ntg-context
: How can I place an SVG icon "inline", i.e. side by side to some text? Here's my MWE
``` \useURL [github] [https://github.com/test] [] [github.com/test]
\starttext \placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]} \from[github] \stoptext ```
Just use \externalfigure, since \placefigure creates a float. If that’s not enough to keep it together, try a \hbox{} Hraban
On 10/7/2021 11:24 AM, noib3 via ntg-context wrote:
How can I place an SVG icon "inline", i.e. side by side to some text? Here's my MWE
``` \useURL [github] [https://github.com/test https://github.com/test] [] [github.com/test http://github.com/test]
\starttext \placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]} \from[github] \stoptext \figuresymbol[github.svg][conversion=mp,height=2ex]
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Henning Hraban Ramm
-
noib3