• LaTeX 对齐问题


    一、一行文本对齐

     

    leftline{左对齐} centerline{居中} ightline{右对齐}

     

    二、多行文本段落对齐

    左对齐 egin{flushleft}...end{flushleft}
    居中 egin{center}...end{center}
    右对齐 egin{flushright}...end{flushright}

     

    三、LaTeX公式对齐

    1. 默认情况下公式是居中对齐的,但若希望改成左对齐可以

    documentclass[a4paper,fleqn]{article}

    这对整篇文章都有效。

     

    2. 对某一行公式进行左对齐

    egin{flalign}
    your equation (1)
    end{flalign}

     

    3. 对某一个公式左对齐

    some text here\
    [
    your equation here
    ]\
    and more text here.

     

    3. 对某几行公式

    egin{flalign}
    egin{split}
    your equation (1)
    your equation (2)
    end{split}&
    end{flalign}

     

    四、其它方法

    左对齐、居中对齐、右对齐的环境分别为flushleft、center和flushright。也可以使用命令 aggedright、centering和 aggedleft使以后的文本按指定方式对齐.

     

    加载amsmath宏包后,使用选项fleqn(就是声明加载宏包时使用usepackage[fleqn]{amsmath})可以使本该居中对齐的行间公式改为左对齐.


  • 相关阅读:
    好多天没写了,郁闷
    昨天很受教育
    恼火的服务器
    欢迎访问我的博客网站
    体育产品论坛
    参考书目
    web2.0与数字标准
    用户产生内容与网站做内容
    Using x++ code reading data from csv file format
    Find out specified the folder for all the files
  • 原文地址:https://www.cnblogs.com/lvchaoshun/p/5906893.html
Copyright © 2020-2023  润新知