2

I asked for a new table environment here. How to create new table environment. I took the solution provided by Yiannis I works great

I have two questions -

I do not know how to break the cell content into two lines, because of that two tables are overlapping on one another. In the image, I want to break the line at red slash. I tried \newcommand{\nl}{newline}

I did not realize at the time of asking that each page has 10 tables, so 100 page document will have 1000 tables. Is there any way to get rid of table-xxx: from caption and just leave the text that I want to add to the caption. enter image description here

I would really appreciate your help

Since I could not explain the issue to cmhughes I am adding the desired output image as well. enter image description here

Aku
  • 11,026

1 Answers1

2

You could load the caption package with

\usepackage[labelformat=empty]{caption}

which gives

enter image description here

\documentclass{article}
\usepackage[labelformat=empty]{caption}

\begin{document}

\begin{table}
   \centering
   \caption{Test caption}
   \begin{tabular}{ll}
      1&2\\
      3&4
   \end{tabular}
\end{table}

\end{document}
David Carlisle
  • 757,742
cmhughes
  • 100,947
  • \usepackage[labelformat=empty]{caption} worked great, I was putting in the wrong place, but \\ did not work. – Aku Mar 08 '12 at 02:05
  • @Aku I'm a little confused now :) Did it work? – cmhughes Mar 08 '12 at 02:14
  • Removing the caption worked great, but new line did not work with \\ its messing up the table. I want to keep the table structure intact and just be able to put two rows in certain cells. – Aku Mar 08 '12 at 16:01
  • @Aku I'm afraid I don't understand- what do you mean the new line did not work with \? – cmhughes Mar 08 '12 at 17:30
  • as you can see in the attached image, first table the lines are too long for the table. I want the text to break into new row at the shown redline. this text | अतथाः अतनिषाथाम् | shows up in one line, I want it to show in twolines under the same cell. buy adding \ to break the line did not work. I don't know how else to explain :( – Aku Mar 08 '12 at 19:19
  • @Aku I think I understand now. The issue you're describing has nothing to do with the caption though, it has to do with the columntype that you're using. If you want to be able to put two rows in a cell, then you could use the p{<length>} columntype, or perhaps consider putting the content in a parbox – cmhughes Mar 11 '12 at 20:25