I don’t want any of these solutions, I simple want to make the font, spacing, sizing, etc. smaller, re-scaling everything, so that it fits on the page. In LaTeX, you can do this with \begin{adjustbox} etc.
I haven’t found a solution along these lines using typst yet. Can someone give me an example?
Adjustbox doesn’t just affect the font size. It shrinks everything, including spacing in and around the cell. So this is probably not going to look as good as adjustbox.
Does typst have some notion of “relative sizes within a box”? I wonder if typst is set up to implement this feature.
Thank you. scale does exactly what I want. If you have any ideas to say “scale this so that y does not exceed page height and x does not exceed page width” in a convenient way, that would be even more helpful, but I think I can get there eventually.
To do that, you need a reference value to track while rescaling. How do you get this value? Which value indicates that you can stop scaling down/up? There is also scale.reflow that might need to be used for that.
Use the appropriate language tag in code block info string, even though this forum doesn’t support many other languages. How to post in the Questions category
scale.factor is a shorthand, as explained in the docs, and it’s a bug that auto is documented as possible value (needs to be reported). auto for x/y will just copy the same non-auto value of the opposite axis. This is the only auto behavior.
You can open a feature request, though it kinda sounds like a complicated one and not much practical purpose other than fixing what can’t be fit by default, which is a rare case.
Thanks @Andrew. I did put ````latex` for the code block, but like you said, it probably does not have support.
I will explore other options. I was just wondering how scale worked for @Peter_W_Deffebach.