Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 735761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:31:37+00:00 2026-05-14T07:31:37+00:00

So I tried learning LaTeX last night, and I trying to get this template

  • 0

So I tried learning LaTeX last night, and I trying to get this template for school assignments done ASAP. Part of that requires building a table. I want to use multirow, but need the multirows, that are acting like headings, to be colored gray. This is what I created so far from the almighty Google.

\documentclass{article}
\usepackage{xcolor,colortbl}
\begin{document}

\begin{tabular}{|l|l|p{5cm}|p{2.5cm}|l|l|}
\hline
\rowcolor{lightgray} 
Stage & Aim & Procedure & Materials & Focus & Time \\ 
\hline
\rowcolor{lightgray} 
\multicolumn{6}{|l|}{Engage} \\
\hline
Row 0 & Row 1 & Row 2 & Row 3 & Row 4 & Row 5 \\
%\hline
\rowcolor{lightgray} \multicolumn{6}{|l|}{Study} \\
\hline
Row 0 & Row 1 & Row 2 & Row 3 & Row 4 & Row 5 \\
\hline
\rowcolor{lightgray} 
\multicolumn{6}{|l|}{Activate} \\
\hline
Row 0 & Row 1 & Row 2 & Row 3 & Row 4 & Row 5 \\
\hline
\rowcolor{lightgray} 
\multicolumn{6}{|l|}{Conclusion} \\
\hline
Row 0 & Row 1 & Row 2 & Row 3 & Row 4 & Row 5 \\
\hline
\end{tabular}

\end{document}

Unfortunately, this does not work with pdflatex version 1.4.0 on Debian GNU/Linux 5.0.4 (lenny) I have in a VM. Instead of doing it correctly, it ends up looking like this, where the first cell of the row after the multirow is blacked-out garbage.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:31:38+00:00Added an answer on May 14, 2026 at 7:31 am

    Try this:

    \documentclass{article}
    
    \usepackage{xcolor,colortbl}
    
    \begin{document}
    
    \begin{tabular}{|l|l|p{5cm}|p{2.5cm}|l|l|}
    
    \hline
    Stage & Aim & Procedure & Materials & Focus & Time \\ 
    \hline
    \multicolumn{6}{|>{\columncolor[gray]{.8}}l|}{Engage} \\ 
    \hline
    Row 0 & Row 1 & Row 2 & Row 3 & Row 4 & Row 5 \\
    \hline
    \multicolumn{6}{|>{\columncolor[gray]{.8}}l|}{Study} \\ 
    \hline
    Row 0 & Row 1 & Row 2 & Row 3 & Row 4 & Row 5 \\
    \hline
    \multicolumn{6}{|>{\columncolor[gray]{.8}}l|}{Activate} \\ 
    \hline
    Row 0 & Row 1 & Row 2 & Row 3 & Row 4 & Row 5 \\
    \hline
    \multicolumn{6}{|>{\columncolor[gray]{.8}}l|}{Conclusion} \\ 
    \hline
    Row 0 & Row 1 & Row 2 & Row 3 & Row 4 & Row 5 \\
    \hline
    
    \end{tabular}
    
    \end{document}
    

    Which produces:

    alt text

    EDIT:

    Yes, >{...} is the command to place your \columncolor in (must be in it!). Also see 4.1 from this PDF.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning Django and I tried to create a template like this: >>>
I am learning jQuery and as part of that i tried following code.. It
I'm just starting out learning javascript, and tried to write a little script that
Still learning jquery here and I've tried to setup a set of divs that
I'm learning VS Unit test and tried this: [TestMethod()] public void calcTest() { double
I'm trying to get started with learning threading in Java and here's a simple
I'm still learning and I've tried to figure this out and I figured I'd
I've tried learning this before and failed at it. My book talks about the
I've tried learning this but for whatever reason it just does not work. I
I am trying to create a very simple application (part of my learning program),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.