Fonts & Character SetsHow to insert LATEX to HTML code and mix math & Text

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Locked
ciema7
Posts: 22
Joined: Sat Nov 10, 2018 2:31 am

How to insert LATEX to HTML code and mix math & Text

Post by ciema7 »

Hello Community! I am struggling with very difficult problem. Can you help me to implement proper code on my website to combine Latex math expressions and "simple text"? I implemented simple editor on my page, and math expressions do work, but when I use them they are transferred to the next line. Sometimes I want to have text and math in latex combined, so thats the problem that result looks like this:
wrong.png
wrong.png (1.83 KiB) Viewed 3901 times
insted of this:
good.png
good.png (2.12 KiB) Viewed 3901 times
I use the following methodology in my editor:

jako (simple text)
<span id="latex">y_1</span> (here is command snippet to latex and math expression)
oraz (here is the rest of my simple text)

SPAN ID is implemented as HTML snippet in editor. Is there a chance to improve my approach?
Any help will be TOTALLY appreciated!!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

How to insert LATEX to HTML code and mix math & Text

Post by Ijon Tichy »

IMHO this is a question about web programming not about LaTeX. Topic here is real LaTeX not how to integrate LaTeX like syntax interpreters into WWW sites. IMHO your chances would be better, if you'd ask, e.g., a CSS forum.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Locked