* how to insert a imagefile like a letter?
@ 2010-12-14 4:49 Jonas Stein
2010-12-14 8:48 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Jonas Stein @ 2010-12-14 4:49 UTC (permalink / raw)
To: ntg-context
bell.pdf provides a small bell in black and white as
vectordrawing
i'd like to get that bell in height of the current letter "f"
on the position where i type \bell
my first test with
\externalfigure[bell][width=1em]
creates a bell with lentgh of 1em... but
\define[]\bell{\externalfigure[bell][width=1em]\ }
.
.
\starttext
\bell
.
.
fails.
How can i get a small bell?
Kind regards,
--
Jonas Stein <news@jonasstein.de>
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to insert a imagefile like a letter?
2010-12-14 4:49 how to insert a imagefile like a letter? Jonas Stein
@ 2010-12-14 8:48 ` Wolfgang Schuster
2010-12-14 13:10 ` Jonas Stein
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2010-12-14 8:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 14.12.2010 um 05:49 schrieb Jonas Stein:
> bell.pdf provides a small bell in black and white as
> vectordrawing
>
>
> i'd like to get that bell in height of the current letter "f"
> on the position where i type \bell
>
> my first test with
> \externalfigure[bell][width=1em]
> creates a bell with lentgh of 1em... but
>
>
> \define[]\bell{\externalfigure[bell][width=1em]\ }
> .
> .
> \starttext
> \bell
> .
> .
>
>
> fails.
>
> How can i get a small bell?
\definefiguresymbol[bell][bell]
\starttext
… \symbol{bell} …
\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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to insert a imagefile like a letter?
2010-12-14 8:48 ` Wolfgang Schuster
@ 2010-12-14 13:10 ` Jonas Stein
2010-12-14 13:41 ` Jaroslav Hajtmar
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Jonas Stein @ 2010-12-14 13:10 UTC (permalink / raw)
To: ntg-context
>> bell.pdf provides a small bell in black and white as
>> vectordrawing
>> i'd like to get that bell in height of the current letter "f"
>> on the position where i type \bell
>>
>> my first test with
>> \externalfigure[bell][width=1em]
>> creates a bell with lentgh of 1em... but
>>
>> How can i get a small bell?
>
> \definefiguresymbol[bell][bell]
>
> \starttext
> … \symbol{bell} …
> \stoptext
that works fine. Thank you.
the bell has the size of a small 'n' how can i scale it to the
size of an 'f'?
\definefiguresymbol[bell][bell]
\define[]\bell{\symbol{bell}}
\starttext
… \bell …
\stoptext
fails. Why?
--
Jonas Stein <news@jonasstein.de>
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to insert a imagefile like a letter?
2010-12-14 13:10 ` Jonas Stein
@ 2010-12-14 13:41 ` Jaroslav Hajtmar
2010-12-14 14:03 ` Jaroslav Hajtmar
2010-12-14 21:26 ` Wolfgang Schuster
2 siblings, 0 replies; 7+ messages in thread
From: Jaroslav Hajtmar @ 2010-12-14 13:41 UTC (permalink / raw)
To: ntg-context
Hello Jonas,
I did not know about \definefiguresymbol - it's a great idea.
I would not tackled through framed. For example:
\def\bell{\framed[offset=none, frame=off,
width=1em]{\externalfigure[bell.pdf][width=1em]}}
It does not solve your problem?
Jaroslav
Dne 14.12.2010 14:10, Jonas Stein napsal(a):
>>> bell.pdf provides a small bell in black and white as
>>> vectordrawing
>>> i'd like to get that bell in height of the current letter "f"
>>> on the position where i type \bell
>>>
>>> my first test with
>>> \externalfigure[bell][width=1em]
>>> creates a bell with lentgh of 1em... but
>>>
>>> How can i get a small bell?
>>>
>> \definefiguresymbol[bell][bell]
>>
>> \starttext
>> … \symbol{bell} …
>> \stoptext
>>
> that works fine. Thank you.
>
> the bell has the size of a small 'n' how can i scale it to the
> size of an 'f'?
>
> \definefiguresymbol[bell][bell]
> \define[]\bell{\symbol{bell}}
> \starttext
> … \bell …
> \stoptext
>
> fails. Why?
>
>
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to insert a imagefile like a letter?
2010-12-14 13:10 ` Jonas Stein
2010-12-14 13:41 ` Jaroslav Hajtmar
@ 2010-12-14 14:03 ` Jaroslav Hajtmar
2010-12-14 21:26 ` Wolfgang Schuster
2 siblings, 0 replies; 7+ messages in thread
From: Jaroslav Hajtmar @ 2010-12-14 14:03 UTC (permalink / raw)
To: ntg-context
Hello Jonas,
here is dimensional correction according to the dimensions in the parameter:
\def\bell#1{\setbox0=\hbox{#1}\framed[offset=none, frame=off,
width=\the\wd0,
height=\the\ht0]{\externalfigure[bell.pdf][width=\the\wd0,height=\the\ht0]}}
Jaroslav
Dne 14.12.2010 14:10, Jonas Stein napsal(a):
>>> bell.pdf provides a small bell in black and white as
>>> vectordrawing
>>> i'd like to get that bell in height of the current letter "f"
>>> on the position where i type \bell
>>>
>>> my first test with
>>> \externalfigure[bell][width=1em]
>>> creates a bell with lentgh of 1em... but
>>>
>>> How can i get a small bell?
>>>
>> \definefiguresymbol[bell][bell]
>>
>> \starttext
>> … \symbol{bell} …
>> \stoptext
>>
> that works fine. Thank you.
>
> the bell has the size of a small 'n' how can i scale it to the
> size of an 'f'?
>
> \definefiguresymbol[bell][bell]
> \define[]\bell{\symbol{bell}}
> \starttext
> … \bell …
> \stoptext
>
> fails. Why?
>
>
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to insert a imagefile like a letter?
2010-12-14 13:10 ` Jonas Stein
2010-12-14 13:41 ` Jaroslav Hajtmar
2010-12-14 14:03 ` Jaroslav Hajtmar
@ 2010-12-14 21:26 ` Wolfgang Schuster
2010-12-17 6:29 ` Jonas Stein
2 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2010-12-14 21:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 14.12.2010 um 14:10 schrieb Jonas Stein:
>>> bell.pdf provides a small bell in black and white as
>>> vectordrawing
>>> i'd like to get that bell in height of the current letter "f"
>>> on the position where i type \bell
>>>
>>> my first test with
>>> \externalfigure[bell][width=1em]
>>> creates a bell with lentgh of 1em... but
>>>
>>> How can i get a small bell?
>>
>> \definefiguresymbol[bell][bell]
>>
>> \starttext
>> … \symbol{bell} …
>> \stoptext
>
> that works fine. Thank you.
>
> the bell has the size of a small 'n' how can i scale it to the
> size of an 'f'?
>
> \definefiguresymbol[bell][bell]
\definefiguresymbol[bell][bell][height=2ex]
> \define[]\bell{\symbol{bell}}
\define\bell{\externalfigure[bell][height=2ex]}
Why do you need a command, symbols are the perfect tool for this
and with a symbol you can even do this:
\startitemize[bell]
\item One
\item Two
\item Three
\stopitemize
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to insert a imagefile like a letter?
2010-12-14 21:26 ` Wolfgang Schuster
@ 2010-12-17 6:29 ` Jonas Stein
0 siblings, 0 replies; 7+ messages in thread
From: Jonas Stein @ 2010-12-17 6:29 UTC (permalink / raw)
To: ntg-context
> Why do you need a command, symbols are the perfect tool for this
> and with a symbol you can even do this:
i'd like to renew this document:
http://jonasstein.de/lib/exe/fetch.php?id=download&cache=cache&media=signaltabelle.pdf
the tex-code would be more readable if i could write \bell\ \bell\
kind regards,
--
Jonas Stein <news@jonasstein.de>
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-12-17 6:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-14 4:49 how to insert a imagefile like a letter? Jonas Stein
2010-12-14 8:48 ` Wolfgang Schuster
2010-12-14 13:10 ` Jonas Stein
2010-12-14 13:41 ` Jaroslav Hajtmar
2010-12-14 14:03 ` Jaroslav Hajtmar
2010-12-14 21:26 ` Wolfgang Schuster
2010-12-17 6:29 ` Jonas Stein
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).