vbscript 文献引用加入文献的评论,18-8-7

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 文献引用加入文献的评论,18-8-7相关的知识,希望对你有一定的参考价值。

Sub CrossRef(ByVal control As IRibbonControl)
    Dim aimT As String
    Dim arr() As String
    Call kr_deck.aselect_whole_reference
    Dim wholeRef As String
    wholeRef = Selection.Range.Text
    arr = Split(wholeRef, ChrW(13))
    
    With Selection.Find
        .ClearFormatting
        .Replacement.ClearFormatting
        .Text = "[A-Z][!^13 ]{1,} [!^13 ]{1,} \[[0-9]{1,}\]"
        .MatchWildcards = True
        .Wrap = wdFindContinue
        .Forward = True
        Do
            .Execute
            If Not .Found Then
                Exit Do
            Else
                aimT = FunctionGroup.getRefNum(Selection.Range.Text)
                If InStr(arr(CStr(aimT) - 1), Trim(Selection.Range.Words(1))) > 0 _
                    And InStr(arr(CStr(aimT) - 1), Trim(Selection.Range.Words(2))) > 0 Then
                    Selection.Range.HighlightColorIndex = wdRed
                    Selection.Range.comments.Add Selection.Range, arr(CStr(aimT) - 1) + " WAITDELETE"
                End If
            End If
        Loop
    End With
    Selection.HomeKey wdStory
End Sub


Sub DeleteRedComment(ByVal control As IRibbonControl)
    
    Dim com As Comment
    Dim copyt, aimT As String
    Dim i As Integer
    i = 1
    copyt = ""
    For Each com In ActiveDocument.comments
        If com.Range.Words.Last.Text = "WAITDELETE" Then
            com.Scope.HighlightColorIndex = wdAuto
            com.DeleteRecursively
            i = i + 1
        End If
        '  If com.Scope.HighlightColorIndex = wdRed Then
        '  com.Scope.HighlightColorIndex = wdAuto
        '  com.DeleteRecursively
        '  i = i + 1
        
        'End If
    Next
    MsgBox "done"
End Sub

以上是关于vbscript 文献引用加入文献的评论,18-8-7的主要内容,如果未能解决你的问题,请参考以下文章

vbscript 检测摘要里是否出现网址,文献引用,公式,图,表等的提及

text 芝加哥删除页码;文献引用,换名字,评论

论文里文献标注怎么写?

Latex中怎么实现引理标号前加入参考文献

怎么用Mendeley Desktop插入文献

如何利用EndNote在LaTeX中插入参考文献