From a8646d51062a45c2ca15b1c7c91814df3f0c6c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-David=20Collin?= Date: Mon, 21 Jul 2025 16:29:00 +0200 Subject: [PATCH 1/4] made the link on the news page to the actual publication item --- _quarto.yml | 1 + custom.scss | 32 ++++++++++++++++++++++++++++++++ index.qmd | 12 ++++-------- site/news.ejs | 20 ++++++++++++++++++++ site/publications.ejs | 27 +++++++++++++++++++++++++-- 5 files changed, 82 insertions(+), 10 deletions(-) create mode 100644 site/news.ejs diff --git a/_quarto.yml b/_quarto.yml index 76296f3..ad61948 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -48,6 +48,7 @@ website: href: site/various/privacy.qmd - text: Terms of Use href: site/various/terms.qmd + center: "" format: html: theme: diff --git a/custom.scss b/custom.scss index 61b877f..8bc0214 100644 --- a/custom.scss +++ b/custom.scss @@ -118,3 +118,35 @@ div.quarto-post { p { text-align: justify; } + +// Ensure anchor scrolling works inside grid/flex containers +.publication-anchor, a[id] { + scroll-margin-top: 80px; // Adjust to your header height +} + +@media (max-width: 600px) { + a[id], .publication-anchor { + scroll-margin-top: 120px; // or more, adjust to your mobile header height + } +} + +.nav-footer-center { + height: 0px; + max-height: 0px; + overflow: hidden; + display: flex; + justify-content: center; +} + +.nav-footer-left { + display: inline-block; + margin: 0 10px; + font-size: 0.9em; +} + +@media screen and (max-width: 768px) { + .nav-footer-center { + display: none; // Hide left footer on small screens + } + +} \ No newline at end of file diff --git a/index.qmd b/index.qmd index c1bc175..db56f8d 100644 --- a/index.qmd +++ b/index.qmd @@ -3,14 +3,10 @@ description:

COMPUTO

A journal of the F Statistical Society SFdS - ISSN 2824-7795 listing: - contents: news.yml - sort: date desc - page-size: 5 - fields: - - date - - description - feed: - items: 5 + - id: published + template: site/news.ejs + contents: site/published.yml + sort: date desc --- :::: {layout="[30,70]" style="display: flex; margin-bottom: 3em;"} diff --git a/site/news.ejs b/site/news.ejs new file mode 100644 index 0000000..8322b1c --- /dev/null +++ b/site/news.ejs @@ -0,0 +1,20 @@ +```{=html} +<% +// Only show articles from this year (2025) and not drafts +const currentYear = new Date().getFullYear(); +for (const item of items) { + if (!item.draft && item.year == currentYear) { %> + + <%= item.date %> — + <%= item.title %> + <% if (item.authors) { %> + by <%= item.authors %> + <% } %> + + +<% } +} %> +``` + diff --git a/site/publications.ejs b/site/publications.ejs index 8e167f4..a5b2851 100644 --- a/site/publications.ejs +++ b/site/publications.ejs @@ -15,13 +15,14 @@ for (const item of items) {
<% currentYear = item.year; } %> +
-
+
@@ -137,5 +138,27 @@ for (const item of items) { // Show a temporary alert alert('BibTeX citation copied to clipboard!'); } + + document.addEventListener("DOMContentLoaded", function() { + if (window.location.hash) { + var el = document.getElementById(window.location.hash.substring(1)); + if (el) { + el.scrollIntoView({ behavior: "auto", block: "center" }); + } + } + }); +document.addEventListener("DOMContentLoaded", function() { + function scrollToAnchor() { + if (window.location.hash) { + var el = document.getElementById(window.location.hash.substring(1)); + if (el) { + el.scrollIntoView({ behavior: "auto", block: "center" }); + } + } + } + // Try immediately, then again after a short delay (for mobile/layout shifts) + scrollToAnchor(); + setTimeout(scrollToAnchor, 400); +}); ``` \ No newline at end of file From 6bd276510643e5587ec78cc788917723d84659ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-David=20Collin?= Date: Tue, 22 Jul 2025 11:32:27 +0200 Subject: [PATCH 2/4] cosmetics + force doi in getcomputo-pub.fsx, fix badge alignment in publications.ejs --- getcomputo-pub.fsx | 1 + site/mock-papers.yml | 2 ++ site/publications.ejs | 39 ++++++++++++++++++++------------------- site/published.yml | 17 +++++++++++++++++ 4 files changed, 40 insertions(+), 19 deletions(-) diff --git a/getcomputo-pub.fsx b/getcomputo-pub.fsx index 4e9fb93..dce48c1 100644 --- a/getcomputo-pub.fsx +++ b/getcomputo-pub.fsx @@ -153,6 +153,7 @@ let extractCitation (d: Dictionary) = {| title = d |> getSomeString "title" authors = d |> getAuthors journal = d |> getAnotherThing "citation" |> getSomeString "container-title" + doi = d |> getAnotherThing "citation" |> getSomeString "doi" year = dateTime.Year date = dateTime.ToString("yyyy-MM-dd") description = d |> getSomeString "description" diff --git a/site/mock-papers.yml b/site/mock-papers.yml index ccd4b2a..c2c2964 100644 --- a/site/mock-papers.yml +++ b/site/mock-papers.yml @@ -23,6 +23,7 @@ date: 2008-08-11 description: > This page is a reworking of the original t-SNE article using the Computo template. It aims to help authors submitting to the journal by using some advanced formatting features. We warmly thank the authors of t-SNE and the editor of JMLR for allowing us to use their work to illustrate the Computo spirit. + doi: '' draft: false journal: Computo pdf: '' @@ -55,6 +56,7 @@ date: 2008-08-11 description: > This page is a reworking of the original t-SNE article using the Computo template. It aims to help authors submitting to the journal by using some advanced formatting features. We warmly thank the authors of t-SNE and the editor of JMLR for allowing us to use their work to illustrate the Computo spirit. + doi: '' draft: false journal: Computo pdf: '' diff --git a/site/publications.ejs b/site/publications.ejs index a5b2851..861d356 100644 --- a/site/publications.ejs +++ b/site/publications.ejs @@ -7,6 +7,7 @@ // Group items by year let currentYear = null; for (const item of items) { + let doiurl = item.url === "" ? "https://doi.org/" + item.doi : item.url; if (item.year !== currentYear) { if (currentYear !== null) { %>
@@ -16,33 +17,33 @@ for (const item of items) { <% currentYear = item.year; } %> -
-
-
-
-
- - Build Status +
+
+
+
+ -
-
- <%= item.title %> +
+
+ <%= item.title %>
<% if (item.authors) { %> -

<%= item.authors %>

+

<%= item.authors %>

<% } %> -

Computo, <%= item.year %>.

-
- <% if (item["abstract'"] && item["abstract'"].trim()) { %> - +

Computo, <%= item.year %>.

+
+ <% if (item["abstract'" ] && item["abstract'"].trim()) { %> + <% } %> - HTML + HTML <% if (item.pdf && item.pdf.trim()) { %> - PDF + PDF <% } %> - GIT REPO - + GIT REPO +
diff --git a/site/published.yml b/site/published.yml index 69796c9..a7b108f 100644 --- a/site/published.yml +++ b/site/published.yml @@ -10,6 +10,7 @@ authors: Julien Jacques and Thomas Brendan Murphy date: 2025-07-01 description: '' + doi: 10.57750/6v7b-8483 draft: false journal: Computo pdf: '' @@ -41,6 +42,7 @@ authors: Thomas Ferté, Kalidou Ba, Dan Dutartre, Pierrick Legrand, Vianney Jouhet, Rodolphe Thiébaut, Xavier Hinaut and Boris P Hejblum date: 2025-06-27 description: '' + doi: 10.57750/arxn-6z34 draft: false journal: Computo pdf: '' @@ -68,6 +70,7 @@ date: 2025-01-27 description: > This document provides a full description of the Stochastic Individual-Based Models (IBMs) that can be implemented in the IBMPopSim package. A unified mathematical and simulation framework is given, with a detailed description of the simulation algorithm. Examples of applications for the package are also provided, showing the performance and flexibility of IBMPopSim. + doi: 10.57750/sfxn-1t05 draft: false journal: Computo pdf: '' @@ -96,6 +99,7 @@ authors: Félix Laplante and Christophe Ambroise date: 2024-12-13 description: Scalable Spectral Clustering Based on Vector Quantization + doi: 10.57750/1gr8-bk61 draft: false journal: Computo pdf: '' @@ -124,6 +128,7 @@ authors: Herbert Susmann, Antoine Chambaz and Julie Josse date: 2024-07-18 description: '' + doi: 10.57750/edan-5f53 draft: false journal: Computo pdf: '' @@ -164,6 +169,7 @@ authors: Juliette Legrand, François Pimont, Jean-Luc Dupuy and Thomas Opitz date: 2024-07-12 description: '' + doi: 10.57750/4y84-4t68 draft: false journal: Computo pdf: '' @@ -195,6 +201,7 @@ authors: Liudmila Pishchagina, Guillem Rigaill and Vincent Runge date: 2024-07-12 description: '' + doi: 10.57750/9vvx-eq57 draft: false journal: Computo pdf: '' @@ -223,6 +230,7 @@ Sources of error can arise from the workers' skills, but also from the intrinsic difficulty of the task. We introduce `peerannot`, a Python library for managing and learning from crowdsourced labels of image classification tasks. + doi: 10.57750/qmaz-gr91 draft: false journal: Computo pdf: '' @@ -250,6 +258,7 @@ date: 2024-03-11 description: > This document provides a dimension-reduction strategy in order to improve the performance of importance sampling in high dimensions. + doi: 10.57750/jjza-6j82 draft: false journal: Computo pdf: https://computo.sfds.asso.fr/published-202402-elmasri-optimal/published-202312-elmasri-optimal.pdf @@ -268,6 +277,7 @@ authors: Hamza Adrat and Laurent Decreusefond date: 2024-01-25 description: '' + doi: 10.57750/3r07-aw28 draft: false journal: Computo pdf: '' @@ -321,6 +331,7 @@ authors: Armand Favrot and David Makowski date: 2024-01-09 description: '' + doi: 10.57750/6cgk-g727 draft: false journal: Computo pdf: '' @@ -355,6 +366,7 @@ authors: Alice Cleynen, Louis Raynal and Jean-Michel Marin date: 2023-12-14 description: '' + doi: 10.57750/3j8m-8d57 draft: false journal: Computo pdf: '' @@ -386,6 +398,7 @@ authors: Maud Delattre and Estelle Kuhn date: 2023-11-21 description: '' + doi: 10.57750/r5gx-jk62 draft: false journal: Computo pdf: https://computo.sfds.asso.fr/published-202311-delattre-fim/published-202311-delattre-fim.pdf @@ -419,6 +432,7 @@ authors: Edmond Sanou, Christophe Ambroise and Geneviève Robin date: 2023-06-28 description: '' + doi: 10.57750/1f4p-7955 draft: false journal: Computo pdf: https://computo.sfds.asso.fr/published-202306-sanou-multiscale_glasso/published-202306-sanou-multiscale_glasso.pdf @@ -449,6 +463,7 @@ authors: Mathis Chagneux, Sylvain Le Corff, Pierre Gloaguen, Charles Ollion, Océane Lepâtre and Antoine Bruge date: 2023-02-16 description: '' + doi: 10.57750/845m-f805 draft: false journal: Computo pdf: https://computo.sfds.asso.fr/published-202301-chagneux-macrolitter/published-202301-chagneux-macrolitter.pdf @@ -473,6 +488,7 @@ date: 2023-01-12 description: > The package $\textsf{clayton}$ is designed to be intuitive, user-friendly, and efficient. It offers a wide range of copula models, including Archimedean, Elliptical, and Extreme. The package is implemented in pure $\textsf{Python}$, making it easy to install and use. + doi: 10.57750/4szh-t752 draft: false journal: Computo pdf: https://computo.sfds.asso.fr/published-202301-boulin-clayton/published-202301-boulin-clayton.pdf @@ -509,6 +525,7 @@ authors: Olivier Gimenez, Maëlis Kervellec, Jean-Baptiste Fanjul, Anna Chaine, Lucile Marescot, Yoann Bollet and Christophe Duchamp date: 2022-04-22 description: '' + doi: 10.57750/yfm2-5f45 draft: false journal: Computo pdf: '' From 49c226749a32f1e1f30a79edeb836358f3665eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-David=20Collin?= Date: Tue, 22 Jul 2025 12:01:25 +0200 Subject: [PATCH 3/4] updated publications metadata to include DOI --- site/published.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/site/published.yml b/site/published.yml index a7b108f..fae667b 100644 --- a/site/published.yml +++ b/site/published.yml @@ -105,7 +105,7 @@ pdf: '' repo: published-202412-ambroise-spectral title: Spectral Bridges - url: https://computo.sfds.asso.fr/published-202412-ambroise-spectral/ + url: '' year: 2024 - abstract': >- Conformal Inference (CI) is a popular approach for @@ -261,10 +261,10 @@ doi: 10.57750/jjza-6j82 draft: false journal: Computo - pdf: https://computo.sfds.asso.fr/published-202402-elmasri-optimal/published-202312-elmasri-optimal.pdf + pdf: '' repo: published-202402-elmasri-optimal title: Optimal projection for parametric importance sampling in high dimensions - url: https://computo.sfds.asso.fr/published-202402-elmasri-optimal/ + url: '' year: 2024 - abstract': >- In numerous applications, cloud of points do seem to @@ -283,7 +283,7 @@ pdf: '' repo: published-202401-adrat-repulsion title: Point Process Discrimination According to Repulsion - url: https://computo.sfds.asso.fr/published_202401_adrat_repulsion/ + url: '' year: 2024 - abstract': >- In plant epidemiology, pest abundance is measured in field @@ -401,10 +401,10 @@ doi: 10.57750/r5gx-jk62 draft: false journal: Computo - pdf: https://computo.sfds.asso.fr/published-202311-delattre-fim/published-202311-delattre-fim.pdf + pdf: '' repo: published-202311-delattre-fim title: Computing an empirical Fisher information matrix estimate in latent variable models through stochastic approximation - url: https://computo.sfds.asso.fr/published-202311-delattre-fim/ + url: '' year: 2023 - abstract': >- Gaussian Graphical Models (GGMs) are widely used in @@ -435,10 +435,10 @@ doi: 10.57750/1f4p-7955 draft: false journal: Computo - pdf: https://computo.sfds.asso.fr/published-202306-sanou-multiscale_glasso/published-202306-sanou-multiscale_glasso.pdf + pdf: '' repo: published-202306-sanou-multiscale_glasso title: Inference of Multiscale Gaussian Graphical Models - url: https://computo.sfds.asso.fr/published-202306-sanou-multiscale_glasso/ + url: '' year: 2023 - abstract': >- Litter is a known cause of degradation in marine @@ -466,10 +466,10 @@ doi: 10.57750/845m-f805 draft: false journal: Computo - pdf: https://computo.sfds.asso.fr/published-202301-chagneux-macrolitter/published-202301-chagneux-macrolitter.pdf + pdf: '' repo: published-202301-chagneux-macrolitter title: 'Macrolitter video counting on riverbanks using state space models and moving cameras ' - url: https://computo.sfds.asso.fr/published-202301-chagneux-macrolitter/ + url: '' year: 2023 - abstract': >- The package \$\textbackslash textsf\{clayton\}\$ is @@ -491,10 +491,10 @@ doi: 10.57750/4szh-t752 draft: false journal: Computo - pdf: https://computo.sfds.asso.fr/published-202301-boulin-clayton/published-202301-boulin-clayton.pdf + pdf: '' repo: published-202301-boulin-clayton title: 'A Python Package for Sampling from Copulae: clayton' - url: https://computo.sfds.asso.fr/published-202301-boulin-clayton/ + url: '' year: 2023 - abstract': >- Deep learning is used in computer vision problems with From 6f0782575ec14f8f557bdd5ec017869382ac6eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-David=20Collin?= Date: Wed, 23 Jul 2025 11:12:03 +0200 Subject: [PATCH 4/4] Enhance publication display: update DOI handling, improve layout, and add source links --- site/publications.ejs | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/site/publications.ejs b/site/publications.ejs index 861d356..fa6f221 100644 --- a/site/publications.ejs +++ b/site/publications.ejs @@ -8,6 +8,8 @@ let currentYear = null; for (const item of items) { let doiurl = item.url === "" ? "https://doi.org/" + item.doi : item.url; + let bibtitle = item.title.replace(/'/g, "\\'"); + let bibauthors = item.authors.replace(/'/g, "\\'"); if (item.year !== currentYear) { if (currentYear !== null) { %>
@@ -23,27 +25,34 @@ for (const item of items) {
-
+ +
+ <%= item.title %>
<% if (item.authors) { %>

<%= item.authors %>

<% } %> -

Computo, <%= item.year %>.

+
+ Computo, <%= item.year %>. + <%= doiurl %> +
- <% if (item["abstract'" ] && item["abstract'"].trim()) { %> + Preview + + + + Sources (Git) +