利用word宏命令来自动化缩写期刊名称

投稿的时候往往需要调整参考文献格式为期刊需要的格式,并且往往期刊名称为缩写的。
本文利用word的宏命令自动化缩写参考文献,只要提前设置好缩写的模板,即可实现对期刊名称的缩写,宏脚本目前实现了

  1. IEEE GRSL
  2. IEEE TSP
  3. IEEE TAES
  4. IEEE SPL

的缩写,其余期刊同理

Sub A缩写参考文献()
'
' 缩写参考文献 宏
' 可修改 IEEE GRSL  TSP  TAES SPL
'
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
   
    
' IEEE GRSL

    Selection.Find.Execute Replace:=wdReplaceAll
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    Selection.Find.Replacement.Font.Italic = True
    With Selection.Find
        .Text = "IEEE Geoscience and Remote Sensing Letters"
        .Replacement.Text = "IEEE Geosci. Remote Sens. Lett."
        .Forward = True
        .Wrap = wdFindContinue
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchByte = True
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    
    'IEEE TSP
    Selection.Find.Execute Replace:=wdReplaceAll
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    Selection.Find.Replacement.Font.Italic = True
    With Selection.Find
        .Text = "IEEE Transactions on Signal Processing"
        .Replacement.Text = "IEEE Trans. Signal Process."
        .Forward = True
        .Wrap = wdFindContinue
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchByte = True
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    
    ' IEEE TAES
    Selection.Find.Execute Replace:=wdReplaceAll
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    Selection.Find.Replacement.Font.Italic = True
    With Selection.Find
        .Text = "IEEE Transactions on Aerospace and Electronic Systems"
        .Replacement.Text = "IEEE Trans. Aerosp. Electron. Syst."
        .Forward = True
        .Wrap = wdFindContinue
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchByte = True
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    
    ' IEEE SPL
    Selection.Find.Execute Replace:=wdReplaceAll
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    Selection.Find.Replacement.Font.Italic = True
    With Selection.Find
        .Text = "IEEE Signal Processing Letters"
        .Replacement.Text = "IEEE Signal Process. Lett."
        .Forward = True
        .Wrap = wdFindContinue
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchByte = True
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    
End Sub

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值