Data Exchange plugin

Data Exchange plugin - share data between SMath Studio and CSV/ODF/ODS/ODT/XeLaTeX files - Сообщения

#161 Опубликовано: 09.02.2018 04:42:16
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Wrote

I love SMath, I really do.
But nothing can beat LaTeX if it is the print quality.
Used MiKTeX, altered tex file a little bit and compiled with XeLaTeX.
Just for fun.

Regards

tex.zip (97 КиБ) скачан 69 раз(а).



This SMath/Latex conversion was mentioned long time ago - there is even Tex File Type plugin for SMath - see these posts.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#162 Опубликовано: 09.02.2018 07:25:26
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

Thanks Radovan,

I had to mention I did the conversion with SMath.
Equation conversion is very well actually.
The overall result is very good but the page layout was not as it is should be.
I did alteration only to page layout.

Regards
#163 Опубликовано: 09.02.2018 08:22:39
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Wrote

Thanks Radovan,

I had to mention I did the conversion with SMath.
Equation conversion is very well actually.
The overall result is very good but the page layout was not as it is should be.
I did alteration only to page layout.

Regards


Sorry, I should have guesses you did it that way. Moreover, as Andrey made this plugin long time ago, I also think he did not have to much time to devote to it - this plugin have some basic functionality like the equation conversion. I think that quite a lot of time is needed to make this plugin converting a more complicated SMath page into a Latex one as much as possible.

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#164 Опубликовано: 09.02.2018 08:52:03
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

The current XeLaTeX export feature is provided by the DataExchange plugin (written by Davide Carpi), which also offers export to ODF formats (open office).

This plugin actually can handle complex equations very well (even programs with line blocks), there have been quite some iterations, see the forum under extensions.
What you never will get in LateX is the freedom of region layout. If your SMath document has text, math and images/plots side by side then you get a bloody mess in LateX.

See the 2014 Handbuch version for an export example.

https://en.smath.info/view/handbuch/history
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Radovan Omorjan 09.02.2018 09:14:00
#165 Опубликовано: 09.02.2018 09:15:38
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

I forgot about that, sorry

Thank you Martin for reminding me.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#166 Опубликовано: 15.10.2018 09:00:54
Bart

Bart

0 сообщений из 3 понравились пользователям.

Группа: User

Hi all,

a few versions ago, the function "Export Data ODS(variable; spreadsheet; pad) worked great!

But now, this isn't working no more.

I've updated SMath to 0.99.6839, and added the Data Exchange plugin (tools, plugins, online storage, DataExchange, install). This is version 1.1.6824.33288.

Online (https://en.smath.info/view/DataExchange/summary) there's version 1.1.6858.3747 available. When i overwrite the .dll's i become more errors.

Anyone an idea how to fix this export to ods-functionality?

Thanx in advance,

Bert
#167 Опубликовано: 15.10.2018 12:24:38
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

a few versions ago, the function "Export Data ODS(variable; spreadsheet; pad) worked great!

But now, this isn't working no more.



Thank you, I'll check it ASAP.

Wrote

Online (https://en.smath.info/view/DataExchange/summary) there's version 1.1.6858.3747 available. When i overwrite the .dll's i become more errors.


That plugin version is not designed for your SMath Studio version, it is built on the API of the more recent beta and therefore can't run on your program version. Please remove manually the extension folder and download again the one from the extension manager. I'll update the plugin with the fix as soon as it will be possible.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#168 Опубликовано: 08.02.2019 08:07:57
sergio

sergio

115 сообщений из 329 понравились пользователям.

Группа: User

Davide, I detected problems importing simple data files in CSV format (decimal separator "." Element Separator ",")
[albumimg]1588[/albumimg]
Doc1.sm (6 КиБ) скачан 47 раз(а).

sergio
#169 Опубликовано: 08.02.2019 15:35:42
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

Davide, I detected problems importing simple data files in CSV format (decimal separator "." Element Separator ",")
[albumimg]1588[/albumimg]
Doc1.sm (6 КиБ) скачан 47 раз(а).

sergio



importData is built-in and can import both numeric and symbolic data; the single argument import works as expected only if the column separator is a whitespace or a tabulation, otherwise you have to use the 9-arguments version.

2019-02-08 19_33_18-Window.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#170 Опубликовано: 08.02.2019 15:46:01
sergio

sergio

115 сообщений из 329 понравились пользователям.

Группа: User

However, ExportData. CSV saves the file in this format (as shown in the example attached above)
sergio
#171 Опубликовано: 08.02.2019 17:02:28
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

it seems to me that exportData.CSV does his job (it makes a data file composed by comma separated values, the default content of CSV files), isn't designed to be the inverse of importData(1)... what it might considered odd is how the numbers are converted by importData(1); maybe it might be improved, however even in excel if you don't set the right parameters you might experience wrong imported content (a common drawback of generic format readers).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
sergio 09.02.2019 06:51:00
#172 Опубликовано: 24.03.2019 10:42:59
Jogi

Jogi

0 сообщений из 3 понравились пользователям.

Группа: User

Hi!

First of all I wanna say that I am really impressed about this software and the community. I just found out about SMath yesterday and really like the opportunity for extensions which seems to make it a lot better then the software I used previously, MathCad.

What I am looking for is a way to transform formulas and expressions from a pdf to an editable SMath sheet. This would allow to skip the very time consuming step of retyping the forumlas. Unfortunately I have only found posts that deal with the workflow in the other direction: exporting from SMath to pdf (e.g. created with Latex).

An example formula looks like this:

Example formula.png

The way I thought this could work is with the following workflow:

1. Converting a pdf screenshot of a forumla with an OCR software to a latex formula code. This step seems to work quite well with the Mathpix snipping tool. The mathpix snipping tool is able to convert to several latex formula formats.


Mathpix Conversion.PNG


2. Convert the latex formula code to Smath. This is the point where I am struggling. I thought about scripting a little tool in Python that could do the conversion. As I have only really basic programming skills I was wondering whether you have heard of any script that is already available? As the described data exchange plugin seems to be able to convert from Smath to latex, do you think there is also a way to convert in the other way?


Probably there is also a completely different and more effective way to do that. I am really excited about this and looking forward to your replies
#173 Опубликовано: 24.03.2019 11:18:28
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

2. Convert the latex formula code to Smath. This is the point where I am struggling. I thought about scripting a little tool in Python that could do the conversion. As I have only really basic programming skills I was wondering whether you have heard of any script that is already available? As the described data exchange plugin seems to be able to convert from Smath to latex, do you think there is also a way to convert in the other way?


IMHO, all that is for the birds.
Latex is for papers, papers aren't for Engineering works.
Code your Mathcad in Smath ... they aren't 1/1 compatible.
As you are new, the best learning is visiting Samples
Latex papers writers, they just divert themselves.
In my career, I worked for some of world most important Engineering firm.
We had no Latex papers writers.
Have you ever seen job opportunities for Latex papers writers ?

Cheers, welcome to Smath Community.
#174 Опубликовано: 24.03.2019 15:36:33
Jogi

Jogi

0 сообщений из 3 понравились пользователям.

Группа: User

Thank you for the reply.

Involving latex in the workflow was only due to the reason that there is already OCR software available that can extract the information from a pdf.

I work as an structural engineer myself and code-checks (e.g. steel detailing acording to Eurocodes) often involve a lot of formulas that are time consuming to retype as SMath code. Therefore, I would find it really handy to be able to skip the retyping and exporting formulas from an eurocode pdf to Smath code.

Do you see any way how I could achieve that? Probably, if there is a way without involving a conversion to Latex code first, my post would be better suited for a different topic of the forum.
#175 Опубликовано: 24.03.2019 17:24:39
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Involving latex in the workflow was only due to the reason that there is already OCR software available that can extract the information from a pdf.



If the PDf is close to maths maybe.
How would OCR code Dirac ket & bra his original invention.
Better stick to software recognized by Euro-Code.
#176 Опубликовано: 25.03.2019 08:35:30
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

2. Convert the latex formula code to Smath. This is the point where I am struggling. I thought about scripting a little tool in Python that could do the conversion. As I have only really basic programming skills I was wondering whether you have heard of any script that is already available? As the described data exchange plugin seems to be able to convert from Smath to latex, do you think there is also a way to convert in the other way?



Hello,

You might start looking at how the conversion from another language to SMath is made in MapleTools and MaximaPlugin.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#177 Опубликовано: 25.03.2019 10:44:10
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

2. Convert the latex formula code to Smath.


I will leave it there as I have no recollection having seen a single
piece of Latex in executable maths except trivial ln(x) ...
I read from a book extract that Maple works from pattern recognition
wrt to Laplace stuff from Bible books, mostly Angot before CAS.
At the time of Mathematica 4.0, by hovering over a formula in their
publication, you could copy the code and by re-coding you could
reproduce the working formula.
My point ends here: only executable maths [Latex, PDF] .
Besides Dirac ket & bra at the time he invented something about Fourier,
another one come to mind : Pseudo-Inverse-Matrix ... click/click Latex done.
A damned distance to produce ! On that, Risteky was very close in PDF.
Finally, Viktor help me Mathcad 11, working fine Smath.
The magic/mystic Latex Pseudo-Inverse ends in a program [Mathcad/Smath].

How do you work formulas from book ? Just thinking some BIPM hard print.
You mentioned Euro-Code: in Court, the only document is the hard print.
Same ISO-5167 [Orifice Plate], the hard print. Doing QA, I have rejected
calculations from an expensive software.
The actual 737 MX 8, where is the hard print of the coding ?
Monkey don't see, monkey don't do ... Court case lost ...
No short cut to maths, 1/1 tracable from source.


#178 Опубликовано: 25.03.2019 17:25:07
Jogi

Jogi

0 сообщений из 3 понравились пользователям.

Группа: User

Wrote

Wrote

2. Convert the latex formula code to Smath.


I will leave it there as I have no recollection having seen a single
piece of Latex in executable maths except trivial ln(x) ...
I read from a book extract that Maple works from pattern recognition
wrt to Laplace stuff from Bible books, mostly Angot before CAS.
At the time of Mathematica 4.0, by hovering over a formula in their
publication, you could copy the code and by re-coding you could
reproduce the working formula.
My point ends here: only executable maths [Latex, PDF] .
Besides Dirac ket & bra at the time he invented something about Fourier,
another one come to mind : Pseudo-Inverse-Matrix ... click/click Latex done.
A damned distance to produce ! On that, Risteky was very close in PDF.
Finally, Viktor help me Mathcad 11, working fine Smath.
The magic/mystic Latex Pseudo-Inverse ends in a program [Mathcad/Smath].

How do you work formulas from book ? Just thinking some BIPM hard print.
You mentioned Euro-Code: in Court, the only document is the hard print.
Same ISO-5167 [Orifice Plate], the hard print. Doing QA, I have rejected
calculations from an expensive software.
The actual 737 MX 8, where is the hard print of the coding ?
Monkey don't see, monkey don't do ... Court case lost ...
No short cut to maths, 1/1 tracable from source.




Thank you for your effort! TBO it's hard for me to follow your argumentation. As I said the conversion to matlab formula code is not the main goal that I want to achieve. Want I want to do is to skip rewriting formulas (not any complex ones) that are sometimes quite long and include a lot of indices. Eurocodes are available in pdf and therefore it seems possible to convert the pdf text to a SMath (or MathCad) style.

Wrote

Wrote

2. Convert the latex formula code to Smath. This is the point where I am struggling. I thought about scripting a little tool in Python that could do the conversion. As I have only really basic programming skills I was wondering whether you have heard of any script that is already available? As the described data exchange plugin seems to be able to convert from Smath to latex, do you think there is also a way to convert in the other way?



Hello,

You might start looking at how the conversion from another language to SMath is made in MapleTools and MaximaPlugin.



Thanks a lot. That seems like a good start. As I have understood the Data exchange plugin is able to convert from smath style to latex style, is that correct? Is the source code of that accessible for everyone?
#179 Опубликовано: 25.03.2019 17:57:40
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: User

Wrote

Is the source code of that accessible for everyone?



yes. https://smath.info:8443/!/#public/view/head/plugins/DataExchange
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#180 Опубликовано: 25.03.2019 19:16:31
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

TBO it's hard for me to follow your argumentation


There is no argumentation: only hard print source pass QA [Quality Assurance]
No matter the magic bricks in the wall, even Mathcad 11 was argued about
intermediate results to pass QA. Lot of Standards were written much before
Latex and CAS.

  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений