Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic objects report (part II) ... OK #6

Open
pablgonz opened this issue Aug 24, 2021 · 9 comments
Open

Basic objects report (part II) ... OK #6

pablgonz opened this issue Aug 24, 2021 · 9 comments

Comments

@pablgonz
Copy link
Collaborator

pablgonz commented Aug 24, 2021

I am pleased to be able to present this second file, testing the parameters that (basic) using it, compiles without problems.

% arara: latex
% arara: dvips
% arara: ps2pdf: { options : [ -dALLOWPSTRANSPARENCY ] }
% arara: clean: { extensions : [ aux, log, dvi, ps ] }
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\pagestyle{empty}
\setlength{\parindent}{0pt}
\addtolength{\hoffset}{-1.5cm}
% short
\newcommand{\BSS}[1]{\textbf{\textbackslash{#1}}}
\newcommand{\AC}[1]{\{#1\}}
\newcommand{\BS}[1]{$\backslash$#1}
\begin{document}
% Adapted from visualpstricks
\section{Parameters avaliable}

\subsection{Linewidth}
\psset{llx=-.5cm,lly=-.5cm,urx=.2cm,ury=.2cm,xAxisLabel={}, yAxisLabel={}}

\psset{linecolor=blue,linewidth=2pt}

\begin{tabular}{|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,0)(4,1){4cm}{1cm}
  \psline[linewidth=10mm](2,0)(2,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[\textcolor{red}{linewidth}=10mm](2,0)(2,1) \\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,0)(4,1){4cm}{1cm}
  \psline[linewidth=1cm](2,0)(2,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[\textcolor{red}{linewidth}=1cm](2,0)(2,1) \\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,0)(4,1){4cm}{1cm}
  \psline[linewidth=1in](2,0)(2,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[\textcolor{red}{linewidth}=1in](2,0)(2,1) \\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,0)(4,1){4cm}{1cm}
  \psline[linewidth=10pt](2,0)(2,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[\textcolor{red}{linewidth}=10pt](2,0)(2,1) \\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue} By default: linewidth = 0.8pt} } \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|}
\hline
\multicolumn{2}{|c|}{\emph{Dimensions according to font size}} \\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,0)(4,1){4cm}{1cm}
  \psline[linewidth=1em](2,0)(2,1)
  \rput[c](2,0.5){\textcolor{green}{m}}
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[\textcolor{red}{linewidth}=1em](2,0)(2,1) \\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,0)(4,1){4cm}{1cm}
  {\Huge \psline[linewidth=1em](2,0)(2,1)
  \rput[c](2,0.5){\textcolor{green}{m}}}
\end{psgraph}
&
\parbox[c]{10cm}{
\AC{\BSS{Huge} \BS{psline}[\textcolor{red}{linewidth}=1em](2,0)(2,1)  }\\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,0)(4,1){4cm}{1cm}
  \psline[linewidth=1ex](0,0.5)(4,0.5)
  \rput[c](2,0.5){\textcolor{green}{x}}
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[\textcolor{red}{linewidth}=1ex](0,0.5)(4,0.5) \\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,0)(4,1){4cm}{1cm}
  {\Huge \psline[linewidth=1ex](0,0.5)(4,0.5)
  \rput[c](2,0.5){\textcolor{green}{x}}}
\end{psgraph}
&
\parbox[c]{10cm}{
\AC{\BSS{Huge} \BS{psline}[\textcolor{red}{linewidth}=1ex](0,0.5)(4,0.5) } \\
}
\\
\hline
\end{tabular}

\subsection{Line color}

\begin{tabular}{|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=0.5cm,linecolor=green ](4,0)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline} [linewidth=0.5cm,\textcolor{red}{linecolor}=green ] (4,0)\\
}
\\
\hline
\end{tabular}

\psset{unit=.8cm}
\smallskip

\begin{tabular}{|l|l|l|l|p{.8cm}|p{.8cm}|l|l|l|l|l|}
\hline

\multicolumn{10}{|c|}{\emph{Colors available}}  \\
\hline  black & darkgray & gray  & lightgray  &white  &  red & green & blue & cyan &  magenta \\
\hline
\rule[-.3cm]{0pt}{.6cm}
\psline[linewidth=10pt, linecolor=black ](1,0)&
\psline[linewidth=10pt, linecolor= darkgray](1,0) &
\psline[linewidth=10pt, linecolor=gray ](1,0) &
\psline[linewidth=10pt, linecolor=lightgray ](1,0)  &
\psline[linewidth=10pt, linecolor=white ](1,0)  &
\psline[linewidth=10pt, linecolor= red ](1,0)  &
\psline[linewidth=10pt, linecolor= green ](1,0) &
\psline[linewidth=10pt, linecolor=blue ](1,0) &
\psline[linewidth=10pt, linecolor= cyan ](1,0) &
\psline[linewidth=10pt, linecolor=magenta ](1,0) \\  \hline
brown & lime & olive & orange & pink  & purple & teal &violet & yellow &  \\ \hline
\rule[-.3cm]{0pt}{.6cm}
\psline[linewidth=10pt, linecolor=brown](1,0)&
\psline[linewidth=10pt, linecolor= lime](1,0) &
\psline[linewidth=10pt, linecolor=olive](1,0) &
\psline[linewidth=10pt, linecolor=orange ](1,0)  &
\psline[linewidth=10pt, linecolor=pink ](1,0)  &
\psline[linewidth=10pt, linecolor= purple ](1,0)  &
\psline[linewidth=10pt, linecolor=teal ](1,0) &
\psline[linewidth=10pt, linecolor=violet ](1,0) &
\psline[linewidth=10pt, linecolor= yellow ](1,0) &
\psline[linewidth=10pt, linecolor=white ](1,0) \\
\hline
\multicolumn{10}{|c|}{ {\color{blue} By default: linecolor = black }} \\
\hline
\end{tabular}

\subsection{Line style}

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=0.5cm,linestyle= dotted ](4,0)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.5cm,\textcolor{red}{linestyle}= \textcolor{red}{dotted} ](4,0) \\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=0.5cm,linestyle= dashed  ](4,0)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.5cm,\textcolor{red}{linestyle}= \textcolor{red}{dashed} ](4,0) \\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=0.5cm,linestyle= none](4,0)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.5cm,\textcolor{red}{linestyle}= \textcolor{red}{none}](4,0) \\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue} By default : linestyle = solid } }
\\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=0.5cm,linestyle=dotted,dotsep =0.5cm](4,0)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.5cm,linestyle= dotted ,\textcolor{red}{dotsep} ={\red 1cm}](4,0) \\
}
\\ \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
\psline[linewidth=0.5cm,linestyle=dashed,dash=1cm ](4,0)
 \end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.5cm,linestyle= dashed ,\textcolor{red}{dash}={\red 1cm} ](4,0) \\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
\psline[linewidth=0.5cm,linestyle=dashed,dash=1cm 0.5cm](4,0)
 \end{psgraph}
 &
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.5cm,linestyle= dashed ,\\
\textcolor{red}{dash}={\red1cm 0.5cm}](4,0) \\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue} By default : dotsep = 3pt  dashsep= 5pt 3pt} }
\\
\hline
\end{tabular}

\bigskip

% \textbf{New option} : dashcolor \texttt{pst-news10}

\smallskip

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
\psline[linewidth=.5cm,linestyle=dashed,dashcolor=red](0,0)(4,0)
 \end{psgraph}
 &
\parbox[c]{10cm}{
\BS{psline}[linewidth=.5cm,linestyle=dashed,\textcolor{red}{dashcolor}=red](0,0)(4,0) \\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
\psline[linewidth=0.5cm,linestyle=dashed,linecolor=black,dashcolor=black!40,dash=5mm 5mm](0,0)(4,0)
 \end{psgraph}
 &
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.5cm,linestyle=dashed, \\
linecolor=black,\textcolor{red}{dashcolor}=black!40,dash=5mm 5mm](0,0)(4,0) \\
}
\\
\hline
\end{tabular}

\subsection{Double line}

\begin{tabular}{|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
 \psline[doubleline=true](4,0)
 \end{psgraph}
 &
\parbox[c]{10cm}{
\BS{psline}[\textcolor{red}{doubleline}=true](4,0)\\
}
\\ \hline
\end{tabular}

\smallskip

\begin{tabular}{|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
 \psline[linewidth=0.25cm,doubleline=true,doublesep=.3cm](4,0)
 \end{psgraph}
 &
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.25cm,doubleline=true,\textcolor{red}{doublesep}=.3cm](4,0)\\
}
\\ \hline
\multicolumn{2}{|c|}{ {\color{blue} By default :  doublesep = 1.25\BS{pslinewidth}} } \\
\hline
\end{tabular}

