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 I) ... OK #5

Open
pablgonz opened this issue Aug 23, 2021 · 4 comments
Open

Basic objects report (part I) ... OK #5

pablgonz opened this issue Aug 23, 2021 · 4 comments

Comments

@pablgonz
Copy link
Collaborator

pablgonz commented Aug 23, 2021

I am pleased to be able to present this file, it compiles the elementary drawing objects without errors :D

% arara: latex
% arara: dvips
% arara: ps2pdf: { options : [ -dALLOWPSTRANSPARENCY ] }
% arara: clean: { extensions : [ aux, log, dvi ] }
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\pagestyle{empty}
% short
\newcommand{\BSS}[1]{\textbf{\textbackslash{#1}}}
\newcommand{\AC}[1]{\{#1\}}
\newcommand{\BS}[1]{$\backslash$#1}
\begin{document}
% Adapted from visualpstricks
\section{Commands without asterik}

\psset{llx=-.5cm,lly=-.5cm,urx=.2cm,ury=.2cm,xAxisLabel={}, yAxisLabel={}}
\psset{linecolor=blue,linewidth=2pt}

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psline(0, 0)(1, 1)(2, 1)(3, 3)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psdots(1, 0.5)(2, 2.5)(3, 1.5)
\end{psgraph}
 &
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pspolygon(1, 0.5)(2, 3)(3, 1.5)(2.5,1)
\end{psgraph} \\
\hline
\BSS{psline}    & \BSS{psdots}  & \BSS{pspolygon} \\
(0, 0)(1,1)(2,1)(3,3)   & (1,0.5)(2,2.5)(3,1.5) & (1,0.5)(2,3)(3,1.5)(2.5,1) \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psframe(1, 1)(3, 3)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psdiamond(2,2)(1,1)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
 \pstriangle(2,1)(2,2)
\end{psgraph} \\
\hline
\BSS{psframe} & \BSS{psdiamond} & \BSS{pstriangle} \\
(1, 1)(3, 3)  & (2,2)(1,1)      & (2,1)(2,2) \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pscircle(2,2){1}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psarc(2,2){1}{-30}{60}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psarcn(2,2){1}{-30}{60}
\end{psgraph} \\
\hline
\BSS{pscircle} & \BSS{psarc}                & \BSS{psarcn} \\
(2,2)\AC{1}    & (2,2)\AC{1}\AC{-30}\AC{60} & (2,2)\AC{1}\AC{-30}\AC{60} \\
\hline
\end{tabular}

\bigskip
\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psellipse(2, 2)(1.5,1)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psellipticarc(2, 2)(1.5,1){150}{30}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psellipticarcn(2, 2)(1.5,1){150}{30}
\end{psgraph} \\
\hline
\BSS{psellipse} & \BSS{psellipticarc}          & \BSS{psellipticarcn} \\
(2, 2)(1.5,1)   & (2, 2)(1.5,1)\AC{150}\AC{30} & (2, 2)(1.5,1)\AC{150}\AC{30} \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pscurve[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psccurve[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psecurve[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
\end{psgraph} \\
\hline
\BSS{pscurve}[\textcolor{red}{showpoints}=true] & \BSS{psccurve}[showpoints=true] & \BSS{psecurve}[showpoints=true] \\
(1,1)(2,3)(3,2)(2,1)(3,1)                       & (1,1)(2,3)(3,2)(2,1)(3,1)       & (1,1)(2,3)(3,2)(2,1)(3,1) \\
\hline
\end{tabular}

\bigskip
\begin{tabular}{|c|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pswedge(1,2){2}{-30}{60}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psarc[showpoints=true](1,2){2}{-30}{60}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psbezier[showpoints=true](1,0)(4,4)(0,4)(3,0)
\end{psgraph} \\
\hline
\BSS{pswedge}              & \BSS{psarc}[showpoints=true] & \BSS{psbezier}[showpoints=true] \\
(1,2)\AC{2}\AC{-30}\AC{60} &(1,2)\AC{2}\AC{-30}\AC{60}    & (1,0)(4,4)(0,4)(3,0) \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \qline(1,1)(3,3)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \qdisk(2,2){20pt}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psparabola(1,1)(2,3)
\end{psgraph} \\
\hline
\BSS{qline}(1,1)(3,3) & \BSS{qdisk}(2,2)\AC{20pt} & \BSS{psparabola} \\
                      &                           &  (1,1)(2,3) \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psRing(2,2){1}{2}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psRing(2,2)[180,60]{1}{2}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pscspline[showpoints](0,4)(1,1)(3,3)(4,0)
\end{psgraph} \\
\hline
\BSS{psRing} (2,2)\AC{1}\AC{2}  & \BSS{psRing} (2,2) [180,60] \AC{1}\AC{2}  & \BSS{pscspline}[showpoints](0,4)(1,1)(3,3)  \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0,shift=*](0,0)(4,2){4cm}{4cm}
  \psellipseAB(0,0)(4,2){1}
  \pscircle[linestyle=dotted](2,1){1}
  \psdots[linecolor=red](0,0)(4,2)
\end{psgraph}
&
\parbox[c]{8cm}{
\BSS{psellipseAB}(0,0)(4,2)\AC{1} \\
\BS{pscircle}[linestyle=dotted](2,1)\AC{1} \\
\BS{psdots}[linecolor=red](0,0)(4,2) } \\
\hline
\end{tabular}

\section{Commands with asterik}

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psline*(0, 0)(1, 1)(2, 1)(3, 3)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psdots*(1, 0.5)(2, 2.5)(3, 1.5)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pspolygon*(1, 0.5)(2, 3)(3, 1.5)(2.5,1)
\end{psgraph} \\
\hline
\BSS{psline*}         & \BSS{psdots*}         & \BSS{pspolygon*} \\
(0, 0)(1,1)(2,1)(3,3) & (1,0.5)(2,2.5)(3,1.5) & (1,0.5)(2,3)(3,1.5)(2.5,1) \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|}
\hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psframe*(1, 1)(3, 3)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psdiamond*(2,2)(1,1)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pstriangle*(2,1)(2,2)
\end{psgraph} \\
\hline
\BSS{psframe*} & \BSS{psdiamond*} & \BSS{pstriangle*} \\
(1, 1)(3, 3)   & (2,2)(1,1)       & (2,1)(2,2) \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pscircle*(2,2){1}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psarc*(2,2){1}{-30}{60}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psarcn*(2,2){1}{-30}{60}
\end{psgraph} \\
\hline
\BSS{pscircle*} & \BSS{psarc*}               & \BSS{psarcn*} \\
(2,2)\AC{1}     & (2,2)\AC{1}\AC{-30}\AC{60} & (2,2)\AC{1}\AC{-30}\AC{60} \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psellipse*(2, 2)(1.5,1)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psellipticarc*(2, 2)(1.5,1){150}{30}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psellipticarcn*(2, 2)(1.5,1){150}{30}
\end{psgraph} \\
\hline
\BSS{psellipse*} & \BSS{psellipticarc*}         & \BSS{psellipticarcn*} \\
(2, 2)(1.5,1)    & (2, 2)(1.5,1)\AC{150}\AC{30} & (2, 2)(1.5,1)\AC{150}\AC{30} \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pscurve*[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psccurve*[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psecurve*[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
\end{psgraph} \\
\hline
\BSS{pscurve*}[\textcolor{red}{showpoints}=true] & \BSS{psccurve*}[showpoints=true] & \BSS{psecurve*}[showpoints=true] \\
(1,1)(2,3)(3,2)(2,1)(3,1)                        & (1,1)(2,3)(3,2)(2,1)(3,1)        & (1,1)(2,3)(3,2)(2,1)(3,1) \\
\hline
\end{tabular}

\bigskip
\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \pswedge*(1,2){2}{-30}{60}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psarc*[showpoints=true](1,2){2}{-30}{60}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psbezier*[showpoints=true](1,0)(4,4)(0,4)(3,0)
\end{psgraph} \\
\hline
\BSS{pswedge*}             & \BSS{psarc*}[showpoints=true] & \BSS{psbezier*}[showpoints=true] \\
(1,2)\AC{2}\AC{-30}\AC{60} & (1,2)\AC{2}\AC{-30}\AC{60}    & (1,0)(4,4)(0,4)(3,0) \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psparabola*(1,1)(2,3)
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psRing*(2,2){1}{2}
\end{psgraph}
&
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
  \psRing*(2,2)[180,60]{1}{2}
\end{psgraph} \\
\hline
\BSS{psparabola*} & \BSS{psRing*} (2,2)\AC{1}\AC{2} & \BSS{psRing*} (2,2) [180,60] \AC{1}\AC{2} \\
(1,1)(2,3)       &                                & \\
\hline
\end{tabular}

\bigskip

\begin{tabular}{|c|c|} \hline
\begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0,shift=*](0,0)(4,2){4cm}{4cm}
  \psellipseAB*(0,0)(4,2){1}
  \pscircle[linestyle=dotted](2,1){1}
  \psdots[linecolor=red](0,0)(4,2)
\end{psgraph}
&
\parbox[c]{8cm}{
\BSS{psellipseAB*}(0,0)(4,2)\AC{1} \\
\BS{pscircle}[linestyle=dotted](2,1)\AC{1} \\
\BS{psdots}[linecolor=red](0,0)(4,2) } \\
\hline
\end{tabular}
\end{document}
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
JTLIEU+LMRoman12-Bold                CID Type 0C       Identity-H       yes yes yes      4  0
QACYPD+CMR10                         Type 1            Builtin          yes yes no       5  0
GVWQVT+LMRoman10-Bold                CID Type 0C       Identity-H       yes yes yes      6  0
OIGAEN+LMRoman10-Regular             CID Type 0C       Identity-H       yes yes yes      7  0
HAJUBM+CMSY10                        Type 1            Builtin          yes yes no      16  0

I can only say that this is great!!!

@zauguin
Copy link
Owner

zauguin commented Aug 24, 2021

Thanks, this is a great demo :)

I also fixed the issue with the size of the first page.

@pablgonz
Copy link
Collaborator Author

The latest changes you have added allow me to make a second report :)

@zauguin
Copy link
Owner

zauguin commented Aug 24, 2021

The latest changes you have added allow me to make a second report :)

Please also test this with the latest change I just pushed, it should create smaller and more correct files, but it's the code might be more fragile...

@pablgonz
Copy link
Collaborator Author

Thanks, you have indirectly added support for filling :)

@pablgonz pablgonz changed the title Basic figures report (part I) ... OK Basic objects report (part I) ... 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