Skip to content

Can luxor use latex formulas ? #32

@davidbp

Description

@davidbp

Hello,

I have seen some amazing vector drawings in luxor that include text.
Nevertheless I have not seen in the docs any example involving formulas (or latex expresisons).
Is it possible to embbed latex formulas in luxor?

For example could we write $\pi r^2$ inside a circle?

Something like this:

@png begin
        fontsize(20)
        circle(O, 100, :stroke)
        text(" \pi r ^2", halign=:center, valign=:middle)
       
       # I would like to have something like this? 
       # latex("$ \pi r^2$", halign=:center, valign=:middle)
     end

I have seen that one of you videos uses some formulas video. Is the code for this animation available? I'm not sure if it uses fancy unicode letters like \theta or we can use more complication latex expressions such as \sum_{i \in X} \frac{\theta_i}{\pi^2} (which I just made up and does not mean anything).

It would be awesome if you could make public some of the code you used for some of your youtube animations. It would probably inspire people to try more your package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions