Skip to content

解析word中的数学公式mathtype对象为latex字符串

License

Notifications You must be signed in to change notification settings

zhexiao/mtef-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

测试

$ go run main.go -f test/oleObject1.bin

输出:

$$ \frac { -b±\sqrt[] { b ^ { 2 } -4ac } } { 2a } $$

字节数据

[5 1 0 6 9 68 83 77 84 54 0 1 19 87 105 110 65 108 108 66 97 115 105 99 67 111 100 101 80 97 103 101 115 0 17 5 84 105 109 101 115 32 78 101 119 32 82 111 109 97 110 0 17 3 83 121 109 98 111 108 0 17 5 67 111 117 114 105 101 114 32 78 101 119 0 17 4 77 84 32 69 120 116 114 97 0 19 87 105 110 65 108 108 67 111 100 101 80 97 103 101 115 0 17 6 203 206 204 229 0 18 0 8 33 47 69 143 68 47 65 80 244 16 15 71 95 65 80 242 31 30 65 80 244 21 15 65 0 244 69 244 37 244 143 66 95 65 0 244 16 15 67 95 65 0 244 143 69 244 42 95 72 244 143 65 0 244 16 15 64 244 143 65 127 72 244 16 15 65 42 95 68 95 69 244 95 69 244 95 65 15 12 1 0 1 0 1 2 2 2 2 0 2 0 1 1 1 0 3 0 1 0 4 0 5 0 10 1 0 2 2 130 99 0 2 0 130 111 0 2 0 130 115 0 3 0 28 0 0 11 1 1 1 0 2 4 134 18 34 45 2 0 136 49 0 0 0 10 2 4 132 184 3 113 2 2 130 115 0 2 0 130 105 0 2 0 130 110 0 3 0 28 0 0 11 1 1 1 0 2 4 134 18 34 45 2 0 136 49 0 0 0 10 2 4 132 184 3 113 2 2 130 97 0 2 0 130 114 0 2 0 130 99 0 2 0 130 115 0 2 0 130 105 0 2 0 130 110 0 2 4 132 184 3 113 2 0 131 101 0 3 0 28 0 0 11 1 1 1 0 2 0 131 105 0 2 4 132 184 3 113 0 0 10 3 0 11 0 0 1 0 2 0 129 79 0 2 0 129 112 0 2 0 129 112 0 2 0 129 111 0 2 0 129 115 0 2 0 129 105 0 2 0 129 116 0 2 0 129 101 0 0 1 0 2 0 129 72 0 2 0 129 121 0 2 0 129 112 0 2 0 129 111 0 2 0 129 116 0 2 0 129 101 0 2 0 129 110 0 2 0 129 117 0 2 0 129 115 0 2 0 129 101 0 0 0 3 0 1 3 0 1 0 3 0 11 0 0 1 0 2 4 132 192 3 112 0 1 0 2 0 136 50 0 0 0 2 4 134 18 34 45 2 4 132 184 3 113 0 2 0 150 40 0 2 0 150 41 0 0 8 2 2 2 4 127 184 3 113 2 4 127 198 3 106 0 0]
ENCODING_DEF WinAllBasicCodePages
FONT_DEF 5 Times New Roman
FONT_DEF 3 Symbol
FONT_DEF 5 Courier New
FONT_DEF 4 MT Extra
ENCODING_DEF WinAllCodePages
FONT_DEF 6 ����
EQN_PREFS &{[pt12 %58 %42 %150 %100 %75 %150 pt1] [%150 %150 %100 %45 %25 %8 %25 %100 %100 %35 %100 %8 %5 %2.5 %8 %8 %100 %100 %0 %8 %17 %8 %100 %12.5 %45 %5 %5 %5 %5 %10] [0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 1 0 0 0 0 0]}
FULL
LINE &{0 0 0 false <nil> <nil>}
CHAR &{0 0 0 130 99 0 0 <nil>}
CHAR &{0 0 0 130 111 0 0 <nil>}
CHAR &{0 0 0 130 115 0 0 <nil>}
TMPL &{0 0 28 0 0 <nil>}
SUB
LINE &{0 0 0 true <nil> <nil>}
LINE &{0 0 0 false <nil> <nil>}
CHAR &{0 0 0 134 8722 45 0 <nil>}
CHAR &{0 0 0 136 49 0 0 <nil>}
END
END
FULL
CHAR &{0 0 0 132 952 113 0 <nil>}
CHAR &{0 0 0 130 115 0 0 <nil>}
CHAR &{0 0 0 130 105 0 0 <nil>}
CHAR &{0 0 0 130 110 0 0 <nil>}
TMPL &{0 0 28 0 0 <nil>}
SUB
LINE &{0 0 0 true <nil> <nil>}
LINE &{0 0 0 false <nil> <nil>}
CHAR &{0 0 0 134 8722 45 0 <nil>}
CHAR &{0 0 0 136 49 0 0 <nil>}
END
END
FULL
CHAR &{0 0 0 132 952 113 0 <nil>}
CHAR &{0 0 0 130 97 0 0 <nil>}
CHAR &{0 0 0 130 114 0 0 <nil>}
CHAR &{0 0 0 130 99 0 0 <nil>}
CHAR &{0 0 0 130 115 0 0 <nil>}
CHAR &{0 0 0 130 105 0 0 <nil>}
CHAR &{0 0 0 130 110 0 0 <nil>}
CHAR &{0 0 0 132 952 113 0 <nil>}
CHAR &{0 0 0 131 101 0 0 <nil>}
TMPL &{0 0 28 0 0 <nil>}
SUB
LINE &{0 0 0 true <nil> <nil>}
LINE &{0 0 0 false <nil> <nil>}
CHAR &{0 0 0 131 105 0 0 <nil>}
CHAR &{0 0 0 132 952 113 0 <nil>}
END
END
FULL
TMPL &{0 0 11 0 0 <nil>}
LINE &{0 0 0 false <nil> <nil>}
CHAR &{0 0 0 129 79 0 0 <nil>}
CHAR &{0 0 0 129 112 0 0 <nil>}
CHAR &{0 0 0 129 112 0 0 <nil>}
CHAR &{0 0 0 129 111 0 0 <nil>}
CHAR &{0 0 0 129 115 0 0 <nil>}
CHAR &{0 0 0 129 105 0 0 <nil>}
CHAR &{0 0 0 129 116 0 0 <nil>}
CHAR &{0 0 0 129 101 0 0 <nil>}
END
LINE &{0 0 0 false <nil> <nil>}
CHAR &{0 0 0 129 72 0 0 <nil>}
CHAR &{0 0 0 129 121 0 0 <nil>}
CHAR &{0 0 0 129 112 0 0 <nil>}
CHAR &{0 0 0 129 111 0 0 <nil>}
CHAR &{0 0 0 129 116 0 0 <nil>}
CHAR &{0 0 0 129 101 0 0 <nil>}
CHAR &{0 0 0 129 110 0 0 <nil>}
CHAR &{0 0 0 129 117 0 0 <nil>}
CHAR &{0 0 0 129 115 0 0 <nil>}
CHAR &{0 0 0 129 101 0 0 <nil>}
END
END
TMPL &{0 0 1 3 0 <nil>}
LINE &{0 0 0 false <nil> <nil>}
TMPL &{0 0 11 0 0 <nil>}
LINE &{0 0 0 false <nil> <nil>}
CHAR &{0 0 0 132 960 112 0 <nil>}
END
LINE &{0 0 0 false <nil> <nil>}
CHAR &{0 0 0 136 50 0 0 <nil>}
END
END
CHAR &{0 0 0 134 8722 45 0 <nil>}
CHAR &{0 0 0 132 952 113 0 <nil>}
END
CHAR &{0 0 0 150 40 0 0 <nil>}
CHAR &{0 0 0 150 41 0 0 <nil>}
END
FONT_STYLE_DEF 2 ������q�����j
END
&{5 1 0 6 9 DSMT6 1 0xc0000642d0}

Process finished with exit code 0

About

解析word中的数学公式mathtype对象为latex字符串

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages