Skip to content
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

Give height to TeXViewDocument #181

Open
ankitsaurabhinfosys opened this issue Apr 6, 2024 · 1 comment
Open

Give height to TeXViewDocument #181

ankitsaurabhinfosys opened this issue Apr 6, 2024 · 1 comment

Comments

@ankitsaurabhinfosys
Copy link

Question: Are you using the latest version of flutter_tex package? pub package
**Answer:**Yes

Question: If you are looking for a feature, have you watched the Demo Video and gone through the examples folder?
**Answer:**Yes

Below is the code, right now its showing in one single line, i want to show according to container width and height? how can i show?

TeXView(
renderingEngine: renderingEngine,

                                child: TeXViewColumn(
                                children: [

                                  TeXViewDocument("<p><math xmlns='http://www.w3.org/1998/Math/MathML'><mi>T</mi><mi>h</mi><mi>e</mi><mo>&#160;"
                                      "</mo><mi>r</mi><mi>a</mi><mi>t</mi><mi>i</mi><mi>o</mi><mo>&#160;</mo><mi>o</mi><mi>f</mi><mo>&#160;"
                                      "</mo><mn>81</mn><mo>&#160;</mo><mi>t</mi><mi>o</mi><mo>&#160;</mo><mn>108</mn><mo>&#160;</mo><mi>i</mi><mi>s</mi><mo>&#160;"
                                      "</mo><mi>s</mi><mi>i</mi><mi>m</mi><mi>p</mi><mi>l</mi><mi>i</mi><mi>f</mi><mi>i</mi><mi>e</mi><mi>d</mi><mo>&#160;"
                                      "</mo><mi>b</mi><mi>y</mi><mo>&#160;</mo><mi>d</mi><mi>i</mi><mi>v</mi><mi>i</mi><mi>d</mi><mi>i</mi><mi>n</mi><mi>g</mi><mo>&#160;"
                                      "</mo><mi>b</mi><mi>o</mi><mi>t</mi><mi>h</mi><mo>&#160;</mo><mi>n</mi><mi>u</mi><mi>m</mi><mi>b</mi><mi>e</mi><mi>r</mi><mi>s</mi><mo>&#160;"
                                      "</mo><mi>b</mi><mi>y</mi><mo>&#160;</mo><mi>t</mi><mi>h</mi><mi>e</mi><mi>i</mi><mi>r</mi><mo>&#160;"
                                      "</mo><mi>g</mi><mi>r</mi><mi>e</mi><mi>a</mi><mi>t</mi><mi>e</mi><mi>s</mi><mi>t</mi><mo>&#160;"
                                      "</mo><mi>c</mi><mi>o</mi><mi>m</mi><mi>m</mi><mi>o</mi><mi>n</mi><mo>&#160;"
                                      "</mo><mi>d</mi><mi>i</mi><mi>v</mi><mi>i</mi><mi>s</mi><mi>o</mi><mi>r</mi><mo>&#160;"
                                      "</mo><mo>,</mo><mi>w</mi><mi>h</mi><mi>i</mi><mi>c</mi><mi>h</mi><mo>&#160;</mo><mi>i</mi><mi>s</mi><mo>&#160;"
                                      "</mo><mn>27</mn><mo>&#160;</mo><mo>.</mo><mi>T</mi><mi>h</mi><mi>u</mi><mi>s</mi><mo>&#160;"
                                      "</mo><mo>,</mo><mfrac><mn>81</mn><mn>27</mn></mfrac><mo>:</mo><mfrac><mn>108</mn><mn>27</mn></mfrac><mo>=</mo><mn>3</mn><mo>:"
                                      "</mo><mn>4</mn><mo>&#160;</mo><mi>a</mi><mi>n</mi><mi>d</mi><mo>&#160;</mo><mn>1</mn><mo>:</mo><mn>2</mn></math></p>",

                                  )
                                ]
                            )),
@ankitsaurabhinfosys ankitsaurabhinfosys changed the title GIve height to TeXViewDocument Give height to TeXViewDocument Apr 6, 2024
@ankitsaurabhinfosys
Copy link
Author

is it compulsory to right latex code in r"""$1 \colon 2$""", how pass json object in r""" {variable}"""?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant