Welcome, Guest. Please Login News: IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
 Pages: 1 2 3
 Exporting to Latex (Read 42468 times)
 Arthur Magnusson Full Member Offline Posts: 26 Re: Exporting to Latex Reply #15 - Mar 16th, 2010, 7:56pm   Hi, I've been playing around with this. Great stuff this MMDI've tried to implement latex equations, (one of) the code(s) in an original latex file to insert an equation is$equation$, and MMD suggest to put inline code as HTML comment. It works when I insert it into my Tinderbox text directly. But I was trying to do a template for separate equation too.It looks something like this:Now, there are two problems: 1) Backslashes are not exported well, I've tried the ^encode command but just can't get my head round what syntax I'm supposed to use.2) What if I need to use the caret in my equation. Tinderbox seems not to allow to insert the caret into any text unless it's a template. Fair enough, as it's reserved for exports, but still there must be a way to use them anyway, double carets? Back to top IP Logged
 Mark Anderson YaBB Administrator Offline User - not staff! Posts: 5689 Southsea, UK Re: Exporting to Latex Reply #16 - Mar 17th, 2010, 6:04am   Your point #2 is incorrect. TB doesn't prevent you from using a caret - see TB's Help, Appendix 4 under miscellaneous codes. To escape a literal ^ during export you simply double it, ^^.Latex. (Note I've no practical LATEX expertise). I have a note with this text:It was the ^^ best of \ times.I have a template with this code:Exporting the note via the template I get this HTML code (as seen in/copied from BBEdit): Quote: I doubt you want the

tags, so I amended the template code:Now I get: Quote: What is the problem with backslashes?It would help us help you if you gave a real example of something you're trying to export with an example of exactly how it should look (and the output encoding type needed if not visible but pertinent and currently problematic). Back to top --Mark AndersonTB user and Wiki GardeneraTbRef v6(TB consulting - email me)   IP Logged

 Arthur Magnusson Full Member Offline Posts: 26 Re: Exporting to Latex Reply #17 - Mar 17th, 2010, 6:41am   Thanks for the clarification, much appreciatedre 2) it now works - it's strange, the text input window sometimes acts inexpectedly. wouldn't allow me to copy/paste at times, or in that case to insert carets..(!)re 1) Sorry, doing tests on a clean tbx file shows that there no such problem. My issues were due to a misunderstanding of the interaction syntax between the templates and the multimarkdown conversion from html to latex. Back to top IP Logged
 Mark Bernstein YaBB Administrator Offline designer of Tinderbox Posts: 2871 Eastgate Systems, Inc. Re: Exporting to Latex Reply #18 - Mar 17th, 2010, 10:17am   I just inserted, deleted, copied and pasted a few hundred carets without difficulty.Hmmmm.... Back to top IP Logged
 Arthur Magnusson Full Member Offline Posts: 26 Re: Exporting to Latex Reply #19 - Mar 17th, 2010, 10:23am   I was testing this several times, and it only happens when the given note has a prototype! Back to top IP Logged
 Mark Anderson YaBB Administrator Offline User - not staff! Posts: 5689 Southsea, UK Re: Exporting to Latex Reply #20 - Mar 17th, 2010, 10:45am   I can't replicate this. It would really help in this sort of situation if you'd post a link to a specimen TBX that shows the problem. You mention prototypes but give no real info as to the sort of text you're processing, the exact template code, etc., etc.  More info is good! Back to top --Mark AndersonTB user and Wiki GardeneraTbRef v6(TB consulting - email me)   IP Logged
 Arthur Magnusson Full Member Offline Posts: 26 Re: Exporting to Latex Reply #21 - Mar 17th, 2010, 6:44pm   Sure, I appreciate that my description was terse.Here's a very simple tb file I created where the problem occurs: http://senduit.com/c4df79It might be a bug that only happens on my mac, though I'm clueless as to why. I tried switching off any third-party programs, too Back to top IP Logged