使用 pstricks 的书籍封面 - 将彩色图像转换为黑白图像

使用 pstricks 的书籍封面 - 将彩色图像转换为黑白图像

我正在尝试用 制作书封底pstricks。我遇到了一个问题,它将我的彩色图像变成黑白图像。任何帮助解决这个问题的帮助都将不胜感激。谢谢

输出

在此处输入图片描述

平均能量损失

\documentclass[a4paper, 12pt]{article}
% load the necessary packages 
\usepackage[margin=0in]{geometry}

\usepackage[dvipsnames,prologue,table]{pstricks}
\usepackage{pst-all}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{rotating}
\usepackage{color}
\usepackage[ISBN=978-80-85955-35-4]{ean13isbn}

%\EANisbn[SC4]
% begin the document and suppress page numbers
\begin{document}
\pagecolor{Maroon}
\pagestyle{empty}

% set up the picture environment
\psset{unit=1in}
\begin{pspicture}(13.24in,9in)
% set up the fonts we use
\DeclareFixedFont{\PT}{T1}{ppl}{b}{it}{0.65in}
\DeclareFixedFont{\PTsmall}{T1}{ppl}{b}{it}{0.5in}
\DeclareFixedFont{\PTsmallest}{T1}{ppl}{b}{it}{0.4in}
\DeclareFixedFont{\PTtext}{T1}{ppl}{b}{it}{12pt}
\DeclareFixedFont{\Logo}{T1}{pbk}{m}{n}{0.2in}



% put the publisherӳ logo on the spine
\rput[b](6.65,-1.00){\color{white}{\fbox{\Logo ASD}}}
% Create a Box containing the text for the back cover
\newsavebox\Blurbbox
\sbox\Blurbbox{\begin{minipage}{4.5in}
\textcolor{white}{%
  \large{%
  This booklet contains
  }
}

\end{minipage}}
% And position the box
\rput[tl](1,8){\usebox\Blurbbox}
% Then we close all open environments

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

\newsavebox\Authorbox
\sbox\Authorbox{\includegraphics[width=0.5in, height=0.5in]{Agri1.jpg}}
% now place the picture
\rput[lb](0.5,2.1){\usebox\Authorbox}

% create a savebx for the biography. The width has been adjusted so
% that the right margin matches with that of the book blurb
\newsavebox\Biobox
\sbox\Biobox{\begin{minipage}{3.6in}
\textcolor{white}{%
    \large{%
AB  \LaTeX{}. Contact him
by at [email protected]
  }
 }

\end{minipage}}
% and put it where it belongs
\rput[tl](1.9,2.9){\usebox\Biobox}

\rput(5.0,-1.2){
\colorbox{white}{\EANisbn[SC1]}}

\end{pspicture}

\end{document}

答案1

xelatex使用...运行文档

相关内容