如何从OMML转换为MathType的方程式中删除带有菱形的问号?

时间:2019-02-28 14:49:58

标签: markdown r-markdown pandoc bookdown mathtype

我有一个简单的书本文档,上面贴有LaTeX公式:

e.txt

使用RStudio,它通常可以编织为PDF:

pdf

它也可以连接到docx文档,并且我内部具有OMML方程:

docx

但是由于某些原因,我需要以MathType形式使用此等式。
因此,我将其从OMML( Word 2007和后期(OMML)方程)转换为MathType( MathType方程(OLE对象)):

OMML to MathType

此过程以Word中的方程式结束:

MathType equation with diamonded question marks

问号 package cais240courseproj; public class CAIS240CourseProj extends Application { @Override public void start(Stage stage) throws Exception { //netbeans has directed me to this as the problem that isn't allowing //the program to run Parent root = FXMLLoader.load(getClass().getResource("Login.fxml")); Scene scene = new Scene(root); stage.setScene(scene); stage.show(); stage.setResizable(false); } /** * @param args the command line arguments */ public static void main(String[] args) { launch(args); } } 具有以下等效的十六进制:public class FXMLDocumentController implements Initializable { boolean validAccount; @FXML private Label label; @FXML private ImageView iv; @FXML private AnchorPane rootLogin; @FXML private Button registerBtn; @FXML private Button EmailTextField; @FXML private Button passwordTextField; @FXML private void handleButtonAction(ActionEvent event) { System.out.println("You clicked me!"); label.setText("Hello World!"); } @FXML private void loadRegister(ActionEvent event) throws IOException { Parent registerPane = FXMLLoader.load(getClass().getResource("Register.fxml")); //Make sure the textfields aren't empty if( (!EmailTextField.getText().isEmpty() ) && ( !passwordTextField.getText().isEmpty() ) ) //take the user input (email and password) and compare them with registered //account info validatePassAndEmail(EmailTextField.getText(), passwordTextField.getText()); Scene tableViewScene = new Scene(registerPane); Stage window = (Stage)((Node)event.getSource()).getScene().getWindow(); window.setScene(tableViewScene); window.show(); } private void validatePassAndEmail(String email, String password) throws IOException{ boolean sameEmail = false, samePassword = false; Scanner scan = new Scanner(new File("e.txt")); //comparing and checking to see if the user input is a registered account while( (sameEmail == false) && (samePassword == false) ){ while (scan.hasNextLine()) { if( sameEmail == false && email.equals(scan.next())) sameEmail = true; if(samePassword == false && password.equals(scan.next())) samePassword = true; //if the scanner has reached the end with no matches if(scan.next().equals("")) break; } } if( sameEmail == true && samePassword == true ) validAccount = true; } @Override public void initialize(URL url, ResourceBundle rb) { // TODO } }

如何删除这些带有菱形的问号?或者我该如何避免它们出现?

理想情况下,我需要在方程式的右边具有方程式编号。

1 个答案:

答案 0 :(得分:1)

通过将MathType发行版中的所有必需字体手动安装到 C:/ Windows / Fonts 解决了问题。

钻石消失了:

diamonds gone

注意:如果有人感兴趣,钻石的乳胶符号为\qquad