1. Lavinia


    I am trying to change the “title” of a table in Latex. You know that first part of the tile: “Table 1: —–“. I want this “Table” to disappear or to replace it with something else. Is there any way that I can do that?


    • Hi Lavinia,

      Try the caption package:


      and within your document use:


      for “Tab.” instead of “Table” and similarly for figures:


      Source: Caption documentaton


  2. TeXin

    I am using LaTeX to make some reports, one problem I am having is with Tables, the headings to the tables are quite long. Right now I use the tabularx package, when I compile I get underfull hbox badness 10000, I know it will still work but I want LaTeX to compile with no warnings. A minimal example is given below.

    \begin{tabularx}{\linewidth}{ |X|X|X|X|}
    Long Name & Long Name& Long Name & Very Long Namesssdsdsdsdsdsdsdssdsdsdsdsdsdsdsssdsds \\
    1 & 2.3 & 30.3 & 36\\
    2 & 8.6 & 10.4 & 17\\
    3.5 & 18.2 & 5.2 & 12\\
    5 & 28.2 & 3.4 & 6\\
    • Hi!

      Thanks for your question and the minimal working example. As you already pointed out, the problem lies with the very long names of the column headings. I suggest you try the microtype package. Loading that packages possibly resolves most of the warnings. Otherwise, you can enforce how LaTeX splits long names using:


      Hope it helps,

  3. TeXin

    Hi Tom,

    Thanks, it fixed it up, however I have decided to make the shift to the booktabs table, it looks much more professional. However another problem with the long names in booktabs is Overfull hbox badness 10000, sometimes I get this when placing figures side by side, any assistance?

    • Hey!

      These warnings are relatively easy to fix. Use the documentclass option draft to highlight any “overfull hbox”. I suspect you are using 0.5\linewidth or 0.5\textwidth for two figures side-by-side. Just slightly reduce the size to e.g. 0.47\textwidth for both figures, since LaTeX add some space in between.


      Please provide a minimal working example again in case this does not solve your problem.

      Thanks, Tom.

  4. mero

    Hello tom
    please help me in my problem

    I’m using lyx and I want to make word table bold and put caption below word table, also i want both word table and caption to be most left justified with left border of table , like this

    This is table1 caption

    what will be code to modify or steps in lyx

    • Hi mero,

      I’m sure you can do it in LyX. But since I never use LyX, here is how I would go about it.
      Insert TeX code before and after your table:

      % before
      \caption{Table caption text.}

      Once that’s done, you’ll also need to align the caption which turns out a little more challenging, since you’ll need to load the caption package. Navigate to “Document –> Settings” and choose “LaTeX preamble”. Then paste the following line in the textbox:


      That did the trick for me. Hope it works for you!

      Cheers, Tom.

  5. Markus

    Hi, I have a problem




    I always get the error:

    \bottomrule-> noaligne

    I can solve the problem by changing \input{result1.tex} to \input{result1.tex} \\

    But then I have a empty line before the bottomrule and thats not what I want.

    Anybody an idea?

    Thanks in advance

    • Hi Markus,

      I recommend to place the entire table, not only the table content, into the file and try again. It works for me. Also, next time, please provide a minimal working example. I first had to google before I was able to run your code. It only works when using quite a substantial amount of additional code.

      Cheers, Tom.

      • Markus Karde

        Thanks for your help Tom. It was the first time that I posted a problem in a forum like this one. Thats why I had no idea how I should really do it. Next time I will do it as you recommend. Thanks again. The problem is that the file result1.tex is provided from Stata.It’s important for me that it stays like this. But thats exactly the point. Isn’t it strange that it works when one puts everything in the file. I mean what else does the the input command do as just putting the code at it’s place. But that’s not working.

      • Hi Markus,

        Thanks for following up on your question. Not sure, why you get the error. Here is what works for me with your Stata output (result1.tex):

        \usepackage{siunitx} % centering in tables
        		tight-spacing		= true,
        		group-digits		= false ,
        		input-signs		= ,
        		input-symbols		= ( ) [ ] - + *,
        		input-open-uncertainty	= ,
        		input-close-uncertainty	= ,
        		table-align-text-post	= false

        I copied most of the code from this blog.

        Your code (commented with %) also works. Give it a try!

        Hope it helps. Tom.

  6. Hello Tom,
    I have a query. I want to make a table which is very long in terms of column. So I divided the whole thing into 2 parts. Now these are titled as Table 1 and Table 2. But how can I make them Table 1.(A) and Table 1.(B)…. Is there any way?
    Thanks in advance

Leave a Reply