I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index » Products » LaTeX Equation Editor »

OpenLatexEditor question

CodeCogs\′s Photo
3 Jan 09, 12:47PM
OpenLatexEditor question
What you've done is better. But I think we can go further. I see that TiddlyWiki has a toolbar with options for Bold etc on it.

I don't know a great deal about TiddlyWiki, but this seems to have worked - however you cleverer fokes should check this over. Ok. In the file you had online (if you've edited this then the line numbers may have changed). But at around line 5218, find
<div title="QuickEdit_image" modifier="YourName" created="200801120913" modified="200810142209" tags="QuickEditPackage" creator="YourName">
<pre>/%
Immediately before this, insert the following
<div title="QuickEdit_equation" modifier="YourName" created="200801111625" modified="200810170644" tags="QuickEditPackage" creator="Will Bateman">
<pre>/%
|Name|QuickEdit_equation|
|Source|http://latex.codecogs.com.com/integration/TiddlyWiki.php|
|Version|1.0.0|
|Author|Will Bateman - CodeCogs.com|
|License|http://www.codecogs.com|
|~CoreVersion|2.2|
|Type|script|
|Requires|QuickEditPlugin|
|Overrides||
|Description|definition for toolbar button for equation editing|
 
Usage:
QuickEditToolbar: &lt;&lt;tiddler QuickEdit_equation&gt;&gt;
OR
EditTemplate: &lt;span class='toolbar' macro='tiddler QuickEdit_equation'&gt;&lt;/span&gt;
 
**** INSERT EQUATION ****
%/&lt;html&gt;&lt;hide linebreaks&gt;&lt;a href=&quot;javascript:;&quot; class=&quot;tiddlyLink&quot;
	title=&quot;embed an equation - [img[http://latex.codecogs.com/gif.latex?]]&quot;
	onclick=&quot;config.quickEdit.id='eqntarget'; OpenLatexEditor('eqntarget','tw',''); &quot;
&gt;equation&lt;/a&gt;&lt;/html&gt;</pre>
</div>

Now at about live 4880, you should something like this:
%/&lt;&lt;tiddler QuickEdit_replace&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_split&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_sort&gt;&gt;/%
%/ &amp;nbsp;/% (SPACER)
%/&lt;&lt;tiddler QuickEdit_link&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_macro&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_image&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_tiddler&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_file&gt;&gt;/%
%/ &amp;nbsp;/% (SPACER)
%/&lt;&lt;tiddler QuickEdit_format&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_align&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_color&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_font&gt;&gt;/%
%/&lt;&lt;tiddler QuickEdit_css&gt;&gt;/%
At the end of this list add:
%/&lt;&lt;tiddler QuickEdit_equation&gt;&gt;/%

And obviously write at the top of the file, near line 43, you need to add within <head> section
<script type="text/javascript" src="http://latex.codecogs.com/editor.js"></script>
As you have already done.

I think that just about wraps that up. I'm not entirely happy with my addin, only because I have to set the id for the edit box, which I set to 'eqntarget'. Initially this is undefined. It raises an interesting point about how my editor it integrated into systems like this; perhaps there is a cleaner way to pass through a pointer to the object where the code is dropped. But for the mean time I hope this works ok for you.

I've put the amended TiddlyWiki here http://latex.codecogs.com/integration/tiddlywiki/twmath.html

(this file is a bit of a mess with other trials/errors I was playing with - would be nice to have a clean version at some point here).

You're right TiddlyWiki is addictive - its a very impressive system Regards Will.
Currently you need to be logged in to leave a message.