Centro de soporte
v1.0
Español
Latex
Herramientas de IA
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
Barra invertida en Javascript
Para todas las ecuaciones escritas en javascript, recuerda escapar la \ con otra \. \ por sí sola es un delimitador de escape.
LaTeX.js
Página principal del proyecto: https://latex.js.org/
Código:
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.jsdelivr.net/npm/latex.js/dist/latex.js"></script>
</head>
<body>
<script>
var text = 'The fraction is as such: $\\frac{\\sqrt{2}}{2}$'
var generator = new latexjs.HtmlGenerator({ hyphenate: false })
generator = latexjs.parse(text, { generator: generator })
document.head.appendChild(
generator.stylesAndScripts("https://cdn.jsdelivr.net/npm/latex.js@0.12.4/dist/"))
document.body.appendChild(generator.domFragment())
</script>
</body>
</html>
KaTex
Página principal del proyecto: https://katex.org/
Código:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
</head>
<body>
<span id="container"></span>
<script>
katex.render("c = \\pm\\sqrt{a^2 + b^2}", document.getElementById("container"), {
displayMode: true
});
</script>
</body>
</html>
Última actualización por Zaid Daba'een el Jan 6, 2025
Anything missing? Leave us feedback
Need help? Visit our community forums or contact us.
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
Primeros pasos
Publicación y alojamiento
Búsqueda y analíticas
Page
Code Steps
Category
Label
Link
Separator
Title
Message
Page icon
No icon. This page keeps the plain index row.
orSVG or PNG, square, at least 32×32.
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?