mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Add opencv_cheatsheet.pdf to documentation build and silence Latex output
This commit is contained in:
parent
101e9bd456
commit
e9301c3c4b
@ -60,7 +60,7 @@ if(BUILD_DOCS AND HAVE_SPHINX)
|
|||||||
|
|
||||||
configure_file("${OpenCV_SOURCE_DIR}/modules/refman.rst.in" "${OpenCV_SOURCE_DIR}/modules/refman.rst" IMMEDIATE @ONLY)
|
configure_file("${OpenCV_SOURCE_DIR}/modules/refman.rst.in" "${OpenCV_SOURCE_DIR}/modules/refman.rst" IMMEDIATE @ONLY)
|
||||||
|
|
||||||
file(GLOB_RECURSE OPENCV_FILES_UG user_guide/*.rst)
|
file(GLOB_RECURSE OPENCV_FILES_UG user_guide/*.rst)
|
||||||
file(GLOB_RECURSE OPENCV_FILES_TUT tutorials/*.rst)
|
file(GLOB_RECURSE OPENCV_FILES_TUT tutorials/*.rst)
|
||||||
file(GLOB_RECURSE OPENCV_FILES_TUT_PICT tutorials/*.png tutorials/*.jpg)
|
file(GLOB_RECURSE OPENCV_FILES_TUT_PICT tutorials/*.png tutorials/*.jpg)
|
||||||
|
|
||||||
@ -74,14 +74,21 @@ if(BUILD_DOCS AND HAVE_SPHINX)
|
|||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/mymath.sty ${CMAKE_CURRENT_BINARY_DIR}
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/mymath.sty ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/patch_refman_latex.py" opencv2refman.tex
|
COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/patch_refman_latex.py" opencv2refman.tex
|
||||||
COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/patch_refman_latex.py" opencv2manager.tex
|
COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/patch_refman_latex.py" opencv2manager.tex
|
||||||
COMMAND ${PDFLATEX_COMPILER} opencv2refman.tex
|
COMMAND ${CMAKE_COMMAND} -E echo "Generating opencv2refman.pdf"
|
||||||
COMMAND ${PDFLATEX_COMPILER} opencv2refman.tex
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode opencv2refman.tex
|
||||||
COMMAND ${PDFLATEX_COMPILER} opencv2manager.tex
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode opencv2refman.tex
|
||||||
COMMAND ${PDFLATEX_COMPILER} opencv2manager.tex
|
COMMAND ${CMAKE_COMMAND} -E echo "Generating opencv2manager.pdf"
|
||||||
COMMAND ${PDFLATEX_COMPILER} opencv_user.tex
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode opencv2manager.tex
|
||||||
COMMAND ${PDFLATEX_COMPILER} opencv_user.tex
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode opencv2manager.tex
|
||||||
COMMAND ${PDFLATEX_COMPILER} opencv_tutorials.tex
|
COMMAND ${CMAKE_COMMAND} -E echo "Generating opencv_user.pdf"
|
||||||
COMMAND ${PDFLATEX_COMPILER} opencv_tutorials.tex
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode opencv_user.tex
|
||||||
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode opencv_user.tex
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E echo "Generating opencv_tutorials.pdf"
|
||||||
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode opencv_tutorials.tex
|
||||||
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode opencv_tutorials.tex
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E echo "Generating opencv_cheatsheet.pdf"
|
||||||
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode "${CMAKE_CURRENT_SOURCE_DIR}/opencv_cheatsheet.tex"
|
||||||
|
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode "${CMAKE_CURRENT_SOURCE_DIR}/opencv_cheatsheet.tex"
|
||||||
DEPENDS ${OPENCV_DOC_DEPS}
|
DEPENDS ${OPENCV_DOC_DEPS}
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
COMMENT "Generating the PDF Manuals"
|
COMMENT "Generating the PDF Manuals"
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
\usepackage[pdftex]{color,graphicx}
|
\usepackage[pdftex]{color,graphicx}
|
||||||
\usepackage[landscape]{geometry}
|
\usepackage[landscape]{geometry}
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
\hypersetup{colorlinks=true, filecolor=black, linkcolor=black, urlcolor=blue, citecolor=black}
|
\hypersetup{colorlinks=true, filecolor=black, linkcolor=black, urlcolor=blue, citecolor=black}
|
||||||
\graphicspath{{./images/}}
|
\graphicspath{{./images/}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user