summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-09-24 20:07:49 +0000
committerKarl Berry <karl@freefriends.org>2019-09-24 20:07:49 +0000
commitf1867306162a6c851d24dcb7a0300b90dca45878 (patch)
tree4bcdfff0984c98f273ad8c1e3d3ddf330ef1961b /Master
parentc42603e27f2d6af845d82162be47078a816fc715 (diff)
plantuml (24sep19)
git-svn-id: svn://tug.org/texlive/trunk@52175 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/lualatex/plantuml/CHANGELOG.md13
-rw-r--r--Master/texmf-dist/doc/lualatex/plantuml/README.md2
-rw-r--r--Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex32
-rw-r--r--Master/texmf-dist/doc/lualatex/plantuml/plantuml.pdfbin47135 -> 47151 bytes
-rw-r--r--Master/texmf-dist/tex/lualatex/plantuml/plantuml.lua2
-rw-r--r--Master/texmf-dist/tex/lualatex/plantuml/plantuml.sty13
6 files changed, 54 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/lualatex/plantuml/CHANGELOG.md b/Master/texmf-dist/doc/lualatex/plantuml/CHANGELOG.md
index 5c84bfc5b2e..0019d588d01 100644
--- a/Master/texmf-dist/doc/lualatex/plantuml/CHANGELOG.md
+++ b/Master/texmf-dist/doc/lualatex/plantuml/CHANGELOG.md
@@ -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 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
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
diff --git a/Master/texmf-dist/doc/lualatex/plantuml/README.md b/Master/texmf-dist/doc/lualatex/plantuml/README.md
index 531ee379f2f..eb0fd1ce84c 100644
--- a/Master/texmf-dist/doc/lualatex/plantuml/README.md
+++ b/Master/texmf-dist/doc/lualatex/plantuml/README.md
@@ -1,6 +1,6 @@
# plantuml
-Version 0.2.3
+Version 0.3.0
> A LuaLaTeX package for PlantUML in LaTeX
diff --git a/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex b/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex
new file mode 100644
index 00000000000..785d2e7a561
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/plantuml/example-component-diagram.tex
@@ -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}
+@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
+@enduml
+\end{plantuml}
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/plantuml/plantuml.pdf b/Master/texmf-dist/doc/lualatex/plantuml/plantuml.pdf
index 7c9d89e4c35..b753d7aa013 100644
--- a/Master/texmf-dist/doc/lualatex/plantuml/plantuml.pdf
+++ b/Master/texmf-dist/doc/lualatex/plantuml/plantuml.pdf
Binary files differ
diff --git a/Master/texmf-dist/tex/lualatex/plantuml/plantuml.lua b/Master/texmf-dist/tex/lualatex/plantuml/plantuml.lua
index d94e93b5b44..2261c86332f 100644
--- a/Master/texmf-dist/tex/lualatex/plantuml/plantuml.lua
+++ b/Master/texmf-dist/tex/lualatex/plantuml/plantuml.lua
@@ -22,7 +22,7 @@ function convertPlantUmlToTikz(jobname, mode)
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
diff --git a/Master/texmf-dist/tex/lualatex/plantuml/plantuml.sty b/Master/texmf-dist/tex/lualatex/plantuml/plantuml.sty
index d6777ed44ee..d2958792bcf 100644
--- a/Master/texmf-dist/tex/lualatex/plantuml/plantuml.sty
+++ b/Master/texmf-dist/tex/lualatex/plantuml/plantuml.sty
@@ -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