Ask Your Question
1

Is the fonts displayed in the show() command sizable

asked 2020-06-06 09:27:35 +0100

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-07 02:13:44 +0100

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 13:17:12 +0100 )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 14:12:31 +0100 )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 09:27:35 +0100

Seen: 319 times

Last updated: Jun 07 '20