Skip to content
Snippets Groups Projects
Commit d408e651 authored by Luis Alberto Payan Porras's avatar Luis Alberto Payan Porras
Browse files

Update file model.tsx

parent 0c1dc2cb
No related branches found
No related tags found
1 merge request!181Update file model.tsx
Pipeline #424221 failed
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment