WPS Tutorial: Skillfully using domain code to enter complex relations

Source: Internet
Author: User

In some science documents, such as the entry of mathematical teaching plans, often encounter the complex relationships shown in Figure 1.

Figure 1

In the past, it was a headache: it was not easy to get a proper sized brace and a stack of text boxes and adjust them to the right place. A careful analysis of this task can actually be broken down into two items: one is multiple lines, and the other is the size of the braces on the left side of the character. In the 2010 Jinshan text of WPS, we can use the field code to make the input of this complex relationship simpler.

One or more lines of oneness

Suppose we need to make "unary inequalities", "the inequality with absolute value and the oneness of the" two-times inequality "three lines can be used as follows: first, press the" CTRL+F9 "key combination to generate a space (a pair of curly braces), in the curly braces input code" EQ AAL (group), Inequalities with absolute values, two inequalities of one-time) ". Need to note that there are two points, one is the field symbols can only be produced by the combination of key can not manually enter the braces to replace, the second is in addition to the Chinese characters are required in the English half of the state input. Position the mouse in the field code, press the "SHIFT+F9" key combination, you can see the effect of the completion.

In the Code, "A ()" is an array switch that arranges the elements separated in parentheses with half-width commas into multiple columns in row order, and "Al" for left alignment. and "AC" and "ar" correspond to "center align" and "right align" respectively. As shown in Figure 2.

Figure 2

Add parentheses to the left of the character

The bracket switch in the field code is "B ()", which is the function of adding parentheses of the specified type to the contents of the parentheses. In this case we only need to enlarge the parentheses on the left. Press "CTRL+F9" to generate airspace symbols, and then input code "EQ blc{(Unary two)", and then press the "SHIFT+F9" key combination, you can see the effect.

The "LC" function is to specify the parentheses on the left, and the "RC" and "BC" are specified on the right and both sides with parentheses. The "{" Before the code bracket is the specified bracket type and, if necessary, can also be "}", "[", or "("), as shown in Figure 3.

Figure 3

Understanding the above two domain switches, the complex relationship shown in Figure 1 is less mysterious. As long as the combination of the two domain switches, you can achieve the effect. The field code for this example is as follows "EQ blc{(AAL two-time equation, inequality blc{(AAL (size comparison of real numbers, basic properties, Solution inequalities blc{(AAC (one-time inequality, with absolute inequality, unary two inequalities)))".

Give a little tip: When writing code, you might want to write a relationship, such as "EQ blc{(AAL equation, inequality)", get the results, and then copy the corresponding code, in the corresponding position, such as "inequality" after pasting the code to modify the EQ blc{(AAL (unary two-time equation, inequality BLC {(AAL (size comparison of real numbers, basic properties, Solution inequalities)), get the result, complete this layer and then paste the code at the appropriate location to write the next layer. It's easier to write a complex relationship without confusing yourself.

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.