Merge bugfixes from 1.2 beta
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@157 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
8d15813690
commit
d3bd2a10d5
4 changed files with 20 additions and 10 deletions
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2011 by Henrik Just
|
||||
* Copyright: 2002-2014 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2011-03-30)
|
||||
* Version 1.4 (2014-08-05)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -465,7 +465,13 @@ public class LaTeXConfig extends writer2latex.base.ConfigBase {
|
|||
String sInput = elm.getAttribute("input");
|
||||
Map<String,String> attributes = new HashMap<String,String>();
|
||||
attributes.put("latex-code", elm.getAttribute("latex-code"));
|
||||
attributes.put("fontenc", elm.getAttribute("fontenc"));
|
||||
if (elm.hasAttribute("fontenc") && elm.getAttribute("fontenc").length()>0) {
|
||||
// The fontenc attribute is optional
|
||||
attributes.put("fontenc", elm.getAttribute("fontenc"));
|
||||
}
|
||||
else {
|
||||
attributes.put("fontenc", "any");
|
||||
}
|
||||
stringReplace.put(sInput,attributes);
|
||||
}
|
||||
else if (elm.getTagName().equals("math-symbol-map")) {
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2012 by Henrik Just
|
||||
* Copyright: 2002-2014 by Henrik Just
|
||||
*
|
||||
* Version 1.2 (2012-03-05)
|
||||
* Version 1.4 (2014-08-05)
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
@ -240,6 +240,7 @@ class Token{
|
|||
public static final Token COPROD=new Token();
|
||||
public static final Token FORALL=new Token();
|
||||
public static final Token EXISTS=new Token();
|
||||
public static final Token NOTEXISTS = new Token();
|
||||
public static final Token LIM=new Token();
|
||||
public static final Token NABLA=new Token();
|
||||
public static final Token TOWARD=new Token();
|
||||
|
@ -458,6 +459,7 @@ class SmTokenTable{
|
|||
new SmTokenTableEntry( "emptyset" , Token.EMPTYSET, "\\emptyset ", TGroup.STANDALONE, 5),
|
||||
new SmTokenTableEntry( "equiv", Token.EQUIV, "\\equiv ", TGroup.RELATION, 0),
|
||||
new SmTokenTableEntry( "exists", Token.EXISTS, "\\exists ", TGroup.STANDALONE, 5),
|
||||
new SmTokenTableEntry( "notexists", Token.NOTEXISTS, "\\nexists ", TGroup.STANDALONE, 5),
|
||||
new SmTokenTableEntry( "exp", Token.EXP, "\\exp ", TGroup.FUNCTION, 5),
|
||||
new SmTokenTableEntry( "fact", Token.FACT, "!", TGroup.UNOPER, 5),
|
||||
new SmTokenTableEntry( "fixed", Token.FIXED, "\\mathtt", TGroup.FONT, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue