国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
Latex中使用align來對齊多行公式的排版技巧

示例顯示的結(jié)果如下:

Latex代碼如下:

  1. \documentclass{article}  
  2. \pagestyle{empty}  
  3. \setcounter{page}{6}  
  4. \setlength\textwidth{266.0pt}  
  5. \usepackage{CJK}  
  6. \usepackage{amsmath}  
  7.   
  8. \begin{CJK}{GBK}{song}  
  9. \begin{document}  
  10.   
  11. \begin{align}  
  12.   (a + b)^3  &= (a + b) (a + b)^2        \\  
  13.              &= (a + b)(a^2 + 2ab + b^2) \\  
  14.              &= a^3 + 3a^2b + 3ab^2 + b^3  
  15. \end{align}  
  16. \begin{align}  
  17.   x^2  + y^2 & = 1                       \\  
  18.   x          & = \sqrt{1-y^2}  
  19. \end{align}  
  20. This example has two column-pairs.  
  21. \begin{align}    \text{Compare }  
  22.   x^2 + y^2 &= 1               &  
  23.   x^3 + y^3 &= 1               \\  
  24.   x         &= \sqrt   {1-y^2} &  
  25.   x         &= \sqrt[3]{1-y^3}  
  26. \end{align}  
  27. This example has three column-pairs.  
  28. \begin{align}  
  29.     x    &= y      & X  &= Y  &  
  30.       a  &= b+c               \\  
  31.     x'   &= y'     & X' &= Y' &  
  32.       a' &= b                 \\  
  33.   x + x' &= y + y'            &  
  34.   X + X' &= Y + Y' & a'b &= c'b  
  35. \end{align}  
  36.   
  37. This example has two column-pairs.  
  38. \begin{flalign}  \text{Compare }  
  39.   x^2 + y^2 &= 1               &  
  40.   x^3 + y^3 &= 1               \\  
  41.   x         &= \sqrt   {1-y^2} &  
  42.   x         &= \sqrt[3]{1-y^3}  
  43. \end{flalign}  
  44. This example has three column-pairs.  
  45. \begin{flalign}  
  46.     x    &= y      & X  &= Y  &  
  47.       a  &= b+c               \\  
  48.     x'   &= y'     & X' &= Y' &  
  49.       a' &= b                 \\  
  50.   x + x' &= y + y'            &  
  51.   X + X' &= Y + Y' & a'b &= c'b  
  52. \end{flalign}  
  53.   
  54. This example has two column-pairs.  
  55. \renewcommand\minalignsep{0pt}  
  56. \begin{align}    \text{Compare }  
  57.   x^2 + y^2 &= 1               &  
  58.   x^3 + y^3 &= 1              \\  
  59.   x         &= \sqrt   {1-y^2} &  
  60.   x         &= \sqrt[3]{1-y^3}  
  61. \end{align}  
  62. This example has three column-pairs.  
  63. \renewcommand\minalignsep{15pt}  
  64. \begin{flalign}  
  65.     x    &= y      & X  &= Y  &  
  66.       a  &= b+c              \\  
  67.     x'   &= y'     & X' &= Y' &  
  68.       a' &= b                \\  
  69.   x + x' &= y + y'            &  
  70.   X + X' &= Y + Y' & a'b &= c'b  
  71. \end{flalign}  
  72.   
  73. \renewcommand\minalignsep{2em}  
  74. \begin{align}  
  75.   x      &= y      && \text{by hypothesis} \\  
  76.       x' &= y'     && \text{by definition} \\  
  77.   x + x' &= y + y' && \text{by Axiom 1}  
  78. \end{align}  
  79.   
  80. \begin{equation}  
  81. \begin{aligned}  
  82.   x^2 + y^2  &= 1               \\  
  83.   x          &= \sqrt{1-y^2}    \\  
  84.  \text{and also }y &= \sqrt{1-x^2}  
  85. \end{aligned}               \qquad  
  86. \begin{gathered}  
  87.  (a + b)^2 = a^2 + 2ab + b^2    \\  
  88.  (a + b) \cdot (a - b) = a^2 - b^2  
  89. \end{gathered}      \end{equation}  
  90.   
  91. \begin{equation}  
  92. \begin{aligned}[b]  
  93.   x^2 + y^2  &= 1               \\  
  94.   x          &= \sqrt{1-y^2}    \\  
  95.  \text{and also }y &= \sqrt{1-x^2}  
  96. \end{aligned}               \qquad  
  97. \begin{gathered}[t]  
  98.  (a + b)^2 = a^2 + 2ab + b^2    \\  
  99.  (a + b) \cdot (a - b) = a^2 - b^2  
  100. \end{gathered}  
  101. \end{equation}  
  102. \newenvironment{rcase}  
  103.     {\left.\begin{aligned}}  
  104.     {\end{aligned}\right\rbrace}  
  105.   
  106. \begin{equation*}  
  107.   \begin{rcase}  
  108.     B' &= -\partial\times E          \\  
  109.     E' &=  \partial\times B - 4\pi j \,  
  110.   \end{rcase}  
  111.   \quad \text {Maxwell's equations}  
  112. \end{equation*}  
  113.   
  114. \begin{equation} \begin{aligned}  
  115.   V_j &= v_j                      &  
  116.   X_i &= x_i - q_i x_j            &  
  117.       &= u_j + \sum_{i\ne j} q_i \\  
  118.   V_i &= v_i - q_i v_j            &  
  119.   X_j &= x_j                      &  
  120.   U_i &= u_i  
  121. \end{aligned} \end{equation}  
  122.   
  123. \begin{align}  
  124.   A_1 &= N_0 (\lambda ; \Omega')  
  125.          -  \phi ( \lambda ; \Omega')   \\  
  126.   A_2 &= \phi (\lambda ; \Omega')  
  127.             \phi (\lambda ; \Omega)     \\  
  128. \intertext{and finally}  
  129.   A_3 &= \mathcal{N} (\lambda ; \omega)  
  130. \end{align}  
  131. \end{CJK}  
  132. \end{document}  

編譯命令如下:

  1. pdflatex main  
  2. pdflatex main  


本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
LaTeX技巧心得203:如何實(shí)現(xiàn)等號(hào)對齊
word再見!排版神器來了
如何快速輸入復(fù)雜的數(shù)學(xué)公式?這里有 3 個(gè)實(shí)用技巧
數(shù)學(xué)公式在線編輯小技巧有哪些?在線編輯技巧看過來
gnuplot /希臘字母
點(diǎn)擊率預(yù)估算法:FM與FFM
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服