Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
John Stef committed Sep 24, 2021
1 parent 844b367 commit ce2f1dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flex_sensor_pdf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ all: $(IMAGES) flex_sensor.pdf
convert $< $@

.ms.ps:
GHLENABLECOLOR=0 && soelim -r $< | ghighlight | groff -Geptk -ms -Tps > $@
groff -Geptk -ms -Tps $< > $@

.ps.pdf:
ps2pdf $< > $@
Expand Down
11 changes: 11 additions & 0 deletions flex_sensor_pdf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Flex Sensor PDF example

In this example I am using groff with a custom postscript
[circuitslib](https://github.com/johnstef99/circuitslib-pic) library I created
to draw simple circuits with groff. You have to download it separately. I am
also using grap (the `-G` flag) preprocessor to draw the graphs you see in the
pdf.

The [Makefile](Makefile) is very simple, it converts all jpgs to eps (filetype
that groff supports) using imagemagic(`convert`) and then uses `groff` to create a
postscript file that finally is passed to `ps2pdf` to generate the pdf file.

0 comments on commit ce2f1dd

Please sign in to comment.