\smallskip

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
 \psline[linewidth=0.25cm,doubleline=true,,doublecolor=red](4,0)
 \end{psgraph}
 &
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.25cm,doubleline=true,\textcolor{red}{doublecolor}=red](4,0)\\
}
\\ \hline
\multicolumn{2}{|c|}{ {\color{blue} By default : doublecolor = white } } \\
\hline
\end{tabular}

\subsection{Border}

\begin{tabular}{|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=0.5cm,border=0.25cm,bordercolor=red](3,0)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linewidth=0.5cm,border=0.25cm,bordercolor=red](3,0) \\
}
\\
\hline
\end{tabular}

\smallskip

\begin{tabular}{|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=- 1,yticksize=-1 ,subticks=0,shift=*](0,0)(-1,-1)(1,1){2cm}{2cm}
  \psline[linewidth=3pt,linecolor=red](-1,-1)(1,1)
  \psline[linewidth=3pt,linecolor=blue,border=0.25cm](1,-1)(-1,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linewidth=3pt,linecolor=red](-1,-1)(1,1)\\
\BS{psline}[linewidth=3pt,linecolor=blue,border==0.25cm](1,-1)(-1,1)\\
}
\\
\hline
\end{tabular}


\subsection{Shadow}

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=.5cm,shadow=true](3,0)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linecolor=red,\textcolor{red}{shadow}=true](3,0)\\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue} By default : shadow = false } } \\
\hline
\end{tabular}

\smallskip

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=.5cm,shadow=true,shadowsize=.5cm](3,0)
\end{psgraph}
 &
\parbox[c]{10cm}{
\BS{psline}[linewidth=.5cm,shadow=true,\textcolor{red}{shadowsize}=.5cm](3,0)\\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue} By default : shadowsize = 3pt } } \\ \hline
\end{tabular}

\smallskip

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=.5cm,shadow=true,shadowcolor=green](3,0)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linewidth=.5cm,shadow=true,\textcolor{red}{shadowcolor}=green](3,0)\\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue} By default : shadowcolor = darkgray } } \\ \hline
\end{tabular}

\smallskip

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 4,subticks=0,shift=*](0,-.5)(4,.5){4cm}{1cm}
  \psline[linewidth=.5cm,shadow=true,shadowsize=1cm,shadowangle=15](3,0)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[linewidth=.5cm,shadow=true,shadowsize=1cm,\\
\textcolor{red}{shadowangle}=15](3,0)\\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue} By default : ,shadowangle = - 45 } } \\ \hline
\end{tabular}

\subsection{Specific parameters }

\begin{tabular}{|c|c|}
\hline
\multicolumn{2}{|c|}{ \textbf{\BS{}psdiamond} } \\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 4cm,subticks=0,shift=*](0,0)(4,2){4cm}{2cm}
  \psdiamond[linestyle=dotted](2,1)(1,1)
  \psdiamond[gangle=30](2,1)(1,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psdiamond}[linestyle=dotted](2,1)(1,1)\\
\BS{psdiamond}[\textcolor{red}{gangle}=30](2,1)(1,1)\\
}
\\
\hline
\end{tabular}

\bigskip
\begin{tabular}{|c|c|}
\hline
\multicolumn{2}{|c|}{ \textbf{\BS{}pssarc} } \\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 2cm,subticks=0,shift=*](0,0)(2,2){2cm}{2cm}
  \psarc[linecolor=green,linewidth=0.5cm,linejoin=0](0,0){2}{0}{90}
  \psarc[arcsep=1cm](0,0){2}{0}{90}
\end{psgraph}
 &
