LaTeX962153 views
いろは3010814 views
高校日本史190571 views
中学数学623755 views
ヒストリア290598 views
高校化学2924392 views
Computer368106 views
雑学1473612 views
高校倫理1440106 views
英語613639 views
Help
Tools
NewsSpreadsheetCalendarSlidesTier ListPen ToolIllustrationCrayonPixel ArtASCII ArtPerspectiveEndless StairsGraphMind MapER DiagramFamily TreeMemeCurved TextImage EditorMosaicRetro FilterPencil SketchOCR/HighlighterMakeup EditorFaviconVideo TrimmerScrolling VideoVideo TitleColor PickerColor ExtractorBonfireFireworksWater RippleWater SplashBreaking GlassWood GrainMarble TextureCSS ButtonIcon MakerBar ChartGrouped Bar ChartStacked Bar ChartPie ChartLine ChartArea ChartStacked Area ChartScatter Plot3D Bar Chart3D Pie ChartBar Chart RaceBubble ChartPopulation PyramidPictogramEarningsCandlestick ChartInvestment RiskMortgage SimulatorCalculatorMatrix CalculatorFunction GraphPolynomial ExpansionVenn DiagramField VisualizerRubik's Cube Group TheoryTraveling SalesmanVoronoi and DelaunayFractalColumn ArithmeticDraw Math FiguresArithmetic AnimationArithmetic Word ProblemsCounting with Tree DiagramsCube NetsCross SectionsMotion PathMechanicsWavesLight and LensesThermodynamicsHow Semiconductors WorkMolecular StructuresAtomic OrbitalsElectrochemical CellsChemical EquilibriumCrystal LatticesBuffer pHComplex IonsDNA Double HelixCell DivisionMembrane ChannelsNerve ImpulseRock ClassificationWeatherConstellationsSolar and Lunar Eclipses3D ModelingFloor PlanSeismic StructuresIntersection TurnMaglevCooking AnimationOrigamiLive Viewer CountGeoJSON MapRailway MapPopulation MapCrime MapLand Price MapSchool MapShrine and Castle MapHouse of Representatives MapWord MapSolitaireReversiHakoiri MusumeChessHamburgerRippleSlide Puzzle MakerNeon PinballNovel MakerJapanese Typing PracticePiano Score EditorMusic Theory

English

LaTeX コマンド array|中かっこで式をくくる(場合分けや連立方程式などの書き方)

連立方程式など 2 つ以上の式を中かっこでくくる場合、LaTeX では array というコマンドを使います。

\left\{
\begin{array}{l}
y=x \\
y=1
\end{array}
\right.

right の最後に「ドット」がついています。これを消すとエラーが出ます。ドットは left の後の左中かっこを閉じる役目を担っています。

数式を横にも並べたい場合

\left\{
\begin{array}{ll}
y=a & (a=1) \\
y=1 & (a=2)
\end{array}
\right.

ここで array の隣の「エル」(左を表す)が 2 つになっていることに注意。数式を 2 列にしたいときは {} の中身を 2 つにします。{} の中身は

記号意味
l左寄せ
c中央
r右寄せ

に変えられます。

\left\{
\begin{array}{lr}
y=a & (a=1) \\
y=1 & (a=2)
\end{array}
\right.

式の一部に上のような中かっこを使いたい場合は下のように書きます。

y=
\left\{
\begin{array}{lr}
x & (a=1) \\
x^2 & (a=2)
\end{array}
\right.