prettified the changelog and footer to workaround lack of latexml bindings

This commit is contained in:
Juicysteak117
2025-10-11 22:51:26 -07:00
parent e9f042a9a6
commit 17af90de49
4 changed files with 459 additions and 449 deletions

View File

@@ -3,7 +3,7 @@
<head> <head>
<meta content="text/html; charset=utf-8" http-equiv="content-type"/> <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
<title>A PRACTICAL GUIDE TO FEMINIZING HRT</title> <title>A PRACTICAL GUIDE TO FEMINIZING HRT</title>
<!--Generated on Sat Oct 11 15:30:25 2025 by LaTeXML (version 0.8.8) http://dlmf.nist.gov/LaTeXML/.--> <!--Generated on Sat Oct 11 22:48:14 2025 by LaTeXML (version 0.8.8) http://dlmf.nist.gov/LaTeXML/.-->
<!--Document created on October 11, 2025.--> <!--Document created on October 11, 2025.-->
<link href="LaTeXML.css" rel="stylesheet" type="text/css"/> <link href="LaTeXML.css" rel="stylesheet" type="text/css"/>
<link href="ltx-article.css" rel="stylesheet" type="text/css"/> <link href="ltx-article.css" rel="stylesheet" type="text/css"/>
@@ -2710,10 +2710,10 @@
<p class="ltx_p"><a class="ltx_ref ltx_href" href="https://github.com/Juicysteak117/pghrt/" title="">Source code available here on GitHub.</a></p> <p class="ltx_p"><a class="ltx_ref ltx_href" href="https://github.com/Juicysteak117/pghrt/" title="">Source code available here on GitHub.</a></p>
</div> </div>
<div class="ltx_para ltx_noindent" id="Sx6.p2"> <div class="ltx_para ltx_noindent" id="Sx6.p2">
<p class="ltx_p">Full Compilation Datetime: <span class="ltx_ERROR undefined">\DTMnow</span></p> <p class="ltx_p">Full Compilation Datetime: <span class="undefined">Generated on Sat Oct 11 22:48:14 2025</span></p>
</div> </div>
<div class="ltx_para ltx_noindent" id="Sx6.p3"> <div class="ltx_para ltx_noindent" id="Sx6.p3">
<p class="ltx_p">(There arent LaTeXML bindings for <span class="ltx_text ltx_font_typewriter">datetime2</span> so this is only for versioning the PDF. For the webpage, look at the bottom of your screen silly. There arent bindings for <span class="ltx_text ltx_font_typewriter">hanging</span> or <span class="ltx_text ltx_font_typewriter">hyphenat</span> either, so the formatting is slightly ugly. My life is so hard.)</p> <p class="ltx_p">(There arent LaTeXML bindings for <span class="ltx_text ltx_font_typewriter">datetime2</span>, <span class="ltx_text ltx_font_typewriter">hanging</span>, or <span class="ltx_text ltx_font_typewriter">hyphenat</span>, so the formatting is slightly ugly. If youd really like to help me out, please write those bindings!!!)</p>
</div> </div>
<div class="ltx_para ltx_noindent" id="Sx6.p4"> <div class="ltx_para ltx_noindent" id="Sx6.p4">
<p class="ltx_p">2025-08-20: Initial release. 15.9k words.</p> <p class="ltx_p">2025-08-20: Initial release. 15.9k words.</p>
@@ -2791,7 +2791,7 @@
</article> </article>
</div> </div>
<footer class="ltx_page_footer"> <footer class="ltx_page_footer">
<div class="ltx_page_logo">Generated on Sat Oct 11 15:30:25 2025 by <a class="ltx_LaTeXML_logo" href="http://dlmf.nist.gov/LaTeXML/"><span style="letter-spacing:-0.2em; margin-right:0.1em;">L<span class="ltx_font_smallcaps" style="position:relative; bottom:2.2pt;">a</span>T<span class="ltx_font_smallcaps" style="font-size:120%;position:relative; bottom:-0.2ex;">e</span></span><span style="font-size:90%; position:relative; bottom:-0.2ex;">XML</span><img alt="Mascot Sammy" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAOCAYAAAD5YeaVAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wKExQZLWTEaOUAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAdpJREFUKM9tkL+L2nAARz9fPZNCKFapUn8kyI0e4iRHSR1Kb8ng0lJw6FYHFwv2LwhOpcWxTjeUunYqOmqd6hEoRDhtDWdA8ApRYsSUCDHNt5ul13vz4w0vWCgUnnEc975arX6ORqN3VqtVZbfbTQC4uEHANM3jSqXymFI6yWazP2KxWAXAL9zCUa1Wy2tXVxheKA9YNoR8Pt+aTqe4FVVVvz05O6MBhqUIBGk8Hn8HAOVy+T+XLJfLS4ZhTiRJgqIoVBRFIoric47jPnmeB1mW/9rr9ZpSSn3Lsmir1fJZlqWlUonKsvwWwD8ymc/nXwVBeLjf7xEKhdBut9Hr9WgmkyGEkJwsy5eHG5vN5g0AKIoCAEgkEkin0wQAfN9/cXPdheu6P33fBwB4ngcAcByHJpPJl+fn54mD3Gg0NrquXxeLRQAAwzAYj8cwTZPwPH9/sVg8PXweDAauqqr2cDjEer1GJBLBZDJBs9mE4zjwfZ85lAGg2+06hmGgXq+j3+/DsixYlgVN03a9Xu8jgCNCyIegIAgx13Vfd7vdu+FweG8YRkjXdWy329+dTgeSJD3ieZ7RNO0VAXAPwDEAO5VKndi2fWrb9jWl9Esul6PZbDY9Go1OZ7PZ9z/lyuD3OozU2wAAAABJRU5ErkJggg=="/></a> <div class="ltx_page_logo">Generated on Sat Oct 11 22:48:14 2025 by <a class="ltx_LaTeXML_logo" href="http://dlmf.nist.gov/LaTeXML/"><span style="letter-spacing:-0.2em; margin-right:0.1em;">L<span class="ltx_font_smallcaps" style="position:relative; bottom:2.2pt;">a</span>T<span class="ltx_font_smallcaps" style="font-size:120%;position:relative; bottom:-0.2ex;">e</span></span><span style="font-size:90%; position:relative; bottom:-0.2ex;">XML</span><img alt="Mascot Sammy" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAOCAYAAAD5YeaVAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wKExQZLWTEaOUAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAdpJREFUKM9tkL+L2nAARz9fPZNCKFapUn8kyI0e4iRHSR1Kb8ng0lJw6FYHFwv2LwhOpcWxTjeUunYqOmqd6hEoRDhtDWdA8ApRYsSUCDHNt5ul13vz4w0vWCgUnnEc975arX6ORqN3VqtVZbfbTQC4uEHANM3jSqXymFI6yWazP2KxWAXAL9zCUa1Wy2tXVxheKA9YNoR8Pt+aTqe4FVVVvz05O6MBhqUIBGk8Hn8HAOVy+T+XLJfLS4ZhTiRJgqIoVBRFIoric47jPnmeB1mW/9rr9ZpSSn3Lsmir1fJZlqWlUonKsvwWwD8ymc/nXwVBeLjf7xEKhdBut9Hr9WgmkyGEkJwsy5eHG5vN5g0AKIoCAEgkEkin0wQAfN9/cXPdheu6P33fBwB4ngcAcByHJpPJl+fn54mD3Gg0NrquXxeLRQAAwzAYj8cwTZPwPH9/sVg8PXweDAauqqr2cDjEer1GJBLBZDJBs9mE4zjwfZ85lAGg2+06hmGgXq+j3+/DsixYlgVN03a9Xu8jgCNCyIegIAgx13Vfd7vdu+FweG8YRkjXdWy329+dTgeSJD3ieZ7RNO0VAXAPwDEAO5VKndi2fWrb9jWl9Esul6PZbDY9Go1OZ7PZ9z/lyuD3OozU2wAAAABJRU5ErkJggg=="/></a>
</div></footer> </div></footer>
</div> </div>
</body> </body>

