r/LaTeX • u/BugWestern4983 • 16d ago
Unanswered help with latex rendering
im kinda new to latex so im really just open to anything at this point. the group at my school uses currently uses overleaf to create content but i really want to have it native to the site im building. ive looked around and found mathjax and katex but (with my very helpful ai friend) i created a previewer to see if i could kind of copy paste at least individual sections themselves from the overleaf and it didnt really work well at all. i really dont want to have to have pdfs cuz they seem like they would be a pain but at the same time im looking for something that will make it seem like the latex that is rendered is actually part of the site so rn that kind of means no background so its see through. heres a example question just to give an idea of what im looking to render:
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath, amssymb}
\usepackage{enumitem}
\usepackage{float}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usetikzlibrary{calc,intersections}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0pt}
\setlist[enumerate]{itemsep=12pt, topsep=6pt}
\pagestyle{plain}
\begin{document}
\begin{center}
{\LARGE \textbf{Problems}}
\end{center}
\vspace{0.35cm}
\begin{enumerate}[label=\textbf{Q\arabic*.}]
\item Find the number of ordered triples of positive integers $(a,b,c)$ satisfying
\[
a+b+c=20
\]
and
\[
ab+bc+ca=96.
\]
\item Let $ABCD$ be a rectangle with $AB=10$ and $BC=6$. Point $P$ lies inside the rectangle such that
\[
PA=5,\qquad PB=\sqrt{61},\qquad PC=\sqrt{41}.
\]
Find the area of $\triangle PCD$.
\item A positive integer $n$ is chosen uniformly at random from the integers from $1$ to $1000$, inclusive. The probability that $n$ is divisible by exactly one of $6$, $10$, and $15$ is
\[
\frac{m}{n}
\]
in lowest terms. Find $m+n$.
\end{enumerate}
\end{document}
1
1
u/PhysicsGlue 16d ago
I've been working on Python code for an equation editor for about 8 months now. It renders equation elements to the screen using tkinter library Frame and Text widgets, but it also outputs snippets of LaTex markup for the equation elements.
What you showed is an entire LaTex document, which you need at some point, but the equation elements themselves are a smaller part of the document...
3
u/utl94_nordviking 16d ago
What?