Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Symbols post and replies

Return to the Symbols thread
Login to post to this thread

SYmbols like ASCII or Unicode - Jul 9 at 10:57AM
Apostolos Michaloudis
28 Posts

Hi.
Is there a posibility to add symbols like the copyright symbol or
to writ m1, with number 1 being a subscript?
I tried something like m\u2081 but it does't work.

Post edited July 9, 2017 at 11:26 AM EST.


Replies to SYmbols like ASCII or Unicode

Re: SYmbols like ASCII or Unicode - Jul 09 3:30PM
Francisco Esquembre
221 Posts

Hi,

where do you want to add them?

In a Java or in a JavaScript Simulations?

In a label or in a text drawable?

In a HtmlView interface element (for JavaScript simulations) try this: https://www.w3schools.com/html/html_symbols.asp

Hope this helps.

Paco



Re: Re: SYmbols like ASCII or Unicode - Jul 13 11:04AM
Apostolos Michaloudis
28 Posts

Mr Esquembre, thank you for your repply.
I use Java-flavor simulations.
I want to add them as String name in a label for example.
Or in a slider i want to write

"v1 = 0.00 m/s"

but i want the number 1 as subscript.
Is this possible?

Post edited July 13, 2017 at 11:04 AM EST.



Re: Re: Re: SYmbols like ASCII or Unicode - Jul 16 5:24AM
Francisco Esquembre
221 Posts

Hum. I am afraid that it is not. Plotting panels accept kind of LaTeX style for titles, so you can write (in a Plotting panel title) $v_{1}$

But not in standard Labels, sorry.

(Javascript is much better in this sense, since it allows HTML.)

Paco



The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics