Skip to content
Snippets Groups Projects
Commit a47fcfb9 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix userdoc generation and set "--no-exec-stat" option for doc

parent e84e6de3
No related branches found
No related tags found
1 merge request!175Print execution statistics at the end of execution
...@@ -97,7 +97,19 @@ if (EMACS AND GNUPLOT_FOUND AND GMSH) ...@@ -97,7 +97,19 @@ if (EMACS AND GNUPLOT_FOUND AND GMSH)
COMMENT "Building user documentation in doc/userdoc.pdf" COMMENT "Building user documentation in doc/userdoc.pdf"
VERBATIM) VERBATIM)
add_custom_target(userdoc-pdf DEPENDS pugsdoc-dir "${PUGS_BINARY_DIR}/doc/userdoc.pdf" ) configure_file("${PUGS_SOURCE_DIR}/doc/build-userdoc-pdf.sh.in"
"${PUGS_BINARY_DIR}/doc/build-userdoc-pdf.sh"
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
@ONLY)
set_source_files_properties(
${PUGS_BINARY_DIR}/build-pdf.sh2
PROPERTIES
GENERATED TRUE
HEADER_FILE_ONLY TRUE
)
add_custom_target(userdoc-pdf DEPENDS pugsdoc-dir "${PUGS_BINARY_DIR}/doc/userdoc.pdf" "${PUGS_BINARY_DIR}/doc/build-userdoc-pdf.sh")
add_dependencies(userdoc userdoc-pdf) add_dependencies(userdoc userdoc-pdf)
......
#! /usr/bin/env bash
@PDFLATEX_COMPILER@ -shell-escape -interaction nonstopmode userdoc
@PDFLATEX_COMPILER@ -shell-escape -interaction nonstopmode userdoc
@PDFLATEX_COMPILER@ -shell-escape -interaction nonstopmode userdoc
...@@ -64,9 +64,7 @@ ...@@ -64,9 +64,7 @@
(setq org-latex-listings 'minted (setq org-latex-listings 'minted
org-latex-packages-alist '(("" "minted")) org-latex-packages-alist '(("" "minted"))
org-latex-pdf-process org-latex-pdf-process
'("cd ${PUGS_BINARY_DIR}/doc; pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" '("cd ${PUGS_BINARY_DIR}/doc; ./build-userdoc-pdf.sh"))
"cd ${PUGS_BINARY_DIR}/doc; pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"cd ${PUGS_BINARY_DIR}/doc; pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
(setq python-indent-guess-indent-offset-verbose nil) (setq python-indent-guess-indent-offset-verbose nil)
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
(with-temp-file in-file (with-temp-file in-file
(insert body)) (insert body))
(org-babel-eval (org-babel-eval
(format "${PUGS} --no-preamble --no-color %s 2>&1 | sed 's@/.*\.pgs:@test.pgs:@'" (format "${PUGS} --no-exec-stat --no-preamble --no-color --threads=1 %s 2>&1 | sed 's@/.*\.pgs:@test.pgs:@'"
(org-babel-process-file-name in-file)) (org-babel-process-file-name in-file))
""))) "")))
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
(with-temp-file in-file (with-temp-file in-file
(insert body)) (insert body))
(org-babel-eval (org-babel-eval
(format "${PUGS} --no-preamble --no-color %s" (format "${PUGS} --no-exec-stat --no-preamble --no-color --threads=1 %s"
(org-babel-process-file-name in-file)) (org-babel-process-file-name in-file))
""))) "")))
......
...@@ -391,8 +391,8 @@ answer a specific need. It must not be done /because it is possible to ...@@ -391,8 +391,8 @@ answer a specific need. It must not be done /because it is possible to
do it/! do it/!
#+begin_verse #+begin_verse
When designing a language, the difficulty is not to offer new functionalities,\\ When designing a language, the difficulty is not to offer new functionalities,
it is generally to decide not to offer them.\\ it is generally to decide not to offer them.
--- Bjarne Stroustrup, C++ conference 2021. --- Bjarne Stroustrup, C++ conference 2021.
#+end_verse #+end_verse
...@@ -1406,7 +1406,7 @@ they follow a few rules. ...@@ -1406,7 +1406,7 @@ they follow a few rules.
\right. \right.
\end{equation*} \end{equation*}
#+end_src #+end_src
\\
This is also the case for ~string~ values: only allowed operators are This is also the case for ~string~ values: only allowed operators are
~==~ and ~!=~. ~==~ and ~!=~.
#+begin_src latex :results drawer :exports results #+begin_src latex :results drawer :exports results
...@@ -3136,7 +3136,6 @@ available in parallel ...@@ -3136,7 +3136,6 @@ available in parallel
***** Item types ***** Item types
\\
The following functions are used to designate a specific ~item_type~ The following functions are used to designate a specific ~item_type~
- ~cell: void -> item_type~ - ~cell: void -> item_type~
- ~face: void -> item_type~ - ~face: void -> item_type~
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment