Skip to content

Commit

Permalink
update pstricks status (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertucci47 authored Nov 20, 2024
1 parent 3523438 commit f42c343
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _data/tagging-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8902,14 +8902,15 @@

- name: pstricks
type: package
status: currently-incompatible
status: partially-compatible
included-in: [tlc3, arxiv1]
priority: 2
comments: "Tagging passes validation but is suboptimal. Future compatibility
will only be with lualatex; dvips cannot properly support PDF/UA."
comments: "Compatibility is only with lualatex; dvips cannot properly support PDF/UA.
Offers `alt`, `actualtext`, `artifact`, and `correct-BBox` keys.
Not tagged as figures."
issues:
tests: true
updated: 2024-07-12
updated: 2024-11-19

- name: px-ds
ctan-pkg: pxtxalfa
Expand Down
61 changes: 61 additions & 0 deletions tagging-status/testfiles/pstricks/pstricks-02.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
% !TeX program = txs:///lualatex | txs:///view-pdf
\DocumentMetadata
{
lang=en-US,
pdfversion=2.0,
pdfstandard=ua-2,
testphase={phase-III,math,table,title,firstaid},
}
\documentclass{article}

\usepackage{pstricks,multido}

\begin{document}

Some text
\psset{unit=1.2cm}
\begin{pspicture}[alt=A pie chart](-2.2,-2.2)(2.2,2.2)
\pswedge[fillstyle=solid,fillcolor=gray]{2}{0}{70}
\pswedge[fillstyle=solid,fillcolor=lightgray]{2}{70}{200}
\pswedge[fillstyle=solid,fillcolor=darkgray]{2}{200}{360}
\SpecialCoor
\psset{framesep=1.5pt}
\rput(1.2;35){\psframebox*{\small\$9.0M}}
\uput{2.2}[45](0,0){Oreos}
\rput(1.2;135){\psframebox*{\small\$16.7M}}
\uput{2.2}[135](0,0){Heath}
\rput(1.2;280){\psframebox*{\small\$23.1M}}
\uput{2.2}[280](0,0){M\&M}
\end{pspicture}

Some more text

\begin{pspicture}[tag=artifact](-3.4,-3.4)(3.4,3.4)
\newgray{mygray}{0} % Initialize ‘mygray’ for benefit
\psset{fillstyle=solid,fillcolor=mygray} % of this line.
\SpecialCoor
\degrees[1.1]
\multido{\n=0.0+.1}{11}{%
\newgray{mygray}{\n}
\psset{fillcolor=mygray}%
\rput{\n}{\pswedge{3}{-.05}{.05}}
\uput{3.2}[\n](0,0){\small\n}}
\end{pspicture}

And more text

\begin{pspicture}[actualtext=A pie chart](-2.2,-2.2)(2.2,2.2)
\pswedge[fillstyle=solid,fillcolor=gray]{2}{0}{70}
\pswedge[fillstyle=solid,fillcolor=lightgray]{2}{70}{200}
\pswedge[fillstyle=solid,fillcolor=darkgray]{2}{200}{360}
\SpecialCoor
\psset{framesep=1.5pt}
\rput(1.2;35){\psframebox*{\small\$9.0M}}
\uput{2.2}[45](0,0){Oreos}
\rput(1.2;135){\psframebox*{\small\$16.7M}}
\uput{2.2}[135](0,0){Heath}
\rput(1.2;280){\psframebox*{\small\$23.1M}}
\uput{2.2}[280](0,0){M\&M}
\end{pspicture}

\end{document}

0 comments on commit f42c343

Please sign in to comment.