summaryrefslogtreecommitdiff
path: root/graphics/pstricks
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pstricks')
-rw-r--r--graphics/pstricks/contrib/pst-flags/README.md16
-rw-r--r--graphics/pstricks/contrib/pst-flags/doc/amm-pst-doc.cls6
-rw-r--r--graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.pdfbin1249010 -> 1249155 bytes
-rw-r--r--graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.tex7
-rw-r--r--graphics/pstricks/contrib/pst-flags/doc/pst-flags-examples.tex4
-rw-r--r--graphics/pstricks/contrib/pst-flags/tex/pst-flags-colors-html.sty4
-rw-r--r--graphics/pstricks/contrib/pst-flags/tex/pst-flags.sty11
7 files changed, 29 insertions, 19 deletions
diff --git a/graphics/pstricks/contrib/pst-flags/README.md b/graphics/pstricks/contrib/pst-flags/README.md
index 52ce2f315c..1c46a32419 100644
--- a/graphics/pstricks/contrib/pst-flags/README.md
+++ b/graphics/pstricks/contrib/pst-flags/README.md
@@ -5,7 +5,7 @@ LaTeX package for drawing flags of countries using PSTricks
This package and its user manual are available at [ctan archive](https://ctan.org/tex-archive/graphics/pstricks/contrib/pst-flags).
### About pst-flags
-This package provides a number of macros for rendering flags of countries and their associated artefacts drawn using LaTeX PSTricks package. This package further contributes towards a complete implementation of the vector drawing capabilities provided by PSTricks. Formatting of the resulting drawings is entirely controlled by the TeX macros. A good working knowledge of LaTeX should be sufficient to design flags of sovereign countries and adapt them to create new designs. Features such as color or shape customisation and dynamic modifications are possible by cleverly adjusting the options supplied to the TeX macros.
+This package provides a number of macros for rendering flags of world countries and their associated artefacts drawn using LaTeX PSTricks package that allow the inclusion of PostScript drawings directly inside TeX or LaTeX source code. This package further contributes towards a complete implementation of the vector drawing capabilities provided by PSTricks. Formatting of the resulting drawings is entirely controlled by the TeX macros. A good working knowledge of LaTeX should be sufficient to design flags of sovereign countries and adapt them to create new designs. Features such as color or shape customisation and dynamic modifications are possible by cleverly adjusting the options supplied to the TeX macros.
### License
Copyright © 2022 Amit M. Manthanwar. Permission is granted to
@@ -20,8 +20,7 @@ This package would not have been possible without the base \texttt{PSTricks} and
## Installation and usage of **pst-flags**
### Installation
As prerequisites for *pst-flags*, you need working
-versions of LaTeX and *pstricks*. The style file `pst-flags.sty` and all corresponding **.tex** and **.eps** assets must be somewhere
-in your TeX-input path, where *dvips* can find it.
+versions of LaTeX and *pstricks*. The style file `pst-flags.sty` and all corresponding **.tex** and **.eps** assets must be somewhere in your TeX-input path, where *dvips* can find it. Download the zip file from the \texttt{pst-flags} [project page on GitHub](ttps://github.com/manthanwar/pst-flags) and unzip it in the same location as your tex file. Try to complile using the classic `latex -> dvips -> ps2pdf` toolchain.
### Dependencies
This packages requires expl3, fp, xfp, pstricks and pst-all.
@@ -31,14 +30,11 @@ Load the packages **pstricks** and **pst-flags**
in that order via the `\usepackage` macro. Now you are ready to use the `\usepackage{pst-flags}` macros within your document body. This macro is described in the next section with all its options. With the help of the following simple LaTeX-source code you can test whether you have correctly installed the package:
```
-\begin{verbatim}
\documentclass{article}
-\usepackage{pstricks}
\usepackage{pst-flags}
\begin{document}
Flag of US: \rput(0,0){\flagUS[2]}
\end{document}
-\end{verbatim}
```
### Colors
@@ -48,4 +44,10 @@ Flag colors are defined using country code appended with color name which can be
\usepackage{pst-flags-colors-html}
\pscircle[linecolor=usRed](0,0){2}
-``` \ No newline at end of file
+```
+
+## Support
+If you run into any issue then please raise it at out [project page on GitHub](ttps://github.com/manthanwar/pst-flags).
+
+## Collaboration
+For all collaboration related queries please contact the author via email provided in the style file.
diff --git a/graphics/pstricks/contrib/pst-flags/doc/amm-pst-doc.cls b/graphics/pstricks/contrib/pst-flags/doc/amm-pst-doc.cls
index 6bd4456285..1bea4edce4 100644
--- a/graphics/pstricks/contrib/pst-flags/doc/amm-pst-doc.cls
+++ b/graphics/pstricks/contrib/pst-flags/doc/amm-pst-doc.cls
@@ -5,7 +5,7 @@
% Mailer: manthanwar@hotmail.com
% WebURL: https://manthanwar.github.io
% GitHub: https://github.com/manthanwar/PST-Flags
-% Rights: Copyright (c)2022 Amit Manohar Manthanwar
+% Rights: Copyright (c)2022-23 Amit Manohar Manthanwar
%-------------------------------------------------------------------------------
% This program can be redistributed and/or modified under the terms
% of the LaTeX Project Public License Distributed from CTAN archives
@@ -19,11 +19,13 @@
%---------------+---------+----------------------------------------------------
% 25-Dec-2022 | AMM | CTAN Review Updates
%---------------+---------+----------------------------------------------------
+% 09-Jan-2023 | AMM | Removed xcolor from pst-flags.sty
+%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%===============================================================================
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{amm-pst-doc}[2022/12/25 Amit M. Manthanwar LaTeX Document Class]
+\ProvidesClass{amm-pst-doc}[2022/01/09 Amit M. Manthanwar LaTeX Document Class]
%-------------------------------------------------------------------------------
\LoadClass[oneside,10pt,a4paper]{article}
%-------------------------------------------------------------------------------
diff --git a/graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.pdf b/graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.pdf
index 4b9d9267fa..1868452da8 100644
--- a/graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.pdf
+++ b/graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.pdf
Binary files differ
diff --git a/graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.tex b/graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.tex
index 94e82755c5..e6959e3e7e 100644
--- a/graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.tex
+++ b/graphics/pstricks/contrib/pst-flags/doc/pst-flags-doc.tex
@@ -5,7 +5,7 @@
% Mailer: manthanwar@hotmail.com
% WebURL: https://manthanwar.github.io
% GitHub: https://github.com/manthanwar/PST-Flags
-% Rights: Copyright (c)2022 Amit Manohar Manthanwar
+% Rights: Copyright (c)2022-2023 Amit Manohar Manthanwar
%-------------------------------------------------------------------------------
% This program can be redistributed and/or modified under the terms
% of the LaTeX Project Public License Distributed from CTAN archives
@@ -19,6 +19,8 @@
%---------------+---------+----------------------------------------------------
% 25-Dec-2022 | AMM | CTAN Review Updates
%---------------+---------+----------------------------------------------------
+% 09-Jan-2023 | AMM | Removed xcolor
+%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%===============================================================================
@@ -26,7 +28,7 @@
\usepackage{pst-flags}
\title{\vspace*{-10mm}
\texttt{pst-flags}: A PSTricks Package for Drawing Flags of Countries\\[2mm]
-\Large{Version 2022/12/25}}
+\Large{Version 2022/01/09}}
\author{Amit M. Manthanwar}
\date{}
@@ -66,7 +68,6 @@ in that order via the \texttt{usepackage} macro. Now you are ready to use the \t
\begin{verbatim}
\documentclass{article}
-\usepackage{pstricks}
\usepackage{pst-flags}
\begin{document}
Flag of US: \rput(0,0){\flagUS[2]}
diff --git a/graphics/pstricks/contrib/pst-flags/doc/pst-flags-examples.tex b/graphics/pstricks/contrib/pst-flags/doc/pst-flags-examples.tex
index 58be080315..12652b856c 100644
--- a/graphics/pstricks/contrib/pst-flags/doc/pst-flags-examples.tex
+++ b/graphics/pstricks/contrib/pst-flags/doc/pst-flags-examples.tex
@@ -5,7 +5,7 @@
% Mailer: manthanwar@hotmail.com
% WebURL: https://manthanwar.github.io
% GitHub: https://github.com/manthanwar/PST-Flags
-% Rights: Copyright (c)2022 Amit Manohar Manthanwar
+% Rights: Copyright (c)2022-2023 Amit Manohar Manthanwar
%-------------------------------------------------------------------------------
% This program can be redistributed and/or modified under the terms
% of the LaTeX Project Public License Distributed from CTAN archives
@@ -19,6 +19,8 @@
%---------------+---------+----------------------------------------------------
% 25-Dec-2022 | AMM | CTAN Review Updates
%---------------+---------+----------------------------------------------------
+% 09-Jan-2023 | AMM | Removed xcolor
+%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%===============================================================================
diff --git a/graphics/pstricks/contrib/pst-flags/tex/pst-flags-colors-html.sty b/graphics/pstricks/contrib/pst-flags/tex/pst-flags-colors-html.sty
index 81c5e0f893..f33e81f086 100644
--- a/graphics/pstricks/contrib/pst-flags/tex/pst-flags-colors-html.sty
+++ b/graphics/pstricks/contrib/pst-flags/tex/pst-flags-colors-html.sty
@@ -19,13 +19,15 @@
%---------------+---------+----------------------------------------------------
% 25-Dec-2022 | AMM | CTAN Review Updates
%---------------+---------+----------------------------------------------------
+% 09-Jan-2023 | AMM | Removed xcolor options
+%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%===============================================================================
\NeedsTeXFormat{LaTeX2e}[2022/12/25]
\ProvidesPackage{pst-flags-colors-html}[2022/12/25 Colors of country flags]
%-------------------------------------------------------------------------------
-\RequirePackage[dvipsnames,svgnames]{xcolor}
+\RequirePackage{xcolor}
%===============================================================================
\definecolor{adBeige}{HTML}{C6AA76}
\definecolor{adBlue}{HTML}{10069F}
diff --git a/graphics/pstricks/contrib/pst-flags/tex/pst-flags.sty b/graphics/pstricks/contrib/pst-flags/tex/pst-flags.sty
index 95cba4aa02..572492d116 100644
--- a/graphics/pstricks/contrib/pst-flags/tex/pst-flags.sty
+++ b/graphics/pstricks/contrib/pst-flags/tex/pst-flags.sty
@@ -6,7 +6,7 @@
% Mailer: manthanwar@hotmail.com
% WebURL: https://manthanwar.github.io
% GitHub: https://github.com/manthanwar/PST-Flags
-% Rights: Copyright ©2022 Amit Manohar Manthanwar
+% Rights: Copyright ©2022-2023 Amit Manohar Manthanwar
%-------------------------------------------------------------------------------
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN archives
@@ -19,12 +19,13 @@
%---------------+---------+----------------------------------------------------
% 25-Dec-2022 | AMM | CTAN Review Updates
%---------------+---------+----------------------------------------------------
+% 09-Jan-2023 | AMM | Removed xcolor
+%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%===============================================================================
-\NeedsTeXFormat{LaTeX2e}[2022/12/25]
-\ProvidesPackage{pst-flags}[2022/12/25 LaTeX package for country flags]
-\RequirePackage[dvipsnames,svgnames]{xcolor}
+\NeedsTeXFormat{LaTeX2e}[2022/01/09]
+\ProvidesPackage{pst-flags}[2022/01/09 LaTeX package for country flags]
\RequirePackage{fp}
\RequirePackage{xfp}
\RequirePackage{expl3}
@@ -5105,7 +5106,7 @@ linestyle=solid,linecolor=black,linewidth=0.04}%
\newcommand{\flagHK}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
-\psframe[fillcolor=Red](0,0)(9,6)%
+\psframe[fillcolor=hkRed](0,0)(9,6)%
%\psset{fillstyle=none,linestyle=solid,linewidth=0.02}%
%\pscircle(4.5,3){1.8}%
\rput(4.5,3){\multido{\nA=-103.48+72}{5}{%