[Latex entry] 11. Center text

Source: Internet
Author: User
\ Centerline Syntax: \ centerline {text} This is the original Tex command, applicable to text with shorter center. Center Environment Syntax: \ begin {Center} First line \ second line \ end {Center}
The center environment enables multi-row center alignment. In the center environment, if the "first line" is too long, it will automatically wrap the line, and the text to wrap is still centered and aligned, so this is a common method. The following is a very practical example. When writing a thesis, you need to write a title, which is generally set to a Chinese title. The following is an English title:
123456789101112131415161718 \ Documentclass [11pt, a4paper] {Article} \ usepackage {CJK} \ usepackage {type 1cm} \ usepackage {times} \ newcommand {\ SONG} {\ cjkfamily {SONG} \ newcommand {\ Xiaoer} {\ fontsize {18pt} {18pt} \ selectfont} \ newcommand {\ xiaosan} {\ fontsize {15pt} {22pt} \ selectfont} \ renewcommand {\ baselinestretch} {1.8} % double Line spacing \ begin {document} \ begin {CJK *} {GBK} {SONG} \ begin {Center} {\ song \ Xiaoer \ textbf {shortest path algorithm: ~ Classification System and research progress }\\%,, bold {\ Xiaoer Shortest Path Algorithms :~ Taxonomy and advance in research} % Times New Roman, Xiao 'er \ end {Center} \ vspace {20pt} \ centerline {\ xiaosan for \ quad: Lu feng} % for short texts, use \ centerline \ end {CJK *} \ end {document}

The effect is as follows:

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.