LuaLaTex: Plantuml from fileOn a problem related to UML class diagram using pgf-umlcdbeamer and tikz-uml...

Is domain driven design an anti-SQL pattern?

Are objects structures and/or vice versa?

Doomsday-clock for my fantasy planet

Copycat chess is back

Lied on resume at previous job

What to wear for invited talk in Canada

How can I add custom success page

How can I plot a Farey diagram?

Filling an area between two curves

Does a dangling wire really electrocute me if I'm standing in water?

LWC and complex parameters

"listening to me about as much as you're listening to this pole here"

Uplifted animals have parts of their "brain" in various locations of their body. Where?

What happens when a metallic dragon and a chromatic dragon mate?

Is there a familial term for apples and pears?

Is Social Media Science Fiction?

Why do UK politicians seemingly ignore opinion polls on Brexit?

What causes the sudden spool-up sound from an F-16 when enabling afterburner?

Is this food a bread or a loaf?

What is it called when one voice type sings a 'solo'?

Is there a name of the flying bionic bird?

Cisco ASA 5585X Internal-Data0/1 interface errors

(Soft question) does light intensity oscillate really fast since it is a wave?

Extreme, but not acceptable situation and I can't start the work tomorrow morning



LuaLaTex: Plantuml from file


On a problem related to UML class diagram using pgf-umlcdbeamer and tikz-uml package are not working togetherdisabling page number from tikz-uml diagramslualatex: Error when loading a font from a relative pathlualatex does not work with import/subimport when used in standalone setupTikz-UML not workinglatexmk: “file not found” even though custom dependency should add itRelative Path to Font in LuatexHow to move the pgf-spectra boxes in a TikZInstall cryst font on macOS 10.14 for pdflatex and lualatex













0















I have a tex-document with some text and a folder with plantuml diagrams.



I need to import diagrams into a document.



I've tried to use plantuml package - https://ctan.org/pkg/plantuml?lang=en. It works pretty well for me. Yet, it works only when I paste uml text inside my document manually.



Is it possible to use that package to import files by path? Or, should I use another package? Or, maybe, should I use Lua for my task?



I'm quite new in TeX %)



My restrictions:




  • path contains spaces, e.g. "../folder name/file name with spaces.md"


  • plantuml file is a markdown file with injected uml syntax, e.g. (of course, dashes without spaces in original files)



` ` `plantuml
@startuml
skinparam BoxPadding 30
...
@enduml
` ` `


Either include or import doesn't help me :/ Maybe, I do smth wrong with TeX.










share|improve this question







New contributor




