Тёмный

[TUTO] Renvois automatiques / Automatic cross-references using Zotero bibliography and Word 

Iloho
Подписаться 36
Просмотров 2,2 тыс.
50% 1

Rappel : les numéros des citations et des sources doivent etre entre crochets : [n] (utilisez les préférences IEEE)
si vous ne voulez pas la couleur bleue vous pouvez l'enlever à la ligne 38 du code
La bibliographie doit être à la fin (du moins il ne doit pas ya voir d'autres numéros de la forme [n] après)
N'oubliez pas de changer le nombre de sources !
Gentle reminder : use the preferences IEEE or every citations and their sources in the bibliography has their number to be under [n]
If you don't want the blue color ou can erase it at the line 38 of the following code.
Your bibliography has to be at the end (in fact it has to be no other numbers like that : "[n]" after)
Don't forget to change the number of sources ! "NombreDeSources = ..."
Copier le code a partir de "Sub Links()"
Copy from "Sub Links()" to the end
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
Sub Links()
'
' Links Macro
' Déclaration des variables
Dim n As Integer
Dim i As Integer
Dim x As Integer
Dim NombreDeSources As Integer
'Programme à utiliser avec Zotero avec les préférences de document : IEEE
'///////////////////////////////////CHANGER ICI//////////////////////////////////////////////////////
NombreDeSources = 1 'nombre de sources
'////////////////////////////////////////////////////////////////////////////////////////////////////
For n = 1 To NombreDeSources
'Sélection de la page
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:=1
Selection.Find.ClearFormatting
'Recherche et sélection des sources
With Selection.Find
.Text = "[" & n & "]"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
For x = 1 To 10
Selection.Find.Execute
Selection.Font.ColorIndex = wdBlue 'changement de couleur des numéros en bleu (facultatif)
Next x
'Création des signets
With ActiveDocument.Bookmarks
.Add Range:=Selection.Range, Name:="Source" & n
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
'Creation des liens (une même source peut-etre utilisée jusqu'à 10 fois pour que le programme
'le capte tjs sinon changez le nombre après "For i = 1 To ...")
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:=1
Selection.Find.ClearFormatting
For i = 1 To 10
If Selection.Find.Execute And Not (Selection.Bookmarks.Exists("Source" & n)) Then
Selection.InsertCrossReference ReferenceType:="Signet", ReferenceKind:= _
wdContentText, ReferenceItem:="Source" & n, InsertAsHyperlink:=True, _
IncludePosition:=False, SeparateNumbers:=False, SeparatorString:=" "
End If
Next i
Next n
End Sub

Наука

Опубликовано:

 

18 июн 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@rosemanuellakouomounoubiss2508
@rosemanuellakouomounoubiss2508 20 дней назад
Je te remercie. C’est tellement pratique 😊
@elamineboubkir2955
@elamineboubkir2955 2 месяца назад
merci bien!
@rouxa2619
@rouxa2619 2 месяца назад
In-cro-y-able, merci du partage !! Je cherchais désespérément comment lier de manière cliquable les citations zotero avec la bibliographie !
@Khadija-uu4vm
@Khadija-uu4vm 10 месяцев назад
Merci beaucoup!
@OmarAli-gj1yx
@OmarAli-gj1yx Год назад
Hello, Thank you very much for this video. What if i need to use a different referencing style to IEEE, do i need to modify the code in the description for it to work?
@NOVA51minecraft
@NOVA51minecraft Год назад
Hello ! Well I used IEEE because it’s the only referencing style that has the same numérotation for both in text and in bibliography [n] so the links are easy to made in my code. Ofc if you want you can try yourself and change the code to make it work with an other referencing style, for now IEEE is the only one working
Далее
How I research and write in Obsidian
22:44
Просмотров 22 тыс.
Наше обычное утро 💕
00:42
Просмотров 190 тыс.
This Stop Motion is Insane
00:39
Просмотров 8 млн
Citer les références avec Mendeley
7:35
Просмотров 7 тыс.
Everything Starts with a Note-taking System
21:23
Просмотров 204 тыс.
iPhone 15 Pro в реальной жизни
24:07
Просмотров 444 тыс.
Новые iPhone 16 и 16 Pro Max
0:42
Просмотров 1,2 млн