\parbox[c]{10cm}{
\BS{psarc}[linecolor=green,linewidth=0.5cm](0,0)\AC{2}\AC{0}\AC{90}\\
\BS{psarc}[\textcolor{red}{arcsep}=1cm](0,0)\AC{2}\AC{0}\AC{90}\\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 2cm,subticks=0,shift=*](0,0)(2,2){2cm}{2cm}
  \psarc[linecolor=green,linewidth=0.5cm,linejoin=0](0,0){2}{0}{90}
  \psarc[arcsepA=1cm](0,0){2}{0}{90}
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psarc}[linecolor=green,linewidth=0.5cm](0,0)\AC{2}\AC{0}\AC{90}\\
\BS{psarc}[\textcolor{red}{arcsepA}=1cm](0,0)\AC{2}\AC{0}\AC{90}\\
}
\\
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 2cm,yticksize=0 2cm,subticks=0,shift=*](0,0)(2,2){2cm}{2cm}
  \psarc[linecolor=green,linewidth=0.5cm,linejoin=0](0,0){2}{0}{90}
  \psarc[arcsepB=1cm](0,0){2}{0}{90}
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psarc}[linecolor=green,linewidth=0.5cm](0,0)\AC{2}\AC{0}\AC{90}\\
\BS{psarc}[\textcolor{red}{arcsepB}=1cm](0,0)\AC{2}\AC{0}\AC{90}\\
}
\\
\hline
%\multicolumn{2}{|c|}{ {\color{blue} By default : ,shadowangle = - 45 } } \\ \hline
\end{tabular}

\smallskip

\subsection{Filling}

\psset{fillcolor=yellow}

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1.5,yticksize=0 1.5,subticks=0,shift=*](0,0)(1.5,1.5){1.5cm}{1.5cm}
  \psframe[fillstyle=solid](1,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psframe}[\textcolor{red}{fillstyle}=solid](1,1)\\
} \\
\hline
\end{tabular}

\smallskip

\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\multicolumn{7}{|c|}{Types of fillings available} \\
\hline
\textcolor{red}{none} & \textcolor{red}{solid}& \textcolor{red}{vlines}  &  \textcolor{red}{hlines}  & \textcolor{red}{crosshatch}  & \textcolor{red}{penrose}   & dots\\  \hline
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle=solid](1,1)
\end{pspicture}
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle=vlines](1,1)
\end{pspicture}
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle=hlines](1,1)
\end{pspicture}
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle=crosshatch](1,1)
\end{pspicture}
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle= penrose,psscale=.5](1,1)
\end{pspicture}
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle= dots,psscale=.5](1,1)
\end{pspicture} \\
\hline
& &  \textcolor{red}{vlines*} & \textcolor{red}{hlines*} & \textcolor{red}{crosshatch*} & \textcolor{red}{penrose*} &
\\
\hline
&
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle=vlines*](1,1)
\end{pspicture}
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle=hlines*](1,1)
\end{pspicture}
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle= crosshatch*](1,1)
\end{pspicture}
&
\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
  \psframe[fillstyle= penrose*,psscale=.5](1,1)
\end{pspicture}
&
\\
\hline
\end{tabular}

\bigskip

\textbf{Options available}:

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 1,subticks=0,shift=*](0,0)(1,1){1cm}{1cm}
  \psframe[fillstyle=hlines*,fillcolor=green](1,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psframe}[fillstyle=hlines*,\textcolor{red}{fillcolor}=green](1,1)\\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue}  fillcolor = white  } } \\ \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 1,subticks=0,shift=*](0,0)(1,1){1cm}{1cm}
  \psframe[fillstyle=hlines*,hatchwidth=3pt](1,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psframe}[fillstyle=hlines*,\textcolor{red}{hatchwidth}=3pt](1,1)\\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue}  hatchwidth = 0.8pt } } \\ \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 1,subticks=0,shift=*](0,0)(1,1){1cm}{1cm}
  \psframe[fillstyle=hlines*,hatchsep=10pt](1,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psframe}[fillstyle=hlines*,\textcolor{red}{hatchsep}=10pt](1,1)\\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue}  hatchsep = 4pt } } \\ \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 1,subticks=0,shift=*](0,0)(1,1){1cm}{1cm}
  \psframe[fillstyle=hlines*,hatchcolor=red](1,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psframe}[fillstyle=hlines*,\textcolor{red}{hatchcolor}=red](1,1)\\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue} hatchcolor = black } } \\ \hline
\begin{psgraph}[axesstyle=none,xticksize=0 1,yticksize=0 1,subticks=0,shift=*](0,0)(1,1){1cm}{1cm}
  \psframe[fillstyle=hlines*,hatchangle=25](1,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psframe}[fillstyle=hlines*,\textcolor{red}{hatchangle}=25](1,1)\\
}
\\
\hline
\multicolumn{2}{|c|}{ {\color{blue}  hatchangle =  45 } } \\
\hline
\end{tabular}

\bigskip