Uthering is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I have a tex-document with some text and a folder with plantuml diagrams.



    I need to import diagrams into a document.



    I've tried to use plantuml package - https://ctan.org/pkg/plantuml?lang=en. It works pretty well for me. Yet, it works only when I paste uml text inside my document manually.



    Is it possible to use that package to import files by path? Or, should I use another package? Or, maybe, should I use Lua for my task?



    I'm quite new in TeX %)



    My restrictions:




    • path contains spaces, e.g. "../folder name/file name with spaces.md"


    • plantuml file is a markdown file with injected uml syntax, e.g. (of course, dashes without spaces in original files)



    ` ` `plantuml
    @startuml
    skinparam BoxPadding 30
    ...
    @enduml
    ` ` `


    Either include or import doesn't help me :/ Maybe, I do smth wrong with TeX.










    share|improve this question







    New contributor




    Uthering is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I have a tex-document with some text and a folder with plantuml diagrams.



      I need to import diagrams into a document.



      I've tried to use plantuml package - https://ctan.org/pkg/plantuml?lang=en. It works pretty well for me. Yet, it works only when I paste uml text inside my document manually.



      Is it possible to use that package to import files by path? Or, should I use another package? Or, maybe, should I use Lua for my task?



      I'm quite new in TeX %)



      My restrictions:




      • path contains spaces, e.g. "../folder name/file name with spaces.md"


      • plantuml file is a markdown file with injected uml syntax, e.g. (of course, dashes without spaces in original files)



      ` ` `plantuml
      @startuml
      skinparam BoxPadding 30
      ...
      @enduml
      ` ` `


      Either include or import doesn't help me :/ Maybe, I do smth wrong with TeX.










      share|improve this question







      New contributor




      Uthering is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have a tex-document with some text and a folder with plantuml diagrams.



      I need to import diagrams into a document.



      I've tried to use plantuml package - https://ctan.org/pkg/plantuml?lang=en. It works pretty well for me. Yet, it works only when I paste uml text inside my document manually.



      Is it possible to use that package to import files by path? Or, should I use another package? Or, maybe, should I use Lua for my task?



      I'm quite new in TeX %)



      My restrictions:




      • path contains spaces, e.g. "../folder name/file name with spaces.md"


      • plantuml file is a markdown file with injected uml syntax, e.g. (of course, dashes without spaces in original files)



      ` ` `plantuml
      @startuml
      skinparam BoxPadding 30
      ...
      @enduml
      ` ` `


      Either include or import doesn't help me :/ Maybe, I do smth wrong with TeX.







      tikz-pgf luatex






      share|improve this question







      New contributor




      Uthering is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Uthering is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Uthering is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 17 hours ago









      UtheringUthering

      1




      1




      New contributor




      Uthering is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Uthering is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Uthering is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          2














          You didn't supply a test file, but taking one from the manual...



          enter image description here



          You can get lua to take a file with the markup, add the latex environment saving to a temporary file and then input (using a temporary file just simplifies the catcode handling)



          main document



          documentclass{scrartcl}
          usepackage{plantuml}
          defpumlfile#1{%
          directlua{%
          local f = assert(io.open("#1", "rb"))
          local content = f:read("*all")
          f:close()
          local f2 = io.open("#1" .. ".ltx","w")
          f2:write("string\begin{plantuml}stringn" .. content .. "string\end{plantuml}")
          f2:close()
          }%
          input{"#1.ltx"}}

          begin{document}

          pumlfile{p1.txt}

          end{document}


          p1.txt



          @startuml
          Alice -> Bob: test
          @enduml





          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "85"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Uthering is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483786%2flualatex-plantuml-from-file%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            You didn't supply a test file, but taking one from the manual...



            enter image description here



            You can get lua to take a file with the markup, add the latex environment saving to a temporary file and then input (using a temporary file just simplifies the catcode handling)



            main document



            documentclass{scrartcl}
            usepackage{plantuml}
            defpumlfile#1{%
            directlua{%
            local f = assert(io.open("#1", "rb"))
            local content = f:read("*all")
            f:close()
            local f2 = io.open("#1" .. ".ltx","w")
            f2:write("string\begin{plantuml}stringn" .. content .. "string\end{plantuml}")
            f2:close()
            }%
            input{"#1.ltx"}}

            begin{document}

            pumlfile{p1.txt}

            end{document}


            p1.txt



            @startuml
            Alice -> Bob: test
            @enduml





            share|improve this answer




























              2














              You didn't supply a test file, but taking one from the manual...



              enter image description here



              You can get lua to take a file with the markup, add the latex environment saving to a temporary file and then input (using a temporary file just simplifies the catcode handling)



              main document



              documentclass{scrartcl}
              usepackage{plantuml}
              defpumlfile#1{%
              directlua{%
              local f = assert(io.open("#1", "rb"))
              local content = f:read("*all")
              f:close()
              local f2 = io.open("#1" .. ".ltx","w")
              f2:write("string\begin{plantuml}stringn" .. content .. "string\end{plantuml}")
              f2:close()
              }%
              input{"#1.ltx"}}

              begin{document}

              pumlfile{p1.txt}

              end{document}


              p1.txt



              @startuml
              Alice -> Bob: test
              @enduml





              share|improve this answer


























                2












                2








                2







                You didn't supply a test file, but taking one from the manual...



                enter image description here



                You can get lua to take a file with the markup, add the latex environment saving to a temporary file and then input (using a temporary file just simplifies the catcode handling)



                main document



                documentclass{scrartcl}
                usepackage{plantuml}
                defpumlfile#1{%
                directlua{%
                local f = assert(io.open("#1", "rb"))
                local content = f:read("*all")
                f:close()
                local f2 = io.open("#1" .. ".ltx","w")
                f2:write("string\begin{plantuml}stringn" .. content .. "string\end{plantuml}")
                f2:close()
                }%
                input{"#1.ltx"}}

                begin{document}

                pumlfile{p1.txt}

                end{document}


                p1.txt



                @startuml
                Alice -> Bob: test
                @enduml





                share|improve this answer













                You didn't supply a test file, but taking one from the manual...



                enter image description here



                You can get lua to take a file with the markup, add the latex environment saving to a temporary file and then input (using a temporary file just simplifies the catcode handling)



                main document



                documentclass{scrartcl}
                usepackage{plantuml}
                defpumlfile#1{%
                directlua{%
                local f = assert(io.open("#1", "rb"))
                local content = f:read("*all")
                f:close()
                local f2 = io.open("#1" .. ".ltx","w")
                f2:write("string\begin{plantuml}stringn" .. content .. "string\end{plantuml}")
                f2:close()
                }%
                input{"#1.ltx"}}

                begin{document}

                pumlfile{p1.txt}

                end{document}


                p1.txt



                @startuml
                Alice -> Bob: test
                @enduml






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 9 hours ago









                David CarlisleDavid Carlisle

                498k4111441893




                498k4111441893






















                    Uthering is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Uthering is a new contributor. Be nice, and check out our Code of Conduct.













                    Uthering is a new contributor. Be nice, and check out our Code of Conduct.












                    Uthering is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483786%2flualatex-plantuml-from-file%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

                    Schneeberg (Smreczany) Bibliografia | Menu...

                    Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...