Skip to content

Commit

Permalink
- updated README
Browse files Browse the repository at this point in the history
- deleted incorrect license url
- small updates
  • Loading branch information
Alex A committed Jan 9, 2011
1 parent 4b8a0f7 commit a7e2b4f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 34 deletions.
22 changes: 17 additions & 5 deletions README
Expand Up @@ -2,13 +2,20 @@ LaTeXMath Freemind Plugin
=========================

This is an alternative plugin to enable latex equations on
freemind mind maps. It's currently a port of
freeplane_plugin_latex, which uses JLaTeXMath for
rendering latex.
freemind mind maps. It's currently a port of freeplane_plugin_latex,
which uses JLaTeXMath for rendering latex.

Webpage
=======
https://github.com/Alxa/LaTeXMath-Freemind-Plugin

Source
======
git clone git@github.com:Alxa/LaTeXMath-Freemind-Plugin.git


Building
========

Requirements:

- maven 2
Expand All @@ -17,7 +24,12 @@ Requirements:

License
=======
GPL V3+, see LICENSE


http://www.gnu.org/licenses/gpl.html
BUGS
====
ATTENTION: You may LOSE ALL EQUATIONS if you open your mm file afterwards in a
freemind without this plugin support!!!

--//--
2 changes: 1 addition & 1 deletion fm-plugin-latexmath/pom.xml
Expand Up @@ -4,7 +4,7 @@
<groupId>net.sf.alxa.fm</groupId>
<artifactId>fm-plugin-latexmath</artifactId>
<name>fm-plugin-latexmath</name>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.2-SNAPSHOT</version>
<description>A jlatexmath plugin for freemind</description>

<repositories>
Expand Down
@@ -1,22 +1,22 @@
/*FreeMind - A Program for creating and viewing Mindmaps
*Copyright (C) 2000-2006 Joerg Mueller, Daniel Polansky, Christian Foltin, Dimitri Polivaev and others.
*
*See COPYING for Details
*
*This program is free software; you can redistribute it and/or
*modify it under the terms of the GNU General Public License
*as published by the Free Software Foundation; either version 2
*of the License, or (at your option) any later version.
*
*This program is distributed in the hope that it will be useful,
*but WITHOUT ANY WARRANTY; without even the implied warranty of
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*GNU General Public License for more details.
*
*You should have received a copy of the GNU General Public License
*along with this program; if not, write to the Free Software
*Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
*Copyright (C) 2000-2006 Joerg Mueller, Daniel Polansky, Christian Foltin, Dimitri Polivaev and others.
*
*See COPYING for Details
*
*This program is free software; you can redistribute it and/or
*modify it under the terms of the GNU General Public License
*as published by the Free Software Foundation; either version 2
*of the License, or (at your option) any later version.
*
*This program is distributed in the hope that it will be useful,
*but WITHOUT ANY WARRANTY; without even the implied warranty of
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*GNU General Public License for more details.
*
*You should have received a copy of the GNU General Public License
*along with this program; if not, write to the Free Software
*Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/** this is only a test class */
package net.sf.alxa.fm.plugins.latexmath;

Expand All @@ -40,8 +40,8 @@
public class LatexMathNodeHook extends StatefulMindMapNodeHookAdapter {
// constants
private static final String ATTRIBUTE_EQUATION = "LATEX";
private String equation="\\mu = \\frac{1}{N}";

private String equation="\\mbox{I}^\\fgcolor{ff0000}{\\heartsuit}\\mbox{\\JLaTeXMath}";
private Set viewers;
/**
*/
Expand Down Expand Up @@ -74,23 +74,27 @@ private void deleteViewer(NodeView nodeView) {

}
public void invoke(MindMapNode node) {
Iterator iterator = node.getViewers().iterator();

while(iterator.hasNext()){
NodeView view = (NodeView) iterator.next();
createViewer(view);
try {
Iterator iterator = node.getViewers().iterator();

while(iterator.hasNext()){
NodeView view = (NodeView) iterator.next();
createViewer(view);
}
super.invoke(node);
} catch (Exception e) {
System.out.println("");

}
super.invoke(node);
}
private void createViewer(NodeView view) {

LatexMathNodeView comp = new LatexMathNodeView(this);
viewers.add(comp);
view.getContentPane().add(comp);
}

public String getContent(String key) {
System.out.println("getContent: key="+key);
// System.out.println("getContent: key="+key);
return equation;
}
public void setContent(String key, String content) {
Expand Down

0 comments on commit a7e2b4f

Please sign in to comment.