%\textbf{New option} : hatchwidthinc  hatchsepinc \texttt{pst-news05}

\begin{tabular}{|c|}
\hline
\BS{}psframe[fillstyle=vlines,\textcolor{red}{hatchwidthinc}=2pt](14,1)
\\
\hline
\begin{pspicture}(\linewidth,1.3)
  \psframe[fillstyle=vlines,hatchwidthinc=2pt](14,1)
\end{pspicture}
\\
\hline
\end{tabular}

\smallskip
\begin{tabular}{|c|} \hline
\BS{}psframe[fillstyle=vlines,\textcolor{red}{hatchsepinc}=2pt](14,1)
\\
\hline

\begin{pspicture}(\linewidth,1.3)
  \psframe[fillstyle=vlines,hatchsepinc=2pt](14,1)
\end{pspicture}
\\
\hline
\end{tabular}

\subsection{Fillstyle eofill}
% from pst-news2014

\begin{tabular}{|c|c|}
\hline
\multicolumn{2}{|l|}{\BSS{pscustom}[fillstyle=\textcolor{red}{eofill},fillcolor=green]\{} \\
\multicolumn{2}{|l|}{\BS{pscircle}(2,2)\AC{2}
\BS{pscircle}(4,2)\AC{2}\}} \\
\hline
\begin{pspicture}(6,4)
  \pscustom[fillstyle=eofill,fillcolor=green]{
    \pscircle(2,2){2}
    \pscircle(4,2){2}}
\end{pspicture}
&
\begin{pspicture}(6,4)
  \pscustom[fillstyle=oefill,fillcolor=green]{
    \pscircle(2,2){2}
    \pscircle(4,2){2}}
\end{pspicture} \\
\hline
fillstyle=\textcolor{red}{eofill} & fillstyle=\textcolor{red}{oefill}\\
\hline
\end{tabular}

\section{Tranparency}

%\subsection{Blend mode}

% Adapted from visualpstricks
\subsection{\texttt{strokeopacity} and \texttt{opacity}}

\psset{unit=0.7cm,linewidth=1pt,fillstyle=solid,linecolor=blue}% linecolor=blue,

\begin{tabular}{|c|c|c|c|}
\hline
\multicolumn{4}{|c|}{ \BS{}psframe[fillcolor=blue,\textcolor{red}{opacity}=0.7](-1,-1)(2,2)](-2,0)(2,0)} \\
\hline
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red](-2,-2)(1,1)
 \psframe[fillcolor=blue,opacity =0.7](-1,-1)(2,2)
\end{pspicture}
&
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red](-2,-2)(1,1)
 \psframe[fillcolor=blue,opacity =0.5](-1,-1)(2,2)
\end{pspicture}
&
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
 \psframe[fillcolor=red](-2,-2)(1,1)
 \psframe[fillcolor=blue,opacity =0.2](-1,-1)(2,2)
\end{pspicture}
&
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
  \psframe[fillcolor=red](-2,-2)(1,1)
  \psframe[fillcolor=blue,opacity =0](-1,-1)(2,2)
\end{pspicture}
\\
\hline
opacity =0.7 & opacity =0.5  & opacity =0.2  & opacity =0 \\
\hline
\end{tabular}

\bigskip
\begin{tabular}{|c|c|c|c|} \hline
\multicolumn{4}{|c|}{ \BS{psline[linewidth=1cm,linecolor=blue,\textcolor{red}{strokeopacity} =0.7](2,-2)(-2,2)}} \\
\hline
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
  \psline[linewidth=1cm,linecolor=red](-2,-2)(2,2)
  \psline[linewidth=1cm,linecolor=blue,strokeopacity =0.7](2,-2)(-2,2)
\end{pspicture}
&
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
  \psline[linewidth=1cm,linecolor=red](-2,-2)(2,2)
  \psline[linewidth=1cm,linecolor=blue,strokeopacity =0.5](2,-2)(-2,2)
\end{pspicture}
&
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
  \psline[linewidth=1cm,linecolor=red](-2,-2)(2,2)
  \psline[linewidth=1cm,linecolor=blue,strokeopacity =0.2](2,-2)(-2,2)
\end{pspicture}
&
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
  \psline[linewidth=1cm,linecolor=red](-2,-2)(2,2)
  \psline[linewidth=1cm,linecolor=blue,strokeopacity =0](2,-2)(-2,2)
