about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-12-12 21:57:01 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-12-12 21:57:38 +0100
commit6043bee578b9f41d14b3159a0489ff43479dc9c6 (patch)
tree145288159bb5035d7fa21abf7a52549674b1b831
parent6a2a8b67126231d12e58dd96c47d7baea5eb88b0 (diff)
downloadniedzwiedzinski.cyou-6043bee578b9f41d14b3159a0489ff43479dc9c6.tar.gz
niedzwiedzinski.cyou-6043bee578b9f41d14b3159a0489ff43479dc9c6.zip
Add envelopes.gmi HEAD master
-rw-r--r--src/blog/envelopes.gmi35
-rw-r--r--src/blog/index.gmi1
2 files changed, 36 insertions, 0 deletions
diff --git a/src/blog/envelopes.gmi b/src/blog/envelopes.gmi
new file mode 100644
index 0000000..a53afd1
--- /dev/null
+++ b/src/blog/envelopes.gmi
@@ -0,0 +1,35 @@
+# Generating envelopes using neatroff
+
+Once you learn the basics of how *roff works, which is pretty simple, you can do a lot of things.
+
+There are couple of envelope size, most popular are: 
+- C4, C5, C6 - those correspond to A4, A5, A6 and so on, but are slightly bigger than the A* so letters fit nicely
+- DL - the wide envelope for folded A4 in three
+
+`neatpost`, which is a postprocessor for neatroff, can define envelope size by `neatpost -pc6 -l`
+
+`-pc6` - stands for "paper c6"
+`-l` - stands for landscape
+
+```
+.fp - R Roboto-Regular
+.fp - B Roboto-Bold
+.po 1
+Patryk Niedźwiedziński
+.br
+ul. AAAA 1
+.br
+00-589 Poland
+
+.po 22
+.sp 12
+.ps +4
+.vs +6
+\fBPatryk Niedźwiedziński\fR
+.br
+ul. AAAA 1
+.br
+00-589 Poland
+```
+
+Then render it with `neatroff envelope.tr | neatpdf -pc6 -l > envelope.pdf`
diff --git a/src/blog/index.gmi b/src/blog/index.gmi
index 95149df..cec6072 100644
--- a/src/blog/index.gmi
+++ b/src/blog/index.gmi
@@ -12,6 +12,7 @@ I don't write much. But when I do, I put it here.
 
 => ../feed.xml Feed
 
+=> envelopes.gmi Envelopes in neatroff
 => 2021-06-27.gmi 2021-06-27 | Vim is dangerous
 => 2021-06-08.gmi 2021-06-08 | IPFS
 => 2021-06-05.gmi 2021-06-05 | Kindle is my new reader