Features to beat the pants off MathCad - Сообщения
first of all, I want to give my greatest respect for this awesome prog!!

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

Thanks again for your really amazing work!
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

Thanks in advance. Best regards, Andrey Ivashov.
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.
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
Thank you very much.
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
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
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
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
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
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
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
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.
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. After
writer.WriteLine(@"\usepackage[english]{babel}"
;
writer.WriteLine(@"\usepackage{graphicx}"
;
2.
writer.WriteLine(@"\includegraphics{" + fileName + "}"
;
\includegraphics{foo/1.png}
3. After
writer.WriteLine(@"\begin{document}"
;
writer.WriteLine(@"\maketitle"
;
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}
In any case this is a very good starting point for further development of this plug-in.
WroteAndrey 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
WroteHow 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.
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
There is an updated Latex plugin on https://smath.com/files/Download/6WcMC
Many thanks to Andrey

Regards,
Radovan
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
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
WroteI 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
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.
WroteThere 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.
-
Новые сообщения
-
Нет новых сообщений