[PATCH docs v2 1/2] userguide: Generate userguide.tex to include \tightlist macro

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu May 12 10:40:09 AEST 2016


From: Andrew Jeffery <andrew at aj.id.au>

Allow xelatex to build userguide.pdf without errors.

pandoc injects \tightlist macros into its output files which cause
xelatex to choke. By processing the hand-rolled userguide.tex with
pandoc the definition is injected and xelatex can build the PDF.

Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 82ec1c3..c00b79c 100644
--- a/Makefile
+++ b/Makefile
@@ -6,9 +6,12 @@ all: userguide.pdf
 
 .PHONY: all clean
 
-userguide.pdf: userguide/userguide.tex
+userguide.pdf: userguide.tex
 	$(tex) $^
 
+userguide.tex: userguide/userguide.tex
+	pandoc -f latex -t latex -s -o $@ $^
+
 userguide/userguide.tex: rest-api.tex host-management.tex console.tex code-update.tex
 
 %.tex: %.md
-- 
2.8.1




More information about the openbmc mailing list