Skip to content

Commit

Permalink
Some minor support for MiKTeX on macOS / Linux
Browse files Browse the repository at this point in the history
Note that this is not intended to fully support MiKTeX, merely to make MiKTeX-specific features available on macOS or Linux.
  • Loading branch information
ig0774 committed Apr 13, 2018
1 parent 8cea2de commit 88c02d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion latexDocumentationViewer.py
Expand Up @@ -28,7 +28,7 @@ def _view_texdoc(file):
raise TypeError('File must be a string')

command = ['texdoc']
if sublime.platform() == 'windows' and using_miktex():
if using_miktex():
command.append('--view')
command.append(file)

Expand Down
11 changes: 4 additions & 7 deletions latextools_utils/distro_utils.py
Expand Up @@ -7,13 +7,10 @@


def using_miktex():
if sublime.platform() != 'windows':
return False

platform_settings = get_setting(sublime.platform(), {})
distro = platform_settings.get('distro', '')

try:
distro = platform_settings.get('distro', 'miktex')
if sublime.platform() == 'windows':
return distro in ['miktex', '']
except KeyError:
return True
else:
return distro == 'miktex'

0 comments on commit 88c02d5

Please sign in to comment.