clarified signature;
authorwenzelm
Mon, 12 Dec 2022 13:59:18 +0100
changeset 76628 46017d6b9bfa
parent 76627 2542ea382215
child 76629 f55c67f2889b
clarified signature;
src/Pure/Thy/document_build.scala
src/Pure/Thy/sessions.scala
--- a/src/Pure/Thy/document_build.scala	Mon Dec 12 13:28:18 2022 +0100
+++ b/src/Pure/Thy/document_build.scala	Mon Dec 12 13:59:18 2022 +0100
@@ -165,13 +165,11 @@
 
     def documents: List[Document_Variant] = info.documents
 
-    def proper_session_theories: List[Document.Node.Name] = base.proper_session_theories
-
-    def document_theories: List[Document.Node.Name] =
-      proper_session_theories ::: base.document_theories
+    def session_document_theories: List[Document.Node.Name] = base.proper_session_theories
+    def all_document_theories: List[Document.Node.Name] = base.all_document_theories
 
     lazy val document_latex: List[File.Content_XML] =
-      for (name <- document_theories)
+      for (name <- all_document_theories)
       yield {
         val path = Path.basic(tex_name(name))
         val entry = session_context(name.theory, Export.DOCUMENT_LATEX, permissive = true)
@@ -189,7 +187,7 @@
       val path = Path.basic("session.tex")
       val content =
         Library.terminate_lines(
-          base.proper_session_theories.map(name => "\\input{" + tex_name(name) + "}"))
+          session_document_theories.map(name => "\\input{" + tex_name(name) + "}"))
       File.content(path, content)
     }
 
--- a/src/Pure/Thy/sessions.scala	Mon Dec 12 13:28:18 2022 +0100
+++ b/src/Pure/Thy/sessions.scala	Mon Dec 12 13:59:18 2022 +0100
@@ -79,6 +79,9 @@
         ", loaded_theories = " + loaded_theories.size +
         ", used_theories = " + used_theories.length + ")"
 
+    def all_document_theories: List[Document.Node.Name] =
+      proper_session_theories ::: document_theories
+
     def loaded_theory(name: String): Boolean = loaded_theories.defined(name)
     def loaded_theory(name: Document.Node.Name): Boolean = loaded_theory(name.theory)