From da2cbef9bc82fd5652d8c4460793ec777a84065c Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Sun, 22 Dec 2024 16:20:18 +0100 Subject: [PATCH 1/3] fix ci --- pages/common/latexpand.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/latexpand.md diff --git a/pages/common/latexpand.md b/pages/common/latexpand.md new file mode 100644 index 00000000000000..da59c2a7444549 --- /dev/null +++ b/pages/common/latexpand.md @@ -0,0 +1,24 @@ +# latexpand + +> Simplify LaTeX source files by removing comments and resolving `\include`s, `\input`s etc. +> More information: . + +- Simplify the specified source file and save the result to the specified [o]utput file: + +`latexpand --output {{path/to/output.tex}} {{path/to/file.tex}}` + +- Do not remove comments: + +`latexpand --keep-comments --output {{path/to/output.tex}} {{path/to/file.tex}}` + +- Do not expand `\include`s, `\input`s etc.: + +`latexpand --keep-includes --output {{path/to/output.tex}} {{path/to/file.tex}}` + +- Expand `\usepackage`s as far as the corresponding STY files can be found: + +`latexpand --expand-usepackage --output {{path/to/output.tex}} {{path/to/file.tex}}` + +- Inline the specified BBL file: + +`latexpand --expand-bbl {{path/to/bibliography.bbl}} --output {{path/to/output.tex}} {{path/to/file.tex}}` From 26f3a07e5b4230913b80697c5084b8fcbf5cca85 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Thu, 26 Dec 2024 14:57:10 +0100 Subject: [PATCH 2/3] ppmdraw, ppmglobe, pnmmercator: add pages --- pages/common/pnmmercator.md | 13 +++++++++++++ pages/common/ppmdraw.md | 13 +++++++++++++ pages/common/ppmglobe.md | 13 +++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 pages/common/pnmmercator.md create mode 100644 pages/common/ppmdraw.md create mode 100644 pages/common/ppmglobe.md diff --git a/pages/common/pnmmercator.md b/pages/common/pnmmercator.md new file mode 100644 index 00000000000000..02f86f5066cb1f --- /dev/null +++ b/pages/common/pnmmercator.md @@ -0,0 +1,13 @@ +# pnmmercator + +> Perform Mercator transformations on Netpbm images. +> See also: `pnmglobe`. +> More information: . + +- Convert a rectangular projection worldmap to Mercator projection: + +`pnmmercator {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- Convert a Mercator projection worldmap to rectangular projection: + +`pnmmercator -inverse {{path/to/image.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/ppmdraw.md b/pages/common/ppmdraw.md new file mode 100644 index 00000000000000..97245abcea2380 --- /dev/null +++ b/pages/common/ppmdraw.md @@ -0,0 +1,13 @@ +# ppmdraw + +> Draw lines, text and more on a PPM image by executing a script. +> Documentation on the utilized scripting language can be found by following the link below. +> More information: . + +- Draw on the specified PPM image by execting the supplied script: + +`ppmdraw -script '{{setpos 50 50; text_here "hello!"; }}' {{path/to/image.pnm}} > {{path/to/output.pnm}}` + +- Draw on the specified PPM image by execting the script in the specified file: + +`ppmdraw -scriptfile {{path/to/script}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/ppmglobe.md b/pages/common/ppmglobe.md new file mode 100644 index 00000000000000..e6ad7f7606c78d --- /dev/null +++ b/pages/common/ppmglobe.md @@ -0,0 +1,13 @@ +# ppmglobe + +> Generate strips of an image suitable to be glued onto a sphere. +> See also: `pnmmercator`. +> More information: . + +- Transform an image to strips that can be cut out and glues onto a sphere: + +`ppmglobe {{number_of_strips}} {{path/to/image.ppm}} > {{path/to/output.ppm}}` + +- Use the specified color for the areas between the strips: + +`ppmglobe -background {{red}} {{number_of_strips}} {{path/to/image.ppm}} > {{path/to/output.ppm}}` From 4b6a66e4e2b7c5185c1e3f9cb572a2ec540882da Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Sat, 28 Dec 2024 12:51:32 +0100 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: K.B.Dharun Krishna --- pages/common/ppmdraw.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/ppmdraw.md b/pages/common/ppmdraw.md index 97245abcea2380..bab9f8c07f02ac 100644 --- a/pages/common/ppmdraw.md +++ b/pages/common/ppmdraw.md @@ -4,10 +4,10 @@ > Documentation on the utilized scripting language can be found by following the link below. > More information: . -- Draw on the specified PPM image by execting the supplied script: +- Draw on the specified PPM image by executing the supplied script: `ppmdraw -script '{{setpos 50 50; text_here "hello!"; }}' {{path/to/image.pnm}} > {{path/to/output.pnm}}` -- Draw on the specified PPM image by execting the script in the specified file: +- Draw on the specified PPM image by executing the script in the specified file: `ppmdraw -scriptfile {{path/to/script}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`