CN102194243A - Method and device for laying out formula - Google Patents

Method and device for laying out formula Download PDF

Info

Publication number
CN102194243A
CN102194243A CN2010101277901A CN201010127790A CN102194243A CN 102194243 A CN102194243 A CN 102194243A CN 2010101277901 A CN2010101277901 A CN 2010101277901A CN 201010127790 A CN201010127790 A CN 201010127790A CN 102194243 A CN102194243 A CN 102194243A
Authority
CN
China
Prior art keywords
profession
formula
composing
formula box
finished
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010101277901A
Other languages
Chinese (zh)
Other versions
CN102194243B (en
Inventor
王全鹏
魏文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN 201010127790 priority Critical patent/CN102194243B/en
Publication of CN102194243A publication Critical patent/CN102194243A/en
Application granted granted Critical
Publication of CN102194243B publication Critical patent/CN102194243B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for laying out a formula, relates to the field of computers and solves the problem that during mixed layout of formulas and characters, time and labor are wasted by manually adjusting the layout in the prior art. The method provided by the embodiment of the invention comprises the following steps of: setting a laying-out area; compiling the formula in a way of formula box into a small character sample to be laid out, wherein the formula box is provided with a display attribute; and laying out the small character sample to obtain a big character sample and displaying the big character sample in the laying-out area, wherein the formula box is laid out and displayed according to the display attribute. The method and the device are applicable to an electronic laying-out system.

Description

Formula layout composition method and device
Technical field
The present invention relates to computer realm, relate in particular to a kind of formula layout composition method and device.
Background technology
At present in computing machine electronic composition process; usually can run into the situation that contains formula in the document of composing; particularly mathematics and chemical aspect publication such as teaching material, periodical in; often need the set type a large amount of mathematical formulaes and the situation of literal mixing; existing formula and literal mixed composition layout; as: formula and literal in the effect that a row shows are: the front mainly is the explanation to formula; normally a bit of literal or simple several word put in a colon; the centre is a formula; the back mainly is the numbering to formula, to make things convenient for back article quoting formula.Such as numbering of equation is " (1) ", being cited as hereinafter " formula (1) ".Do not set type if do not follow certain format, cause the structure confusion easily, not attractive in appearance, and be difficult for reading and searching.This just relates to the composing location problem of formula and literal.As shown in Figure 1 and Figure 2.This is the modal typesetting format of mathematics teaching material the inside.Mainly reach the composing of this form at present in the following manner:
In order to reach similar above-mentioned effect, software for editing commonly used at present carries out manual adjustment by the mode that manually adds the space.Not only efficient is very low for this drawback by manual adjustment, and wastes time and energy, and dry as dust.And when content edited again, will break original composing layout, thereby have to manually regulate again again.
Summary of the invention
Embodiments of the invention provide a kind of formula layout composition method and device, can set type fast, need not manual adjustments.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The method that a kind of formula layout is set type is characterized in that, comprising:
One layout region is set;
Formula is enrolled character sample to be set type in the mode of formula box, and described formula box is provided with display properties;
The character sample is set type, generate full-page proof and be shown to one layout region, described formula box is set type according to display properties and is shown.
In the said method, the display properties of described formula box comprises attribute placed in the middle.
In the said method, the formula box comprises according to the step that the display properties composing shows:
If the display properties of formula box is an attribute placed in the middle, judge the half whether length of composing has surpassed one's own profession finished in one's own profession;
If one's own profession has been finished the length of composing does not surpass one's own profession half, the formula box is set type and is presented at the center of one's own profession.
In the said method, also comprise:
If the length of the length of composing less than described one layout region has been finished in one's own profession, formula box right character shows by the one's own profession right-hand member.
In the said method, also comprise:
If one's own profession has been finished the length of composing surpasses one's own profession half, the formula box shows according to normal composing.
In the said method, the formula box comprises according to the step that the display properties composing shows:
If the quantity of formula box is two or more, and the display properties of first formula box is attribute placed in the middle, judges the half whether length of composing has surpassed one's own profession finished in one's own profession;
If one's own profession has been finished the length of composing does not surpass one's own profession half, first formula box is set type and is presented at the center of one's own profession, and the remainder formula box shows according to normal composing successively.
In the said method, also comprise:
If one's own profession has been finished the length of composing surpasses one's own profession half, all formula boxes show according to normal composing successively.
The device that a kind of formula layout is set type comprises:
The unit is set: be used to be provided with one layout region;
Edit cell: be used for formula is enrolled character sample to be set type in the mode of formula box, described formula box is provided with display properties;
Display unit: be used for the character sample is set type, generate full-page proof and be shown to one layout region, described formula box is set type according to display properties and is shown.
Wherein, display unit comprises:
First judgment sub-unit:, be used to judge the half whether length of composing has surpassed one's own profession finished in one's own profession if the display properties of formula box is an attribute placed in the middle;
First carries out subelement: if one's own profession has been finished the length of composing surpasses one's own profession half, be used for the composing of formula box is presented at the center of one's own profession.
Perhaps, display unit comprises:
Second judgment sub-unit: if the quantity of formula box is two or more, and the display properties of first formula box is attribute placed in the middle, is used to judge the half whether length of composing has surpassed one's own profession finished in one's own profession;
Second carries out subelement: if one's own profession has been finished the length of composing surpasses one's own profession half, be used for first formula box composing is presented at the center of one's own profession, the remainder formula box shows according to normal composing successively.
Formula layout composition method, device that the embodiment of the invention provides enroll character sample to be set type with formula in the mode of formula box, are shown to one layout region then automatically, need not manual adjustments.
Description of drawings
Fig. 1 is the existing typesetting format effect synoptic diagram that comprises formula.
Fig. 2 is the existing typesetting format effect synoptic diagram that comprises formula.
Fig. 3 is the method flow diagram of an embodiment of the method for formula layout composing of the present invention.
The full-page proof composing effect synoptic diagram of Fig. 4 for using method shown in Figure 3 to obtain.
Fig. 5 is the method flow diagram of the step that the formula box set type to show according to display properties in the method shown in Figure 3.
Fig. 6 is the another kind of method flow diagram of the step that the formula box set type to show according to display properties in the method shown in Figure 3.
Fig. 7 is the structural representation of an embodiment of the device of formula layout composing of the present invention.
Fig. 8 is a kind of improved structural representation of display unit in the device shown in Figure 7.
Fig. 9 is the another kind of improved structural representation of display unit in the device shown in Figure 7.
Embodiment
Be described in detail below in conjunction with method, the device of accompanying drawing the embodiment of the invention.
An embodiment of the method that formula layout of the present invention is set type as shown in Figure 3, comprising:
S301, one layout region is set.
Described one layout region can be a space of a whole page, an entire paper or a display part.
S302, formula is enrolled character sample to be set type in the mode of formula box, described formula box is provided with display properties.
Described character sample is the word content of needs that computerese is described a slice article of setting type, and described formula can be mathematical formulae, chemical formula, chemical equation and physical expressions etc.Described formula box is image block and the form piece in the character sample, can association attributes be set by the interface of object when coding.The display properties of described formula box comprises attribute placed in the middle.In actual applications, composing person can be provided with the display properties of formula box according to the format needs, such as left-justify or Right Aligns etc.
S303, the character sample is set type, generate full-page proof and be shown to one layout region, described formula box is set type according to display properties and is shown.
Full-page proof is to be shown to the space of a whole page that the user can read after setting type by the character sample as shown in Figure 4, and when setting type the formula box, if the display properties of formula box is an attribute placed in the middle, then the formula box being set type with form placed in the middle shows; If the display properties of formula box is empty, default treatment then, the one's own profession that just the formula box the continued zone of finishing of having set type shows.
Present embodiment enrolls character sample to be set type with formula in the mode of formula box, is shown to one layout region then automatically, and the full-page proof that formation can be read need not manual adjustments layout effect, has improved work efficiency.If will carry out the modification of literal or formula to the zone that composing is finished afterwards, additions and deletions, only need in character sample to be set type, to get final product, the final full-page proof display effect that still can obtain meeting call format, avoided the full-page proof after setting type is carried out part adjustment, might upset space of a whole page layout, the problem that makes the mistake.In addition,, belong to same level, can not produce the problem that the upper strata covers lower floor, when full-page proof shows, can not overlap, further reduced the modification amount because the formula box is set type with alphabetic character.
Among the embodiment of the method that formula layout of the present invention is set type, the step that the formula box is set type and shown according to display properties as shown in Figure 5, comprising:
If the display properties of S501 formula box is an attribute placed in the middle, judge the half whether length of composing has surpassed one's own profession finished in one's own profession.
If the S502 one's own profession has been finished the length of composing does not surpass one's own profession half, the formula box is set type and is presented at the center of one's own profession.
If the length of the length of composing less than described one layout region has been finished in the S503 one's own profession, formula box right character shows by the one's own profession right-hand member.
Existing formula generally has the numbering of a formula after formula, its form is as follows:
A=B+C (3.2)
Wherein, (3.2) are exactly the numbering of formula " A=B+C ", and in order to meet existing formula typesetting format, in this step, under the prerequisite that formula has shown between two parties, numbering of equation shows by the one's own profession right-hand member.
If the S504 one's own profession has been finished the length of composing surpasses one's own profession half, the formula box shows according to normal composing.
That is, the formula box is continued the set type zone of finishing of one's own profession shows.
Among the embodiment of the method that formula layout of the present invention is set type, the step that the formula box is set type and shown according to display properties can also comprise as shown in Figure 6:
If the quantity of S601 formula box is two or more, and the display properties of first formula box is attribute placed in the middle, judges the half whether length of composing has surpassed one's own profession finished in one's own profession.
If the S602 one's own profession has been finished the length of composing does not surpass one's own profession half, first formula box is set type and is presented at the center of one's own profession, and the remainder formula box shows according to normal composing successively.
If the S603 one's own profession has been finished the length of composing surpasses one's own profession half, all formula boxes show according to normal composing successively.
The method that adopts formula layout of the present invention to set type, can set type out easily and have the formula literal mixing effect that meets certain format, and the composing effect is accurate, attractive in appearance neat, and edit the deletion literal as required arbitrarily, increase literal, revise word attribute, editor's formula content etc., these editors can not change the formula layout of original form.
An embodiment of the device that formula layout of the present invention is set type as shown in Figure 7, comprising:
Unit 701 is set: be used to be provided with one layout region.
Edit cell 702: be used for formula is enrolled character sample to be set type in the mode of formula box, described formula box is provided with display properties.
Display unit 703: be used for the character sample is set type, generate full-page proof and be shown to one layout region, described formula box is set type according to display properties and is shown.
As improvement, display unit 703 comprises as shown in Figure 8:
First judgment sub-unit 801:, be used to judge the half whether length of composing has surpassed one's own profession finished in one's own profession if the display properties of formula box is an attribute placed in the middle.
First carries out subelement 802: if one's own profession has been finished the length of composing surpasses one's own profession half, be used for the composing of formula box is presented at the center of one's own profession.
Improve as another kind, display unit 703 comprises as shown in Figure 9:
Second judgment sub-unit 901: if the quantity of formula box is two or more, and the display properties of first formula box is attribute placed in the middle, is used to judge the half whether length of composing has surpassed one's own profession finished in one's own profession.
Second carries out subelement 902: if one's own profession has been finished the length of composing surpasses one's own profession half, be used for first formula box composing is presented at the center of one's own profession, the remainder formula box shows according to normal composing successively.
More than the concrete workflow of device embodiment is seen the method flow among Fig. 3, Fig. 5, Fig. 6 embodiment, does not do at this and gives unnecessary details.
More than device embodiment enrolls character sample to be set type with formula in the mode of formula box, is shown to one layout region then automatically, need not manual adjustments.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. the method that the formula layout is set type is characterized in that, comprising:
One layout region is set;
Formula is enrolled character sample to be set type in the mode of formula box, and described formula box is provided with display properties;
The character sample is set type, generate full-page proof and be shown to one layout region, described formula box is set type according to display properties and is shown.
2. method according to claim 1 is characterized in that the display properties of described formula box comprises attribute placed in the middle.
3. method according to claim 2 is characterized in that, the formula box comprises according to the step that the display properties composing shows:
If the display properties of formula box is an attribute placed in the middle, judge the half whether length of composing has surpassed one's own profession finished in one's own profession;
If one's own profession has been finished the length of composing does not surpass one's own profession half, the formula box is set type and is presented at the center of one's own profession.
4. method according to claim 3 is characterized in that, also comprises:
If the length of the length of composing less than described one layout region has been finished in one's own profession, formula box right character shows by the one's own profession right-hand member.
5. method according to claim 3 is characterized in that, also comprises:
If one's own profession has been finished the length of composing surpasses one's own profession half, the formula box shows according to normal composing.
6. method according to claim 2 is characterized in that, the formula box comprises according to the step that the display properties composing shows:
If the quantity of formula box is two or more, and the display properties of first formula box is attribute placed in the middle, judges the half whether length of composing has surpassed one's own profession finished in one's own profession;
If one's own profession has been finished the length of composing does not surpass one's own profession half, first formula box is set type and is presented at the center of one's own profession, and the remainder formula box shows according to normal composing successively.
7. method according to claim 6 is characterized in that, also comprises:
If one's own profession has been finished the length of composing surpasses one's own profession half, all formula boxes show according to normal composing successively.
8. the device that the formula layout is set type is characterized in that, comprising:
The unit is set: be used to be provided with one layout region;
Edit cell: be used for formula is enrolled character sample to be set type in the mode of formula box, described formula box is provided with display properties;
Display unit: be used for the character sample is set type, generate full-page proof and be shown to one layout region, described formula box is set type according to display properties and is shown.
9. device according to claim 8 is characterized in that display unit comprises:
First judgment sub-unit:, be used to judge the half whether length of composing has surpassed one's own profession finished in one's own profession if the display properties of formula box is an attribute placed in the middle;
First carries out subelement: if one's own profession has been finished the length of composing surpasses one's own profession half, be used for the composing of formula box is presented at the center of one's own profession.
10. device according to claim 8 is characterized in that display unit comprises:
Second judgment sub-unit: if the quantity of formula box is two or more, and the display properties of first formula box is attribute placed in the middle, is used to judge the half whether length of composing has surpassed one's own profession finished in one's own profession;
Second carries out subelement: if one's own profession has been finished the length of composing surpasses one's own profession half, be used for first formula box composing is presented at the center of one's own profession, the remainder formula box shows according to normal composing successively.
CN 201010127790 2010-03-17 2010-03-17 Method and device for laying out formula Expired - Fee Related CN102194243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010127790 CN102194243B (en) 2010-03-17 2010-03-17 Method and device for laying out formula

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010127790 CN102194243B (en) 2010-03-17 2010-03-17 Method and device for laying out formula

Publications (2)

Publication Number Publication Date
CN102194243A true CN102194243A (en) 2011-09-21
CN102194243B CN102194243B (en) 2013-03-27

Family

ID=44602256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010127790 Expired - Fee Related CN102194243B (en) 2010-03-17 2010-03-17 Method and device for laying out formula

Country Status (1)

Country Link
CN (1) CN102194243B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750671A (en) * 2013-12-25 2015-07-01 北大方正集团有限公司 Method and device for inserting bi-directional typesetting character on the basis of inverted sequence of full-page proof
CN110069766A (en) * 2018-01-23 2019-07-30 北大方正集团有限公司 The typesetting processing method and device of formula

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4195338A (en) * 1970-05-06 1980-03-25 Bell Telephone Laboratories, Incorporated Computer typesetting
CN101201817A (en) * 2006-12-15 2008-06-18 北京北大方正电子有限公司 Method for layout of formula
CN101436307A (en) * 2008-12-15 2009-05-20 北大方正集团有限公司 Interactive typesetting method and system for formula
CN101436308A (en) * 2008-12-15 2009-05-20 北大方正集团有限公司 Formula input method and system for interactive formula typesetting software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4195338A (en) * 1970-05-06 1980-03-25 Bell Telephone Laboratories, Incorporated Computer typesetting
CN101201817A (en) * 2006-12-15 2008-06-18 北京北大方正电子有限公司 Method for layout of formula
CN101436307A (en) * 2008-12-15 2009-05-20 北大方正集团有限公司 Interactive typesetting method and system for formula
CN101436308A (en) * 2008-12-15 2009-05-20 北大方正集团有限公司 Formula input method and system for interactive formula typesetting software

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750671A (en) * 2013-12-25 2015-07-01 北大方正集团有限公司 Method and device for inserting bi-directional typesetting character on the basis of inverted sequence of full-page proof
CN104750671B (en) * 2013-12-25 2019-01-11 北大方正集团有限公司 A kind of two-way typesetting character insertion method and device based on full-page proof inverted sequence
CN110069766A (en) * 2018-01-23 2019-07-30 北大方正集团有限公司 The typesetting processing method and device of formula

Also Published As

Publication number Publication date
CN102194243B (en) 2013-03-27

Similar Documents

Publication Publication Date Title
US9053080B2 (en) Method and apparatus for providing access to and working with architectural drawings on a personal digital assistant
CN101916245B (en) A kind of e-book annotation on electronic reader realizes method and apparatus
Edhlund Nvivo 9 essentials
US20060103891A1 (en) Albuming images
CN102779118B (en) Paper typesetting method and system
CN105279301B (en) A kind of planning and designing method of customizable output
CN104063365A (en) Method for inserting object in PDF document
CN100585584C (en) A kind of form quick-speed generation system and method based on moulding plate node
US7814414B2 (en) Relative attributes of floating objects
CN102194243B (en) Method and device for laying out formula
JP2007257670A (en) Image display device and image display method
Winckles et al. Women's Literary Networks and Romanticism: A Tribe of Authoresses
JP2012008721A (en) Information processor, display method, and program
Vandezande et al. Mastering autodesk revit architecture 2012
JPH06251007A (en) Table data input device
CN100573447C (en) The configuration method of graphic user interface
US20210374331A1 (en) Spreadsheet system and method for unaligned placement and evaluation of cells
Al-Suwaidi et al. Application of Digital Core Description Methods in a Reservoir Characterisation Study: A Review of Traditional Versus Potential Future Method
CN103165146B (en) Method for making CD and device
Wong Layer Tool: Support for progressive design
Collins et al. Aberration in Modern Poetry: Essays on Atypical Works by Yeats, Auden, Moore, Heaney and Others
Boyles Book Review: MC Carey, The News Untold: Community Journalism and the Failure to Confront Poverty in Appalachia
Bothell Microsoft® PowerPoint®
KR20160013482A (en) System and method for cube matrix contents generation
Mawdsley AutoCAD 2000i: An Introductory Course

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130327

Termination date: 20170317