proper node name instead of not base tex_name (amending 2fd0c33fe440);
authorwenzelm
Thu, 22 Dec 2022 16:34:35 +0100
changeset 76740 2afca3174629
parent 76739 cb72b5996520
child 76741 ec07b1af45c5
proper node name instead of not base tex_name (amending 2fd0c33fe440);
src/Pure/Thy/document_build.scala
--- a/src/Pure/Thy/document_build.scala	Thu Dec 22 15:23:26 2022 +0100
+++ b/src/Pure/Thy/document_build.scala	Thu Dec 22 16:34:35 2022 +0100
@@ -185,7 +185,7 @@
     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] =
+    lazy val document_latex: List[(File.Content_XML, String)] =
       for (name <- all_document_theories)
       yield {
         val path = Path.basic(tex_name(name))
@@ -195,7 +195,8 @@
             YXML.parse_body(entry.text)
           }
           else Nil
-        File.content(path, content)
+        val file_pos = name.path.implode_symbolic
+        (File.content(path, content), file_pos)
       }
 
     lazy val session_graph: File.Content = {
@@ -263,8 +264,8 @@
 
       session_tex.write(doc_dir)
 
-      for (content <- document_latex) {
-        content.output(latex_output(_, file_pos = content.path.implode_symbolic))
+      for ((content, file_pos) <- document_latex) {
+        content.output(latex_output(_, file_pos = file_pos))
           .write(doc_dir)
       }