Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flatlatex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leger
flatlatex
Commits
f9775986
Commit
f9775986
authored
Dec 31, 2016
by
Jean-Benoist Leger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sqrt
parent
08d8f67d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
conv.py
conv.py
+8
-0
data.py
data.py
+0
-3
No files found.
conv.py
View file @
f9775986
...
...
@@ -71,6 +71,7 @@ class converter:
# others
self
.
__cmds
[
r
'\frac'
]
=
latexfuntypes
.
latexfun
(
self
.
__latexfun_frac
,
2
)
self
.
__cmds
[
r
'\sqrt'
]
=
latexfuntypes
.
latexfun
(
self
.
__latexfun_sqrt
,
1
)
# newcommands
for
nc
in
data
.
newcommands
:
...
...
@@ -282,6 +283,13 @@ class converter:
b
=
'('
+
b
+
')'
return
a
+
'/'
+
b
def
__latexfun_sqrt
(
self
,
inputs
):
a
=
inputs
[
0
]
if
self
.
__is_complex_expr
(
a
):
a
=
'('
+
a
+
')'
return
'√'
+
a
data.py
View file @
f9775986
...
...
@@ -893,9 +893,6 @@ symbols = {
r
'\sphericalangle'
:
'∢'
,
r
'\sqcap'
:
'⊓'
,
r
'\sqcup'
:
'⊔'
,
r
'\sqrt'
:
'√'
,
r
'\sqrt[3]'
:
'∛'
,
r
'\sqrt[4]'
:
'∜'
,
r
'\sqsubset'
:
'⊏'
,
r
'\sqsubseteq'
:
'⊑'
,
r
'\sqsupset'
:
'⊐'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment