Welcome Guest! To enable all features please Login or Register.

Error

 10 Pages<12345>»
 Previous Topic Next Topic
 xyonx #42 Posted : 22 January 2013 22:24:03(UTC) Rank: MemberGroups: Registered Joined: 16/05/2012(UTC)Posts: 10Location: indonesia hi DC, save as ODT's amazing plugin more work needed to get document look likes a textbooki usually using repetitive tedious works, add manually ""phantom{...} to hiding, so document become readable and not making eyes victimjust wondering, is this possible to do automatically formating by default? since OOo/LO hard and maybe can not access find and replace for embeded formula thx u s much
 Davide Carpi #43 Posted : 23 January 2013 23:20:24(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,523Location: ItalyWas thanked: 1267 time(s) in 833 post(s) Originally Posted by: xyonx hi DC, save as ODT's amazing plugin more work needed to get document look likes a textbooki usually using repetitive tedious works, add manually ""phantom{...} to hiding, so document become readable and not making eyes victimjust wondering, is this possible to do automatically formating by default? since OOo/LO hard and maybe can not access find and replace for embeded formula thx u s muchHi xyonx,I think it's possible, I'll try to see what can be done IMHO your multiline approach it's a very interesting way to represents results and could be an useful solution for Andrey to implement the "Display values with definition" request of SMath users. best regards,w3b5urf3rP.S. the MS Word compatibility of ODT documents containing formulas was reached; with regard to the alignments of the functions I haven't found a way to force MS Word to do it.Edited by user 23 January 2013 23:36:16(UTC)  | Reason: Not specified If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
 Rising Eagle #44 Posted : 25 January 2013 00:21:05(UTC) Rank: MemberGroups: Registered Joined: 14/12/2012(UTC)Posts: 23Location: NeverlandWas thanked: 15 time(s) in 9 post(s) Originally Posted by: w3b5urf3r_reloaded P.S. the MS Word compatibility of ODT documents containing formulas was reached; with regard to the alignments of the functions I haven't found a way to force MS Word to do it.Websurfer,Very impressed with your projects.Don't know if this is relevant or how sophisticated you want to be about reformatting stuff, but this thought may be of use. MS word has a facility (as does LO) called tables. When tables are created, each area in the grid is like a mini-page on its own and can be formatted independently of all the others. To align equations, make a 4 column table, put the equals sign (=) in the third column, and narrow the column width to the minimum needed to leave the equals sign visible. Then place equation numbers in the first column, and the LHS and RHS expressions in the second and far right columns. Align the LHS to the right and the RHS to the left. All equals signs and RHS expressions to follow on subsequent lines will be aligned properly.In the LO file below, tables are used with mathml formula objects in the second and far right columns. Text is used in the first and third columns. This table formatting works in MS office as well. I adjusted the font size of the equals sign until it looked right.Btw, how does one make math expressions (is it latex?) in these forum posts?Edited by user 25 January 2013 00:29:46(UTC)  | Reason: Not specifiedRising Eagle attached the following image(s):
 Davide Carpi #45 Posted : 25 January 2013 18:51:44(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,523Location: ItalyWas thanked: 1267 time(s) in 833 post(s) PLUGIN UPDATED added "Save as... > LaTeX Text Document"; ODT saving:- ouptut ODTs now are compatible with MS word (brackets looks better than saving the file from libreoffice)- added options on ODT saving (Save text as images/Save formulas as images/evaluate equations)- "Print Area Regions" settings from "Page Setup..."- SMath texts on multiple lines now are shown on multiple lines even in the output file.- minor changes ODF saving: each evaluation (input formula/symbolic/numeric) written on a different line of code; Embedded languages: ENGLISH/ITALIAN/RUSSIANbest regards,w3b5urf3rEdited by user 25 January 2013 19:05:39(UTC)  | Reason: Not specifiedDavide Carpi attached the following image(s): If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects 5 users thanked Davide Carpi for this useful post. on 25/01/2013(UTC),  on 25/01/2013(UTC),  on 26/01/2013(UTC),  on 26/01/2013(UTC),  on 29/01/2013(UTC)
 mkraska #46 Posted : 26 January 2013 00:16:29(UTC) Rank: Advanced MemberGroups: Registered Joined: 15/04/2012(UTC)Posts: 1,757Was thanked: 967 time(s) in 615 post(s) Hello w3bsurf3r,thanks for updating the plugin. The Latex-export looks great (not yet tested, but your preview looks promising).Just a small remark: default export path is not defined by where the current sm file is but by the current directory. If you first launch SMath, then the current directory for the entire session regardless which files are opened afterwards is where the executable is. As plugins need to be used with the msi-Installer version, the executable path is normally read only and example execution fails. Anyway you do not want to clutter the install dir by accidental export data.When you just launch a sm file in the file manager, then current dir is equal to sm file dir.If you have any chance to determine the sm file path name independently from the current dir, then I would recommend to use this and thereby be consistent to what your docs and examples say. This is would make the target dir more predictable and independent of how the file was opened. Otherwise the comments in the examples might need correction.Martin Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx 1 user thanked mkraska for this useful post. on 26/01/2013(UTC)
 mikekaganski #47 Posted : 26 January 2013 02:25:10(UTC) Rank: Advanced MemberGroups: Registered Joined: 17/01/2013(UTC)Posts: 296Location: Khabarovsk, RussiaWas thanked: 151 time(s) in 107 post(s) w3bsurf3r,Thank you for this new release.Now that you have included MathML code to the plugin, would it be possible to add a "copy to clipboard as MathML" command and context menu item? It would be of a value for those who use Word and other apps that accept MathML right from the clipboard.EDIT: here the required clipboard media types are explained. I suppose that simple "MathML" is enough.Also, possibly there is a possibility to import the MathML from the clipboard (if you can implement the MathML-to-SMath conversion). The code to handle the clipboard in this case may be found here.EDIT 2: copy to clipboard as TeX would be also desirable for uses such as Wiki and MathType.Edited by user 26 January 2013 03:02:50(UTC)  | Reason: Not specified Best regards, Mike Kaganski
 mkraska #48 Posted : 26 January 2013 03:04:51(UTC) Rank: Advanced MemberGroups: Registered Joined: 15/04/2012(UTC)Posts: 1,757Was thanked: 967 time(s) in 615 post(s) Hello W3bsurf3r, after a closer look to the latex export I recommend the following:- left align the equations using \usepackage[fleqn]{amsmath}- typeset the break and continue statements in roman (mathrm)- remove all empty lines (less space between equations)- provide choices (if possible with adjustable default settings) for - assignment operator (:= vs def over =) - equation numbering (starred or unstarred equation environment)Martin Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
 Davide Carpi #49 Posted : 26 January 2013 16:48:39(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,523Location: ItalyWas thanked: 1267 time(s) in 833 post(s) Originally Posted by: Rising Eagle Don't know if this is relevant or how sophisticated you want to be about reformatting stuff, but this thought may be of use. MS word has a facility (as does LO) called tables. When tables are created, each area in the grid is like a mini-page on its own and can be formatted independently of all the others. To align equations, make a 4 column table, put the equals sign (=) in the third column, and narrow the column width to the minimum needed to leave the equals sign visible. Then place equation numbers in the first column, and the LHS and RHS expressions in the second and far right columns. Align the LHS to the right and the RHS to the left. All equals signs and RHS expressions to follow on subsequent lines will be aligned properly.In the LO file below, tables are used with mathml formula objects in the second and far right columns. Text is used in the first and third columns. This table formatting works in MS office as well. I adjusted the font size of the equals sign until it looked right.Btw, how does one make math expressions (is it latex?) in these forum posts?Hi rising eagle, It's a good idea but quite complicated to generate undefined levels of nested equations/statements (but I've done something similare for LaTeX, where tables and formulas can be mixed easily).About formulas in forum posts look hereOriginally Posted by: mkraska Just a small remark: default export path is not defined by where the current sm file is but by the current directory. If you first launch SMath, then the current directory for the entire session regardless which files are opened afterwards is where the executable is. As plugins need to be used with the msi-Installer version, the executable path is normally read only and example execution fails. Anyway you do not want to clutter the install dir by accidental export data.When you just launch a sm file in the file manager, then current dir is equal to sm file dir.If you have any chance to determine the sm file path name independently from the current dir, then I would recommend to use this and thereby be consistent to what your docs and examples say. This is would make the target dir more predictable and independent of how the file was opened. Otherwise the comments in the examples might need correction.Thank you Martin, you have found a couple of bugs... Actually I can change the output directory of new SMath files (maybe can be the desktop or documents folder); unfortunately seem that both Code:Environment.CurrentDirectory and Code:Directory.GetCurrentDirectory() don't change when you save the file in another directory ...Originally Posted by: mikekaganski Now that you have included MathML code to the plugin, would it be possible to add a "copy to clipboard as MathML" command and context menu item? It would be of a value for those who use Word and other apps that accept MathML right from the clipboard. EDIT 2: copy to clipboard as TeX would be also desirable for uses such as Wiki and MathType.Hi Mike, I'm not sure that I can add a new "global" context menu item from a plugin (and actually I'm not able to add a context menu item in a single function - one of my goals for NonlinearSolvers next stage of development)However I think that is a good idea...Originally Posted by: mkraska after a closer look to the latex export I recommend the following:- left align the equations using \usepackage[fleqn]{amsmath}- typeset the break and continue statements in roman (mathrm)- remove all empty lines (less space between equations)- provide choices (if possible with adjustable default settings) for-- assignment operator (:= vs def over =)-- equation numbering (starred or unstarred equation environment)- left align the equations using \usepackage[fleqn]{amsmath} -> done- typeset the break and continue statements in roman (mathrm) -> fixed (LaTeX/StarMath/MathML) (\operatorname may be better?)- remove all empty lines (less space between equations) -> mhhh... we don't lose tex file readability from the user?- provide choices (if possible with adjustable default settings) for-- assignment operator (:= vs def over =)-- equation numbering (starred or unstarred equation environment)ok... consider that actually you can easily change the define equal of the entire file by editing the headerCode:\newcommand{\defeq}{\stackrel{\text{\tiny def}}{=}} % SMath 'define equal' best regards,w3b5urf3r If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
 Davide Carpi #51 Posted : 27 January 2013 22:00:06(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,523Location: ItalyWas thanked: 1267 time(s) in 833 post(s) Originally Posted by: mkraska I admit that these proposals were just matter of comfort. The trade between user comfort and coding effort is of course your decision. Perhaps, an alternative could be to have sort of template in some sensible place (somewhere in install dir or in a system user dir). The default then would be what you currently have.I bet there is no chance to design a single template such that it works in any language environment. In my case, the german umlauts fail to compile, even if I use my input- and fontencoding from the handbook source. Perhaps there is just too much side effects and dependencies between the packages (I never used some of the ones in the latex export).As for languages issues, my idea was to export the worksheet as a XeLaTeX document with XITS Math fonts and Linux Libertine fonts... it supports accented letters, german umlauts and cyrillic script...File Attachment(s): Test XeLaTeX.zip (13kb) downloaded 51 time(s).Davide Carpi attached the following image(s): If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
 mkraska #52 Posted : 27 January 2013 23:47:34(UTC) Rank: Advanced MemberGroups: Registered Joined: 15/04/2012(UTC)Posts: 1,757Was thanked: 967 time(s) in 615 post(s) Hello w3bsurf3r,Would it be possible to provide importData versions without cell specification, which read the rectangular envelope of all non-empty cells? e.g. importData.XLSX("filename";"sheetname" ).Currently, external input data of unknown size can be read with importdata(), but not with the ods or xlsx import. At least not without looping and adress string construction and the like.Sorry for bothering you again with a matter of comfort Martin Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
 mkraska #53 Posted : 28 January 2013 00:39:43(UTC) Rank: Advanced MemberGroups: Registered Joined: 15/04/2012(UTC)Posts: 1,757Was thanked: 967 time(s) in 615 post(s) Originally Posted by: w3b5urf3r_reloaded As for languages issues, my idea was to export the worksheet as a XeLaTeX document with XITS Math fonts and Linux Libertine fonts... it supports accented letters, german umlauts and cyrillic script...That might be a good way. My exported docs compiled with xetex and had the umlauts right. With pdflatex they are lost by whatever reason. pdflatex works fine for my handbook, which is full of umlauts. But never mind, I'll just add "use xelatex to compile latex export" to the survival rules.Martin Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
 xyonx #55 Posted : 28 January 2013 11:07:00(UTC) Rank: MemberGroups: Registered Joined: 16/05/2012(UTC)Posts: 10Location: indonesia hi DC, thanx for updating pluginstry using plugins, save as ODF/ODT all symbols did not display (except for Pi) since it contains "i" at beginning symbol code in OOo mathand here's display result,please consider, is this crucial for math? thx uEdited by user 28 January 2013 11:10:14(UTC)  | Reason: Not specified
 mkraska #56 Posted : 28 January 2013 15:32:04(UTC) Rank: Advanced MemberGroups: Registered Joined: 15/04/2012(UTC)Posts: 1,757Was thanked: 967 time(s) in 615 post(s) I cannot reproduce the problem, see image.mkraska attached the following image(s): Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
 mikekaganski #57 Posted : 28 January 2013 17:13:26(UTC) Rank: Advanced MemberGroups: Registered Joined: 17/01/2013(UTC)Posts: 296Location: Khabarovsk, RussiaWas thanked: 151 time(s) in 107 post(s) Originally Posted by: mkraska I cannot reproduce the problem, see image.It seems like xyonx have removed the standard content of the LO/OOO Math Collection. My system gives the same for %ivartheta.Generally I prefer to use greek characters themselves (plus usual Math decoration) and avoid using the collection names. This makes greek to look consistent with other text, no need to use special font for greek since most modern unicode fonts support it, and it enables to use several "styles" of formulas (if using collection, I would need to define a full new set for each style). Maybe it's worth it to use unicode greek char codes instead of the %igreeknames?However, there may be some pitfalls that I haven't met at my setup... Best regards, Mike Kaganski
 xyonx #58 Posted : 28 January 2013 18:15:45(UTC) Rank: MemberGroups: Registered Joined: 16/05/2012(UTC)Posts: 10Location: indonesia hi ALL, thx for quick replymaybe it's about office software & language installation compatibility, i'm using Lotus Symphony 3 Release 3.0.1 FP2btw, i did not find any %i.. code to write symbol in OOo/LO user guide (English version), just seeking and i found this topics in LO UG German version (p.12)i'm not really understand but it's look like the %i.. code required to emphasize italic font in math formulajust asking why the ODF/ODT standard did not consistent in displaying formula content?
 Davide Carpi #59 Posted : 29 January 2013 00:12:56(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,523Location: ItalyWas thanked: 1267 time(s) in 833 post(s) Originally Posted by: xyonx hi DC, thanx for updating pluginstry using plugins, save as ODF/ODT all symbols did not display (except for Pi) since it contains "i" at beginning symbol code in OOo mathplease consider, is this crucial for math? thx uThank you, I'll fix it ASAP! [DONE]best regards,w3b5urf3rEdited by user 29 January 2013 17:57:10(UTC)  | Reason: Not specified If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects