Skip to content

Commit

Permalink
sTeX definienda fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazzpirate committed Dec 11, 2023
1 parent 795778c commit 0e56edc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ trait SHTMLDocumentServer { this : STeXServer =>
e.plain.classes ::= "varcomp" // TODO
} else if (hasAttribute(e,"definiendum")) {
e.plain.classes ::= "definiendum" // TODO
elem.plain.attributes.get((HTMLParser.ns_mmt,"definiendum")) match {
elem.plain.attributes.get((HTMLParser.ns_shtml,"definiendum")) match {
case Some(str) =>
e.plain.attributes((elem.namespace, "data-definiendum-uri")) = str
case _ =>
Expand Down
8 changes: 6 additions & 2 deletions src/mmt-stex/src/info/kwarc/mmt/stex/LaTeXBuildTarget.scala
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,14 @@ class FullsTeX extends Importer with XHTMLParser {
Process(Seq("bibtex",pdffile.stripExtension.getName),pdffile.up).lazyLines_!
}
val usesms = {
val sms = bt.inFile.setExtension("sms")
val sms = pdffile.setExtension("sms")
if (sms.exists() && sms.toJava.length() < 2097152) {
//println("HERE: Using sms file of size " + sms.toJava.length())
Seq(("STEX_USESMS","true"))
} else Seq()
} else {
//println("HERE: Not using sms file of size " + sms.toJava.length())
Seq()
}
}
ilog(" - pdflatex " + bt.inPath + " (second run)")
buildSingle(bt,usesms:_*)
Expand Down

0 comments on commit 0e56edc

Please sign in to comment.