Small fixes (-P -e and image), eqn mentioned in the readme.

This commit is contained in:
Karchnu 2022-01-07 10:36:37 +01:00
parent e4eb27bf93
commit 6866dc10ca
3 changed files with 13 additions and 3 deletions

View File

@ -53,7 +53,8 @@ REFER = refer $(REFER_OPTS)
# -U => unsafe (because of PDF inclusion) # -U => unsafe (because of PDF inclusion)
# -Tpdf => output device is PDF # -Tpdf => output device is PDF
# -mspdf => include PDF (so, images converted in PDF) in the document # -mspdf => include PDF (so, images converted in PDF) in the document
GROFF_OPTS ?= -ms -t -Tpdf -U -mspdf -mpdfmark -M ~/ # -P -e => provide "-e" to gropdf to embed fonts
GROFF_OPTS ?= -ms -t -Tpdf -U -mspdf -mpdfmark -M ~/ -P -e
GROFF = groff $(GROFF_OPTS) GROFF = groff $(GROFF_OPTS)
$(SRC).pdf: $(SRC).pdf:

View File

@ -4,6 +4,7 @@ This repository is an introduction to the good old tools to produce documents:
- `roff` as the language to describe documents (`groff` is the implementation) - `roff` as the language to describe documents (`groff` is the implementation)
- `tbl` and **hdtbl** for tables - `tbl` and **hdtbl** for tables
- `eqn` for math equations
- `pic` for drawing images - `pic` for drawing images
- `grap` for drawing graphs - `grap` for drawing graphs
- `refer` for handling references and bibliography - `refer` for handling references and bibliography
@ -21,7 +22,12 @@ Furthermore, this repository includes:
https://t.karchnu.fr/doc/grofftut.pdf https://t.karchnu.fr/doc/grofftut.pdf
(Read this document on a PDF viewer, not directly in your browser!)
# Limitations # Limitations
Images are poorly handled, and they aren't easily managed with `roff` by default. Images are poorly handled, and they aren't easily managed with `roff` by default.
Some macros exist to do it properly, but it still is to include in custom macros then to document. Some macros exist to do it properly, but it still is to include in custom macros then to document.
Browser preview is ugly as fuck.
It may have something to do with font embedding, I have to investigate, but right now you just can't have a nice preview on a browser.

View File

@ -482,9 +482,12 @@ Only PDF can be included, so images need to be converted beforehand.
.METAINFO2 .METAINFO2
. .
.nr figurespace 15 .nr figurespace 15
.sp \n[figurespace] .\" KS and KE: keep different stuff together (no page break)
.KS
.PDFPIC -R "./are-you.pdf" 3.2 .PDFPIC -R "./are-you.pdf" 3.2
.sv \n[figurespace] .sp \n[figurespace]
.KE
.\".sv \n[figurespace]
.METAINFO1 .METAINFO1
Note: for now, on my system, I need a hack. Note: for now, on my system, I need a hack.