• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:44
CEST 14:44
KST 21:44
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun9[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists20[ASL21] Ro16 Preview Pt1: Fresh Flow9
Community News
2026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced92026 GSL Tour plans announced15Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid25
StarCraft 2
General
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Team Liquid Map Contest #22 - The Finalists Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool MaNa leaves Team Liquid Maestros of the Game 2 announced
Tourneys
GSL Code S Season 1 (2026) WardiTV Spring Cup RSL Revival: Season 5 - Qualifiers and Main Event SEL Masters #6 - Solar vs Classic (SC: Evo) $5,000 WardiTV TLMC tournament - Presented by Monster Energy
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base Mutation # 521 Memorable Boss
Brood War
General
[TOOL] Starcraft Chat Translator ASL21 General Discussion JaeDong's ASL S21 Ro16 Post-Review Missed out on ASL tickets - what are my options? BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues Korean KCM Race Survival 2026 Season 2 [ASL21] Ro8 Day 2 [ASL21] Ro8 Day 1
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Daigo vs Menard Best of 10 Nintendo Switch Thread Dawn of War IV Diablo IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2546 users

[H!] matrix in latex?

Blogs > evanthebouncy!
Post a Reply
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2009-05-05 21:13:22
May 05 2009 21:12 GMT
#1
These are okay:
=================
\documentclass[12pt]{article}
%this thing is hard..
\begin{document}

\begin{center}
\textbf{ {Eigenvectors $\wedge$ Eigenvalues} $\vee$ {Characteristic Equation} }
\end{center}

Consider this 3x3 matrix:
===============


But these:
================
\left(
\begin{array}{ccc}
a_{1,1} & a_{1,2} & a_{1,3}\\
a_{2,1} & a_{2,2} & a_{2,3}\\
a_{3,1} & a_{3,2} & a_{3,3}\\
\end{array}
\right)
====================
Failed. What's wrong? O_o

Obviously the end is
=============
\end{document}
=============

*
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
Ropid
Profile Joined March 2009
Germany3557 Posts
May 05 2009 21:24 GMT
#2
I'm guessing, you have to enclose math stuff with \[ and \], i.e. \[ before your \left( and \] after your \right.

When I used LaTeX, I always copied stuff from this:
http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/GSWLaTeX.pdf
as a HTML document:
http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/
"My goal is to replace my soul with coffee and become immortal."
ThaddeusK
Profile Joined July 2008
United States233 Posts
Last Edited: 2009-05-05 21:28:46
May 05 2009 21:28 GMT
#3
i dont know any LaTeX, but from what i can gather from a quick google, you need to add \usepackage{amsmath}
The Raurosaur
Profile Joined April 2009
198 Posts
May 05 2009 21:52 GMT
#4
It works for me. Did you remember to enable math mode by enclosing the matrix within \[ and \] (or $ and $)?
:(){:|:&};:
h3r1n6
Profile Blog Joined September 2007
Iceland2039 Posts
May 05 2009 21:57 GMT
#5
Oh, THAT latex, I was expecting something different
stet_tcl
Profile Blog Joined May 2008
Greece319 Posts
Last Edited: 2009-05-05 22:36:30
May 05 2009 22:16 GMT
#6
Edit:
Works fine for me oO
What programs are you using?
indecision
Profile Blog Joined November 2004
Germany818 Posts
May 05 2009 22:20 GMT
#7
is this the entire document?
TheYango
Profile Joined September 2008
United States47024 Posts
May 05 2009 22:58 GMT
#8
Its worth posting what error it gives you instead of just saying "this fails".
Moderator
CharlieMurphy
Profile Blog Joined March 2006
United States22895 Posts
May 05 2009 22:59 GMT
#9
I thought this would be about a porn movie or something.
..and then I would, ya know, check em'. (Aka SpoR)
ShOoTiNg_SpElLs
Profile Joined July 2003
Korea (South)690 Posts
Last Edited: 2009-05-05 23:08:33
May 05 2009 23:08 GMT
#10
You just forgot to start/end math mode when starting your matrix (just missing the \[ \])

\[
\left(
\begin{array}{ccc}
a_{1,1} & a_{1,2} & a_{1,3}\\
a_{2,1} & a_{2,2} & a_{2,3}\\
a_{3,1} & a_{3,2} & a_{3,3}\\
\end{array}
\right)
\]

should work.
404.Delirium
Profile Joined May 2008
United States1190 Posts
May 05 2009 23:37 GMT
#11
Was really expecting photos of Trinity in latex...
seriously next disrespectful comment in this blog is ip ban. Be happy or get the hell out. // SC2 is like playing with neutral-colored Play-Doh while BW is like colorful Legos.
ghermination
Profile Blog Joined April 2008
United States2851 Posts
May 05 2009 23:41 GMT
#12
On May 06 2009 08:37 404.Delirium wrote:
Was really expecting photos of Trinity in latex...


Ditto.
U Gotta Skate.
jingXD
Profile Joined May 2007
United States283 Posts
Last Edited: 2009-05-06 00:23:06
May 06 2009 00:18 GMT
#13
For matrices, it's usually easier to use pmatrix and bmatrix from the amsmath package.

\documentclass[12pt]{article}
\usepackage{amsmath}

\begin{document}
\[
\begin{pmatrix}
a_{1,1} & a_{1,2} & a_{1,3}\\
a_{2,1} & a_{2,2} & a_{2,3}\\
a_{3,1} & a_{3,2} & a_{3,3}
\end{pmatrix}
\]

\[
\begin{Bmatrix}
a_{1,1} & a_{1,2} & a_{1,3}\\
a_{2,1} & a_{2,2} & a_{2,3}\\
a_{3,1} & a_{3,2} & a_{3,3}
\end{Bmatrix}
\]

\[
\begin{bmatrix}
a_{1,1} & a_{1,2} & a_{1,3}\\
a_{2,1} & a_{2,2} & a_{2,3}\\
a_{3,1} & a_{3,2} & a_{3,3}
\end{bmatrix}
\]

\[
\begin{Vmatrix}
a_{1,1} & a_{1,2} & a_{1,3}\\
a_{2,1} & a_{2,2} & a_{2,3}\\
a_{3,1} & a_{3,2} & a_{3,3}
\end{Vmatrix}
\]

\[
\begin{vmatrix}
a_{1,1} & a_{1,2} & a_{1,3}\\
a_{2,1} & a_{2,2} & a_{2,3}\\
a_{3,1} & a_{3,2} & a_{3,3}
\end{vmatrix}
\]
\end{document}
imDerek
Profile Blog Joined August 2007
United States1944 Posts
May 06 2009 01:25 GMT
#14
I'm guessing the last row doesn't need the "\\"
Least favorite progamers: Leta, Zero, Mind, Shine, free, really <-- newly added
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
May 06 2009 05:04 GMT
#15
On May 06 2009 08:08 ShOoTiNg_SpElLs wrote:
You just forgot to start/end math mode when starting your matrix (just missing the \[ \])

\[
\left(
\begin{array}{ccc}
a_{1,1} & a_{1,2} & a_{1,3}\\
a_{2,1} & a_{2,2} & a_{2,3}\\
a_{3,1} & a_{3,2} & a_{3,3}\\
\end{array}
\right)
\]

should work.


thx!
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
ninjafetus
Profile Joined December 2008
United States231 Posts
Last Edited: 2009-05-06 05:33:39
May 06 2009 05:32 GMT
#16
If I never need to write multiple matrices in a paper, I find it MUCH easier to add a new command at beginning so I don't have to worry about writing the structure over and over. Before the document start, put this:

\usepackage{amsmath}
\newcommand{\bm}[1]{ \ensuremath{\begin{bmatrix} #1 \end{bmatrix} }

Then if you ever need a matrix, just write the entries in \bm{} like this:

\bm{
a_{1,1} & a_{1,2} & a_{1,3}\\
a_{2,1} & a_{2,2} & a_{2,3}\\
a_{3,1} & a_{3,2} & a_{3,3}
}

The "ensure math" means you can use it inside or outside of your $'s without worrying about if you're in math mode or not. (Of course, you can use any shortcut you want instead of "\bm", and use any style matrix you want instead of "bmatrix")
GTR
Profile Blog Joined September 2004
51591 Posts
May 06 2009 06:31 GMT
#17
aww i thought this was about the movie the matrix done by people in latex suits
Commentator
Divinek
Profile Blog Joined November 2006
Canada4045 Posts
May 06 2009 09:00 GMT
#18
On May 06 2009 15:31 GTR wrote:
aww i thought this was about the movie the matrix done by people in latex suits


me too
Never attribute to malice that which can be adequately explained by stupidity.
Oh goodness me, FOX tv where do you get your sight? Can't you keep track, the puck is black. That's why the ice is white.
h3r1n6
Profile Blog Joined September 2007
Iceland2039 Posts
May 06 2009 11:29 GMT
#19
Since I am not the only one who was disappointed, I'll rescue this thread:
+ Show Spoiler +
[image loading]

[image loading]

[image loading]

[image loading]
Railxp
Profile Blog Joined February 2008
Hong Kong1313 Posts
May 06 2009 14:30 GMT
#20
YES thankyou h3r1n6. NOW thats what i was thinking.
~\(。◕‿‿◕。)/~,,,,,,,,>
Please log in or register to reply.
Live Events Refresh
Big Gabe
12:00
Big Gabe Open #1
mouzHeroMarine486
IndyStarCraft 103
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 486
Ryung 225
IndyStarCraft 103
herO (SOOP) 26
StarCraft: Brood War
Calm 4785
Sea 2446
Jaedong 1421
EffOrt 873
HiyA 836
Hyuk 487
Soma 437
Stork 368
Snow 331
Light 287
[ Show more ]
ggaemo 269
actioN 247
Zeus 185
Soulkey 174
Last 169
ToSsGirL 167
ZerO 162
Rush 158
firebathero 128
Larva 75
hero 72
Pusan 68
Sharp 63
Mini 57
sSak 57
Barracks 34
yabsab 30
Backho 28
Terrorterran 27
Sacsri 26
Shine 25
Free 23
Bale 21
soO 20
Movie 17
sorry 17
Noble 15
Shinee 15
Sexy 14
IntoTheRainbow 14
GoRush 11
scan(afreeca) 10
Dota 2
XaKoH 489
ODPixel84
BananaSlamJamma77
Counter-Strike
olofmeister2964
zeus640
x6flipin605
markeloff164
edward82
Other Games
singsing1930
B2W.Neo1276
Lowko370
hiko360
DeMusliM286
crisheroes278
Livibee26
ZerO(Twitch)11
Organizations
StarCraft: Brood War
UltimateBattle 902
StarCraft 2
IntoTheiNu 154
Dota 2
PGL Dota 2 - Main Stream73
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• CranKy Ducklings SOOP33
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV358
League of Legends
• TFBlade1163
• Jankos1024
Upcoming Events
Replay Cast
20h 16m
Escore
21h 16m
OSC
1d
Replay Cast
1d 11h
Replay Cast
1d 20h
RSL Revival
1d 21h
Classic vs GgMaChine
Rogue vs Maru
WardiTV Invitational
1d 22h
IPSL
2 days
Ret vs Art_Of_Turtle
Radley vs TBD
BSL
2 days
Replay Cast
2 days
[ Show More ]
RSL Revival
2 days
herO vs TriGGeR
NightMare vs Solar
uThermal 2v2 Circuit
3 days
BSL
3 days
IPSL
3 days
eOnzErG vs TBD
G5 vs Nesh
Patches Events
3 days
Replay Cast
3 days
Wardi Open
3 days
Afreeca Starleague
3 days
Jaedong vs Light
Monday Night Weeklies
4 days
Replay Cast
4 days
Sparkling Tuna Cup
4 days
Afreeca Starleague
4 days
Snow vs Flash
WardiTV Invitational
4 days
GSL
5 days
Classic vs Cure
Maru vs Rogue
GSL
6 days
SHIN vs Zoun
ByuN vs herO
Liquipedia Results

Completed

Proleague 2026-04-28
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026

Upcoming

Escore Tournament S2: W5
KK 2v2 League Season 1
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
RSL Revival: Season 5
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.