• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 07:36
CET 13:36
KST 21:36
  • 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
RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13
Community News
Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation13Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45
StarCraft 2
General
Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge [TLMC] Fall/Winter 2025 Ladder Map Rotation Mech is the composition that needs teleportation t RotterdaM "Serral is the GOAT, and it's not close" RSL Season 3 - RO16 Groups C & D Preview
Tourneys
$5,000+ WardiTV 2025 Championship RSL Revival: Season 3 Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle What happened to TvZ on Retro? BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review BW General Discussion
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET
Strategy
How to stay on top of macro? Current Meta PvZ map balance Simple Questions, Simple Answers
Other Games
General Games
Should offensive tower rushing be viable in RTS games? Path of Exile Clair Obscur - Expedition 33 Stormgate/Frost Giant Megathread Nintendo Switch Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine About SC2SEA.COM Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2114 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
51497 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
Wardi Open
12:00
#61
WardiTV497
Rex77
TKL 37
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Reynor 288
ProTech117
Harstem 109
Rex 77
TKL 37
StarCraft: Brood War
Britney 41959
Sea 9246
Calm 8252
Horang2 1618
Jaedong 770
Soma 447
EffOrt 438
Stork 360
Light 278
Larva 217
[ Show more ]
Pusan 180
Zeus 158
ZerO 136
Rush 109
Killer 102
Mind 78
ToSsGirL 68
scan(afreeca) 54
Sea.KH 47
yabsab 40
Liquid`Ret 36
Icarus 24
Hm[arnc] 14
Noble 13
ivOry 8
NaDa 7
Dota 2
Dendi452
XcaliburYe168
Counter-Strike
olofmeister2034
shoxiejesuss808
x6flipin670
zeus648
allub165
oskar98
Other Games
B2W.Neo690
Pyrionflax413
crisheroes315
Fuzer 292
ZerO(Twitch)17
Organizations
Dota 2
PGL Dota 2 - Main Stream8501
PGL Dota 2 - Secondary Stream3459
StarCraft: Brood War
UltimateBattle 86
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1427
Upcoming Events
Monday Night Weeklies
4h 24m
Replay Cast
10h 24m
ChoboTeamLeague
12h 24m
WardiTV Korean Royale
23h 24m
BSL: GosuLeague
1d 8h
The PondCast
1d 21h
Replay Cast
2 days
RSL Revival
2 days
herO vs Zoun
Classic vs Reynor
Maru vs SHIN
MaxPax vs TriGGeR
BSL: GosuLeague
3 days
RSL Revival
3 days
[ Show More ]
WardiTV Korean Royale
3 days
RSL Revival
4 days
WardiTV Korean Royale
4 days
IPSL
5 days
Julia vs Artosis
JDConan vs DragOn
RSL Revival
5 days
Wardi Open
6 days
IPSL
6 days
StRyKeR vs OldBoy
Sziky vs Tarson
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-14
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
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 © 2025 TLnet. All Rights Reserved.