標題

[心得] latex標頭的\usepackage 還有數學式排列

作者 vegafish (不台獨就沒有戰爭)
看板 Nthu_eda223 NTHU_EDA223 - 麥克雞的烘培屋 VT Lab
時間2008-06-15 10:01:15
如果最前面是\documentclass 表示這是latex2e的檔案 可以使用\usepackage 如果最前面是\documentstyle 表示這是latex2.0.9的檔案 不能使用\usepackage 要在論文裡面寫數學式 \begin{equation} y = ax + b \end{equation} 就會變成 y = ax + b (1) 這種形式 如果要寫等號對齊的 就要先在\documentclass的下面 \begin{document}的上面加上 \usepackage{amsmath} 等號對齊 \begin{align} % 不必再用 \begin{equation} y & = ax + b \\ % 記得每一行都要加上\\來換行 \nonumber & = 3x + 1 \\ & = 4 \end{align} % 不必再用 \end{equation} 上面的式子會依照&的位置排列 會變成 y = ax + b (2) = 3x + 1 = 4 (3) -- _ _ Deja Vu http://vegafish.blogspot.com/ Vegafish <Apocalypse of Doom> in Daggerspine / Lv60 Human Warrior (11/5/35) - Skinning 300 / Herbalism 300 / Weapon Master / Guild Master - http://ctprofiles.net/22330 / http://wow.allakhazam.com/profile.html?88237 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.133.32.250 ※ 編輯: vegafish 來自: 220.133.32.250 (06/15 10:25) ※ 編輯: vegafish 來自: 220.133.32.250 (06/15 10:30)