CUHK-Shenzhen
简体中文
  • Services
    • 3D Printing Service
    • Book a Library Space
      • Editing studio
      • Interactive Space
      • Study Room
      • Training Room
    • Citation Search Report
    • Interlibrary Loan & Document Delivery
    • LibGuides
    • Off-Campus Access to E-resources
  • Resources
    • Course Reserve
    • E-resources
    • New Resources
    • Purchase Request
      • Autonomous Book Acquisition
      • Books Selection Online
      • Form Submission Online
      • Progress Query
    • Search the Catalogue
    • University Knowledge Hub
  • Discover & Learn
    • Citation Guides
    • Events at the Library
    • Library Decennial
    • Library News
    • Library Notifications
    • Library Tutorials
    • Floor Maps
  • About Us
    • Introduction
    • Rules & Policies
      • Borrow and Return Policies
      • Code of Behaviour
      • Photography
      • Purchase Request Policy
      • Space Regulations
    • Structure
    • Team
    • Visit Us
  • My Library Account
  • Ask Us
    • Access and Privileges
      • Access to CUHK Library
    • Consultation
    • Facilities Guide
    • Frequently Asked Questions
    • Gifts to the Library
    • Copyright Guidelines
    • Job Opportunities
    • Library eHandbook
  • Services
    • 3D Printing Service
    • Book a Library Space
      • Editing studio
      • Interactive Space
      • Study Room
      • Training Room
    • Citation Search Report
    • Interlibrary Loan & Document Delivery
    • LibGuides
    • Off-Campus Access to E-resources
  • Resources
    • Course Reserve
    • E-resources
    • New Resources
    • Purchase Request
      • Autonomous Book Acquisition
      • Books Selection Online
      • Form Submission Online
      • Progress Query
    • Search the Catalogue
    • University Knowledge Hub
  • Discover & Learn
    • Citation Guides
    • Events at the Library
    • Library Decennial
    • Library News
    • Library Notifications
    • Library Tutorials
    • Floor Maps
  • About Us
    • Introduction
    • Rules & Policies
      • Borrow and Return Policies
      • Code of Behaviour
      • Photography
      • Purchase Request Policy
      • Space Regulations
    • Structure
    • Team
    • Visit Us
  • My Library Account
  • Ask Us
    • Access and Privileges
      • Access to CUHK Library
    • Consultation
    • Facilities Guide
    • Frequently Asked Questions
    • Gifts to the Library
    • Copyright Guidelines
    • Job Opportunities
    • Library eHandbook
CUHK-Shenzhen
简体中文

Breadcrumb

  • Home
  • News
  • Features
  • Navigating the Future of Technology: Different Alignment Methods for Formulas

Navigating the Future of Technology: Different Alignment Methods for Formulas

February 19,2024 Features
Written by CHEN Chen, Library
Edited by GONG Weifan, Library

Updated 1000 CST Feb 19, 2024


 
In the previous workshop, there was considerable demand from readers regarding the alignment and numbering of multiline formulas in daily writing. In LaTeX, formulas can be categorized as inline formulas and display formulas. Inline formulas are usually used to insert short mathematical expressions within the text, rather than as complete independent formulas. Adding numbering to inline formulas may make them too prominent or disrupt the overall layout of the text. In most cases, alignment and numbering are typically applied to independent long formulas. For long formulas and display formulas, we can use different environments and commands to achieve alignment and numbering. Formula alignment refers to vertically aligning multiple formulas or multiline formulas to facilitate the presentation and understanding of the formula structure.

Display formulas can be represented using several types: \[ \], $$...$$, and those starting with \begin{xx} and ending with \end{xx}. Among them, \[ \] and $$...$$ can only input single-line formulas, and the line break command \\ is ineffective within them. Using \begin{equation}...\end{equation} instead is generally recommended. Although it can also only input single-line formulas and the line break command \\ is ineffective within it, it can be combined with the split command and the line break command \\ to input multiline formulas and have only one numbering:

科技未来路

In addition to the equation environment, we can also use align, alignat, flalign, gather, and multline. Among them, align and alignat are similar, with default right alignment. flalign provides more flexible editing options, including alignment and spacing. gather cannot use the & symbol to specify the alignment position and all formulas are centered by default. multline aligns the first line to the left, the middle lines are centered, and the last line is aligned to the right, but it is less commonly used.

For systems of equations, it is recommended to use the case command in combination:

科技未来路

Website QR Code: (LaTeX Quick Reference Guide)

科技未来路QR

 

Related News

一封来自图书馆馆长的信:葛剑雄馆长寄语

Exploring the Gem of the Academic World: Web of Science
Getting Started with ENDNOTE in Just Six Steps?

Follow Us:

 
 
  • CUHK-Shenzhen
  • MUS Library
  • ITSO
  • FAQ
  • Libguides
  • Guidelines
  • Policy
 

Library of The Chinese University of Hong Kong, Shenzhen

Copyright © CUHK-Shenzhen All Rights Reserved.