Dim bContinue As Boolean ?<F([
(
zf8SpQ2~
Dim regEX As New RegExp >-V632(/{o
Dim paraCounter As Long '全局段落计数,仅在主程序中可读写,其它过程函数应为只读 .(/HU Qn
yT:2*sZRc
Dim LastTitle0String As String, LastTitle0No As Long n><ad*|MX
Dim LastTitle1String As String, LastTitle1No As Long r?u4[
Oe#
Dim LastTitle2String As String, LastTitle2No As Long 8Vz!zYl
Dim LastTitle3String As String, LastTitle3No As Long ,8zJD&HMx
Dim LastTitle4String As String, LastTitle4No As Long kxJs4BY0
Dim LastTitle5String As String, LastTitle5No As Long n;Mk\*Cg
Dim LastTabelString As String, LastTableNo As Long <b'*GB
w$
Dim LastFigureString As String, LastFigureNo As Long 5=*i!c
_m
jv v=
Dim strSeperator As String Vs TgK
t;Z9p7
rk
Sub ConvertWidth(fTEXT As String, rText As String) ? #a&eW
Selection.Find.ClearFormatting 8N)Lck2PR
Selection.Find.Replacement.ClearFormatting )^8[({r~
Selection.Find.Wrap = wdFindContinue i\;ZEM{
Me.txtStatus.Text = "转换全角数字字母" & fTEXT & "形式为半角" & rText G(?1 Urxi
DoEvents #8L:.,AYE
Selection.Find.Execute findtext:=fTEXT, replacewith:=rText, Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinue, MatchCase:=True _8 r'R
End Sub +-b'+mF
!e<5JO;c
Sub ClearDomain() /t`|3Mw
With Selection.Find #)n$Q^9&
.ClearFormatting W;8A{3q%N0
.Replacement.ClearFormatting 0,-]O=
.Wrap = wdFindContinue ^>%.l'1/(
Me.txtStatus.Text = "清除所有域代码" iOfO+3'Z_U
DoEvents @-K[@e/uwy
.Execute findtext:="^d", replacewith:="", Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinue, MatchWildcards:=False !\|
End With i+5Qs-dHA
End Sub %h(%M'm?
[f\Jcjc
Private Sub cmdCheck_Click() N?t*4Y
bContinue = True :@5{*o
Dim NoSeries1(1 To 16) As String <V)z{uK
Dim NoSeries2(1 To 16) As String W\-`}{B_/
Dim NoSeries5(1 To 16) As String 9BP'[SM%),
Dim NoSeriesRM(1 To 16) As String
u`wD6&y*
Dim paraTotal As Long, ParaText As String 2!LDrvPP
Dim ttString As String, ttNo As String D5xQ
KaMg[G
Dim ShapeCounter As Long, ShapeHeight As Long, ShapeWidth As Long f"gYX
aVF+
M]X!D7
Me.txtStatus.Visible = True ]35`N<Ac
Me.lbParaType.Visible = True MB:[: nX
Me.cmdCheck.Enabled = False |X*y-d77W
X2I_,k'fQ
sMAj?]hI$
Ge({sy>X
CT_tJ
Dim ParaType As String, rText As String iz;5:
phG*It}
Selection.WholeStory 4pMp@b
Selection.NoProofing = True =c 9nC;C
v Cej( ))
tm1 = Now /tG as
ysi=}+F.
ActiveWindow.View.Type = wdNormalView ?7pn%_S
s]e`q4ip
NoSeries1(1) = "一" I++ Le%w
NoSeries1(2) = "二" tq,^!RSbZ
NoSeries1(3) = "三" Jw=7eay$F
NoSeries1(4) = "四" wEq&O|Vj
NoSeries1(5) = "五" =\u,4
NoSeries1(6) = "六" g?|Z/eVJ
NoSeries1(7) = "七" $Tv~ *|a
NoSeries1(8) = "八" SFh<>J^ 0a
NoSeries1(9) = "九" J<H]vs
NoSeries1(10) = "十" A",}Ikh='`
NoSeries1(11) = "十一" (;=|2N>7
NoSeries1(12) = "十二" y$nI?
:d
NoSeries1(13) = "十三" #-Mr3
NoSeries1(14) = "十四" ewT
K2
NoSeries1(15) = "十五" `%~}p7Zu
NoSeries1(16) = "十六" ae-tAA[1Y
>Q<XyAH~
NoSeries2(1) = "㈠" Ax\d{0/oL2
NoSeries2(2) = "㈡" )2wf D
NoSeries2(3) = "㈢" -rYb{<;ST
NoSeries2(4) = "㈣"
LmyaC
2
NoSeries2(5) = "㈤"
_t"[p_llo
NoSeries2(6) = "㈥" L|<j/bP
NoSeries2(7) = "㈦" /Z]nV2$n)V
NoSeries2(8) = "㈧" Z3MhHvvgp{
NoSeries2(9) = "㈨" L_9uwua.B~
NoSeries2(10) = "㈩" QKEtV
M
hW9^?
NoSeries5(1) = "①" 117lhx].'
NoSeries5(1) = "②" wbOYtN Y@
NoSeries5(3) = "③" gnzg(Y]5w
NoSeries5(4) = "④" lvODhoT
NoSeries5(5) = "⑤" Ih
K
SwT
NoSeries5(6) = "⑥" AvZ5?rN$
NoSeries5(7) = "⑦" Z" H; t\P
NoSeries5(8) = "⑧" q2F`q. j
NoSeries5(9) = "⑨" a_/4 ^+
NoSeries5(10) = "⑩" PA803R74
E@otV6Wk[@
&c"!Y)%G
NoSeriesRM(1) = "I" SIm1fC
NoSeriesRM(2) = "II" ?7)v:$(G}
NoSeriesRM(3) = "III" ]v5/K
NoSeriesRM(4) = "IV" |J`v
w
NoSeriesRM(5) = "V" "oiN8#Hf
NoSeriesRM(6) = "VI" VJw7defc
NoSeriesRM(7) = "VII" sZ&6g<8#y
NoSeriesRM(8) = "VIII" ?fP3R':s
NoSeriesRM(9) = "IX" Fab]'#1q4
NoSeriesRM(10) = "X" _1Rw~}O
NoSeriesRM(11) = "XI" *w.":\P]
NoSeriesRM(12) = "XII" ` ;mQ"lO
NoSeriesRM(13) = "XIII" t
zd#9
#
NoSeriesRM(14) = "XIV" \"RCJadK
NoSeriesRM(15) = "XV" R+ \%
NoSeriesRM(16) = "XVI" _#v"sGmN
l d#x'/
i = MsgBox("为了你的数据安全,请使用单独保存的文件副本进行本操作。" & vbCrLf & "确定继续进行吗?", vbYesNo) K"t?
"y*3p0E
If i = vbNo Then xMQ>,nZ
Exit Sub 6wu`;>
End If {hOS0).(w7
|*w)]2Bl
If Me.chkSuper.Value Then )N~ p4kp
Me.txtStatus.Text = "检查修改所有的上标格式" >&e=0@?+G
e(0cz6
CheckSuperScript PfU\.[l$
$Bncdf
End If KwMt@1Z
NwOV2E6@OW
If Me.chkStyle.Value Then *-fd$l.
Me.txtStatus.Text = "设置样式,请稍候...." y@$E5sz
DoEvents ,6MJW#~]
CeateOrModifyStyle 6Q>:vQ+E
End If dHiir&Rd9`
`peR ,E
VI9rezZ*
GPGPteC
ClearDomain xv2c8g~vD
G"m0[|XH
^Os }sJ*5S
cy(w
*5Upu
If Me.chkLIST.Value Then UkD\ma
Me.txtStatus.Text = "将所有自动列表标题转化为人工标题形式" p),*4@2<
KyT=:f
V
ConvertListToOrdinary d])ctxB
End If u59l)8=
P-[})Z=
li?@BHEf
Dim pType As String, trimpTEXT As String 8<0P Ssx
If Me.chkNum.Value = True Then oL R/\Y(
Me.txtStatus.Text = "转换全角数字形式为半角"
ox<&T|
ConvertWidth "1", "1" <]%6x[
DoEvents kl~/tbf
ConvertWidth "2", "2" /kyO,g$9
DoEvents jK/FzD0-
ConvertWidth "3", "3" 9 4H')(
DoEvents 6W1+@
q
ConvertWidth "4", "4" />8A?+g9u
DoEvents gloG_*W
ConvertWidth "5", "5" jyF*JQjK4
DoEvents \ ;]{`
ConvertWidth "6", "6" <Qv/#
k
DoEvents <)LR
ConvertWidth "7", "7" ( sl{Rgxe*
DoEvents tboQn~&4
ConvertWidth "8", "8" \kUQe-:he
DoEvents b'SP,}s5"
ConvertWidth "9", "9" WvF{`N
DoEvents 3^&`E}r
ConvertWidth "0", "0" zRLJ|ejMP
DoEvents "1a!]45 +
ConvertWidth "a", "a" 2`;XcY4A
DoEvents QGOkB
ConvertWidth "b", "b" 8Uh|V&
DoEvents ~.G$0IJY
ConvertWidth "c", "c" QPLWRZu@
DoEvents PHT<]:"`<
ConvertWidth "d", "d" ;u(*&vRqr^
DoEvents ud)WH|Z
ConvertWidth "e", "e" l,Y5VGiH#
DoEvents aj|PyX3P:
ConvertWidth "f", "f" R0#scr
DoEvents *szs"mQ/
ConvertWidth "g", "g" Bca$%3M
DoEvents W{q
P/R
ConvertWidth "h", "h" h*JN0O<b
DoEvents
? .SiT5
ConvertWidth "i", "i" Sn'!Nq>
DoEvents ECM#J28D
ConvertWidth "j", "j" bWb/>hI8
Q
DoEvents '3^ q
W
ConvertWidth "k", "k" j+-`P5
DoEvents nG5\vj,zB
ConvertWidth "l", "l" V D7^wd9
DoEvents j>\rs|^O
ConvertWidth "m", "m" v4E=)?
DoEvents |[5;
dt_U/
ConvertWidth "n", "n" cs\=8_5
ConvertWidth "o", "o" YR~e_cA:
ConvertWidth "p", "p" ZRc^}5}WA
ConvertWidth "q", "q" ami>Pp
ConvertWidth "r", "r" 3 ;F
ConvertWidth "s", "s" ??B!UXi4R
ConvertWidth "t", "t" 2+)h!y]
ConvertWidth "u", "u" UE5,Ml~X
ConvertWidth "v", "v" |Fze9kZO
ConvertWidth "w", "w" `{K-eHlrM9
ConvertWidth "x", "x" YwY?tOxBe
ConvertWidth "y", "y" ns5Dydo{T
ConvertWidth "z", "z" 9&zR
i
ConvertWidth "A", "A" Z/: yYSq
ConvertWidth "B", "B" L.;x=w
ConvertWidth "C", "C" ^|vk^`S
ConvertWidth "D", "D" ;c]O
*\/
ConvertWidth "E", "E" rq7yN
t
ConvertWidth "F", "F" `Nvhp]E
ConvertWidth "G", "G" r6Vw!^]8u8
ConvertWidth "H", "H" 8Vn
ConvertWidth "I", "I" bp?TO]LH
ConvertWidth "J", "J" 1TA!9cz0Z
ConvertWidth "K", "K" saZK+kD4I
ConvertWidth "L", "L" W!.FnM5x
ConvertWidth "M", "M" mYJ8O$
ConvertWidth "N", "N" dVMl;{
ConvertWidth "O", "O" JBw2#ry
ConvertWidth "P", "P"
7;'UC','
ConvertWidth "Q", "Q" sl$y&C-
ConvertWidth "R", "R" Bx}"X?%S
ConvertWidth "S", "S" ,#;`f=aqTG
ConvertWidth "T", "T" +?3RC$jyw
ConvertWidth "U", "U" IMdp"
ConvertWidth "V", "V" UJp'v_hN
ConvertWidth "W", "W" E$:2AK{*
ConvertWidth "X", "X" #
SCLU9-
ConvertWidth "Y", "Y" r8*xp\/
ConvertWidth "Z", "Z" Rl0"9D87z
ConvertWidth "^l", "^p" .WN&]yr,
ConvertWidth "(", "(" .j,xh )v"
ConvertWidth ")", ")" [3S17tTc3
Mi(6HMA.SF
End If X1}M_h%
O\o@]
With ActiveDocument 5"3`ss<m
Dim tbl As Table "38<14V
For Each tbl In .Tables yyu -y0_
tbl.Rows.Alignment = wdAlignRowCenter BHgs,
tbl.Range.Font.NameFarEast = "楷体" sVP\EF8PY
tbl.Range.Font.NameAscii = "Times New Roman" =Oh$pZRymu
tbl.Range.Font.Size = 10.5 Ufi#y<dP
Next P%yL{
Set tbl = Nothing O,^s)>c
End With v+sF0
j\P
Oz_CEMcy
6=JJ!`"<2
With ActiveDocument nIB eZof
q3/4l%"X
For i = 1 To .TablesOfContents.Count u:(=gj,~x
.TablesOfContents(i).Delete {df;R|8l
Next p}!)4EI=
G.XxlI}
`g(#~0R
[X@{xF^vBQ
paraTotal = .Paragraphs.Count <bCB-lG*Kb
paraCounter = 1 k
75 p
}0H<G0
LastTitle0No = 0 (ESFR0
LastTitle1No = 0 {P?DkUO}
LastTitle2No = 0 _'V o3b
LastTitle3No = 0 $(0<T<\
LastTitle4No = 0 1#"wfiW
LastTableNo = 0 yRyRH%p)
LastFigureNo = 0 )q4nyT>M
7yg{0a
Dim Sec As Long AriV4 +
.^F&6'h1H
Sec = InputBox("正文从第一节开始?", "节设置", 6) GFbn>dY
If Sec = 0 Then IN1n^f$:
Exit Sub `aX+Gz?
End If b9i_\
%j1 7QD8
k = 0 $$4flfx
Do While (paraCounter < paraTotal) And bContinue F+R1}5-3cl
k = k + 1 !U(S?:hvW
If .Paragraphs(paraCounter).Range.Information(wdActiveEndSectionNumber) >= Sec Then &e).l<B
Exit Do Z \ @9*
End If hF^JSCDz l
paraCounter = paraCounter + 1 'CqAjlj
If k Mod 20 = 0 Then LR#.xFQ+
Me.lbCounter.Caption = paraCounter ;XZN0A2
DoEvents <
T.R%Jys
End If im:[ViR {
Loop Q2)5A&U\
q\!"FDOl4
m^ar:mK
@
Do While (paraCounter < paraTotal) And bContinue Dqwd=
$2%
+J| LfXgB
ParaText = Trim(.Paragraphs(paraCounter).Range.Text) ]!P6Z?
ShapeHeight = 0 8aRmHy"9l
ShapeWidth = 0 5M
)B
BSSehe*
CheckPara .Paragraphs(paraCounter).Range, ParaType, rText, ttString, ttNo, ShapeCounter, ShapeHeight, ShapeWidth lc
fAb@}2
BBX/ &d8n
Select Case ParaType n 78!]O
Case "【】表格内容" ny^uNIRPR
.Paragraphs(paraCounter).Style = "QLNU表格内容" U$a)lcJd
Case "章" *Z.{1
LastTitle0No = LastTitle0No + 1 =w _T{V
'新一章开始,复位其下属标题编号 uW[AnQ1
w
LastTitle1No = 0 j;j~R3B
LastTitle2No = 0 dXY}B=C
LastTitle3No = 0 OH n~DL2
LastTitle4No = 0 k8}'@w
r
SoT]6/
k = Val(ttNo) JDnWBE V
If k = 0 Then '非数字编号章节 K]>4*)
A:
If ttNo <> NoSeries1(LastTitle0No) Then p.4Sgeh#
rText = "第" & NoSeries1(LastTitle0No) & ttString d1^5r
31
Me.ErrMsg.AddItem "章节编号错误:" & ParaText G5 )"%G.
End If 1+M
!EW
Else *CF80DJ
If Val(ttNo) <> LastTitle0No Then Jq>5:"jZ0
rText = "第" & LastTitle0No & ttString Qqb%^}Xx'u
Me.ErrMsg.AddItem "章节编号错误:" & ParaText g0/R\
End If :nnch?J_
3~WI3ZIR
End If =r`E%P:
\KpJIHkBRy
'章段落设置 A9D
FZZ0
'字体大小:三号16磅小三号15磅四号14磅小四号12磅五号10.5磅小五号9磅 %(?;`
.Paragraphs(paraCounter).Style = "QLNU章节" si]MQ\i+
.Paragraphs(paraCounter).Range.Select C$at9=(E6
Selection.EndKey unit:=wdLine {ByKTx&
tc = Replace(rText, vbCr, "") Y@ ;/Sf$Q
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 1 ", PreserveFormatting:=False +ZE"pA^C
Case "一级标题" HH(2
LastTitle1No = LastTitle1No + 1 |4aU&OX
'新一级标题开始,复位其下属标题编号 u5U^}<}y}
LastTitle2No = 0 7{S;~VH3
LastTitle3No = 0 9
s2z=^
LastTitle4No = 0 F)'_,.?0
~k
6V?z}
If ttNo <> NoSeries1(LastTitle1No) Then T DPQ+Kg_
rText = NoSeries1(LastTitle1No) & "、" & ttString !VG
]~lc
Me.ErrMsg.AddItem "一级标题编号错误:" & ParaText id`9,I
Jx
End If @wAYhnxq
qIzv|Nte
n~w[ajC/
'一级标题段落设置 格式:一、标题内容 cqZlpm$c
.Paragraphs(paraCounter).Range.Text = rText bccf4EyQ
Y
.Paragraphs(paraCounter).Style = "QLNU一级标题" 9ucoQ@
.Paragraphs(paraCounter).Range.Select <Z]j89wzDZ
Selection.EndKey unit:=wdLine 8r,0Qic2K
tc = Replace(rText, vbCr, "") `N}'5{I
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 1 ", PreserveFormatting:=False (]fbCH:
Case "二级标题" ^eRbp?H*T
LastTitle2No = LastTitle2No + 1 5|bfrc
'新二级标题开始,复位其下属标题编号
2Z^p)
LastTitle3No = 0 B=_5gZ4Y
LastTitle4No = 0 XNvlx4
@1pfH\m
If ttNo <> NoSeries1(LastTitle2No) Then HPO:aGU
rText = "(" & NoSeries1(LastTitle2No) & ")" & ttString 1Nv qtVC
ErrMsg.AddItem "二级标题编号错误:" & ParaText )&)tX.
End If Uul5h
8F
B~<bc
'二级标题段落设置 格式:(一)、标题内容 jM{5nRQ
.Paragraphs(paraCounter).Range.Text = rText !]7L9TGn
.Paragraphs(paraCounter).Style = "QLNU二级标题" Dg
~k"Ice
),
VF]
.Paragraphs(paraCounter).Range.Select 5wvh
@Sc\
Selection.EndKey unit:=wdLine !,7)ZW?*8
tc = Replace(rText, vbCr, "") brCL"g|}
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 2 ", PreserveFormatting:=False |w_l~xYV)
h;cw=G
Case "三级标题" 6(A"5B=\
LastTitle3No = LastTitle3No + 1 6@(o8i
'新三级标题开始,复位其下属标题编号 efbJ2C
LastTitle4No = 0 (h@~0S
3ox|Mz<aZX
If Val(ttNo) <> LastTitle3No Then +y-3tcI)
rText = LastTitle3No & ". " & ttString [Q8vS ;.
Me.ErrMsg.AddItem "三级标题编号错误:" & ParaText +H?
XqSC
fE>JoQs38
End If YB{'L +Wbw
'三级标题段落设置 格式:1. 标题内容 ?6MUyH]a
.Paragraphs(paraCounter).Range.Text = rText JkLpoe81
.Paragraphs(paraCounter).Style = "QLNU三级标题" *'n=L
B8R
.Paragraphs(paraCounter).Range.Select j{ri]?p
Selection.EndKey unit:=wdLine e5n"(s"G*[
tc = Replace(rText, vbCr, "") rXGaav9
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 3 ", PreserveFormatting:=False Fb{HiU9<!
Case "四级标题" !Xq5r8]
LastTitle4No = LastTitle4No + 1 G)3r[C^[k
_t X1z^
If Val(ttNo) <> LastTitle4No Then kk
CoOTe&
rText = "(" & LastTitle4No & "). " & ttString <\
".6=E#W
ErrMsg.AddItem "四级标题编号错误:" & ParaText ;Q5o38(
J]NMqiq
End If bSTTr<W
'四级标题段落设置 格式:(1). 标题内容 $ O;a~/T
.Paragraphs(paraCounter).Range.Text = rText [A;0IjKam
.Paragraphs(paraCounter).Style = "QLNU四级标题" 1)-VlQK p
.Paragraphs(paraCounter).Range.Select T+5H2]yy)
Selection.EndKey unit:=wdLine S*ie$}ZX
tc = Replace(rText, vbCr, "") !i{5m
c\
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 4 ", PreserveFormatting:=False 2rf#Bq?7
K1-3!G
Case "表格标题" b^P\Kky
LastTableNo = LastTableNo + 1 ~>%% kQt
1l}fX}5%I;
If ttNo <> CStr(LastTableNo) Then qs
(L2'7/
rText = "表" & LastTableNo & ". " & ttString $D*Yhv!/
ErrMsg.AddItem "表格编号错误:" & ParaText Y1DbBDk
&D7Mv5i0@
End If vcOw`oS
-BrJ5]T>*
'表格名称段落设置 格式:表1. 表格名称 j#VR>0oC]\
.Paragraphs(paraCounter).Style = "QLNU表格标题" cdL0<J b,
xe = Replace(rText, vbCr, "") 9J}^{AA
.Paragraphs(paraCounter).Range.Select .z,`{-7U
Selection.MoveEnd wdCharacter, -1 '选择范围包括行尾的换行符。 &c=
3BEh
Selection.Range.Text = xe urD{'FQf
Selection.EndKey d8^S~7
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="XE " & """" & xe & """", PreserveFormatting:=False cm>+f ^4?n
`my\59T
Case "表格首行" 91FVe
.Paragraphs(paraCounter).Style = "QLNU表格首行" ge{%B~x
Case "图片标题" 1HRcEzA
LastFigureNo = LastFigureNo + 1 wI[J> 9Qn
Gx%f&H~Z^
If ttNo <> CStr(LastFigureNo) Then }%,LV]rGEZ
rText = "图" & LastFigureNo & ". " & ttString mP
+H
C)2
ErrMsg.AddItem "表格编号错误:" & ParaText kh"APxQ79
;l@Ge`&u
End If AD'c#CT
'图片名称段落设置 格式:图1. 图名称 wr6(C:
.Paragraphs(paraCounter).Range.Text = rText NQd0$q
.Paragraphs(paraCounter).Style = "QLNU图片标题" bg*@N
.Paragraphs(paraCounter).Range.Select
RE;)#t?K
Selection.EndKey unit:=wdLine R8j\CiV17
xe = Replace(rText, vbCr, "") =d
JRBl
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="XE " & """" & xe & """", PreserveFormatting:=False gYw=Z_z
Case "正文" @`SlOKz!=
'正文名称段落设置 1=jwJv.^/
.Paragraphs(paraCounter).Style = "QLNU正文" 6s:
Case "文献条目" "(;t`,F
With .Paragraphs(paraCounter) '"V]>)
'.Range.Select P`n"E8"ab<
'Selection.ClearFormatting j|r$!gV
'.Range.Find.Execute findtext:=rText, replacewith:=strSeperator 'Replacetext 传回了编号及分隔符部分, 而StrSeperator传回了正确的格式与分隔符如“[15] ” 1L_(n
.Style = "QLNU参考文献" -wnBdL
End With _E^ !,Wz
Case "图表注解" X/S%0AwZ
With .Paragraphs(paraCounter) qD}O_<_1ym
.Range.Font.NameFarEast = "楷体" ,Mn?h\
.Range.Font.NameAscii = "Times New Roman" cN:ek|r
.Range.Font.Size = 9 '小5号字 AT"!Ys|
)aX#RM? N
.Alignment = wdAlignParagraphCenter Q3LScpp
.LeftIndent = 0 kl5Y{![/&f
.RightIndent = 0 pm*i!3g'
.FirstLineIndent = 0 ((fFe8Rn)q
.LineSpacing = 12 d]^\qeG^p
.LineSpacingRule = wdLineSpaceExactly TzV~I\a|
.LineUnitAfter = 0 Rap_1o9#\
.LineUnitBefore = 0 XiyL563gh
.OutlineLevel = wdOutlineLevelBodyText Q2t>E(S
.PageBreakBefore = False Ke\FzZ]
.RightIndent = 0 #4^D'r>pJ
.WordWrap = True 69``j{Z+
.LineUnitAfter = 0.5 ^F+7@*u
)dRBI)P
End With 'R n\CMTH
Case Else 0&6(y*
#Z
'不作处理 8H{9
End Select 6[]O3Aa
]~'pYOB
'含有inlineshape的段落处理 >td\PW~X
If ShapeHeight > 30 Then o5w =
.Paragraphs(paraCounter).LineSpacingRule = wdLineSpaceSingle '对有图片的段落设置为单倍行距 G>+ii
sb%
End If e[.JS6
d((,R@N'
If (ShapeWidth + ShapeHeight) > 150 Then !4+@b
s
.Paragraphs(paraCounter).Style = "QLNU图片段落" 4~0@(3
End If n_t.l<V
cq1)b\ |
'段落计数器递 -lI6!a^
paraCounter = paraCounter + 1 4AN(4"$N
Me.lbCounter.Caption = "当前检测段落:" & paraCounter 9P-I)ZqL
Me.txtStatus.Text = ParaText t&(\A,ch
%
DoEvents IU rGJ#}O
Loop TI637yqCU
End With U{0!
<*W>
n'<F'1SWv
msg = "" frbeCBP&)
vsbD>`I
For i = 0 To Me.ErrMsg.ListCount - 1 [F^j(qTR
msg = msg & vbCrLf & vbCrLf & Me.ErrMsg.List(i) m^1'aO_;q
Next ~" U^N:I"
I oC}0C7
' "o2;J)7
XCE<].w
Me.txtStatus.Text = "格式化完成!" & vbCrLf & "开始时间:" & tm1 & vbCrLf & "结束时间:" & Now & vbCrLf & msg yJHFo[wGMJ
Me.cmdCheck.Enabled = True !u%XvxJwDb
Me.txtStatus.Visible = True $7&t`E)qY
Me.lbParaType.Visible = False !;&{Q^}
T=T1?@2C
bContinue = False 4]ETF+
End Sub q<Wz9lDMNR
2!6-+]tC
Sub CheckPara(ByRef ChKRange As Range, ParaType As String, ReplaceTEXT As String, TitleString As String, TitleNo As String, shpCounter As Long, MaxShpHeight As Long, TotalShpWidth As Long) Q|W~6
Dim pTEXT As String RjG=RfB'V
Wg=4`&F^
pTEXT = ChKRange.Text
<Lfo5:.
'<hgc
ParaType = "其它" Qr*7bE(a
TitleString = pTEXT axiP~t2
TitleNo = "N/A" x@,B))WlGr
MVe4[<
shpCounter = ChKRange.InlineShapes.Count [kPF J f
If shpCounter <> 0 Then _!E/em
MaxShpHeight = 0: TotalShpWidth = 0 zFO#oW,D
For i = 1 To shpCounter d2<+Pp
k = ChKRange.InlineShapes(i).Height oJor
]QY K
l = ChKRange.InlineShapes(i).Width a^Lo;kHY
If k > MaxShpHeight Then A!aki}aT~
MaxShpHeight = k |6zx
YuX
End If p!p:LSk"/b
TotalShpWidth = TotalShpWidth + l E>x,$w<?
Next ~5wT|d
If MaxShpHeight > 60 Or TotalShpWidth > 150 Then [O^mG
9
Exit Sub "I^pb.3
End If d?1[xv;
End If Gq;!g(
sKGR28e
'空行 iVf8M$!m
If Len(pTEXT) <= 2 Then $or8z2d1
Exit Sub bc*CP0t|
End If #~;:i
|Ht~o(]&&/
E9PD1ADR
'是否为表格中的文字 }FT8[m<
If ActiveDocument.Paragraphs(paraCounter).Range.Information(wdWithInTable) Then !wEz=
i
ParaType = "表格内容" ]dQ
k = ActiveDocument.Paragraphs(paraCounter).Range.Information(wdEndOfRangeRowNumber) *d,Z?S/
If k = 1 Then iea7*]vW
ParaType = "表格首行" s7na!A[
End If ?H(']3X5@
Exit Sub ]s^Pw>/`
End If +>o}
R?xj
d<afO?"
'例外情况:脚注 Q`[J3-Q*{
If ActiveDocument.Paragraphs(paraCounter).Range.Information(wdInFootnote) Then sGFC?1r?\
ParaType = "脚注" mu&%ph=
Exit Sub iig@$
i#
End If aX(Y
`g)|
rn%q*_3-o
'例外情况:尾注 Nmu=p~f}3`
If ActiveDocument.Paragraphs(paraCounter).Range.Information(wdInEndnote) Then Om C
F8:\/
ParaType = "尾注" B-EDVMu
Exit Sub tJZ3P@ L
End If f-a+&DB9
'jd fUB
If ActiveDocument.Paragraphs(paraCounter).Range.Information(wdInHeaderFooter) Then #(Ezt% ^
ParaType = "页眉页脚" 5jK9cF$>
Exit Sub 'n4
iW
End If 5SwQ9#
f!+G1z}iA
>`D$Jz,
With regEX -!pg1w06
.Global = True e:zuP.R
jmh$6 N%
F
.Pattern = "^第([1-9]|1|2|3|4|5|6|7|8|一|二|三|四|五|六|七|八|九|十)章(、|\.|\s|。|.)+(.{1,30})$" x_BnWFP
If regEX.Test(pTEXT) Then 6Bn%7ZBv
ReplaceTEXT = regEX.Replace(pTEXT, "第$1章 $3") 8z'_dfP=5
TitleString = regEX.Replace(pTEXT, "$3") $ 2PpG|q
TitleNo = regEX.Replace(pTEXT, "$1") qgZN&7Nn:
ParaType = "章" v[=TPfX0
Exit Sub fs%l j_t
End If b0lZb'
SOo}}a0
.Pattern = "^(十一|十二|十三|十四|十五|十六|一|二|三|四|五|六|七|八|九|十)(、|\.|\s|。|.)+(.{1,40})$" jij-pDQnv
If regEX.Test(pTEXT) Then 8YwSaBwO
ParaType = "一级标题" RI-)Qx&!f
regEX.Execute (pTEXT) "}jv5j5
ReplaceTEXT = regEX.Replace(pTEXT, "$1、$3") Tn(c%ytN
TitleString = regEX.Replace(pTEXT, "$3") g)Dg=3+
>
TitleNo = regEX.Replace(pTEXT, "$1") Xmaj7*f>p
Exit Sub V75P@jv5J
End If '7/c7m/$X<
) E(9
R(
'全角或半角括号中的数字 xBKis\b
.Pattern = "(^\(|()(十一|十二|十三|十四|十五|十六|一|二|三|四|五|六|七|八|九|十)(\)|))(、|\.|\s|。|.)*(.{1,40})$" 137:T:
If regEX.Test(pTEXT) Then 5Ak6
q(\
ParaType = "二级标题" D;WQNlTU
regEX.Execute (pTEXT) 8d*W7>rq
ReplaceTEXT = regEX.Replace(pTEXT, "($2)$5") Y@R9+7!
TitleString = regEX.Replace(pTEXT, "$5") Dro2R_j{
TitleNo = regEX.Replace(pTEXT, "$2") Wd/m]]W8Q
Exit Sub EZg$mp1
End If +C){&/=#
.3<
sv
'阿拉伯数字 1. 2. Jx4"~ 4
.Pattern = "^([1-9]|1|2|3|4|5|6|7|8|9|0){1,2}(、|\.|\s|。|.)+(.{1,80})$" Y SD|#0
If regEX.Test(pTEXT) Then I 7s}{pG
ParaType = "三级标题" !O*uQB
regEX.Execute (pTEXT) O2C&XeB:4
ReplaceTEXT = regEX.Replace(pTEXT, "$1. $3") '未进行全半角转换,如需要可分成两步分别检测 g~Agy
TitleString = regEX.Replace(pTEXT, "$3")
n>:|K0u"
TitleNo = regEX.Replace(pTEXT, "$1") 2g:V_%
Exit Sub w2e9Ue~WH
End If +JRPd.B"@
>.f'_2#Z&
'全角或半角括号中的阿拉伯数字 ^%~ux0%^T
.Pattern = "^(^\(|()([0-9]|0|1|2|3|4|5|6|7|8|9){1,2}(\)|))(、|\.|\s|。|.)*(.{1,80})$" N2Q%/}+,
If regEX.Test(pTEXT) Then (b>B6W\&
ParaType = "四级标题" k
1Thjt
regEX.Execute (pTEXT) 6F4OISy%3
ReplaceTEXT = regEX.Replace(pTEXT, "($2) $5") "qv J-Y
TitleString = regEX.Replace(pTEXT, "$5") x^P ~+(g
TitleNo = regEX.Replace(pTEXT, "$2") [nG@
3n
Exit Sub <c$K3
End If X*Cvh|
\?rBtD(
'表格名称 U
fAN)SE"
.Pattern = "^表(\d{1,2}-{0,1}\d{0,1})([、|\.|。|.|\s]{1,9})(.{1,120})$" ^Y-
S"Ks
If regEX.Test(pTEXT) Then %P tdFz$
ParaType = "表格标题" K1*]6x,
regEX.Execute (pTEXT) e!JC5Al7
ReplaceTEXT = Trim(regEX.Replace(pTEXT, "表$1. $3")) $3Srr*
TitleString = Trim(regEX.Replace(pTEXT, "$3")) 5>*~1}0T
TitleNo = Trim(regEX.Replace(pTEXT, "$1")) BP`'1Ns
strSeperator = Trim(regEX.Replace(pTEXT, "$2")) '不知道为什么,但是发现传回的replacetext在修改Paragraph对象的Range.Text后,表格标题就会落入第一个单元格中,所以,只能用Paragraph.Range.Find.Execute方法替换 /5 6sPl
7}
Exit Sub "fX9bh^
End If qJPEq%'Q
$ @Fvl-lK
'图片名称 <\C/;
.Pattern = "^图(\d{1,2}-{0,1}\d{0,1})(、|\.|\s|。|.)+(.{1,120})$" mj9r#v3.
If regEX.Test(pTEXT) Then B$@fE}
ParaType = "图片标题"
P{_Xg,Z
regEX.Execute (pTEXT) 0)T`&u3!
ReplaceTEXT = regEX.Replace(pTEXT, "图$1. $3") h,%b>JFo
TitleString = regEX.Replace(pTEXT, "$3") DQRr(r~2Kj
TitleNo = regEX.Replace(pTEXT, "$1") ~k[q:$T
Exit Sub F9 q9BH
End If mDJN)CX
etkKVr;Kv
'参考文献
;^Hg\a
.Pattern = "^([\[|[])(\d+)([]|\]])([、|\.|\s|。|.]{0,1})" '[数字]、
[
[;vZ
If regEX.Test(pTEXT) Then -P'KpX:]hd
ParaType = "文献条目" dE0p>4F
'ReplaceTEXT = regEX.Replace(pTEXT, "$1$2$3$4") =`%"-A
'TitleNo = regEX.Replace(pTEXT, "[$2] ") 'k(aZ"
Exit Sub n%1I}?$fO
End If !<
I3^q
EAi!"NJ
prfx = Left(pTEXT, 2) `U[s d*C"
If prfx = "注:" Or prfx = "注:" Then "J(W)\
ParaType = "图表注解" Eggdj+
Exit Sub ej9|Y5D"S
End If pz]#/Ry?
s`Z'5J;S
{X'D07 q
ParaType = "正文" "<5su5]
5<?s86GHh'
End With I!OV+utF
End Sub =&
.KKr
@ATJ|5.gr
Sub ConvertListToOrdinary() SBynu
Dim st As Paragraph ^ H )nQ
With ActiveDocument uy^vQ/
For i = .Paragraphs.Count To 1 Step -1 3iC$ "9!p
Set st = .Paragraphs(i) u#uT|a.
lst = st.Range.ListFormat.ListString _yJAn\
If lst <> "" Then i`)h~V|G
st.Range.ListFormat.RemoveNumbers sGdlS&08(
st.Range.InsertBefore lst & " " b9gezXAcd
End If
g8^YDrH
Next }"CX`
End With DEcsFC/SK
Set st = Nothing BqA
End Sub }HC6m{vH(
leSR2os
Private Sub UserForm_Activate() mFdj+ &2\
Me.lbTotal.Caption = "当前文章段落总数:" & ActiveDocument.Paragraphs.Count & " 共" & ActiveDocument.Sections.Count & "节" v;m}<3@'
Me.lbTotal.Font.Bold = True FG[YH5
Me.txtStatus.Visible = False 7xr@$-U
Me.cmdCheck.Enabled = True ="*:H)
X[Q:c4'
End Sub Y4.t :Uzr
fXJbC+
//_aIp
Sub CheckSuperScript() NiCB.a
Selection.Find.ClearFormatting H6I]GcZ$
Selection.Find.Replacement.ClearFormatting ?rG>SA>o
With Selection.Find ~gAp`Q
.Text = "[【\[[〖](*)[】\]〗]]" S_ Pa .
.Replacement.Text = "[\1]" c
Oi:bC@
.Replacement.Font.Superscript = True L 2k?Pl
'.Replacement.Font.Color = wdColorBlue p2Fff4nQ
.Forward = True rbw5.NU
.Wrap = wdFindContinue
<B%s9Zy
.FORMAT = True #ovmX
.MatchCase = False ~p0M|
.MatchWholeWord = False xOAA1#
.MatchByte = False !uwZ%Uxz
.MatchAllWordForms = False jx7b$x]
.MatchSoundsLike = False Fw!TTH6l0
.MatchWildcards = True :s5wFumD
End With 9X- w5$<
Selection.Find.Execute Replace:=wdReplaceAll /PuN+M
End Sub
>|S&@<
s
v}o%
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) Ja@zeD)f"
bContinue = False vm
y?8E6+
Set regEX = Nothing S[zX@3eZV
End Sub CMI V"-
6bXR?0$*M.
Sub CeateOrModifyStyle() ~7}aW#
' 8r46Wr7Q
' WzwH;!
Dim stl As Style Z+G.v=2q<
GV"Hk E;
Options.Pagination = False &+v!mw
>
/\0rR
T
On Error Resume Next Z:2a_Atm
For Each stl In ActiveDocument.Styles v3`k?jAaI
stl.Delete 6pCQP
c*A
Next wVms"U.
On Error GoTo 0 &rmXz6F
ra4$/@3n
Set stl = Nothing |{a`,%
mw
I}S~,4
DoEvents IW<nfg
On Error Resume Next f1_b``M
CC<(V{Png
ActiveDocument.Styles.Add Name:="BaseStyle", Type:=wdStyleTypeParagraph (
ndTEnpp
{r,MRZaa
ActiveDocument.Styles.Add Name:="QLNU论文题目", Type:=wdStyleTypeParagraph SZhW)0
ActiveDocument.Styles.Add Name:="QLNU中文摘要", Type:=wdStyleTypeParagraph >ARZ=x[
i6@c@n
ActiveDocument.Styles.Add Name:="QLNU英文标题", Type:=wdStyleTypeParagraph th?w&;L
ActiveDocument.Styles.Add Name:="QLNU英文摘要", Type:=wdStyleTypeParagraph XFiP8aX<
Pzl2X@{ %
ActiveDocument.Styles.Add Name:="QLNU目录项", Type:=wdStyleTypeParagraph
RrG5`2
ActiveDocument.Styles.Add Name:="QLNU章节标题", Type:=wdStyleTypeParagraph qlJzXq{|`
ActiveDocument.Styles.Add Name:="QLNU一级标题", Type:=wdStyleTypeParagraph \(db1zmS~
ActiveDocument.Styles.Add Name:="QLNU二级标题", Type:=wdStyleTypeParagraph ,sqxxq
ActiveDocument.Styles.Add Name:="QLNU三级标题", Type:=wdStyleTypeParagraph f
0lpwwe
ActiveDocument.Styles.Add Name:="QLNU四级标题", Type:=wdStyleTypeParagraph ?{
Rv/np=F
ActiveDocument.Styles.Add Name:="QLNU正文", Type:=wdStyleTypeParagraph % >\v6ea
TOe=6Z5h
ActiveDocument.Styles.Add Name:="QLNU表格标题", Type:=wdStyleTypeParagraph dpPu&m+
ActiveDocument.Styles.Add Name:="QLNU表格首行", Type:=wdStyleTypeParagraph Hido[
ActiveDocument.Styles.Add Name:="QLNU表格内容", Type:=wdStyleTypeParagraph ?2zbZ
ActiveDocument.Styles.Add Name:="QLNU图片标题", Type:=wdStyleTypeParagraph ;;#_[Zl
ActiveDocument.Styles.Add Name:="QLNU图片段落", Type:=wdStyleTypeParagraph `pfZJ+
oY K(=j
ActiveDocument.Styles.Add Name:="QLNU参考文献", Type:=wdStyleTypeParagraph aGR!T{`
On Error GoTo 0 k)t_U3i
DoEvents 7`c\~_Df_
EL?6x
'BaseStyle qZS]eQW.
ActiveDocument.Styles("BaseStyle").AutomaticallyUpdate = False &O:IRR7p
With ActiveDocument.Styles("BaseStyle").Font ]#fmih^
.NameFarEast = "宋体" +p
Y*BP+~i
.NameAscii = "Times New Roman" 8`{)1.d5[
.NameOther = "宋体" 5>e#SW
.Size = 10.5 b-+~D9U<
.Bold = wdUndefined 5S
EyAhB
.Italic = wdUndefined ;
m]KKB
.Subscript = wdUndefined M:9
6QM~
.Subscript = wdUndefined 2.>WR~\
7^2
.Underline = wdUnderlineNone w I7iE4\vz
.UnderlineColor = wdColorAutomatic a^ __Z3g,
.StrikeThrough = False ]"2;x
.DoubleStrikeThrough = False !pqfx93R*
|K(2_Wp
.Outline = False }^@Q9<P^E
.Emboss = False =G9 9U/
.Shadow = False K|{IX^3)V
.Hidden = False WE*L=_zDS
.SmallCaps = False 6Kbc:wlR
.AllCaps = False @5rl;C
.Color = wdColorAutomatic $Sx(vq6(
.Engrave = False FkH HTO
.Scaling = 100 RZgklEU
.Kerning = 1 ,DZoE~
.Animation = wdAnimationNone +~x'1*A_
.DisableCharacterSpaceGrid = False ye-EJDZN
.EmphasisMark = wdEmphasisMarkNone UK7pQt}9
End With .T63:
With ActiveDocument.Styles("BaseStyle").ParagraphFormat `Nnaw+<]
.LeftIndent = 0 =1vl-*uYh
.RightIndent = 0 .yF@O
w
.SpaceBefore = 0 >STAPrBp+
.SpaceBeforeAuto = False \|gE=5!Am=
.SpaceAfter = 0 hn-!W;j
.SpaceAfterAuto = False &&daQg4Ha
b5@sG^
.LineSpacingRule = wdLineSpaceSingle Bo#,)%80
.Alignment = wdAlignParagraphJustify c&mLK1A6
R_7[7/a
.WidowControl = False <y}9Twdy
.KeepWithNext = False I0qSx{K
.KeepTogether = False ILU7Yhk
.PageBreakBefore = False S <RbC
.NoLineNumber = False !<8-juY
C+m%_6<
.FirstLineIndent = CentimetersToPoints(0) D"z3SLFW{
.OutlineLevel = wdOutlineLevelBodyText "?X,);5S
.CharacterUnitLeftIndent = 0 :]rb} 1nLB
.CharacterUnitRightIndent = 0 X>la!}sV
.CharacterUnitFirstLineIndent = 0 UD!-.I]
.LineUnitBefore = 0 x* 9 Xu"?
.LineUnitAfter = 0 ^c-8~r|y,
.AutoAdjustRightIndent = True N*w6D:
.DisableLineHeightGrid = True d:X@zUR*)
^7Hwpn7E
.FarEastLineBreakControl = True kF@Z4MB}yr
.WordWrap = True V`WSZ
.Hyphenation = False 3 i;sB
X7g@.Oy`
.HangingPunctuation = True a7fFp9l!
.HalfWidthPunctuationOnTopOfLine = True IrMUw$
.AddSpaceBetweenFarEastAndAlpha = True sP'U9l
.AddSpaceBetweenFarEastAndDigit = True ..K@'*u
.BaseLineAlignment = wdBaselineAlignBaseline 6L!/#d0
End With @fc-[pv
ActiveDocument.Styles("BaseStyle").NoSpaceBetweenParagraphsOfSameStyle = False n6xJ
ActiveDocument.Styles("BaseStyle").ParagraphFormat.TabStops.ClearAll E-`3}"{
ActiveDocument.Styles("BaseStyle").LanguageID = wdSimplifiedChinese g!\H^d4
ActiveDocument.Styles("BaseStyle").NoProofing = False E
xls_oSp
j&Trv
w<t
'一级标题题样式 VRs|";
ActiveDocument.Styles("QLNU一级标题").BaseStyle = ActiveDocument.Styles("BaseStyle") F<+!28&h
ActiveDocument.Styles("QLNU一级标题").NextParagraphStyle = "BaseStyle" f'oO/0lx
ActiveDocument.Styles("QLNU一级标题").AutomaticallyUpdate = False m}$7d5
With ActiveDocument.Styles("QLNU一级标题").Font QhJuH_f 0
.NameFarEast = "黑体" Img$D*BM
.NameAscii = "Arial Black" 3-PqUJT$
.NameOther = "黑体" hE;|VSdo
.Name = "黑体" D^Gs_z$['
.Size = 16 '三号 2bnYYQ14
:
.Bold = True */6lyODf
.Italic = wdUndefined )yt_i'D}
.Subscript = wdUndefined CK"OHjR
.Superscript = wdUndefined 3cA'9
End With #
E{2 !Z
With ActiveDocument.Styles("QLNU一级标题").ParagraphFormat .}c&
"L;W
x##0s5Qn
.LeftIndent = CentimetersToPoints(0) A/c #2
.RightIndent = CentimetersToPoints(0) i<b-$9
.FirstLineIndent = CentimetersToPoints(0) 1s _N!a
Pxvf"SXX
.LineSpacingRule = wdLineSpaceSingle (k^o[H F
.Alignment = wdAlignParagraphCenter 0#S#v2r5
N;q)[Dr
.WidowControl = True @dyh:2!
.KeepWithNext = True x>bGxDtu*
.KeepTogether = True KPrH1 [VU
.OutlineLevel = wdOutlineLevelBodyText 6KRC_-
)vsX (/WU
.LineUnitBefore = 0.5 }WV}in0
.LineUnitAfter = 0.5 F+SqJSa
End With jl"su:y
ActiveDocument.Styles("QLNU一级标题").NoSpaceBetweenParagraphsOfSameStyle = False W5Uw=!LdEY
ActiveDocument.Styles("QLNU一级标题").ParagraphFormat.TabStops.ClearAll 0 L$[w
ActiveDocument.Styles("QLNU一级标题").LanguageID = wdSimplifiedChinese FX1H2N(
ActiveDocument.Styles("QLNU一级标题").NoProofing = True `PUGg[Zx^
DoEvents sW,JnR
(uVL!%61k
'二级 w$DHMpW'
ActiveDocument.Styles("QLNU二级标题").BaseStyle = ActiveDocument.Styles("BaseStyle") :Dj0W8V
ActiveDocument.Styles("QLNU二级标题").NextParagraphStyle = "BaseStyle" 4o<rj4G>
ActiveDocument.Styles("QLNU二级标题").AutomaticallyUpdate = False j>`-BN_
With ActiveDocument.Styles("QLNU二级标题").Font k.ttrKy<q/
.NameFarEast = "黑体" vk4Q2P
.NameAscii = "Arial Narrow" }3}H}
.NameOther = "黑体" %#<MCiaK
.Name = "黑体" 5~[m]
.Size = 15 '小三号 YvG=P<_xw
.Bold = False eev-";c
.Outline = False 3`TD>6rs
.Italic = wdUndefined bgYUsc*uR
.Subscript = wdUndefined f}t8V% ^E
.Superscript = wdUndefined 8CUlE-R5
End With &\y`9QpVF
With ActiveDocument.Styles("QLNU二级标题").ParagraphFormat bs&>QsI?j
.LeftIndent = CentimetersToPoints(0) RuGG3"|
.RightIndent = CentimetersToPoints(0) ^~;"$=Wf
.FirstLineIndent = CentimetersToPoints(0) +,1 Ea )
;O7Vl5R
.LineSpacingRule = wdLineSpaceSingle cSTF$62E
.Alignment = wdAlignParagraphLeft QnA~,z/.w
kW7$Gw]-
.WidowControl = True T jE'X2/
.KeepWithNext = True ;Rljx3!N
.KeepTogether = True o1?S*
.PageBreakBefore = False *>h|<|T'
.OutlineLevel = wdOutlineLevelBodyText \2^o,1r/
Gsu?m
.LineUnitBefore = 0.5 |[)n.N65=
.LineUnitAfter = 0.5 U0;pl2
Am!OLGG4
End With v&qL r+_7
ActiveDocument.Styles("QLNU二级标题").NoSpaceBetweenParagraphsOfSameStyle = False 5HaI$>h6
ActiveDocument.Styles("QLNU二级标题").ParagraphFormat.TabStops.ClearAll t$e' [;w
ActiveDocument.Styles("QLNU二级标题").LanguageID = wdSimplifiedChinese ifcp!l+8
ActiveDocument.Styles("QLNU二级标题").NoProofing = True c`@";+|r
DoEvents +ag_ w}
_CMNmmp`e
'三级标题样式 rS!M0Hq>t
ActiveDocument.Styles("QLNU三级标题").BaseStyle = ActiveDocument.Styles("BaseStyle") bE;c&g
ActiveDocument.Styles("QLNU三级标题").NextParagraphStyle = "BaseStyle" Yi j^hs@eV
ActiveDocument.Styles("QLNU三级标题").AutomaticallyUpdate = False O.DO,]Uh
With ActiveDocument.Styles("QLNU三级标题").Font ek"Uq RY
.NameFarEast = "宋体" Ae[fW97
.NameAscii = "Times New Roman" neQ~h4U"
.NameOther = "黑体" tv_&PIu]L
.Name = "黑体" G*f\
/
.Size = 14 '四号 @'9m()%-]g
.Bold = False 5P{[8PZxbV
.Outline = False ,`bmue5
.Italic = wdUndefined s o1hC
.Subscript = wdUndefined `W:z#uNG]
.Superscript = wdUndefined .1+I8qj
End With 63i&<
With ActiveDocument.Styles("QLNU三级标题").ParagraphFormat Ew JNpecX
.LeftIndent = CentimetersToPoints(0) V}Ee1C
.RightIndent = CentimetersToPoints(0) <L+1
&H
.FirstLineIndent = CentimetersToPoints(0) EsS$th)d
y_'6bpb
.LineSpacingRule = wdLineSpaceSingle 5eiKMKW[
.Alignment = wdAlignParagraphLeft 2){O&8 A
x5|^p=
.WidowControl = True .JOZ2QWm<
.KeepWithNext = True 7`f%?
xVn0
.KeepTogether = True 9:*[Q"
v
.PageBreakBefore = False ^IKT!"J&?
.OutlineLevel = wdOutlineLevelBodyText IZLBv2m
;0U*N &
f
.CharacterUnitLeftIndent = 0 nMK$&h,{
.CharacterUnitRightIndent = 0 4T-"\tmg/
.CharacterUnitFirstLineIndent = 2 >6R3KJe
c'>_JlG~
.LineUnitBefore = 0.5 +e,c'.
.LineUnitAfter = 0 /9=r.Vxh
End With & 'CUc/,
ActiveDocument.Styles("QLNU三级标题").NoSpaceBetweenParagraphsOfSameStyle = False Wu" 1M^a
ActiveDocument.Styles("QLNU三级标题").ParagraphFormat.TabStops.ClearAll N%?R(
ActiveDocument.Styles("QLNU三级标题").LanguageID = wdSimplifiedChinese UM/!dt}DnF
ActiveDocument.Styles("QLNU三级标题").NoProofing = True pMJm@f
DoEvents l8khu)\n4R
uM\5GK
'四级标题样式 @,j
,GE%
ActiveDocument.Styles("QLNU四级标题").BaseStyle = ActiveDocument.Styles("BaseStyle") f^ja2.*%?
ActiveDocument.Styles("QLNU四级标题").NextParagraphStyle = "BaseStyle" Bi2 c5[3
ActiveDocument.Styles("QLNU四级标题").AutomaticallyUpdate = False = N;5T
With ActiveDocument.Styles("QLNU四级标题").Font ' 55G:r39
.NameFarEast = "宋体" UwxszEHC
.NameAscii = "Times New Roman" &f}w&k2yj
.NameOther = "宋体" {
V)`6
.Name = "宋体" d_Jj&:"l
.Size = 12 '小四号 $A`m8?bY
.Bold = True Qvty;2$o@
.Outline = False h*R w^5,c
.Italic = wdUndefined W4,'?o
.Subscript = wdUndefined %fnG v\uI
.Superscript = wdUndefined f
Tso[r:F.
End With Sn0kJIb
}
With ActiveDocument.Styles("QLNU四级标题").ParagraphFormat Cs(sar:7
jfiUf1Mj
.LeftIndent = CentimetersToPoints(0) S@'%dN6e
.RightIndent = CentimetersToPoints(0) *4e?y
.FirstLineIndent = CentimetersToPoints(0) /K
h,
5DDSo0E
.LineSpacingRule = wdLineSpaceSingle i),bAU!+m
.Alignment = wdAlignParagraphLeft kno[ !A7_6
\%7fm#z6
.WidowControl = True 9GRQ^E
.KeepWithNext = True I(Z\$
.KeepTogether = True ,kf.'N
.PageBreakBefore = False QWnGolN
.OutlineLevel = wdOutlineLevelBodyText Wb>;L@jB7
5rmU
9L
.CharacterUnitLeftIndent = 0 @mJ~?d95v
.CharacterUnitRightIndent = 0 :}yT?LIyP
.CharacterUnitFirstLineIndent = 2 3FtL<7B'.
z)(W
x">
.LineUnitBefore = 0 t.dr<
.LineUnitAfter = 0 3vKTCHbk9
'$c9 S
[
End With X5\xq+Ih
ActiveDocument.Styles("QLNU四级标题").NoSpaceBetweenParagraphsOfSameStyle = False M!kSt1
ActiveDocument.Styles("QLNU四级标题").ParagraphFormat.TabStops.ClearAll 4i
PVpro
ActiveDocument.Styles("QLNU四级标题").LanguageID = wdSimplifiedChinese DJ DQH \&
ActiveDocument.Styles("QLNU四级标题").NoProofing = True OLqV#i[K#9
DoEvents ?%[~J
qvLh7]sbK:
'正文校式 ;*$e8y2
ActiveDocument.Styles("QLNU正文").BaseStyle = ActiveDocument.Styles("BaseStyle") r^a:s]
ActiveDocument.Styles("QLNU正文").NextParagraphStyle = "BaseStyle" T9I$6HAi
ActiveDocument.Styles("QLNU正文").AutomaticallyUpdate = False LRg]'?
With ActiveDocument.Styles("QLNU正文").Font `/Rqt+C
eXMIRus(
.NameFarEast = "宋体" xr{Ym99E$
.NameAscii = "Times New Roman" 3@qv[yOE
.NameOther = "宋体" ^vPsp?
.Name = "宋体" gXlcB~!
3%bhW9H%
.Size = 12 '小四号 MI'"Xzp{s
WrSc@j&Ycv
.Bold = wdUndefined *FktI\tS
.Italic = wdUndefined l^d' 8n
.Subscript = wdUndefined Fuzb4Df
.Superscript = wdUndefined 0>8w On
0k{\W
.Outline = False y|)VNnWM
.Emboss = False /y$ Fw9R;
.Shadow = False =kfa1kD&{
.Hidden = False ]'"Sa<
->
$~iZ aX8&
.DisableCharacterSpaceGrid = True 7f}uRXBV$A
End With bU}v@Uk
With ActiveDocument.Styles("QLNU正文").ParagraphFormat YrJUs]A
,~=]3qmbR
.LeftIndent = CentimetersToPoints(0) l=b!O
.RightIndent = CentimetersToPoints(0) 2Kf/I d1
.FirstLineIndent = CentimetersToPoints(0) 0ki- /{;
<gFa@at
.LineSpacingRule = wdLineSpaceExactly &y}7AV
.LineSpacing = 20 ^Fh*9[Zf$
.Alignment = wdAlignParagraphLeft pY@QR?
F\
1f<R,>
.WidowControl = False p0WUF\
"
.KeepWithNext = False e6>G8d
.KeepTogether = False aop
Z-^
.PageBreakBefore = False OxYAM,F
.Hyphenation = False v2 E <~/|
u5Vgi0}A
.OutlineLevel = wdOutlineLevelBodyText SAdE9L =d
*g,ls(r\[
I`_I^C3
.CharacterUnitLeftIndent = 0 *!ng)3#
.CharacterUnitRightIndent = 0 Z[OX{_2]K
.CharacterUnitFirstLineIndent = 2 B,cFvS
9OV@z6
.LineUnitBefore = 0 0F@ ~[W|2
.LineUnitAfter = 0 v
UVFW'-
.SpaceBefore = 0 (jA5
`4>u
.SpaceAfter = 0 _FYA? d}
q~b# ml2QS
.DisableLineHeightGrid = True ~1%*w*
End With GTM0Qvf?
ActiveDocument.Styles("QLNU正文").NoSpaceBetweenParagraphsOfSameStyle = False In^mE(8YO
ActiveDocument.Styles("QLNU正文").ParagraphFormat.TabStops.ClearAll ^8;MY5Wbs
ActiveDocument.Styles("QLNU正文").LanguageID = wdSimplifiedChinese xa@$cxt
ActiveDocument.Styles("QLNU正文").NoProofing = True
M2 |!,2
DoEvents aZ4?!JW .
D>[Sib/@
'图片段落样式 nj'5iiV`]
ActiveDocument.Styles("QLNU图片段落").BaseStyle = ActiveDocument.Styles("BaseStyle") [B#XA}w
ActiveDocument.Styles("QLNU图片段落").NextParagraphStyle = "BaseStyle" Gk
{ 'U
ActiveDocument.Styles("QLNU图片段落").AutomaticallyUpdate = False Q(]m1\a
With ActiveDocument.Styles("QLNU图片段落").Font mmbe.$73
.Size = 12 '小四号 ,puoq{
.Italic = wdUndefined ;_vhKU)%J#
.Subscript = wdUndefined pX{wEc6}
.Superscript = wdUndefined mpug#i6q
End With mLqqo2u
With ActiveDocument.Styles("QLNU图片段落").ParagraphFormat CYLab5A
E<Zf!!3
.LeftIndent = CentimetersToPoints(0) ?W{+[OXs
.RightIndent = CentimetersToPoints(0) zXx/\B$&d*
.FirstLineIndent = CentimetersToPoints(0) H oABo:
X2@Ef2EkM
.LineSpacingRule = wdLineSpaceSingle m~5 unB9
.Alignment = wdAlignParagraphCenter dI
,A;.
.KeepWithNext = True fwv^dEe
.OutlineLevel = wdOutlineLevelBodyText Ai1"UYk\\Y
\^*:1=|7u]
.CharacterUnitLeftIndent = 0 rP3tFvOH
.CharacterUnitRightIndent = 0 &J&'J~N
.CharacterUnitFirstLineIndent = 0 _i}b]xfM
88~Nrl=co
.LineUnitBefore = 0 6qHD&bv\%C
.LineUnitAfter = 0 B`Z3e%g#
End With X7h
uc*
ActiveDocument.Styles("QLNU图片段落").NoSpaceBetweenParagraphsOfSameStyle = False Tc/^h4xH
ActiveDocument.Styles("QLNU图片段落").ParagraphFormat.TabStops.ClearAll wKLYyetM!
ActiveDocument.Styles("QLNU图片段落").LanguageID = wdSimplifiedChinese b^Z2Vf:k]
ActiveDocument.Styles("QLNU图片段落").NoProofing = True j*<J&/luYZ
DoEvents J`U]Ux/L
hHN[K
xeSch?}
'第X章 pE&G]ZC
ActiveDocument.Styles("QLNU章节标题").BaseStyle = ActiveDocument.Styles("BaseStyle") 'RV96lX<
ActiveDocument.Styles("QLNU章节标题").NextParagraphStyle = "BaseStyle" \Q|-Npw
ActiveDocument.Styles("QLNU章节标题").AutomaticallyUpdate = False wn5OgXxG<
With ActiveDocument.Styles("QLNU章节标题").Font O hk\P;}
.NameFarEast = "黑体" ]JjS$VMauX
.NameAscii = "Arial Black" =^rt?F4
.NameOther = "Arial Black" NgDhd
OB
.Name = "黑体" x*7A33@i
.Size = 16 nsRCDUCi
.Bold = True |@iM(MM[?
.UnderlineColor = wdColorAutomatic %-!%n=P
.Outline = False .DhI3'Jrl
.Italic = wdUndefined ~tA ^[tK
.Subscript = wdUndefined
x<gmDy*
.Superscript = wdUndefined iHG
VR
.Scaling = 100 %-blx)Pc
.DisableCharacterSpaceGrid = True Kf:!tRE
End With {&,p<5o
With ActiveDocument.Styles("QLNU章节标题").ParagraphFormat EL$DvJ~
.LineSpacingRule = wdLineSpaceSingle P!W%KobZ7|
.Alignment = wdAlignParagraphCenter 9?H$0xZV
.WidowControl = True z3uR1vF'
.KeepWithNext = True i90 X0b-A
.KeepTogether = True #QoWne
Z
.PageBreakBefore = True C P}fxDW
.OutlineLevel = wdOutlineLevelBodyText |+q_kx@?l
5G}4z>-]F)
.LeftIndent = CentimetersToPoints(0) P+o"]/7U
.RightIndent = CentimetersToPoints(0) ^A@f{g$KB+
.FirstLineIndent = CentimetersToPoints(0) miaH,hm
{P8d^=#q
.CharacterUnitLeftIndent = 0
]
#@:VR
.CharacterUnitRightIndent = 0 K9#kdo1 2
.CharacterUnitFirstLineIndent = 0
lH4Nbluc^
&SE}5ddC7
.LineUnitBefore = 1 b!]O]dk#
.LineUnitAfter = 0.5 IQPu%n{0v
?Fl}@EA#M
.AutoAdjustRightIndent = False >+a\BK"k
.DisableLineHeightGrid = True l&ueD&*4&
.FarEastLineBreakControl = True |@X^_L.!
.WordWrap = True /P*XB%y
End With ->b5"
{t
ActiveDocument.Styles("QLNU章节标题").NoSpaceBetweenParagraphsOfSameStyle = False H54RA6$>
ActiveDocument.Styles("QLNU章节标题").ParagraphFormat.TabStops.ClearAll Oj c Tu
ActiveDocument.Styles("QLNU章节标题").LanguageID = wdSimplifiedChinese +Ww] %`_
ActiveDocument.Styles("QLNU章节标题").NoProofing = True KSPa2>lz?
DoEvents $Y|OGZH8E
* @4@eQF
'表格标题 y''~j<'
ActiveDocument.Styles("QLNU表格标题").BaseStyle = ActiveDocument.Styles("BaseStyle") <R]m(
ActiveDocument.Styles("QLNU表格标题").NextParagraphStyle = "BaseStyle" 'Gn>~m
ActiveDocument.Styles("QLNU表格标题").AutomaticallyUpdate = False 5v)^4(
)
With ActiveDocument.Styles("QLNU表格标题").Font ed,A'S=d
.NameFarEast = "楷体" fEZuv?@
.NameAscii = "Arial" _u[tv,
.Name = "楷体" vTK%4=|1}!
.Size = 10.5 FMVAXOO
.Bold = True )XDBK*!
.Underline = wdUnderlineNone >[;W~*
.Italic = wdUndefined LS[o7 !T(
.Subscript = wdUndefined KEOk%'c,
.Superscript = wdUndefined v0\l~_|H
.Color = wdColorAutomatic JD$g%hcVZa
End With
`Eh>E,
With ActiveDocument.Styles("QLNU表格标题").ParagraphFormat ]eKuR"ob0
4u:SE
.LineSpacingRule = wdLineSpaceSingle 7\6g>4J^`
.Alignment = wdAlignParagraphCenter 4=^_VDlpd
.KeepWithNext = True uvbVb"\"Yk
.KeepTogether = True l;iU9<~
.OutlineLevel = wdOutlineLevelBodyText SUc%dpXZa
idYB.]Y(
.LeftIndent = CentimetersToPoints(0) /*qRbN
.RightIndent = CentimetersToPoints(0) ['IH*gi
.FirstLineIndent = CentimetersToPoints(0) F0<)8{s
y(J~:"}7)
.CharacterUnitLeftIndent = 0 ?XHQdN3e
.CharacterUnitRightIndent = 0 ?}KRAtJ8
.CharacterUnitFirstLineIndent = 0 ^v;)6a2
kkq1:\pZ]a
.LineUnitBefore = 1 i/
/H5D3
.LineUnitAfter = 0 )%K<pIk
]bY|>q
End With Y"mFUW4
ActiveDocument.Styles("QLNU表格标题").NoSpaceBetweenParagraphsOfSameStyle = False OT
0c5x
ActiveDocument.Styles("QLNU表格标题").ParagraphFormat.TabStops.ClearAll ;;,7Jon2
ActiveDocument.Styles("QLNU表格标题").LanguageID = wdSimplifiedChinese Zk=,`sBC
ActiveDocument.Styles("QLNU表格标题").NoProofing = True /TpTR-\I0
DoEvents 4aS}b3=n
<gF]9%2E
'表格首行 "U}kp#)
ActiveDocument.Styles("QLNU表格首行").BaseStyle = ActiveDocument.Styles("BaseStyle") {$^'oR
k
ActiveDocument.Styles("QLNU表格首行").AutomaticallyUpdate = False 9r? Z'~,Za
With ActiveDocument.Styles("QLNU表格首行").Font qPQIcJ
.NameFarEast = "楷体" |(.\J`_e
.NameAscii = "Times New Roman" #dZs[R7h
.Name = "楷体" /}m)FaAi
.Size = 9 .
^wpfS
.Bold = True CeYhn\m5K0
.Underline = wdUnderlineNone u"HGT=Nl
.Italic = wdUndefined |UB$^)Twb
.Subscript = wdUndefined 1,fR kQ
.Superscript = wdUndefined .$&^yp
End With "N}t =3i$
With ActiveDocument.Styles("QLNU表格首行").ParagraphFormat >
5CK&6
.LineSpacingRule = wdLineSpaceSingle j}^w:W76
.Alignment = wdAlignParagraphCenter /f#b;qa,
S~Gse+*
.LeftIndent = CentimetersToPoints(0) sUG!dwqqd
.RightIndent = CentimetersToPoints(0) A<+Dx
.FirstLineIndent = CentimetersToPoints(0) g$K\rA
+HS]kF H
KoERg&fY
.CharacterUnitLeftIndent = -0.5
J# (AX6
.CharacterUnitRightIndent = -0.5 3YvKHn|V"
.CharacterUnitFirstLineIndent = -0.5 gHe:o`
5%I3eL%s
.LineUnitBefore = 0 gK rUv0&F
.LineUnitAfter = 0 N{v)pu.
.SpaceBefore = 0 .?45:Ey~g
.SpaceAfter = 0 B]X8KzLu
Ek L2
nI
End With NIs 7v
ActiveDocument.Styles("QLNU表格首行").NoSpaceBetweenParagraphsOfSameStyle = False w
5%Yi{
ActiveDocument.Styles("QLNU表格首行").ParagraphFormat.TabStops.ClearAll iJzBd7
ActiveDocument.Styles("QLNU表格首行").LanguageID = wdSimplifiedChinese WQ9e
~D"
ActiveDocument.Styles("QLNU表格首行").NoProofing = True %zcA|SefP
DoEvents _9h$8(wjn
(.4lsKN<
'表格内容 >of34C"DI
ActiveDocument.Styles("QLNU表格内容").BaseStyle = ActiveDocument.Styles("BaseStyle") n
o*) M7
ActiveDocument.Styles("QLNU表格内容").AutomaticallyUpdate = False VfcIR(
With ActiveDocument.Styles("QLNU表格内容").Font <F7a!$zQ
.NameFarEast = "楷体" QF>T)1&J[7
.NameAscii = "Times New Roman" h!w::cV
.Name = "楷体" x"b'Pmw
.Size = 9 &en.
m>9,
.Bold = False |
[.-pA^
.Underline = wdUnderlineNone C8-7XQ=B:b
.Italic = wdUndefined }X)vktE+|
.Subscript = wdUndefined /.SG? 5t4
.Superscript = wdUndefined M6g8+ sio
End With sycAAmH<
With ActiveDocument.Styles("QLNU表格内容").ParagraphFormat {srP3ll
P
.LineSpacingRule = wdLineSpaceSingle Y}ogwg&
.Alignment = wdAlignParagraphCenter (uC8M,I\
f!'i5I]
.LeftIndent = CentimetersToPoints(0) I){4
MoH.
.RightIndent = CentimetersToPoints(0) q/ljH_-
.FirstLineIndent = CentimetersToPoints(0)
D>7a0p784
O <Rh[Aqn
.CharacterUnitLeftIndent = -0.5 ?4b0\ -
.CharacterUnitRightIndent = -0.5 hP"2X"kz&
.CharacterUnitFirstLineIndent = -0.5 HA,o2jZ?In
.LineUnitBefore = 0 U ]<l-~|
.LineUnitAfter = 0 BP3Ha8/X
.SpaceBefore = 0 i\sBey ND"
.SpaceAfter = 0 tAv3+
End With yNvAT>H
ActiveDocument.Styles("QLNU表格首行").NoSpaceBetweenParagraphsOfSameStyle = False IXy6Yn9l
ActiveDocument.Styles("QLNU表格首行").ParagraphFormat.TabStops.ClearAll E.K^v/dNdq
ActiveDocument.Styles("QLNU表格首行").LanguageID = wdSimplifiedChinese L2XhrLK.|
ActiveDocument.Styles("QLNU表格首行").NoProofing = True E=8'!
DoEvents b >D
"`% ,l|D
'图片标题 fmW{c mr|
ActiveDocument.Styles("QLNU图片标题").BaseStyle = ActiveDocument.Styles("BaseStyle") 27SHj9I
ActiveDocument.Styles("QLNU图片标题").NextParagraphStyle = "BaseStyle" 3x[Cpg
,
ActiveDocument.Styles("QLNU图片标题").AutomaticallyUpdate = False *{ rorir
With ActiveDocument.Styles("QLNU图片标题").Font r)^sHpK:`
.NameFarEast = "楷体" F rc
kA
.NameAscii = "Times New Roman" 1=)M15
.Name = "楷体" |N&t
.Size = 10.5
(Q8!5s
.Bold = True ? "I %K%
.Underline = wdUnderlineNone ;%e)t[5
.Italic = wdUndefined 2{=]Pf
.Subscript = wdUndefined hE&6;3">
.Superscript = wdUndefined %,T*[d&i
.Outline = False 1iF=~@Nz_
.Shadow = False ,jY:@<n
.Color = wdColorAutomatic >5FTBe[D
End With =~;~hZj
With ActiveDocument.Styles("QLNU图片标题").ParagraphFormat k'o[iKlu
.LineSpacingRule = wdLineSpaceSingle \W*L9azr
.Alignment = wdAlignParagraphCenter eh9?GUr5
Rl ]x:
.KeepWithNext = wdUndefined R;OPY?EeW
.KeepTogether = True wK(]E%\
.OutlineLevel = wdOutlineLevelBodyText E{\CE1*
hY&Yp^"}]^
.LeftIndent = CentimetersToPoints(0) gcA:Q4
.RightIndent = CentimetersToPoints(0) gC1LQ!:;Oi
.FirstLineIndent = CentimetersToPoints(0) VVeJe"!t
u9"=t
.CharacterUnitLeftIndent = 0 >$D!mraih
.CharacterUnitRightIndent = 0 ZO<,V
.CharacterUnitFirstLineIndent = 0 h&'|^;FM
A6]:BuP;c
.LineUnitBefore = 0 aC,adNub
.LineUnitAfter = 0
>Z!!` 0{
End With 'zYS:W
ActiveDocument.Styles("QLNU图片标题").NoSpaceBetweenParagraphsOfSameStyle = False ;E.]:Ia~
ActiveDocument.Styles("QLNU图片标题").ParagraphFormat.TabStops.ClearAll qX@e+&4P0
ActiveDocument.Styles("QLNU图片标题").LanguageID = wdSimplifiedChinese &s".hP6
ActiveDocument.Styles("QLNU图片标题").NoProofing = True QY;(Ny/(y
DoEvents NH/A`Wm
e0P[,e*0
'目录项 cfIC(d
ActiveDocument.Styles("QLNU目录项").BaseStyle = ActiveDocument.Styles("BaseStyle") D{+@ ,C7B
ActiveDocument.Styles("QLNU目录项").NextParagraphStyle = "BaseStyle" le/j!
ActiveDocument.Styles("QLNU目录项").AutomaticallyUpdate = False So1TH%
With ActiveDocument.Styles("QLNU目录项").Font KuP#i]Na
.NameFarEast = "黑体" *)E${\1' <
.NameAscii = "Times New Roman" vD#U
+
.NameOther = "Times New Roman" Jpapl%7v
.Name = "黑体" W![K#r5T
.Size = 10.5 {[!<yUJ`S#
.Bold = False n6oOknCna
.Italic = wdUndefined ^C'S-2nGH
.Underline = wdUnderlineNone R #wZW&N
.Color = wdColorAutomatic +pR,BjY
.Superscript = wdUndefined ~[Tcl
.Subscript = wdUndefined lx|Aw@C3~
End With GB$`b'x@S
With ActiveDocument.Styles("QLNU目录项").ParagraphFormat On*I.~
_KM?
?&
.LineSpacingRule = wdLineSpaceSingle F'K >@y
.Alignment = wdAlignParagraphLeft =Kkqk
;^ME
.WidowControl = False 0"R>:f}
.KeepWithNext = False uyYV_Q0~;
.KeepTogether = False B'yjMY![
.PageBreakBefore = False JR]2Ray
.NoLineNumber = False t(3
f} ?
.OutlineLevel = wdOutlineLevelBodyText ]yPK}u
lx+;<la
.LeftIndent = CentimetersToPoints(0) rDWAZ<;;
.RightIndent = CentimetersToPoints(0) kPX+n+$
.FirstLineIndent = CentimetersToPoints(0)
MqZ"Js
&Sd5]r@+
.CharacterUnitLeftIndent = 0 0b{jox\!B
.CharacterUnitRightIndent = 0 @AZNF+
\W$
.CharacterUnitFirstLineIndent = 0 Jw]!x1rF~
$)#orZtzr
.LineUnitBefore = 0 )gd
eFA V
.LineUnitAfter = 0 RhowhQ) G
End With uY5|Nmiu
ActiveDocument.Styles("QLNU目录项").NoSpaceBetweenParagraphsOfSameStyle = False >kQp@r\nQ
ActiveDocument.Styles("QLNU目录项").ParagraphFormat.TabStops.ClearAll bN_e~ z
ActiveDocument.Styles("QLNU目录项").ParagraphFormat.TabStops.Add Position:=PicasToPoints(44.5), Alignment:=wdAlignTabRight, Leader:=wdTabLeaderMiddleDot .
Vb|le(7
ActiveDocument.Styles("QLNU目录项").LanguageID = wdSimplifiedChinese Jx+6Kq(
ActiveDocument.Styles("QLNU目录项").NoProofing = True }k }=e
DoEvents 64u(X^i
3'uXU<W!
'参考文献 @\g}I`_M
ActiveDocument.Styles("QLNU参考文献").BaseStyle = ActiveDocument.Styles("BaseStyle") t<v.r
b
ActiveDocument.Styles("QLNU参考文献").NextParagraphStyle = "BaseStyle" Ji
nh#iar
ActiveDocument.Styles("QLNU参考文献").AutomaticallyUpdate = False !/p|~K
With ActiveDocument.Styles("QLNU参考文献").Font 3;v)f": [
.NameFarEast = "宋体"
V;: k-
.NameAscii = "Times New Roman" ,?8a3%
.NameOther = "Times New Roman" }+!"mJx@
.Name = "Times New Roman" xrg"/?84
.Size = 12 %tVU Rj
.Bold = False D)-LZbPa
.Italic = wdUndefined AY52j
.Subscript = wdUndefined 21v--wZ
.Superscript = wdUndefined |?88EG@05
.Underline = wdUnderlineNone liS'
.UnderlineColor = wdColorAutomatic p
:xyy*I
.Color = wdColorAutomatic TDo)8+.2z
.Engrave = False N?qETp -:
End With
'/I`dj
With ActiveDocument.Styles("QLNU参考文献").ParagraphFormat S(PV*e8
0T`Qoo>u
.LineSpacingRule = wdLineSpaceExactly JQKXbsXS
.LineSpacing = 16 !gkr?yhE
.Alignment = wdAlignParagraphLeft Z|_V ;*
.WidowControl = False }eLApFHEDg
.KeepWithNext = False |qX?F`
.KeepTogether = False 3
`_/h' ~
.PageBreakBefore = False O!"K'Bm
.OutlineLevel = wdOutlineLevelBodyText \Eh5g/,[
x"z\d,O%W
.LeftIndent = CentimetersToPoints(0) d_,My lk
.RightIndent = CentimetersToPoints(0) wH|%3@eJ
.FirstLineIndent = CentimetersToPoints(0) S>dHBR#AD
J2Dn
.CharacterUnitLeftIndent = 0 4np2I~ !
.CharacterUnitRightIndent = 0 li%@HdA!
.CharacterUnitFirstLineIndent = -2 }uIQ@f`
pb97S^K[
.LineUnitBefore = 0 |m-N5$\IC
.LineUnitAfter = 0 &| (K#|^@
.SpaceBefore = 0 )xcjQkb
.SpaceAfter = 0 N
w. )O
2 ,nhs,FZ
End With :<aGZ\R5
ActiveDocument.Styles("QLNU参考文献").NoSpaceBetweenParagraphsOfSameStyle = False Y!M0JSaM
ActiveDocument.Styles("QLNU参考文献").ParagraphFormat.TabStops.ClearAll uj3`M9
ActiveDocument.Styles("QLNU参考文献").LanguageID = wdEnglishUS 8|Tqk,/pD
ActiveDocument.Styles("QLNU参考文献").NoProofing = True _#K|g#p5
ActiveDocument.Styles("QLNU参考文献").LanguageID = wdSimplifiedChinese 25OQY.>bE
DoEvents "e-Y?_S7R8
4XAB_Q
' I%.nPOQ 8
ActiveDocument.Styles("QLNU论文题目").BaseStyle = ActiveDocument.Styles("BaseStyle") v\w*VCjoV
ActiveDocument.Styles("QLNU论文题目").NextParagraphStyle = "BaseStyle" $s_k/dM~&
ActiveDocument.Styles("QLNU论文题目").AutomaticallyUpdate = False 11l=zv
With ActiveDocument.Styles("QLNU论文题目").Font 7g*!6-W[
.NameFarEast = "黑体" vl/!w2
.NameAscii = "Arial Black" FsqH:I4O
.NameOther = "Arial Black" 1`?o#w
.Name = "Arial Black" 3V]dl)en%
.Size = 16 ~u*4k:2H
.Bold = False ;!HQ!#B
.Italic = wdUndefined 9y7hJib
.Superscript = wdUndefined 8U@f/P
.Subscript = wdUndefined Hdyl]q-(P
.Underline = wdUnderlineNone --]blP7
.UnderlineColor = wdColorAutomatic $ #!oejLD
.Color = wdColorAutomatic HB )+.e
|.9PwD8~VD
End With ]C^ #)7
With ActiveDocument.Styles("QLNU论文题目").ParagraphFormat x;W!sO@$
.LineSpacingRule = wdLineSpaceSingle C
O6}D
.Alignment = wdAlignParagraphCenter 3N > V
sl
.WidowControl = True 7FH-l(W
.KeepWithNext = True CNRSc4Le
.KeepTogether = True Kz;Ar&^`N
.PageBreakBefore = True q;9X8 _
.NoLineNumber = False W<q<}RSn
.OutlineLevel = wdOutlineLevelBodyText h?TIxo:6/
sO) H#G
.LeftIndent = CentimetersToPoints(0) diXWm-ZKL
.RightIndent = CentimetersToPoints(0) uYeb RCdR
.FirstLineIndent = CentimetersToPoints(0) B*G]Dr)e
+^9^)Ur|
.CharacterUnitLeftIndent = 0 ZW;Ec+n_K
.CharacterUnitRightIndent = 0 +j: &_
.CharacterUnitFirstLineIndent = 0 {e&fB