From 91b5081cf4183a55a846fa1ac9f3148ec0f5e73d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 26 Jan 2018 22:42:27 +0000 Subject: graphicxpsd (26jan18) git-svn-id: svn://tug.org/texlive/trunk@46446 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/graphicxpsd/LICENSE | 7 ++ Master/texmf-dist/doc/latex/graphicxpsd/README.md | 28 ++++++++ .../doc/latex/graphicxpsd/graphicxpsd.pdf | Bin 0 -> 153318 bytes .../doc/latex/graphicxpsd/graphicxpsd.tex | 73 +++++++++++++++++++++ .../doc/latex/graphicxpsd/test-gin-rule-psd.tex | 50 ++++++++++++++ .../doc/latex/graphicxpsd/tigerpsdfmt.psd | Bin 0 -> 851751 bytes 6 files changed, 158 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/graphicxpsd/LICENSE create mode 100644 Master/texmf-dist/doc/latex/graphicxpsd/README.md create mode 100644 Master/texmf-dist/doc/latex/graphicxpsd/graphicxpsd.pdf create mode 100644 Master/texmf-dist/doc/latex/graphicxpsd/graphicxpsd.tex create mode 100644 Master/texmf-dist/doc/latex/graphicxpsd/test-gin-rule-psd.tex create mode 100644 Master/texmf-dist/doc/latex/graphicxpsd/tigerpsdfmt.psd (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/graphicxpsd/LICENSE b/Master/texmf-dist/doc/latex/graphicxpsd/LICENSE new file mode 100644 index 00000000000..72d2a71e6fa --- /dev/null +++ b/Master/texmf-dist/doc/latex/graphicxpsd/LICENSE @@ -0,0 +1,7 @@ +Copyright (c) 2017, 2018 Munehiro Yamamoto + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Master/texmf-dist/doc/latex/graphicxpsd/README.md b/Master/texmf-dist/doc/latex/graphicxpsd/README.md new file mode 100644 index 00000000000..e20f4df7158 --- /dev/null +++ b/Master/texmf-dist/doc/latex/graphicxpsd/README.md @@ -0,0 +1,28 @@ +`graphicxpsd` Package +========== +Adobe Photoshop Data format (PSD) support for graphicx package + +This package provides Adobe Photoshop Data format (PSD) support for graphicx package +with sips (Darwin/macOS)/convert (ImageMagick) command. + + * Major drivers support: `dvipdfmx`, `xetex`, `pdftex`, `luatex` + +## Requirements + + * recent [TeX Live](https://www.tug.org/texlive/) environment + (TeX Live 2012 or higher release version) + * Mac OS X or [ImageMagick](https://www.imagemagick.org/) + +## Installation + +Copy: `graphicxpsd.sty` -> `$TEXMF/tex/platex/graphicxpsd/` + +## License + +This package is licensed under the terms of the MIT License. + + +-------------------- + +Munehiro Yamamoto +https://github.com/munepi diff --git a/Master/texmf-dist/doc/latex/graphicxpsd/graphicxpsd.pdf b/Master/texmf-dist/doc/latex/graphicxpsd/graphicxpsd.pdf new file mode 100644 index 00000000000..47d371390ca Binary files /dev/null and b/Master/texmf-dist/doc/latex/graphicxpsd/graphicxpsd.pdf differ diff --git a/Master/texmf-dist/doc/latex/graphicxpsd/graphicxpsd.tex b/Master/texmf-dist/doc/latex/graphicxpsd/graphicxpsd.tex new file mode 100644 index 00000000000..96d6411efbd --- /dev/null +++ b/Master/texmf-dist/doc/latex/graphicxpsd/graphicxpsd.tex @@ -0,0 +1,73 @@ +%#!rm -f tigerpsdfmt4* && lualatex -shell-escape graphicxpsd +\documentclass[luatex]{article} +\usepackage{shortvrb}\MakeShortVerb{\|} +\usepackage{graphicx} +\usepackage{graphicxpsd} +\title{\textsf{graphicxpsd} Package} +\author{Munehiro Yamamoto} +\date{2018/01/26 v1.0} +\begin{document} +\maketitle +\begin{abstract} +This package provides Adobe Photoshop Data format (PSD) support +for \textsf{graphicx} package +with \texttt{sips} (Darwin/macOS)/\texttt{convert} (ImageMagick) command. +\end{abstract} + +\section{Motivation} +\texttt{graphicx} package supports already many graphics image formats as bellow. +\begin{itemize} +\item non-vector formats: jpg, png, bmp, and so on +\item PostScript-style formats: eps, ps +\item PDF-style formats: pdf, ai +\end{itemize} +However, it currently does not support Adobe Photoshop Data format (PSD). + +Against that, we developed the \textsf{graphicxpsd} package +to support PSD format via PSD-to-PDF conversion +with the following image converters. +\begin{itemize} +\item \texttt{sips}: pre-installed command in Darwin/macOS +\item \texttt{convert}: bundled command in ImageMagick +\end{itemize} + +\section{Loading \textsf{graphicxpsd} Package} + +Load \textsf{graphicxpsd} package after loading \textsf{graphicx} package. + +\begin{quote} +\begin{verbatim} +\usepackage{graphicx} +\usepackage[]{graphicxpsd} +\end{verbatim} +\end{quote} + +The list of available options is the following. +\begin{itemize} +\item |dvipdfmx|, |xetex|, |pdftex|, |luatex|: supported driver options; +You can also give specific driver option from global option. + +\item |sips| (default), |imagemagick|: supported converter +\end{itemize} + +\section{Example} + +Typeset the following {\LaTeX} document with LuaTeX. + +\begin{quote} +\begin{verbatim} +%#!lualatex -shell-escape +\documentclass[luatex]{article}%%set luatex driver as global option +\usepackage{graphicx} +\usepackage{graphicxpsd} +\begin{document} +\includegraphics{tigerpsdfmt.psd} +\end{document} +\end{verbatim} +\end{quote} + +Then, the result is as below. + +\includegraphics{tigerpsdfmt.psd} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/graphicxpsd/test-gin-rule-psd.tex b/Master/texmf-dist/doc/latex/graphicxpsd/test-gin-rule-psd.tex new file mode 100644 index 00000000000..39f4e658bf0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/graphicxpsd/test-gin-rule-psd.tex @@ -0,0 +1,50 @@ +% #!rm -f tigerpsdfmt4* && ptex2pdf -l -u -ot '-shell-escape' -od '-v' test-gin-rule-psd +% #!rm -f tigerpsdfmt4* && xelatex -shell-escape test-gin-rule-psd +% #!rm -f tigerpsdfmt4* && pdflatex -shell-escape test-gin-rule-psd +%#!rm -f tigerpsdfmt4* && lualatex -shell-escape test-gin-rule-psd +\documentclass[luatex]{article}%%set as a global option +\usepackage{graphicx} +\usepackage[% + imagemagick,%default: sips +]{graphicxpsd} +\listfiles +\begin{document} +%% $ file tigerpsdfmt.psd +%% tigerpsdfmt.psd: Adobe Photoshop Image, 550 x 568, RGBA, 4x 8-bit channels +\includegraphics{tigerpsdfmt.psd} +\end{document} + +$ pdfinfo tigerpsdfmt4gfxpsd.pdf +Title: tigerpsdfmt4gfxpsd +Producer: /opt/homebrew/Cellar/imagemagick/7.0.7-15/share/doc/ImageMagick-7//index.html +CreationDate: Sat Jan 27 00:10:51 2018 JST +ModDate: Sat Jan 27 00:10:51 2018 JST +Tagged: no +UserProperties: no +Suspects: no +Form: none +JavaScript: no +Pages: 2 +Encrypted: no +Page size: 99 x 102.24 pts +Page rot: 0 +File size: 1052740 bytes +Optimized: no +PDF version: 1.4 + +$ pdfinfo tigerpsdfmt4gfxpsd.pdf +Producer: Mac OS X 10.13.4 Quartz PDFContext +CreationDate: Fri Jan 26 15:12:13 2018 JST +ModDate: Fri Jan 26 15:12:13 2018 JST +Tagged: no +UserProperties: no +Suspects: no +Form: none +JavaScript: no +Pages: 1 +Encrypted: no +Page size: 99 x 102.24 pts +Page rot: 0 +File size: 112882 bytes +Optimized: no +PDF version: 1.3 \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/graphicxpsd/tigerpsdfmt.psd b/Master/texmf-dist/doc/latex/graphicxpsd/tigerpsdfmt.psd new file mode 100644 index 00000000000..6fc50edeb13 Binary files /dev/null and b/Master/texmf-dist/doc/latex/graphicxpsd/tigerpsdfmt.psd differ -- cgit v1.2.3