From 837be259dcf3591e99ac5158b3936c934679b0b9 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 27 Sep 2024 18:20:29 +0200 Subject: [PATCH 1/2] Double use of citation name Based on #8320 and https://github.com/doxygen/doxygen/pull/11157 creating an assertion for builds from scratch when a citation name is used multiple times. (doxygen cannot catch these here as they are directly written into html code). --- Documentation/doc/scripts/generate_how_to_cite.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/doc/scripts/generate_how_to_cite.py b/Documentation/doc/scripts/generate_how_to_cite.py index b88d25dbd74e..7f025c717486 100644 --- a/Documentation/doc/scripts/generate_how_to_cite.py +++ b/Documentation/doc/scripts/generate_how_to_cite.py @@ -278,7 +278,9 @@ def main(): encoding="utf-8", ) k = 2 + citeDic = {} for line in f: + foundDouble=False match = pattern.match(line) if match: pkg = match.group(1) @@ -304,6 +306,10 @@ def main(): match = pattern_bib.match(pkg_line) if match: bib = match.group(1) + if bib in citeDic: + foundDouble=True + else: + citeDic[bib] = pkg continue assert len(bib) > 0, "Did you forget a \\cgalPkgBib{} in %r?" % filename assert len(authors) > 0, ( @@ -313,6 +319,11 @@ def main(): "Did you forget the anchor in \\cgalPkgDescriptionBegin{} in %r?" % filename ) + assert not foundDouble, ( + """Multiple use of citation name '{}' package '{}' + first occurence package '{}' + """.format(bib,pkg,citeDic[bib]) + ) result_txt += gen_txt_entry(title, authors, bib, anchor, k) # convert title and author to bibtex format title = protect_upper_case(title) From 47dfb09f70a0c62fd13c8a30f37b7fff0ff023e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 7 May 2025 09:23:25 +0200 Subject: [PATCH 2/2] fix double citation --- .../PackageDescription.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Triangulation_on_hyperbolic_surface_2/doc/Triangulation_on_hyperbolic_surface_2/PackageDescription.txt b/Triangulation_on_hyperbolic_surface_2/doc/Triangulation_on_hyperbolic_surface_2/PackageDescription.txt index b051d7fb8808..5a59dd46ecce 100644 --- a/Triangulation_on_hyperbolic_surface_2/doc/Triangulation_on_hyperbolic_surface_2/PackageDescription.txt +++ b/Triangulation_on_hyperbolic_surface_2/doc/Triangulation_on_hyperbolic_surface_2/PackageDescription.txt @@ -27,7 +27,7 @@ \cgalPkgShortInfoBegin \cgalPkgSince{6.1} \cgalPkgDependsOn{\ref PkgCombinatorialMaps} -\cgalPkgBib{cgal:y-t2} +\cgalPkgBib{cgal:ddpt-thss} \cgalPkgLicense{\ref licensesGPL "GPL"} \cgalPkgDemo{2D Triangulations on Hyperbolic Surfaces,nofilefornow.zip} \cgalPkgShortInfoEnd