\end{pspicture} \\
\hline
strokeopacity =0.7 & strokeopacity =0.5  & strokeopacity =0.2  & strokeopacity =0 \\
\hline
\end{tabular}

\subsection*{Examples}
% from pst-news08

\begin{pspicture}[linewidth=1cm](4,4)
  \psline[linecolor=red](0,0)(4,4)
  \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0)
  \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5)
  \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5)
\end{pspicture}
\hspace*{2em}
\begin{pspicture}[linewidth=1cm](4,4)
\psline[linecolor=red](0,0)(4,4)
\pscircle*[opacity=0.5](2,2){2}
\psline[linecolor=blue,strokeopacity=0.6](0,4)(4,0)
\end{pspicture}
\hspace*{2em}
\begin{pspicture}[linewidth=3mm](4,5.5)
  \multido{\rA=0.0+0.5}{9}{%
    \psline[linecolor=red!40](\rA,0)(\rA,5)}
  \multido{\rA=0.0+0.5,\rB=0.0+0.1}{11}{%
    \psline[arrows=<D-D>,linecolor=blue,
      linewidth=5pt,arrowscale=1.5,
       strokeopacity=\rB](0,\rA)(4,\rA)}
\end{pspicture}

\bigskip

\begin{pspicture}(5,5)
  \psset{fillstyle=solid}
  \psframe[fillcolor=red](0,1)(3,4)
  \psframe[fillcolor=blue,opacity=0.7](2,2)(5,5)
  \psframe[fillcolor=green,opacity=0.7](1,0)(4,3)
  \pscircle[fillcolor=cyan,
    opacity=0.5](1.5,3.5){1.25}
\end{pspicture}
\hspace*{2em}
\begin{pspicture}(5,5)
  \psset{fillstyle=solid}
  \psframe[fillcolor=red](0,1)(3,4)
  \psframe[fillcolor=blue,opacity=0.3](2,2)(5,5)
  \psframe[fillcolor=green,opacity=0.3](1,0)(4,3)
  \pscircle[fillcolor=cyan,
    opacity=0.5](1.5,3.5){1.25}
\end{pspicture}

\subsection{Line arc}

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=-1 1,yticksize=0 2,subticks=0,fillstyle=none,shift=*](0,0)(0,-1)(2,1){2cm}{2cm}
  \psline[linearc=0.5cm](0,1)(1,-1)(2,1)
  \psline[linestyle=dotted,linewidth=1pt](0,1)(1,-1)(2,1)
\end{psgraph}
&
\parbox[c]{10cm}{
\BS{psline}[\textcolor{red}{linearc}=0.5cm](0,1)(1,-1)(2,1)\\
\BS{psline}[linestyle=dotted](0,1)(1,-1)(2,1)\\
% \BS{end}\AC{psgraph} \\
}
\\
\hline
\multicolumn{2}{|c|}{  {\color{blue}  By default: linearc  = 0 } } \\
\hline
\end{tabular}

\end{document}
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
XHCHGT+LMRoman12-Bold                CID Type 0C       Identity-H       yes yes yes      8  0
QACYPD+CMR10                         Type 1            Builtin          yes yes no       9  0
ZODSDO+CMSY10                        Type 1            Builtin          yes yes no      10  0
ICDHLE+LMRoman10-Regular             CID Type 0C       Identity-H       yes yes yes     11  0
FTCNBX+LMRoman10-Italic              CID Type 0C       Identity-H       yes yes yes     12  0
SEBPQI+LMRoman17-Regular             CID Type 0C       Identity-H       yes yes yes     13  0
SZVXDP+LMRoman10-Bold                CID Type 0C       Identity-H       yes yes yes     14  0
GPITIN+LMMonoLt10-Bold               CID Type 0C       Identity-H       yes yes yes     35  0

test-param-crop-1
test-param-crop-2
test-param-crop-3
test-param-crop-4
test-param-crop-5
test-param-crop-6
test-param-crop-7
test-param-crop-8

@zauguin
Copy link
Owner

zauguin commented Aug 24, 2021

The only thing that is not working at the moment is:

\begin{pspicture}[shift=*](-.2,-.2)(1.2,1.2)
%  \psframe[fillstyle= penrose,psscale=.5](1,1)
%  \psframe[fillstyle= penrose*,psscale=.5](1,1)
\end{pspicture}

