I've been tasked with creating something similar to the following on an HTML page:
The math tag in HTML is not suitable because it struggles with handling the line break between parts "/begin()-/end()"
. To achieve the desired effect (successfully done in LaTeX), I have come up with the following:
$
\left\lbrace
\begin{matrix}
$Option1$\\
$Option2$
\end{matrix}
\right\rbrace
$
However, when implemented in HTML:
<p><span class="math inline">\(\left\lbrace
\begin{matrix}\)</span>
Option1
<span class="math inline">\(\\
\)</span>
Option2
<span class="math inline">\(\end{matrix}
\right\rbrace\)</span></p>
It does not work as intended. The /begin and /end are separated into different spans, disrupting the LaTeX internal process. I need to remove the options from math tags so I can apply custom formatting to them. Interestingly, using CSS:
.math {
}
I'm able to change the color and size, but not the font family or style.
Even utilizing the HTML table structure proves ineffective as the {}
symbols do not cover the full height of the options section (which can have up to 7 elements).
At this point, I am at a loss for solutions. Can anyone suggest how I might approach this task? Ideally, I would like to avoid using SVG/PNG images to ensure compatibility across different screen sizes.