Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
L
LSINC1113
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Conditions générales et politique de confidentialité
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Benoît Legat
LSINC1113
Validations
8ec7c27a
Valider
8ec7c27a
rédigé
Il y a 7 mois
par
Benoît Legat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Fix biblio
parent
97f583fb
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
utils.jl
+48
-0
48 ajouts, 0 suppression
utils.jl
avec
48 ajouts
et
0 suppression
utils.jl
+
48
−
0
Voir le fichier @
8ec7c27a
begin
begin
# /!\ Important: use this Zotero config with Better BibTeX:
# https://github.com/JuliaDocs/DocumenterCitations.jl/issues/85#issuecomment-2479025454
function
load_biblio!
(
file
=
joinpath
(
@__DIR__
,
"biblio.bib"
);
style
=
DocumenterCitations
.
AlphaStyle
())
@info
(
"Loading bibliography from `
$
file`..."
)
biblio
=
DocumenterCitations
.
CitationBibliography
(
file
;
style
)
DocumenterCitations
.
init_bibliography!
(
style
,
biblio
)
@info
(
"Loading completed."
)
return
biblio
end
citation_label
(
biblio
,
key
::
String
)
=
DocumenterCitations
.
citation_label
(
biblio
.
style
,
biblio
.
entries
[
key
],
biblio
.
citations
)
function
bibcite
(
biblio
,
keys
::
Vector
{
String
})
return
"["
*
join
(
citation_label
.
(
Ref
(
biblio
),
keys
),
", "
)
*
"]"
end
bibcite
(
biblio
,
key
::
String
)
=
bibcite
(
biblio
,
[
key
])
function
bibcite
(
biblio
,
key
::
String
,
what
)
return
"["
*
citation_label
(
biblio
,
key
)
*
"; "
*
what
*
"]"
end
function
citation_reference
(
biblio
,
key
::
String
)
# `DocumenterCitations` writes a `+` in the label after 3 authors so we use
# `et_al = 3` for consistency
DocumenterCitations
.
format_labeled_bibliography_reference
(
biblio
.
style
,
biblio
.
entries
[
key
],
et_al
=
3
)
end
# Markdown creates a `<p>` surrounding it but we don't want that in some cases
_inline_markdown
(
m
::
Markdown
.
MD
)
=
sprint
(
Markdown
.
htmlinline
,
m
.
content
[]
.
content
)
function
_print_entry
(
io
,
biblio
,
key
;
links
=
false
,
kws
...
)
print
(
io
,
'['
)
print
(
io
,
citation_label
(
biblio
,
key
))
print
(
io
,
"] "
)
println
(
io
,
_inline_markdown
(
Markdown
.
parse
(
citation_reference
(
biblio
,
key
))))
end
function
bibrefs
(
biblio
,
key
::
String
;
kws
...
)
io
=
IOBuffer
()
println
(
io
,
"<p style=
\"
font-size:12px
\"
>"
)
_print_entry
(
io
,
biblio
,
key
;
kws
...
)
println
(
io
,
"</p>"
)
return
HTML
(
String
(
take!
(
io
)))
end
function
bibrefs
(
biblio
,
keys
::
Vector
{
String
};
kws
...
)
io
=
IOBuffer
()
println
(
io
,
"<p style=
\"
font-size:12px
\"
>"
)
for
key
in
keys
_print_entry
(
io
,
biblio
,
key
;
kws
...
)
println
(
io
,
"<br/>"
)
end
println
(
io
,
"</p>"
)
return
HTML
(
String
(
take!
(
io
)))
end
function
CenteredBoundedBox
(
str
)
function
CenteredBoundedBox
(
str
)
xbearing
,
ybearing
,
width
,
height
,
xadvance
,
yadvance
=
xbearing
,
ybearing
,
width
,
height
,
xadvance
,
yadvance
=
Luxor
.
textextents
(
str
)
Luxor
.
textextents
(
str
)
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter