• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:48
CEST 03:48
KST 10:48
  • 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 RO12 Preview: GuMiho, Bunny, SHIN, ByuN3The Memories We Share - Facing the Final(?) GSL23Code S RO12 Preview: Cure, Zoun, Solar, Creator4[ASL19] Finals Preview: Daunting Task30[ASL19] Ro4 Recap : The Peak15
Community News
Weekly Cups (May 19-25): Hindsight is 20/20?0DreamHack Dallas 2025 - Official Replay Pack8[BSL20] RO20 Group Stage2EWC 2025 Regional Qualifiers (May 28-June 1)19Weekly Cups (May 12-18): Clem sweeps WardiTV May3
StarCraft 2
General
Karma, Domino Effect, and how it relates to SC2. The Memories We Share - Facing the Final(?) GSL How does the number of casters affect your enjoyment of esports? Code S RO12 Preview: GuMiho, Bunny, SHIN, ByuN Can anyone explain to me why u cant veto a matchup
Tourneys
EWC 2025 Regional Qualifiers (May 28-June 1) DreamHack Dallas 2025 Last Chance Qualifiers for OlimoLeague 2024 Winter [GSL 2025] Code S:Season 2 - RO12 - Group B [GSL 2025] Code S:Season 2 - RO12 - Group A
Strategy
Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 475 Hard Target Mutation # 474 Futile Resistance Mutation # 473 Cold is the Void Mutation # 472 Dead Heat
Brood War
General
Battle.net is not working BW General Discussion Which player typ excels at which race or match up? Will foreigners ever be able to challenge Koreans? Practice Partners (Official)
Tourneys
[ASL19] Grand Finals [BSL 2v2] ProLeague Season 3 - Friday 21:00 CET [BSL20] RO20 Group D - Sunday 20:00 CET [BSL20] RO20 Group B - Saturday 20:00 CET
Strategy
[G] How to get started on ladder as a new Z player I am doing this better than progamers do.
Other Games
General Games
Path of Exile Nintendo Switch Thread Monster Hunter Wilds Beyond All Reason Battle Aces/David Kim RTS Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia TL Mafia Community Thread TL Mafia Plays: Diplomacy TL Mafia: Generative Agents Showdown Survivor II: The Amazon
Community
General
Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread All you football fans (soccer)! European Politico-economics QA Mega-thread
Fan Clubs
Serral Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion!
Sports
2024 - 2025 Football Thread NHL Playoffs 2024 Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Cleaning My Mechanical Keyboard How to clean a TTe Thermaltake keyboard?
TL Community
The Automated Ban List TL.net Ten Commandments
Blogs
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Yes Sir! How Commanding Impr…
TrAiDoS
Poker
Nebuchad
Info SLEgma_12
SLEgma_12
SECOND COMMING
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 15143 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 States231 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
51412 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
Road to EWC
22:00
Americas Closed Qualifiers
CranKy Ducklings404
EnkiAlexander 129
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
CosmosSc2 218
RuFF_SC2 179
Nina 160
PiLiPiLi 4
StarCraft: Brood War
Aegong 62
NaDa 50
Gretorp16
Icarus 8
Dota 2
monkeys_forever24
LuMiX1
Heroes of the Storm
Khaldor163
Other Games
tarik_tv9701
FrodaN8510
summit1g8134
JimRising 405
C9.Mang0392
ViBE231
Mew2King185
WinterStarcraft185
Maynarde124
Has41
PPMD27
Organizations
Other Games
gamesdonequick1232
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Berry_CruncH277
• Hupsaiya 56
• davetesta40
• gosughost_ 12
• LaughNgamezSOOP
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• Azhi_Dahaki68
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Doublelift4877
• Shiphtur519
• Stunt332
Upcoming Events
Road to EWC
7h 13m
Road to EWC
14h 13m
BSL Season 20
16h 13m
Sziky vs Razz
Sziky vs StRyKeR
Sziky vs DragOn
Sziky vs Tech
Razz vs StRyKeR
Razz vs DragOn
Razz vs Tech
DragOn vs Tech
Online Event
1d 2h
Clem vs ShoWTimE
herO vs MaxPax
Road to EWC
1d 7h
Road to EWC
1d 14h
BSL Season 20
1d 16h
Bonyth vs Doodle
Bonyth vs izu
Bonyth vs MadiNho
Bonyth vs TerrOr
MadiNho vs TerrOr
Doodle vs izu
Doodle vs MadiNho
Doodle vs TerrOr
Replay Cast
2 days
Replay Cast
3 days
The PondCast
5 days
[ Show More ]
Replay Cast
5 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-05-28
DreamHack Dallas 2025
Calamity Stars S2

Ongoing

JPL Season 2
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL Season 17: Qualifier 1
2025 GSL S2
Heroes 10 EU
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
ECL Season 49: Europe
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025
BLAST Open Spring 2025

Upcoming

CSL Season 17: Qualifier 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
CSLPRO Last Chance 2025
CSLAN 2025
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Bellum Gens Elite Stara Zagora 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin 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.