Addign dependencies for latex.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
44e39e5265
commit
8f1bc652b4
5 changed files with 25 additions and 7 deletions
|
@ -19,17 +19,34 @@
|
||||||
|
|
||||||
.import "expr-eval.js" as ExprEval
|
.import "expr-eval.js" as ExprEval
|
||||||
|
|
||||||
// Puts element within parenthesis
|
/**
|
||||||
|
* Puts element within parenthesis.
|
||||||
|
*
|
||||||
|
* @param {string} elem - element to put within parenthesis.
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
function par(elem) {
|
function par(elem) {
|
||||||
return '(' + elem + ')'
|
return '(' + elem + ')'
|
||||||
}
|
}
|
||||||
|
|
||||||
// checks if the element contains a string, and returns the parenthesis version if so.
|
/**
|
||||||
|
* Checks if the element contains at least one of the elements of
|
||||||
|
* the string array contents , and returns the parenthesis version if so.
|
||||||
|
*
|
||||||
|
* @param {string} elem - element to put within parenthesis.
|
||||||
|
* @param {Array} contents - Array of elements to put within parenthesis.
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
function parif(elem, contents) {
|
function parif(elem, contents) {
|
||||||
return contents.some(elem.includes) ? par(elem) : elem
|
return contents.some(elem.includes) ? par(elem) : elem
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adpation of expressionToString for latex
|
/**
|
||||||
|
* This function converts expr-eval tokens to a latex string.
|
||||||
|
*
|
||||||
|
* @param {Array} tokens - expr-eval tokens list
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
function expressionToLatex(tokens) {
|
function expressionToLatex(tokens) {
|
||||||
var nstack = [];
|
var nstack = [];
|
||||||
var n1, n2, n3;
|
var n1, n2, n3;
|
||||||
|
|
1
LogarithmPlotter/util/__init__.py
Normal file
1
LogarithmPlotter/util/__init__.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -3,11 +3,11 @@ Source: logarithmplotter
|
||||||
Version: 0.1.9
|
Version: 0.1.9
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Maintainer: Ad5001 <mail@ad5001.eu>
|
Maintainer: Ad5001 <mail@ad5001.eu>
|
||||||
Depends: python3, python3-pip, qml-module-qtquick-controls2 (>= 5.12.0), qml-module-qtmultimedia (>= 5.12.0), qml-module-qtgraphicaleffects (>= 5.12.0), qml-module-qtquick2 (>= 5.12.0), qml-module-qtqml-models2 (>= 5.12.0), qml-module-qtquick-controls (>= 5.12.0), python3-pyside2.qtcore (>= 5.12.0), python3-pyside2.qtqml (>= 5.12.0), python3-pyside2.qtgui (>= 5.12.0), python3-pyside2.qtquick (>= 5.12.0), python3-pyside2.qtwidgets (>= 5.12.0), python3-pyside2.qtmultimedia (>= 5.12.0), python3-pyside2.qtnetwork (>= 5.12.0)
|
Depends: python3, python3-pip, qml-module-qtquick-controls2 (>= 5.12.0), qml-module-qtmultimedia (>= 5.12.0), qml-module-qtgraphicaleffects (>= 5.12.0), qml-module-qtquick2 (>= 5.12.0), qml-module-qtqml-models2 (>= 5.12.0), qml-module-qtquick-controls (>= 5.12.0), python3-pyside2.qtcore (>= 5.12.0), python3-pyside2.qtqml (>= 5.12.0), python3-pyside2.qtgui (>= 5.12.0), python3-pyside2.qtquick (>= 5.12.0), python3-pyside2.qtwidgets (>= 5.12.0), python3-pyside2.qtmultimedia (>= 5.12.0), python3-pyside2.qtnetwork (>= 5.12.0), python3-sympy
|
||||||
|
|
||||||
Build-Depends: debhelper (>=11~), dh-python, dpkg-dev (>= 1.16.1~), python-setuptools, python3-all-dev (>=3.6)
|
Build-Depends: debhelper (>=11~), dh-python, dpkg-dev (>= 1.16.1~), python-setuptools, python3-all-dev (>=3.6)
|
||||||
Section: science
|
Section: science
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Homepage: https://apps.ad5001.eu/logarithmplotter
|
Homepage: https://apps.ad5001.eu/logarithmplotter/
|
||||||
Installed-Size: 174
|
Installed-Size: 174
|
||||||
Description: Create graphs with logarithm scales.
|
Description: Create graphs with logarithm scales.
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
python3-pip, qml-module-qtquick-controls2 (>= 5.12.0), qml-module-qtmultimedia (>= 5.12.0), qml-module-qtgraphicaleffects (>= 5.12.0), qml-module-qtquick2 (>= 5.12.0), qml-module-qtqml-models2 (>= 5.12.0), qml-module-qtquick-controls (>= 5.12.0), python3-pyside2.qtcore (>= 5.12.0), python3-pyside2.qtqml (>= 5.12.0), python3-pyside2.qtgui (>= 5.12.0), python3-pyside2.qtquick (>= 5.12.0), python3-pyside2.qtwidgets (>= 5.12.0), python3-pyside2.qtmultimedia (>= 5.12.0), python3-pyside2.qtnetwork (>= 5.12.0)
|
python3-pip, qml-module-qtquick-controls2 (>= 5.12.0), qml-module-qtmultimedia (>= 5.12.0), qml-module-qtgraphicaleffects (>= 5.12.0), qml-module-qtquick2 (>= 5.12.0), qml-module-qtqml-models2 (>= 5.12.0), qml-module-qtquick-controls (>= 5.12.0), python3-pyside2.qtcore (>= 5.12.0), python3-pyside2.qtqml (>= 5.12.0), python3-pyside2.qtgui (>= 5.12.0), python3-pyside2.qtquick (>= 5.12.0), python3-pyside2.qtwidgets (>= 5.12.0), python3-pyside2.qtmultimedia (>= 5.12.0), python3-pyside2.qtnetwork (>= 5.12.0), python3-sympy
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -127,7 +127,7 @@ if sys.platform == 'linux':
|
||||||
os.remove(os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/logplotter.svg')
|
os.remove(os.environ["PREFIX"] + '/icons/hicolor/scalable/apps/logplotter.svg')
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
install_requires=([] if "FLATPAK_INSTALL" in os.environ else ["PySide2"]),
|
install_requires=([] if "FLATPAK_INSTALL" in os.environ else ["PySide2", "sympy"]),
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8',
|
||||||
|
|
||||||
name='logarithmplotter',
|
name='logarithmplotter',
|
||||||
|
|
Loading…
Reference in a new issue