In which way do these fail for you? (On my system they "work", they are just very slow (~30 seconds each) and they somehow break the linearc example (not quite sure yet how this can happen).)

@pablgonz
Copy link
Collaborator Author

Ohh...I really didn't wait that long :) ...it just kept waiting and didn't finish.

@zauguin
Copy link
Owner

zauguin commented Aug 25, 2021

Not the slow performance, but the weird "affects future drawing commands" issue with the penrose fillstyle can be reproduced even without LuaTeX with

% arara: latex
% arara: dvips
% arara: ps2pdf: { options : [ -dALLOWPSTRANSPARENCY ] }
% arara: clean: { extensions : [ aux, log, dvi ] }
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{uncompress}
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\begin{document}
\parbox{4.5cm}{%
  \psclip{\psccurve[linestyle=none,fillstyle=penrose,psscale=.2](-3,-2)
  (0.3,-1.5)(2.3,-2)(4.3,-1.5)(6.3,-2)(8,-1.5)(8,2)(-3,2)}
  “One of the best new plays I have seen all year: cool, poetic,
  ironic \ldots” proclaimed \emph{The Guardian} upon the London
  premiere of this extraordinary play about a Czech director and
  his actress wife, confronting exile in America.\vspace{-1cm}
  \endpsclip}

\begin{pspicture}[shift=*](-1,-1)(2,2)
  \psline[linearc=0.5cm,showpoints=true,dotstyle=|]{<<->>}(0,1)(1,-1)(2,1)
\end{pspicture}
\end{document}

I'll add a workaround, but I guess a proper fix should come from upstream. (Update: Herbert agreed that this should be fixed in pstricks directly)

@pablgonz
Copy link
Collaborator Author

I'll add a workaround, but I guess a proper fix should come from upstream. (Update: Herbert agreed that this should be fixed in pstricks directly)

That's great!!! (recent update modifies the font for \psdots).

Ohh...I really didn't wait that long :) ...it just kept waiting and didn't finish.

It does compile (with the wrong image of course), but the text on page 5 is no longer selectable (at least not with evince/atril).

Separate question, can you explain me what is the role of these two lines (I have seen them in several codes in the TeXSX chat).

\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{uncompress}

I know it creates a non-compressed pdf, but what's the use of that? (I've never been able to look inside the structure of a PDF, other than using Acrobat DC pro to see something).

@zauguin
Copy link
Owner

zauguin commented Aug 25, 2021

I know it creates a non-compressed pdf, but what's the use of that? (I've never been able to look inside the structure of a PDF, other than using Acrobat DC pro to see something).

As a typical user you shouldn't need this, it's mostly necessary when you write code which generates PDF literals and you need to find errors with them (or just want to see the context they appear in). E.g. luapstricks directly generates PDF instructions, so if something generates wrong graphics than it is helpful to see if these instructions look correct, if they get added at the right location etc. Also it allows to change the instructions in the PDF file directly so you can test which instructions work better before adapting the code.

More generally useful, you can use the two lines without specifying uncompress to just activate the pdfmanagement-testphase package. So just

\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}

This provides package authors a new unified interface to add some stuff to PDF files which is used e.g. by luapstricks. (You need this to avoid some warnings and enable e.g. transparency support)

@pablgonz
Copy link
Collaborator Author

Thank you very much for the explanation!

@pablgonz
Copy link
Collaborator Author

I have updated the example file by adding eofill.

Question, why does the layout of the images on the pages change when using lualatex?

@zauguin
Copy link
Owner

zauguin commented Aug 26, 2021

Question, why does the layout of the images on the pages change when using lualatex?

The "colors available" table places the color name purple in a column of type p{.8cm} which is too small to fit the word "purple" properly. LuaTeX therefore hyphenates purple and plots it into two lines. Other engines have a rule never to hyphenate the first word in a paragraph, so "purple" which is the only word (and therefore especially the first) in it's paragraph can't be hyphenates and the box is made overfull instead. Of course, splitting a word over two lines needs more vertical space than keeping it on one line, so the vertical spacing gets out of sync moving the page breaks.

@pablgonz pablgonz changed the title Basic figures report (part II) ... almost OK Basic figures report (part II) ... OK Aug 27, 2021
@pablgonz
Copy link
Collaborator Author

With today's update works OK

@pablgonz pablgonz changed the title Basic figures report (part II) ... OK Basic objects report (part II) ... OK Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants