简体   繁体   English

MS-Word段落标记(¶)以等式模式显示,如何更改普通模式

[英]MS-Word paragraph mark (¶) shows in equation mode, how to change normal mode

I have did MS-Word automation to convert OOML (Word-Equation) to MathML, but some cases word paragraph symbol (¶) shows in equation mode. 我已经进行了MS-Word自动化,以将OOML(Word-Equation)转换为MathML,但是在某些情况下,以段落模式显示了单词段落符号(¶)。 My question is how to do automation, to change those symbol into normal mode using VSTO/VBA. 我的问题是如何进行自动化,如何使用VSTO / VBA将这些符号更改为正常模式。

To hide paragraph symbols you could trigger the following line of code (VBA): 要隐藏段落符号,您可以触发以下代码行(VBA):

ActiveWindow.ActivePane.View.ShowAll = False

However, I am not sure if this solves your problem as you could see the symbol as a part of your equation (it would not be paragraph ending mark but just a symbol). 但是,我不确定这是否可以解决您的问题,因为您可以将符号视为等式的一部分(它不是段落结束标记,而只是符号)。 To remove it in such situation you could just try to use Replace function : 要在这种情况下删除它,您可以尝试使用Replace function

Replace("your string here with ¶", Chr(182), "") 

where Chr(182) == ¶ . 其中Chr(182)==¶

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM