Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output styling #65

Closed
walking-octopus opened this issue Dec 24, 2023 · 5 comments
Closed

Output styling #65

walking-octopus opened this issue Dec 24, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@walking-octopus
Copy link

https://www.wolfram.com/language/elementary-introduction/3rd-ed/07-colors-and-styles.html

Example:

Style["hello", 20, #] & /@ {Red, Orange, Blue, Purple}

Expected output:

image

Current output:

image

@JerryI
Copy link
Owner

JerryI commented Dec 24, 2023

Nice issue! :)
For now only Background-> is supported. However, it can be an easy fix for font-size and color.

@JerryI JerryI added the enhancement New feature or request label Dec 24, 2023
@JerryI
Copy link
Owner

JerryI commented Dec 25, 2023

Hm. I would like to ask you to join the discussion.
It seems, that Style not only decorate an expression, but also removes double quotes from string.
i.e.

not

"hello"

is decorated, but

hello

where " are hidden. But an expression is not a string, i should probably leave inner expression untouched expect for the color.

@walking-octopus
Copy link
Author

walking-octopus commented Dec 25, 2023

I'm not sure, I think this tiny detail doesn't seem important enough.

Since they also demonstrate use of Style inside a plot, I suspect it may somehow related to Graphics, thus no double quotes. But I'm not sure...

@JerryI
Copy link
Owner

JerryI commented Dec 25, 2023

Screenshot 2023-12-25 at 16 49 46

Looks like it is quite easy to override the color and font. I will implement it

@JerryI
Copy link
Owner

JerryI commented Apr 3, 2024

Finally fixes

Screenshot 2024-04-03 at 20 47 34

@JerryI JerryI closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants