-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Inline math blocks don't render edge of tall expressions #17
Comments
It'll be because the Typst content is too tall for the page size (which is set to the line height). I'll look into allowing the page height for inline math to be |
Unfortuntaly this doesn't look like it can be fixed until #5 as a known length is required to size the image correctly. For a block its the width of the page and for inline elements its the line height. So by removing the line height you can't really size its width, you also won't be able to align the baseline. The best workaround I can think of is to just change the line height but you can't really do that on a line-by-line basis. One idea I have though is to create a
|
finally found some kind of workaround: #show math.equation.where(block: false): it => { first edit: it does apply it to the entire equation, might work on it sometime but I should study lol |
update: anything else I try gets rejected by the compiler (maximum show rule depth exceeded). it's like it doesn't let you access content's body at all, on purpose spend WAY too much time on it, I think that's the best it gets: #let bb(c) = { #let ia(c) = { if isChild { #show math.equation.where(block: false): it => { |
Final. Due to funky ways Typst seems to store content, there needs to be an extra "children" check (didn't see this part specified in the docs, just experimentation, might've missed something. Moreover, it doesn't seem to be possible to modify just a part of a content instance, the only way is to get .fields(), and then there is no simple way back.
last one ffs
|
$|e^(i(arrow(k) dot arrow(r)))|^2_7$
incorrectly renders the superscript and subscript numbers like so:The text was updated successfully, but these errors were encountered: