Features to beat the pants off MathCad

Features to beat the pants off MathCad - Messages

#1 Posted: 3/19/2009 10:48:45 PM
jakobg

jakobg

0 likes in 21 posts.

Group: User

Hello,

first of all, I want to give my greatest respect for this awesome prog!! Yesterday I found it and still can't believe that there is such a prog. I spend the last 2 to 3 years searching for a neat mathematical software (in the area of open source and freeware) but up to now I wasn't really satisfied.

So as I am a user of Latex (because it produces the best looking docs) and often have to write technical documents with lots of equations this is where my request comes in...

Maybe it would be possible to add an export feature to latex code.
Additional, like in Mathcad, a format option for Titles and Subtitles would be nice, to write a complete document with SMath. With this "Styles" the Latex Section, etc could be adressed to achieve the desired effect in the Latex code.

With this it is possible to do all the math AND text in SMath an then simply export the complete sheet to Latex, add header, compile and have a really nice looking document. And that's a feature MathCad will never have and as was talking to a couple of people about such an application, would be quite useful.

If something of this type is possible and you are not against, we could talk about detail later (I have thought about a few formating options today). Of course this feature is for desktop environment only.

OK, thats all Hope you can follow my idea.

Thanks again for your really amazing work!
Jakob

#2 Posted: 3/20/2009 1:03:01 AM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Hello, Jakob.

Thank you for the idea. Hope I will implement "export to LateX" or, at least, will start to do it in 1-2 monthes with your help... because, unfortunately, I have no enough experience with that format. For now, I need to fix several bugs/findings of the SMath Studio 0.78 and implement some requested features (f.e. printing, etc.). So, it would be great, if you'll give some expert advices to what distributives I should install to take a look to the LateX documents and play with it... and then I will start to work.

Thanks in advance. Best regards, Andrey Ivashov.
#3 Posted: 3/20/2009 10:16:04 AM
shinyplastic

shinyplastic

0 likes in 5 posts.

Group: User

Hi,

I totally agree great program!! Thanks so much.

I also thought printing was a issue, but the export to HTML works so well printing to paper or PDF hasn't been a problem (so far).

On the issue of LaTex, the .sm file looks very close to standard XML and there are a few XML to LaTex (and even PDF) converters but I don't know how well they will handle the maths.

#4 Posted: 3/21/2009 11:52:38 PM
jakobg

jakobg

0 likes in 21 posts.

Group: User

Hello Andrey,

I've started to gather some informations about latex and xml (as this is the format you use?).

Shinyplastic announced that there are xml to Latex converter. Well thats true, you even find some if you try google, but I'm also not sure if they can handle math. But I keep it in mind.

The Latex math format is fairly simple. (for a closer look check: http://en.wikibooks.org/wiki/LaTeX/Mathematics)

I'm not sure how much Latex code should be supported by the exporter. Of course, if you could write the whole document in SMath it would be great, but than SMath would become some kind of graphical frontend of Latex. I'm not sure if that is what you intent Smath to be. But this can be discussed later.

A major point concerning math in Latex is, that there are different environments for formulars. There is a "in text"-Envirmonment (embedded by $...$) and a seperated environment. The seperated environment can be numbered or not, it can be aligned, and so on. So it is important to specify the environment for each formula. This could be tricky if xml is not flexible (add an additional parameter?)

Another important point is the text exporting capability. In Latex headings are created using the \section (or \subsection, \subsubsection) command. Text is just simple plain text inserted where you want it to be. To achieve a similar behaviour in SMath, some type of formating styles could be used (e.g. in MathCAD it is possible to use predefined styles for textboxes)

I have written a (really) simple file which shows a few options of Latex, and a corresponding SMath file (rapidshare).
Rapid share Simple example

PS: I use Miktex 2.7 on a Windows PC (I know! )

Have a nice weekend!

Jakob
#5 Posted: 11/11/2009 6:12:59 AM
Waluyo Adi Siswanto

Waluyo Adi Siswanto

1 likes in 55 posts.

Group: User

I have been following this thread of discussion. I think it would be very useful if SMath provides a capability to save as TeX/LaTeX format, so the equations can be embedded in LaTeX document.
Thank you very much.
#6 Posted: 11/11/2009 6:38:53 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,

I tried MathParser long time ago. It could translate some Mathcad math regions into LaTex. Quite limited functionality and I was not satisfied with it. This project is not maintained anymore.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#7 Posted: 11/11/2009 7:48:17 AM
jakobg

jakobg

0 likes in 21 posts.

Group: User

Hi omorr,

I also tried MathParser, but the main problem here is that MathCad removed the save as MathML option in Version 2001(?, or something around), and MathParser converted this MathML file to Latex.
I totally agree with you that the functionality was limited and not satisfying.

Cheers,
Jakob
#8 Posted: 11/11/2009 8:48:13 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello jakobg,

Yes, you are right. I've being trying for years to incorporate Mathcad files in LaTex in a sutiable way. I always ended up with presenting it as pictures (or PDF) and insert it into LaTex. Lots of problems concerning this. Do not know any other way. The ideal (maybe unpossible way) would be to have a SMath2LaTex converter. I mean by this, that the .sm file could be converted into .tex and the LaTex output to be as closest as possible to the SMath file.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#9 Posted: 11/11/2009 10:01:18 AM
Waluyo Adi Siswanto

Waluyo Adi Siswanto

1 likes in 55 posts.

Group: User

Hi All ...
In this thread, Andrey will be implementing export to LaTeX.? or someone would develop smath2latex converter, it would be wonderful. Perhaps one can start from MathParser. I don't know whether the source is open?
Anyway .. SMAth is increasing the popularity, pure LaTeX users or LyX users are looking forward to use SMath results and embeded into latex document.

Regard, Waluyo
#10 Posted: 2/7/2012 9:10:52 AM
Waluyo Adi Siswanto

Waluyo Adi Siswanto

1 likes in 55 posts.

Group: User

Hi All..

I am still expecting a feature to save as latex.
I just visited Mathparser, and see an announcement that the developer Mathparser decided to publish the source. (since 2010-02-06)
http://www.tilman.de/programme/mathparser/index_en.html

Maybe smath can consider this mathparser, or someone will develop a plugin smathparser (smath2latex).

regards,
waluyo
#11 Posted: 2/7/2012 7:32:37 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Hello waluyo.

I don't need any third-party code to implement support of LateX files. This is opened format, so the only requirement is time and a wish.

I've spent several hours today to play with exporting to *.tex and here is the result:



TeXFileType.dll plugin you can download here: link. Source code can be found here: link.

Please note that this is not even an alpha version - plugin created just to show possibility of exporting SMath worksheets to LateX.

Best regards, Andrey Ivashov.
3 users liked this post
Radovan Omorjan 2/8/2012 2:05:00 AM, IVR 2/8/2012 4:37:00 PM, Waluyo Adi Siswanto 2/9/2012 12:44:00 AM
#12 Posted: 2/7/2012 11:56:43 PM
Waluyo Adi Siswanto

Waluyo Adi Siswanto

1 likes in 55 posts.

Group: User

Thanks Andrey... You are Great.

LaTeX and LyX people should know about it.
I hope the next SMath version, the plugin to enable save as type TeX file .tex will be included.

Best regards,
waluyo
1 users liked this post
Radovan Omorjan 2/8/2012 2:02:00 AM
#13 Posted: 2/8/2012 5:24:59 PM
IVR

IVR

3 likes in 15 posts.

Group: User

New LaTeX plug-in is a fantastic and extremely useful feature! I have only a few corrections for the code:

1. After
writer.WriteLine(@"\usepackage[english]{babel}";
you should add
writer.WriteLine(@"\usepackage{graphicx}";
We need graphicx package to work with images included in the document properly.

2.
writer.WriteLine(@"\includegraphics{" + fileName + "}";
Here file name contains full path to the image file. We need only the relative path and you have to substitute backslash by slash in it. I mean the result string for the image 1.png included in the worksheet foo.sm should be
\includegraphics{foo/1.png}

3. After
writer.WriteLine(@"\begin{document}";
you should add
writer.WriteLine(@"\maketitle";
to utilise information included in the \author{}, \date{} and \title{} fields.

4. You may expect serious problems with Unicode Greek letters. PDFLaTeX simply does not manage it yet. So you have two possibilities. First, use long conversion table (Г -> \Gamma, etc.). Second, just use XeLaTeX with unicode-math package. In the former case the smallest preamble of your document should be

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{STIXGeneral}
Instead of free STIX fonts another free font Asana-Math or proprietary Cambria Math can be used.

In any case this is a very good starting point for further development of this plug-in.
2 users liked this post
Andrey Ivashov 2/9/2012 5:25:00 AM, Radovan Omorjan 2/9/2012 5:38:00 AM
#14 Posted: 2/9/2012 1:07:35 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote

Andrey Ivashov.


Hi! In your post #11... How do you type LaTeX in that Smath file? it's a picture or really Smath can render the "\LaTeX{}" code?

Regards,

Oscar
#15 Posted: 2/9/2012 2:17:01 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Wrote

How do you type LaTeX in that Smath file? it's a picture or really Smath can render the "\LaTeX{}" code?


It's a picture. The screenshot there just to show an ability to export Text, Equations and Pictures from worksheets.

Regards.
1 users liked this post
Oscar Campo 2/10/2012 12:27:00 PM
#16 Posted: 4/6/2012 5:41:25 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,

There is an updated Latex plugin on https://smath.com/files/Download/6WcMC
Many thanks to Andrey

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#17 Posted: 4/6/2012 10:05:25 PM
sergio

sergio

115 likes in 329 posts.

Group: User

Hello,
I use Lyx 2.03 with MiKTeX.
I have a problem with the Greek letters. It uses the package "ucs" but can not find among the available MikTeX distribution.

Sergio
#18 Posted: 4/6/2012 11:31:44 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

I use Lyx 2.03 with MiKTeX.
I have a problem with the Greek letters. It uses the package "ucs" but can not find among the available MikTeX distribution.


I can confirm that. There were no problems with Miktex and texing in Ubuntu (Kile) - but Lyx complained when trying to "see" the imported *.tex file.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#19 Posted: 4/7/2012 2:53:16 AM
IVR

IVR

3 likes in 15 posts.

Group: User

PompelmoTell

1. UCS is a part of package 'unicode' which is available in MiKTeX 2.9. Properly configured MiKTeX automatically downloads additional packages from CTAN. In the worst case, simple Google search always provide you to the nearest CTAN server when you can find this package and install it manually.

2. Standard pdfLaTeX do have problems with Greek letters as well as any other Unicode symbols (it simply do not support Unicode). Due to this reason 'unicode' package makes dirty hack - simply substitutes some Unicode symbols (like all Greek letters) by their LaTeX symbols (\alpha, \beta, etc.). Perhaps LyX is not so clever.

3. If LyX is unable to read your (correct) LaTeX file it is the LyX problem, not SMath one. You should ask LyX developers for help.

4. Both XeLaTeX and LuaTeX fully support Unicode. It was the main reason why XeLeTeX support was added to TeX export plugin. You can export your SMath document to XeLaTeX should you wish.
1 users liked this post
Radovan Omorjan 4/7/2012 1:01:00 PM
#20 Posted: 4/7/2012 6:52:09 AM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Hello Radovan.

Wrote

There is an updated Latex plugin on https://smath.com/files/Download/6WcMC
Many thanks to Andrey


Actually it is IVR who makes a set of corrections and improvements to latest version of the plugin. Many thank to him for that

Regards.
  • New Posts New Posts
  • No New Posts No New Posts