text regions: URI links - Messages
There is anyway to add an external link in a text area?
I've tried this, but doesn't work


P.S. isn't possible to nest a link into a single generic text area, like in the picture below? (it's an idea, for now doesn't work)

P.P.S. Many thanks to Andrey for the excellent job!!!
Your comment reminds me on Reference Book present in Smath (Help|Reference book). There are links and another SMath files and there is a nice preview of this book. I do not know how was this book made exactly but it is quite similar to Mathcad Handbooks. All the files from the book can be found in the "book" folder. There are SMath files with the links inside (do not know how the links are made there?). Those files can be opened separately (but not edited). Although we can copy the contents from the files into the SMath worksheet, they are not working SMath files - they serve only for reviewing of math concepts using SMath capabilities in making text and math regions.
There would be very attractive and useful if this "book" capability of SMath could be extended in order to make contents, links to other files - but with live and working worksheets. Actually, SMath books quite similar to Mathcad Handbooks.
Regards,
Radovan
WroteThose files can be opened separately (but not edited). Although we can copy the contents from the files into the SMath worksheet, they are not working SMath files - they serve only for reviewing of math concepts using SMath capabilities in making text and math regions.
The only difference between regular editable files and ones presented in the Reference book is this checkbox:
Regards.
There still remains a comment that these are not working files (constructions, like limits etc. - have no idea how was this made) and how the links are managed.
Actually, is there any chance that we can make something similar like making a "contents.sm" file with the links to another *sm files in order to work like Reference book. One of the first books could be a SMath Help book, for instance. It crossed my mind that besides Tutorials on the Wiki made by some people (like single pdf files or single *sm file) there could be a Tutorial book. Such kind of book could even exist in the Help menu of SMath (there is no SMath Help yet) like the Reference books as well. Existing a Help book like this one I would consider as a very important improvement of SMath. I mentioned similar functionality in Mathcad (e-books, handbooks) but in the case of SMath it could be localized to other languages maybe even through "Lang" system.
Regards,
Radovan
WroteThanks Andrey on reminding us about this "Read only" option.
There still remains a comment that these are not working files (constructions, like limits etc. - have no idea how was this made) and how the links are managed.
Actually, is there any chance that we can make something similar like making a "contents.sm" file with the links to another *sm files in order to work like Reference book. One of the first books could be a SMath Help book, for instance. It crossed my mind that besides Tutorials on the Wiki made by some people (like single pdf files or single *sm file) there could be a Tutorial book. Such kind of book could even exist in the Help menu of SMath (there is no SMath Help yet) like the Reference books as well. Existing a Help book like this one I would consider as a very important improvement of SMath. I mentioned similar functionality in Mathcad (e-books, handbooks) but in the case of SMath it could be localized to other languages maybe even through "Lang" system.
Regards,
Radovan
I think it's a fantastic idea

P.S. I've tried to redirect the smath link pointing an *.html file containing a classic meta tag
<meta http-equiv="Refresh" content="0; url=http://en.smath.info">
Just wanted to refresh this topic regarding Reference Book issue. In the meantime few Tutorials appeared in different languages

Regards,
Radovan
"active" reference books are definitely preferrable over static ones (like pdf). From the author's perspective, this would much simplify the update of examples. Why do all the pdfs appear anyways? For real books you need elementary formatting and structuring tools, including cross referencing. Actually, you can include links to sm files in pdfs, but most browsers will block execution due to security reasons. An exception is the TexWorks pdf viewer that comes with MikTeX.
If we had self-exporting area regions (export everything between the delimiter lines to a file given by the region title), then we could insert smath snippets as external images in the text and back-link them against the sm file. Once the image is clicked, the sm file opens. Upon closing the file, all self-exports are updated and so are the externally linked images. In instruction books, you may prefer to freeze the externally linked images in the published versions, otherwise unexperienced users could spoil the book.
Best regards, Martin
it might bypass the security prompts
Wroteplease look at the second answer about attaching external files with pdftk
it might bypass the security prompts
Thanks for that hint. Following the idea of attaching files to pdfs, I found that there is a pdflatex package attachfile which looks promising. I definitely shall give this a try.
anyway it makes pdfs more compact and portable, besides every pdf reader has an icon to show the attached files into another window view allowing to sort them by name, date, description, etc.
This is another software to attach files on pdf (apart from pdftk) though it does not allow to enter descriptions.
http://jpdftweak.sourceforge.net/
My experience in testing the file with different viewers (double clicking the links should open the file in the appropriate application):
texworks: completely unaware of attachments
Acrobat Reader:
sm file: "no associated application"
odt file: ok (open in Libre Office)
Foxit Reader: complains about illegal characters in the filenames (they have a " attached at the end)
PDF exchange viewer: same as Acrobat reader.
Acrobat and PDF exchange viewer can save the sm file to disk, from where they can be launched from file manager. Thus the file association is there. However, there seem to be different levels of tightness in these associations. LibreOffice and OpenOffice find their way to the standard software definition page in the systems control application, while SMath does not.
Any idea how to fix this is welcome.
however I wanted to see what happened when opening attachments with the current version of SMath and so I got the same problem as you

I changed back the association to the old SMath and the attached file opens well again.
It looks like something related to the current SMath version 0.95. At least with 0.89 attached .sm are opened right.
I unistalled the old version and removed all file associations, and tried to open the pdf attachments with the newest one unsuccesfully,
so I would say it is a problem with how the newer smath versions (for old versions seems to work) deals with the installation process and file associations in the registry.
thank you for testing the file association issue. I shall post an according bug report. This pdf attachment stuff is really nice. Even if the process of defining the attachments in the lyx document source is still a bit cumbersome, the amount of attached files in the handbook is going to grow.
Martin
-
New Posts
-
No New Posts