ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Placing SVG icons and text side by side
@ 2021-10-07  9:24 noib3 via ntg-context
  2021-10-07  9:39 ` Henning Hraban Ramm via ntg-context
  2021-10-07 17:22 ` Hans Hagen via ntg-context
  0 siblings, 2 replies; 3+ messages in thread
From: noib3 via ntg-context @ 2021-10-07  9:24 UTC (permalink / raw)
  To: ntg-context; +Cc: noib3


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

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.

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

[-- Attachment #2: 2021-10-07_11-22.png --]
[-- Type: image/png, Size: 4799 bytes --]

[-- Attachment #3: github.svg --]
[-- Type: image/svg+xml, Size: 1538 bytes --]

[-- Attachment #4: 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] 3+ messages in thread

* Re: Placing SVG icons and text side by side
  2021-10-07  9:24 Placing SVG icons and text side by side noib3 via ntg-context
@ 2021-10-07  9:39 ` Henning Hraban Ramm via ntg-context
  2021-10-07 17:22 ` Hans Hagen via ntg-context
  1 sibling, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-10-07  9:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm



> Am 07.10.2021 um 11:24 schrieb noib3 via ntg-context <ntg-context@ntg.nl>:
> 
> 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
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Placing SVG icons and text side by side
  2021-10-07  9:24 Placing SVG icons and text side by side noib3 via ntg-context
  2021-10-07  9:39 ` Henning Hraban Ramm via ntg-context
@ 2021-10-07 17:22 ` Hans Hagen via ntg-context
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2021-10-07 17:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2021-10-07 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07  9:24 Placing SVG icons and text side by side noib3 via ntg-context
2021-10-07  9:39 ` Henning Hraban Ramm via ntg-context
2021-10-07 17:22 ` Hans Hagen via ntg-context

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