From 3790531cad32baec67c87efe218f49f4df7346eb Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Mon, 19 May 2014 19:14:08 +0200
Subject: [PATCH] doc: add more do reporting example

---
 .../dseriesReporting.tex                      | 22 ++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/doc/dseries-and-reporting/dseriesReporting.tex b/doc/dseries-and-reporting/dseriesReporting.tex
index 32155c32c4..5621030a45 100644
--- a/doc/dseries-and-reporting/dseriesReporting.tex
+++ b/doc/dseries-and-reporting/dseriesReporting.tex
@@ -631,6 +631,7 @@
   \frametitle{Create Report of IRFs from \texttt{example1.mod}}
   \begin{itemize}
   \item \texttt{example1.mod} is located in the Dynare \texttt{examples} directory
+  \item The lines below can be added at the end of that file.
   \end{itemize}
   \begin{block}{Create \texttt{dseries} from IRFs}
 \begin{verbatim}
@@ -660,8 +661,21 @@
                                `showGrid', false, ...
                                `showZeroLine', true);
 @#  endfor
+\end{verbatim}
+}
+  \end{block}
+\end{frame}
+
+
+\begin{frame}[fragile=singleslide]
+  \frametitle{Create Report of IRFs from \texttt{example1.mod}}
+  \begin{block}{Populate Report (continued)}
+\small{
+\begin{verbatim}
+    report = report.addVspace(`number', 2);
     report = report.addSection(`cols', 1);
-    report = report.addTable();
+    report = report.addTable(`range', dates(`2022q1'):dates(`2024q1'),...
+                             `precision', 5);
 @#  for var in endovars
       report = report.addSeries(`data', shock@{shock}.@{var});
 @#  endfor
@@ -669,16 +683,14 @@
 \end{verbatim}
 }
   \end{block}
-\end{frame}
-
 
-\begin{frame}[fragile=singleslide]
-  \frametitle{Create Report of IRFs from \texttt{example1.mod}}
   \begin{block}{Compile Report}
+\small{
 \begin{verbatim}
 report.write();
 report.compile();
 \end{verbatim}
+}
   \end{block}
 \end{frame}
 \end{document}
-- 
GitLab