LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2012, 12:44 PM   #1
This is my username
LQ Newbie
 
Registered: Aug 2009
Location: Washington, D.C. Suburb in VA
Posts: 9

Rep: Reputation: 0
Question LaTeX Table code not working, even example code from book.


For some reason, whenever I use b or m as column markers when writing a table in the LaTeX compiler "Gummi", the code refuses to compile. c, l, r, and p all work fine but whenever I replace a "p" with a "b" or "m", it won't compile.

Even when using this code I copied and pasted directly from a book I found online, it still will not compile:
Code:
\documentclass{article}
\begin{document}
\begin{tabular}{@{}lp{1.2cm}m{1.2cm}b{1.2cm}@{}}
\hline
baseline & aligned at the top & aligned at the middle
& aligned at the bottom\\
\hline
\end{tabular}
\end{document}
Any help would be greatly appriciated. I'm using Gummi 0.6.1
 
Old 12-31-2012, 01:00 PM   #2
firstfire
Member
 
Registered: Mar 2006
Location: Ekaterinburg, Russia
Distribution: Debian, Ubuntu
Posts: 709

Rep: Reputation: 428Reputation: 428Reputation: 428Reputation: 428Reputation: 428
Hi.

According to this page both m and p require the array package:
Code:
\usepackage{array}
Happy New Year!

Last edited by firstfire; 12-31-2012 at 01:00 PM. Reason: Fix a type
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] code from java book not working Andy Alt Programming 1 03-05-2012 11:23 PM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 02:37 AM
Code generation based on latex math ahwkong Programming 0 04-17-2005 07:28 AM
Book about writing secure code Covel Linux - Security 1 06-12-2004 02:53 AM
Need Assembly Code Reference Table marky782 Linux - General 6 02-16-2004 07:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration