Math

Answered

How to export latex string?

How do i export latex string? Is there any code script which can do the same? if so, please do share it. I just need a page where i can write some math expressions and click a button and that can show the latex expression as an alert in the website


Best Answer

Dear Mustafa,


Thank you for your question.


You can start from the iOS GetStarted or Demo example, with a "Math" part type: please refer to this page


You will then be able to export the recognition result by calling the export_ the function : please refer to https://developer.myscript.com/docs/interactive-ink/1.4/ios/fundamentals/import-and-export/#select-what-you-want-to-export to learn how to perform the export. In order to use the LaTeX export format, you should use the Latex Mime Type when calling the export_ the function.


Best regards,


Gwenaëlle


Dear Kalyan,


Thank you for contacting us.


Our understanding is that you want to use our Web APIs to perform some math recognition.


In order to choose the API best suited to your case, we recommand you reading this page: https://developer.myscript.com/docs/interactive-ink/1.4/web/overview/http-rest-or-websocket/#choosing-the-appropriate-api


If you want your users to benefit from the interactivity we recommand you using the Web socket API. You can check our Math Web demo that relies on our JavaScript library and WebSocket. In this demo the result is displayed as the users writes, as by default, an exported event is fired every time some content is recognized on the server side.


If you want to export on demand thanks to a button you might change the default behaviour: see https://developer.myscript.com/docs/interactive-ink/1.4/web/iinkjs/import-and-export/#exporting-content .


Another option would be to use the REST API. You might refer to following example: https://myscript.github.io/iinkJS/examples/v4/rest/rest_math_iink.html.


Best regards,


Gwenaëlle



Dear Gwenaëlle,

I need same for ios example. Beside interactive mode(displaying on the screen) I need to get latex string of the final expression?

How can I do that?

Thank you

Answer

Dear Mustafa,


Thank you for your question.


You can start from the iOS GetStarted or Demo example, with a "Math" part type: please refer to this page


You will then be able to export the recognition result by calling the export_ the function : please refer to https://developer.myscript.com/docs/interactive-ink/1.4/ios/fundamentals/import-and-export/#select-what-you-want-to-export to learn how to perform the export. In order to use the LaTeX export format, you should use the Latex Mime Type when calling the export_ the function.


Best regards,


Gwenaëlle


1 person likes this