[PATCH docs] userguide: Generate userguide.tex to include \tightlist macro

OpenBMC Patches openbmc-patches at stwcx.xyz
Mon May 9 15:50:10 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