texlive[52175] Master/texmf-dist: plantuml (24sep19)

commits+karl at tug.org commits+karl at tug.org
Tue Sep 24 22:07:49 CEST 2019


Revision: 52175
          http://tug.org/svn/texlive?view=revision&revision=52175
Author:   karl
Date:     2019-09-24 22:07:49 +0200 (Tue, 24 Sep 2019)
Log Message:
-----------
plantuml (24sep19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/lualatex/plantuml/CHANGELOG.md
    trunk/Master/texmf-dist/doc/lualatex/plantuml/README.md
    trunk/Master/texmf-dist/doc/lualatex/plantuml/plantuml.pdf
    trunk/Master/texmf-dist/tex/lualatex/plantuml/plantuml.lua
    trunk/Master/texmf-dist/tex/lualatex/plantuml/plantuml.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex

Modified: trunk/Master/texmf-dist/doc/lualatex/plantuml/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/plantuml/CHANGELOG.md	2019-09-24 20:07:38 UTC (rev 52174)
+++ trunk/Master/texmf-dist/doc/lualatex/plantuml/CHANGELOG.md	2019-09-24 20:07:49 UTC (rev 52175)
@@ -1,14 +1,22 @@
 # Changelog
+
 All notable changes to this project will be documented in this file.
 
 The format is based on [Keep a Changelog](http://keepachangelog.com/)
 and this project adheres to [Semantic Versioning](http://semver.org/).
 
+## [0.3.0] - 2019-09-23
+
+## Added
+
+- Added support for UTF-8 filenames.
+- Added `example-component-diagram.tex`. Refs [#2](https://github.com/latextemplates/plantuml/issues/9).
+
 ## [0.2.3] - 2018-06-04
 
 ## Added
 
-- Add `release.sh` to CTAN upload-
+- Add `release.sh` to CTAN upload
 
 ## Removed
 
@@ -43,7 +51,8 @@
 
 Initial public release
 
-[unreleased]: https://github.com/latextemplates/plantuml/compare/0.2.3...HEAD
+[unreleased]: https://github.com/latextemplates/plantuml/compare/0.3.0...HEAD
+[0.3.0]: https://github.com/latextemplates/plantuml/compare/0.2.3...0.3.0
 [0.2.3]: https://github.com/latextemplates/plantuml/compare/0.2.2...0.2.3
 [0.2.2]: https://github.com/latextemplates/plantuml/compare/0.2.1...0.2.2
 [0.2.1]: https://github.com/latextemplates/plantuml/compare/0.2.0...0.2.1

Modified: trunk/Master/texmf-dist/doc/lualatex/plantuml/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/plantuml/README.md	2019-09-24 20:07:38 UTC (rev 52174)
+++ trunk/Master/texmf-dist/doc/lualatex/plantuml/README.md	2019-09-24 20:07:49 UTC (rev 52175)
@@ -1,6 +1,6 @@
 # plantuml
 
-Version 0.2.3
+Version 0.3.0
 
 > A LuaLaTeX package for PlantUML in LaTeX
 

Added: trunk/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex	2019-09-24 20:07:49 UTC (rev 52175)
@@ -0,0 +1,32 @@
+\documentclass{scrartcl}
+\usepackage{graphics}
+
+% Enables inclusion of SVG graphics - 1:1 approach
+% This is NOT the approach of https://ctan.org/pkg/svg-inkscape
+% which allows text in SVG to be typeset using LaTeX.
+% We just include the SVG as is.
+\usepackage{epstopdf}
+\epstopdfDeclareGraphicsRule{.svg}{pdf}{.pdf}{%
+  inkscape -z --file=#1 --export-pdf=\OutputFile
+}
+
+\usepackage[output=svg]{plantuml}
+
+\begin{document}
+\begin{plantuml}
+ at startuml
+() "Interface 2" as I2
+() "Interface 3" as I3
+
+[component 1] as c1
+[component 2] as c2
+[component 3] as c3
+
+c1 -- I2
+c1 -- I3
+
+I2 )-- c2
+I3 )-- c3
+ at enduml
+\end{plantuml}
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/lualatex/plantuml/plantuml.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/lualatex/plantuml/plantuml.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/plantuml/plantuml.lua	2019-09-24 20:07:38 UTC (rev 52174)
+++ trunk/Master/texmf-dist/tex/lualatex/plantuml/plantuml.lua	2019-09-24 20:07:49 UTC (rev 52175)
@@ -22,7 +22,7 @@
   end
 
   texio.write("Executing PlantUML... ")
-  local cmd = "java -jar " .. plantUmlJar .. " -t"
+  local cmd = "java -jar " .. plantUmlJar .. " -charset UTF-8 -t"
   if (mode == "latex") then
     cmd = cmd .. "latex:nopreamble"
   else

Modified: trunk/Master/texmf-dist/tex/lualatex/plantuml/plantuml.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/plantuml/plantuml.sty	2019-09-24 20:07:38 UTC (rev 52174)
+++ trunk/Master/texmf-dist/tex/lualatex/plantuml/plantuml.sty	2019-09-24 20:07:49 UTC (rev 52175)
@@ -24,6 +24,11 @@
 
 \RequirePackage{adjustbox}
 
+% \jobname has a probrem of encodeing
+% if your latex filename include multibyte string
+% you need to redefine PlantUMLJobname to fix
+\def\PlantUMLJobname{\jobname}
+
 \ExplSyntaxOn
 \keys_define:nn { plantuml } {
   output .choices:nn = {
@@ -68,12 +73,12 @@
     }
   \fi
   \NewDocumentEnvironment{plantuml}{}{%
-    \VerbatimOut{\jobname-plantuml.txt}}
+    \VerbatimOut{\PlantUMLJobname-plantuml.txt}}
   {%
     \endVerbatimOut
     \ifluatex
       \directlua{
-        local jobname=\luastring{\jobname}
+        local jobname=\luastring{\PlantUMLJobname}
         local plantUmlMode=\luastring{\PlantUmlMode}
         require("plantuml.lua")
         convertPlantUmlToTikz(jobname, plantUmlMode)
@@ -85,10 +90,10 @@
     \fi
     \ifthenelse{\equal{\PlantUmlMode}{latex}}{
       \begin{adjustbox}{max width=\linewidth}
-        \input{\jobname-plantuml.latex}
+        \input{\PlantUMLJobname-plantuml.latex}
       \end{adjustbox}
     }{
-      \includegraphics[width=\maxwidth{\textwidth}]{\jobname-plantuml.\PlantUmlMode}
+      \includegraphics[width=\maxwidth{\textwidth}]{\PlantUMLJobname-plantuml.\PlantUmlMode}
     }
   }
 \or



More information about the tex-live-commits mailing list