Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
-   remove outdated paragraphs
-   mention where to get a Windows binary
  • Loading branch information
humenda committed Aug 24, 2017
1 parent 5b83b77 commit 4fee80d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
2.2.1 - fix handling of non-ascii alphabetical characters

- replace characters with diacritics in the LaTeX source, but keep the
unmodified character in image alt attribute (for better readibility)
unmodified character in image alt attribute (for better readibility)

2.2 - make alternative text of formulas more readable

Expand Down
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ new version is purely implemented in Python, gets rid of the Ghostscript
dependency and additionally offers the GladTeX functionality in a Python module
called gleetex. to be embedded in other applications.


License
-------

Expand All @@ -33,7 +32,7 @@ Credits go to



About the rewritten (new) version:
About the rewritten (current) version:

- (c) 2015-2016 Sebastian Humenda
- credits go to Martin G. Gulbrandsen who had the idea in the first place
Expand All @@ -53,22 +52,26 @@ easy as

# apt-get install gladtex

### Windows

If you want to use the program without the Python library, you should download a
pre-compiled binary from <https://github.com/humenda/GladTeX/releases>.

Just unzip the archive and move the files to a directory within `%PATH%`.


### From Source

The following is required for installing GladTeX:

- Python >= 3.5
- Python >= 3.4
- LaTeX (2e), dvipng
- the LaTeX package preview.sty

On Debian systems the following commands will satisfy the dependencies:
On Debian/Ubuntu systems the following commands will satisfy the dependencies:

# apt-get install python3.4 texlive-latex-base preview-latex-style dvipng
# apt-get install python3-all texlive-fonts-recommended texlive-latex-recommended preview-latex-style dvipng

If you plan to use lualatex, use:

sudo apt-get install texlive-maths-extra texlive-luatex texlive-xetex texlive-fonts-extra

The package can then be installed using

# python3 setup.py install
Expand Down
7 changes: 5 additions & 2 deletions create_windows_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ def exec_setup_py(arg_string):
if sys.platform.startswith('win'):
ret = os.system('python setup.py ' + arg_string)
else:
if not shutil.which('wine'):
print("Error: Wine is not installed, aborting…")
sys.exit(5)
ret = os.system('wine python setup.py ' + arg_string)
if ret:
if sys.platform.startswith('win'):
print("abborting at command `python setup.py %s`." % arg_string)
print("Aborting at command `python setup.py %s`." % arg_string)
else:
print("abborting at command `wine python setup.py %s`." % arg_string)
print("Aborting at command `wine python setup.py %s`." % arg_string)
sys.exit(7)

def get_python_version():
Expand Down

0 comments on commit 4fee80d

Please sign in to comment.