Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tec-Chihuahua
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Tec-Chihuahua
Commits
d408e651
Commit
d408e651
authored
4 months ago
by
Luis Alberto Payan Porras
Browse files
Options
Downloads
Patches
Plain Diff
Update file model.tsx
parent
0c1dc2cb
No related branches found
No related tags found
1 merge request
!181
Update file model.tsx
Pipeline
#424221
failed
4 months ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/contents/model.tsx
+4
-21
4 additions, 21 deletions
src/contents/model.tsx
with
4 additions
and
21 deletions
src/contents/model.tsx
+
4
−
21
View file @
d408e651
...
...
@@ -203,24 +203,6 @@ export function Model() {
const
mathExpression
=
"
\\
int_0^
\\
infty x^2 dx
"
;
// Ejemplo de una expresión LaTeX
const
mathExpression2
=
"
\\
frac{dS_{
\\
text{Glu}}}{dt} = k_{-1}
\\
left( C_{
\\
text{P5CS-Glu}} + C_{
\\
text{P5CS-Glu-Pro}}
\\
right) - k_1 S_{
\\
text{Glu}}
\\
left( E_{
\\
text{P5CS}} + C_{
\\
text{P5CS-Pro}}
\\
right) - k_b S_{
\\
text{Glu}}
"
;
// Estilos en línea
const
equationContainerStyle
=
{
display
:
'
flex
'
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
marginTop
:
'
20px
'
,
marginBottom
:
'
20px
'
,
position
:
'
relative
'
};
const
equationNumberStyle
=
{
position
:
'
absolute
'
,
right
:
0
,
fontSize
:
'
1rem
'
,
marginLeft
:
'
10px
'
,
marginRight
:
'
10px
'
};
return
(
<>
...
...
@@ -231,9 +213,10 @@ export function Model() {
<
Subtitulo
subtitulo
=
"Proline biosynthesis route"
/>
<
MathJaxContext
>
<
div
style
=
{
equationContainerStyle
}
>
<
MathJax
dynamic
>
{
`
\\
(
${
mathExpression
}
\\
)`
}
</
MathJax
>
<
span
style
=
{
equationNumberStyle
}
>
(1)
</
span
>
<
div
style
=
{
{
textAlign
:
"
center
"
}
}
>
<
MathJax
dynamic
>
{
`
\\
[
${
mathExpression
}
\\
tag[{1}
\\
]`
}
</
MathJax
>
</
div
>
</
MathJaxContext
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment