Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
    
Try adding \cr and see if that is the result you want. Otherwise, I'd put the content in a \parbox of a fixed width and let TeX break it for you automatically. This can be automated with the collcell package. –  Peter Grill Mar 8 '12 at 1:54
add comment

1 Answer

up vote 2 down vote accepted

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}
share|improve this answer
    
\usepackage[labelformat=empty]{caption} worked great, I was putting in the wrong place, but `\` did not work. –  Aku Mar 8 '12 at 2:05
    
@Aku I'm a little confused now :) Did it work? –  cmhughes Mar 8 '12 at 2: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 8 '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 8 '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 8 '12 at 19:19
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.