From a73dcd3a627bf1de36025cc68daf596bc74c9b96 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 2 Sep 2021 12:30:00 +0200
Subject: [PATCH] do round bracketing

---
 doc/manual/source/conf.py            | 32 ++++++++++++++++++++++++++--
 doc/manual/source/the-model-file.rst |  2 +-
 2 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/doc/manual/source/conf.py b/doc/manual/source/conf.py
index 50688bdfae..5e8bf7f476 100644
--- a/doc/manual/source/conf.py
+++ b/doc/manual/source/conf.py
@@ -22,15 +22,43 @@ import sys
 
 sys.path.insert(0, os.path.abspath('../utils'))
 
+# define author_year_round style, see https://github.com/mcmtroffaes/sphinxcontrib-bibtex/blob/develop/test/roots/test-citation_style_round_brackets/conf.py
+
+import dataclasses
+import sphinxcontrib.bibtex.plugin
+
+from sphinxcontrib.bibtex.style.referencing import BracketStyle
+from sphinxcontrib.bibtex.style.referencing.author_year \
+    import AuthorYearReferenceStyle
+
+my_bracket_style = BracketStyle(
+    left='(',
+    right=')',
+)
+
+@dataclasses.dataclass
+class MyReferenceStyle(AuthorYearReferenceStyle):
+    bracket_parenthetical: BracketStyle = my_bracket_style
+    bracket_textual: BracketStyle = my_bracket_style
+    bracket_author: BracketStyle = my_bracket_style
+    bracket_label: BracketStyle = my_bracket_style
+    bracket_year: BracketStyle = my_bracket_style
+
+
+sphinxcontrib.bibtex.plugin.register_plugin(
+    'sphinxcontrib.bibtex.style.referencing',
+    'author_year_round', MyReferenceStyle)
+
+
 extensions = ['sphinx.ext.autodoc',
               'sphinx.ext.mathjax',
               'sphinxcontrib.bibtex']
 
 bibtex_bibfiles = ['../../dr.bib']
 
-bibtex_default_style = 'unsrt'
+bibtex_default_style = 'alpha'
 
-bibtex_reference_style = 'author_year'
+bibtex_reference_style = 'author_year_round'
 
 source_suffix = '.rst'
 
diff --git a/doc/manual/source/the-model-file.rst b/doc/manual/source/the-model-file.rst
index 7c699617cb..cb584182c6 100644
--- a/doc/manual/source/the-model-file.rst
+++ b/doc/manual/source/the-model-file.rst
@@ -8137,7 +8137,7 @@ and :cite:t:`RugeMurcia:2012`, whereas the one for GMM is adapted from
 the perturbation approximation, so it is advised to tune this as much as
 possible (see :ref:`stoch-sol-simul`). The method of moments estimator is consistent
 and asymptotically normally distributed given certain regularity conditions
-(see :cite:t:`Duffie1993` for SMM and :cite:t:`Hansen:1982` for GMM).
+(see :cite:t:`Duffie:1993` for SMM and :cite:t:`Hansen:1982` for GMM).
 For instance, it is required to have at least as many moment conditions as
 estimated parameters (over-identified or just identified). Moreover, the
 Jacobian of the moments with respect to the estimated parameters needs to
-- 
GitLab