mathshuttle 0.8.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,113 @@
1
+ Metadata-Version: 2.4
2
+ Name: mathshuttle
3
+ Version: 0.8.0
4
+ Summary: Move equations between LaTeX and Word / PowerPoint, both ways, offline (texmath via pandoc)
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/infinitr0us/MathShuttle
7
+ Project-URL: Documentation, https://github.com/infinitr0us/MathShuttle#documentation
8
+ Project-URL: Changelog, https://github.com/infinitr0us/MathShuttle/blob/main/CHANGELOG.md
9
+ Project-URL: Issues, https://github.com/infinitr0us/MathShuttle/issues
10
+ Keywords: latex,mathml,omml,word,powerpoint,equations,pandoc,texmath
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Operating System :: Microsoft :: Windows
13
+ Classifier: Operating System :: MacOS
14
+ Classifier: Environment :: Win32 (MS Windows)
15
+ Classifier: Environment :: MacOS X
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: Topic :: Text Processing :: Markup :: LaTeX
18
+ Requires-Python: >=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: license-file
22
+
23
+ # MathShuttle
24
+
25
+ Move equations between LaTeX and Word / PowerPoint, both ways, offline.
26
+
27
+ ![The MathShuttle window: LaTeX in, Office Math out, with the LaTeX preview below](https://raw.githubusercontent.com/infinitr0us/MathShuttle/main/docs/images/window.png)
28
+
29
+ * **LaTeX to Word and PowerPoint.** Copy LaTeX, with your paper's macros, and paste it into Word or
30
+ PowerPoint as a native, editable equation. Aligned blocks arrive lined up at the `=` signs.
31
+ * **Word and PowerPoint to LaTeX.** Copy an equation in Office and get LaTeX you can put in a paper
32
+ (`\mathrm{OOD}`, `\operatorname{softmax}`, `\boldsymbol{\theta}`, `cases`, `a &= b`). An equation you
33
+ sent and nobody edited comes back as the LaTeX you wrote.
34
+ * **Whole papers to Word.** A `.tex` or Markdown file, or a pasted chat answer, becomes a Word document
35
+ with native equations, numbered as LaTeX numbers them, with references and citations. Every equation of
36
+ a `.docx`, `.pptx`, `.tex` or `.md` file can be listed, filtered and exported.
37
+ * **Other people's LaTeX.** A paper's own definitions, commands of common packages (physics, braket,
38
+ siunitx...) and old TeX font switches are handled. An equation that still fails says why, in plain words.
39
+ * **Also:** LaTeX, MathML and OMML conversion with Typst and eqn output (a local stand-in for the
40
+ [texmath web demo](https://johnmacfarlane.net/texmath.html)), LaTeX with your macros written out, a
41
+ hotkey that works in any program, a LaTeX preview, and a command line.
42
+
43
+ Windows and macOS. Everything runs on your computer; nothing is sent anywhere.
44
+
45
+ ## Install
46
+
47
+ 1. Download the zip for your system from the
48
+ [latest release](https://github.com/infinitr0us/MathShuttle/releases/latest):
49
+ `MathShuttle-<version>-windows-x64.zip` or `MathShuttle-<version>-macos-arm64.zip`.
50
+ 2. **Windows:** unzip it anywhere and run `MathShuttle\MathShuttle.exe`. The exe is not code-signed, so
51
+ SmartScreen may warn the first time: *More info*, then *Run anyway*.
52
+ **macOS:** drag `MathShuttle.app` into Applications. It is not signed by a registered developer, so
53
+ the first time open it with System Settings > Privacy & Security > *Open Anyway*.
54
+ 3. MathShuttle needs [pandoc](https://pandoc.org), the conversion engine. If pandoc is not installed,
55
+ the window offers to download it (pandoc's own release, about 40 MB, checked against its SHA-256). You can
56
+ also install it yourself: `winget install JohnMacFarlane.Pandoc` (Windows) or `brew install pandoc`
57
+ (macOS).
58
+
59
+ With Python 3.9 or later (with tkinter): `pipx install mathshuttle` gives the commands `mathshuttle`
60
+ (the window without arguments, the command line with them) and `mathshuttle-gui`. No other Python
61
+ packages are needed. A LaTeX installation (MiKTeX, TeX Live, MacTeX) turns on the LaTeX preview.
62
+
63
+ ## Use
64
+
65
+ 1. Type or paste LaTeX, click **Copy for Word/PowerPoint** (Ctrl+Shift+C), and press Ctrl+V in Word or
66
+ PowerPoint.
67
+ 2. The other way: select an equation in Word or PowerPoint, press Ctrl+C, and click
68
+ **Paste from Word/PowerPoint** (Ctrl+Shift+V).
69
+ 3. Your macros: **Macros...** takes your paper's macro file or preamble, once.
70
+ 4. A whole paper: **Open file...**, then **Whole file as Word...**, or `mathshuttle word paper.tex -o paper.docx`.
71
+
72
+ On the Mac, Cmd takes the place of Ctrl. The window follows the system's light or dark mode. On
73
+ Windows and Linux you can fix one: set `"theme"` to `"light"`, `"dark"` or `"native"` (Tk's own look) in
74
+ `settings.json` (`%APPDATA%\MathShuttle` on Windows); on the Mac the window keeps the system's look.
75
+
76
+ ### Next to Office's own LaTeX support
77
+
78
+ Microsoft 365 (Version 2606 and later) turns LaTeX pasted with `$…$` / `\[…\]` delimiters into an
79
+ equation itself. It rejects `\newcommand` and `\DeclareMathOperator`, though, and gives back LaTeX in
80
+ its own style. On a 784-equation PhD thesis (Word 16.0.20527), Word's own paste turned 781 into
81
+ equations; MathShuttle converts all 784, and 764 of them come back from Word as the same symbols and
82
+ fonts. MathShuttle also works with Office versions without LaTeX paste (Office 2021 / 2024 LTSC, older
83
+ Mac Office).
84
+
85
+ ## Documentation
86
+
87
+ * [Word and PowerPoint](https://github.com/infinitr0us/MathShuttle/blob/main/docs/word-and-powerpoint.md):
88
+ both directions, what Word changes, your own LaTeX back, the preview, the hotkey
89
+ * [Documents](https://github.com/infinitr0us/MathShuttle/blob/main/docs/documents.md): Open file, Word
90
+ export of passages and papers, equation numbers, references and citations
91
+ * [LaTeX input and output](https://github.com/infinitr0us/MathShuttle/blob/main/docs/latex-input.md):
92
+ modes, chat answers and Markdown, macros, packs, what is rewritten for texmath, the wrapper box
93
+ * [Command line](https://github.com/infinitr0us/MathShuttle/blob/main/docs/command-line.md)
94
+ * [macOS](https://github.com/infinitr0us/MathShuttle/blob/main/docs/macos.md)
95
+ * [Building, testing and how it works](https://github.com/infinitr0us/MathShuttle/blob/main/docs/development.md)
96
+ * [Changelog](https://github.com/infinitr0us/MathShuttle/blob/main/CHANGELOG.md)
97
+
98
+ Found a problem? [Open an issue](https://github.com/infinitr0us/MathShuttle/issues/new/choose); Help >
99
+ *Copy details for a bug report* in the window copies the versions it asks for.
100
+
101
+ ## How it works
102
+
103
+ The conversion engine is texmath, which runs inside pandoc (same author). MathShuttle prepares the LaTeX
104
+ that texmath cannot read (macros, packages, old syntax), tidies the LaTeX that comes back from Office,
105
+ and talks to the Word and PowerPoint clipboard. It needs only Python's standard library and pandoc.
106
+
107
+ ## Licence
108
+
109
+ MIT, see [LICENSE](LICENSE). pandoc (which contains texmath) is a separate program under the GPL
110
+ (version 2 or later); MathShuttle only runs it. A copy downloaded by the window is pandoc's own release,
111
+ with its licence files next to it. A build made with `build_exe.ps1 -BundlePandoc` contains `pandoc.exe`:
112
+ if you pass such a build on, the GPL applies to that copy of pandoc (include its licence and offer its
113
+ source code).
@@ -0,0 +1,37 @@
1
+ mathshuttle/__init__.py,sha256=lBfWI9vxpvymZNj9V05pH7jW3_pUxOXhtXR7242kF4o,112
2
+ mathshuttle/__main__.py,sha256=5MHbqUCVXo1jjHB1Jmljvt0vNLt-wjl7p2OcNF2S5L0,18342
3
+ mathshuttle/_clipboard_macos.py,sha256=Qggsm0WW2KnVaFN_x3dwJnFMZM5CZRlVC5kiHQlj_PQ,11413
4
+ mathshuttle/_clipboard_win32.py,sha256=jSuSt7356O5NG1SC8pBHVnzHbql2tA3xq_j_jG3-pMo,8176
5
+ mathshuttle/_hotkeys_macos.py,sha256=Uze85g1EU-qxm0JrLyKDZ6XHMobeUjIYt1FDOWjQG5o,6461
6
+ mathshuttle/app.py,sha256=3hEIYfLmhfz5YjhFZhn9StA88edbxVzPnx65qjpEozI,77227
7
+ mathshuttle/clipboard.py,sha256=o7RZEsj3N8rd6eF9heFCnCsASCN0-TgEcy46ph4f_FI,5684
8
+ mathshuttle/compat.py,sha256=gF482P_heQWPblNwQ7qIra8ncDflT-ccgJRFkdP1Xgk,75533
9
+ mathshuttle/convert.py,sha256=nkqzKHhnotN1vuxRW-hWBmf6NQhUlcpyrTg8-BJrG60,24831
10
+ mathshuttle/diagnose.py,sha256=84K2yi0vmgg428SjYhRM4ntNgb042fMxtrlETl-zSqw,9546
11
+ mathshuttle/documents.py,sha256=U8RjbvUpJeuysSZNf632UMUa70J82Gdg24JCYcOusjw,43713
12
+ mathshuttle/hotkeys.py,sha256=r2cptBD-9T-mKdDOOpGK2ox9mLHxvDPNmp7_2SP6VAs,8580
13
+ mathshuttle/latex_wrap.py,sha256=w4eMvI4evSktnk_toOhl6CUr6UP0pVf3s0s0C2U8GrA,14016
14
+ mathshuttle/office_html.py,sha256=3WQoB9l6KqI6_QFIUV7kBPqQmvgp_F2Fnet6xISdzMw,11945
15
+ mathshuttle/packs.py,sha256=MIU0POqBrvNmqG_SpYLY1oZwAIl7kTS-dwsEW8XQu0M,22777
16
+ mathshuttle/pandoc_engine.py,sha256=vVxUpMwV6SVP9mL02fypYj5VPrOYj8HXVnxzpxt2a3A,81062
17
+ mathshuttle/pandoc_fetch.py,sha256=O-3NMd--ArqiEYlEH3UZNE9cEDp28m8dK5v8CF1qHyk,13667
18
+ mathshuttle/paths.py,sha256=WclPS0kmzAom-Uj2qOMr-tKfqjzoZVUG1zN1ans_hHc,649
19
+ mathshuttle/preview.py,sha256=LVTpbjgmsOihMtYmQ_7cPtBdifqKt-ud5hHuWrvdd_s,10631
20
+ mathshuttle/recall.py,sha256=kdLaYppcu06Pc0mGIzQjavPx1-S-8efOQQK80iL5JuU,15392
21
+ mathshuttle/theme.py,sha256=XoVZcuBYa26ZoGnCkFz24lH49nDLzZnX3v-HiLKLrb0,5966
22
+ mathshuttle/tidy.py,sha256=UergIcWNn7q-vuG9MyBdHHZNbP8lyqpKOzrtB5Aktq0,40603
23
+ mathshuttle/wordexport.py,sha256=iQ5UvkYSScseSgur5nCVI3sE2aYRXpZu7ClPWpoyjsY,44002
24
+ mathshuttle/sv_theme/LICENSE,sha256=b8Bgne9JYqRxhvsxTNtqEVmeP1PtPL0H8NnvhOYYvM0,1079
25
+ mathshuttle/sv_theme/sv.tcl,sha256=921Mh1gfeADzJZKWI3k_v0IuTyZDdDkaOvX1uk3SwSs,5039
26
+ mathshuttle/sv_theme/theme/dark.tcl,sha256=iplwNExyNO_Hq9LrySHvZSNwqMOoPdAPLQVR4hNHnhc,16175
27
+ mathshuttle/sv_theme/theme/light.tcl,sha256=btmCmDpSN6sBoqaSpbVTG8E1IbUqgi9PrgjY-UyAtNc,16298
28
+ mathshuttle/sv_theme/theme/sprites_dark.tcl,sha256=gr7sfeXyBGZQETv8_jtO61B37vPRD6pxceeFElpmScM,3045
29
+ mathshuttle/sv_theme/theme/sprites_light.tcl,sha256=gr7sfeXyBGZQETv8_jtO61B37vPRD6pxceeFElpmScM,3045
30
+ mathshuttle/sv_theme/theme/spritesheet_dark.png,sha256=NA7_Ajh8olIwEPnAvnEznMVIsqie8TSUOK_YgaK-_YY,18371
31
+ mathshuttle/sv_theme/theme/spritesheet_light.png,sha256=U-1Yr3Noqe9nJ5l6i0yiK0gGEbpl46Jee_TGn-dWfSc,18388
32
+ mathshuttle-0.8.0.dist-info/licenses/LICENSE,sha256=FtUV92LDgXuxufr3mTsO4iv9xvqhETQ6dXZMhrAn6to,1068
33
+ mathshuttle-0.8.0.dist-info/METADATA,sha256=N3PHcbnfcEyCNHjtiqFuIlQKAMptb4KuvT3jdeSszwg,6994
34
+ mathshuttle-0.8.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
35
+ mathshuttle-0.8.0.dist-info/entry_points.txt,sha256=MUd_3jYoar6hUh7z6BVmJu3J9S1wH_rfnM1R7a1KmXc,112
36
+ mathshuttle-0.8.0.dist-info/top_level.txt,sha256=dhaM08ifv9rSK6P7N1lTZxmcMin2SGRcBhonm4GLbmE,12
37
+ mathshuttle-0.8.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ mathshuttle = mathshuttle.__main__:main
3
+
4
+ [gui_scripts]
5
+ mathshuttle-gui = mathshuttle.app:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 infinitr0us
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ mathshuttle