8000 change latex equation delimiters \[ and \] for 186288 · python-control/python-control@e1a1657 · GitHub
[go: up one dir, main page]

Skip to content

Commit e1a1657

Browse files
gonmolinasawyerbfuller
authored andcommitted
change latex equation delimiters \[ and \] for 186288
1 parent 5b24282 commit e1a1657

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

control/statesp.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def _latex_partitioned_stateless(self):
522522
s : string with LaTeX representation of model
523523
"""
524524
lines = [
525-
r'\[',
525+
r'$$',
526526
(r'\left('
527527
+ r'\begin{array}'
528528
+ r'{' + 'rll' * self.ninputs + '}')
@@ -536,7 +536,7 @@ def _latex_partitioned_stateless(self):
536536
r'\end{array}'
537537
r'\right)'
538538
+ self._latex_dt(),
539-
r'\]'])
539+
r'$$'])
540540

541541
return '\n'.join(lines)
542542

@@ -554,7 +554,7 @@ def _latex_partitioned(self):
554554
return self._latex_partitioned_stateless()
555555

556556
lines = [
557-
r'\[',
557+
r'$$',
558558
(r'\left('
559559
+ r'\begin{array}'
560560
+ r'{' + 'rll' * self.nstates + '|' + 'rll' * self.ninputs + '}')
@@ -574,7 +574,7 @@ def _latex_partitioned(self):
574574
r'\end{array}'
575575
+ r'\right)'
576576
+ self._latex_dt(),
577-
r'\]'])
577+
r'$$'])
578578

579579
return '\n'.join(lines)
580580

@@ -588,7 +588,7 @@ def _latex_separate(self):
588588
s : string with LaTeX representation of model
589589
"""
590590
lines = [
591-
r'\[',
591+
r'$$',
592592
r'\begin{array}{ll}',
593593
]
594594

@@ -618,7 +618,7 @@ def fmt_matrix(matrix, name):
618618
lines.extend([
619619
r'\end{array}'
620620
+ self._latex_dt(),
621-
r'\]'])
621+
r'$$'])
622622

623623
return '\n'.join(lines)
624624

0 commit comments

Comments
 (0)
0