First time here? Check out the FAQ!

Ask Your Question
1

Is the fonts displayed in the show() command sizable

asked 4 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

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>"))
Preview: (hide)
link

Comments

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

Cyrille gravatar imageCyrille ( 4 years ago )

Simply add latex:

F = random_matrix(RR,4,5)
show(html(f"<span style='font-size:10px'>${latex(F)}$</span>"))
Juanjo gravatar imageJuanjo ( 4 years ago )

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: 4 years ago

Seen: 336 times

Last updated: Jun 07 '20