diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2014-04-27 11:08:01 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2014-04-27 11:11:40 +0200 |
commit | c933e7859922c04cafcd145090c7546e8d8d2d60 (patch) | |
tree | 941231c7c1e630017f1cdfbbe24693e3f69ea8bd /doc/CMakeLists.txt | |
parent | e167cbb64713ec1feeefaa98594361069c973faa (diff) | |
download | fork-ledger-c933e7859922c04cafcd145090c7546e8d8d2d60.tar.gz fork-ledger-c933e7859922c04cafcd145090c7546e8d8d2d60.tar.bz2 fork-ledger-c933e7859922c04cafcd145090c7546e8d8d2d60.zip |
doc: add BUILD_A4_PDF cmake variable
to create a DIN A4 paper version of the ledger pdf.
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r-- | doc/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index f0ead658..15f1318c 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -58,8 +58,11 @@ foreach(file ${info_files}) if(NOT TEXI2PDF) message(WARNING "Could not find texi2pdf. PDF version of documentation will not be built.") else() + if(BUILD_A4_PDF) + set(papersize --texinfo=@afourpaper) + endif() add_custom_command(OUTPUT ${file_base}.pdf - COMMAND texi2pdf -b -q -o ${file_base}.pdf ${CMAKE_CURRENT_SOURCE_DIR}/${file} + COMMAND texi2pdf ${papersize} -b -q -o ${file_base}.pdf ${CMAKE_CURRENT_SOURCE_DIR}/${file} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file} VERBATIM) list(APPEND ledger_doc_files ${file_base}.pdf) |