File diff suppressed because it is too large Load Diff

View File

@@ -1288,7 +1288,7 @@ Shout out to my IB Chemistry HL teacher many years ago who quite reasonably doub
\noindent Full Compilation Datetime: \DTMnow \noindent Full Compilation Datetime: \DTMnow
\noindent(There aren't LaTeXML bindings for \texttt{datetime2} so this is only for versioning the PDF. For the webpage, look at the bottom of your screen silly. There aren't bindings for \texttt{hanging} or \texttt{hyphenat} either, so the formatting is slightly ugly. My life is so hard.) \noindent(There aren't LaTeXML bindings for \texttt{datetime2}, \texttt{hanging}, or \texttt{hyphenat}, so the formatting is slightly ugly. If you'd really like to help me out, please write those bindings!!!)
\noindent 2025-08-20: Initial release. 15.9k words. \noindent 2025-08-20: Initial release. 15.9k words.

11
soup.py
View File

@@ -122,6 +122,17 @@ for element in soup.find_all(["h2", "h3"]):
element.append(new_chain) element.append(new_chain)
# replacing \DTMNow with the footer timestamp because there aren't latexml
# bindings for the datetime2 package and i want it to look prettier
# i also remove the double space because it REALLY annoys me. i already sent
# in an issue about it though. eventually i can remove that line lol
dtm = soup.body.find('span', class_='ltx_ERROR undefined')
dtm['class'] = 'undefined'
timestamp = soup.footer.div.contents[0]
postmarked = timestamp.text.replace("Generated on ", "Generated on ")
timestamp.replace_with(postmarked)
dtm.string = postmarked.replace("Generated on ", "").replace(" by ", "")
# i'm at soup # i'm at soup
print("soup") print("soup")