Ask Your Question
1

Is the fonts displayed in the show() command sizable

asked 2020-06-06 02:27:35 -0500

Cyrille gravatar image

When I typeset ?show() i am naturally redirected to`pretty_print. It seems to be able to change font

F = random_matrix(RR,7,50)
show(F[0],fontsize="4")

but whichever be the number I cannot see any diminution in size.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-06-06 19:13:44 -0500

Juanjo gravatar image

Use HTML and CSS properties:

F = random_matrix(RR,7,50)
show(html(f"<span style='font-size:40px'>${F[0]}$</span>"))
edit flag offensive delete link more

Comments

If what I want to display is a matrix it print the rows side by side

Cyrille gravatar imageCyrille ( 2020-06-07 06:17:12 -0500 )edit

Simply add latex:

F = random_matrix(RR,4,5)
show(html(f"<span style='font-size:10px'>${latex(F)}$</span>"))
Juanjo gravatar imageJuanjo ( 2020-06-07 07:12:31 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-06-06 02:27:35 -0500

Seen: 52 times

Last updated: Jun 06