Editing and processing mathematical and physical formulas in Linux

Source: Internet
Author: User
Article Title: edit the mathematical and physical formulas for processing in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In mathematics and physics teaching, you must deal with formulas. For example, you must input formulas into text, workbooks, and slides when creating courseware. Here, the RedOffice public editor is used as an example to introduce how to edit mathematical and physical formulas in Linux.
  
RedOffice's public editor has two working modes: one is RedOffice's function component mode for editing formulas-RedOffice Math (Math ), this mode can be used independently like RedOfficeWriter/Calc/Impress; the other is the insert mode (hereinafter referred to as plug-in ), this mode can be used in all functional components except the RedOffice Math Function component. For example, you can insert a formula into a text document created by Writer or a slide created by Impress. The following describes how to use the plug-in public editor and Math.
  
Use the insert Mode Formula Editor
  
1. Input mathematical and physical Formulas
  
Mathematical and physical formulas often contain Greek letters, mathematical symbols, complex functions, such as summation symbols and limit symbols. To create a RedOffice document with mathematical and physical formulas, you can use the insert mode public editor to complete the above work. The following uses the formula for inserting a quadratic equation in Writer as an example to describe how to use the RedOffice formula editor.
  
Start RedOffice (the default function component is RedOfficeWrite), move the cursor to the position where the created document is to insert a mathematical formula, and select "insert/Object/formula" in the menu ", the formula selection window and command window are displayed. The formula selection window is a graphical formula editor that intuitively lists all supported formulas. The top two rows are the mathematical formula classification buttons, the two buttons correspond to nine common mathematical symbols, including unary/binary operators, Relational operators, function operators, and parentheses. If you don't know what type of formula is, you can point the cursor to this button to give a prompt or directly click the classification button to open the symbol to see whether it is. Then, find the expected formula and click it to insert it to the document, as shown in.
  
   
  
The quadratic root formula for editing a dollar in Writer
  
To insert a Greek letter, you only need to place the cursor at the insertion point. Then, click the icon button in the main toolbar to bring up the symbol dialog box. Select "Greek" from the drop-down list of the icon groups ", select the letter from the Greek alphabet listed below, as shown in. After entering the mathematical formula, click any other part of the document to complete the input of the mathematical formula.
  
   
  
Insert a Greek letter
  
Then, delete the redundant formula editor, the box for automatically adding placeholder, and the square brackets that are automatically added in the Command window to make the inserted formula more beautiful. Note that the formula automatically entered in the Window Corresponds to the formula displayed according to the daily writing habits in the display area. But not all of them have satisfactory results. The contents that need to be edited in the Command window will be displayed as a box in the display area (in the Command window, "" is displayed as "" is selected, you can enter the required data.
  
In addition, the default format of some subitems in the formula is bold or italic. To change the format, run the "nbold (not bold)" and "nitalic (not italic)" commands )". For example, the command "nitalic a + bold B" will get a normal, non-italic "a" and a bold "B" (The modification method does not work with the plus sign "+ ). You can also modify the font and font size of each subitem In the Format menu item.
  
To insert a mathematical formula into RedOffice, you can also use OLE to call RedOffice Math to directly create a mathematical formula. The specific method is to select "insert/Object/OLE object" in the menu, and then select "RedOffice1.3.8 formula" to edit the mathematical formula. The method is similar to the previous one.
  
The physical formula is similar to the mathematical formula input, which is simpler. If you have mastered the mathematical formula input method, you can use the formula editor to enter the physical formula.
  
2. Input of chemical formulas
  
Chemical equations are very different from Mathematical Physical formulas. The main difference is that they contain a large number of footcodes. After mastering the script code adding function of Writer, you can insert chemical formulas at will. The following describes how to use the formula as an example.
  
Open the drawing floating toolbar of the main toolbar, select the text tool, and then the cursor turns to a cross shape, use this cursor to draw a text box based on the length of the chemical formula. Enter a chemical symbol. Click the upper/subscript button on the selected toolbar when you add a lower mark. The input text is full of Upper/subscript. Click unmark again to enter the chemical symbol normally. Input is complete. Click any other part of the document to complete the chemical equation input. Use Writer to compile the chemical formula, as shown in.
  
   
  
Editing chemical formulas in Writer
  
Use of RedOffice Math
  
RedOffice Math can be considered as an independent function component. Select "file/New/formula" to start Math. Math and embedded formula compilers use exactly the same method and can compile the formula according to the above method. However, we recommend that you directly use the formula command to enter the formula. The command window is actually a command-based formula editor. You can use the command window to edit the formula as follows: Enter the formula command in the Command window, such as B, use the command formula to indicate a over B. For complex formulas, you can use the formulas displayed in real time to repeatedly compile these formula commands. This method is highly efficient and recommended to professionals.
  
You may say how to remember so many formulas? In fact, in addition to several commonly used formula commands, you do not need to memorize the other commonly used formulas. You only need to press the F1 key to open the help. All the command formulas are in it! After the formula is compiled, it can be saved as a Math file with the extension sxm. This function component is most suitable for creating pure formula documents. After the command is entered, You can adjust its appearance. Click the blank area of the Math document to display the appearance menu and adjust the appearance size. In addition, click "Update" at the bottom of the shortcut menu to refresh the edited formula command in the Command window (after you press Enter) and immediately display the changes.
  
To quickly search for a command formula, right-click the command window and a shortcut menu of all the formula commands will pop up. You can quickly find the required formulas based on the menu categories, as shown in.
  
  
  
Do not back the formula command
  
The "select" dialog box displayed by default in the formula editor in insert mode is disabled by default in Math. You can select "View/select" to open this convenient dialog box.
  
It is not difficult to enter formulas in Linux. Using the RedOffice formula editor can not only create the simple mathematical and chemical formulas above, but also create very complex formulas, for example, the calculus formula in advanced mathematics and the matrix in linear algebra are too convenient for the mathematics and physics teachers who often make courseware.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.