2

I am using tabularx environment to build a table, but I am getting excess horizontal line length in the right hand side as below: enter image description here

My latex code looks like below:

\documentclass[12pt]{article}
    \usepackage{amsmath}
    \usepackage{amsfonts}
    \usepackage{mathrsfs}
    \usepackage{graphicx}
    \usepackage{array}
    \usepackage{float}
    \usepackage[colorlinks=true,linkcolor=blue,urlcolor=black,citecolor=blue,bookmarksopen=true]{hyperref}
    \usepackage[utf8]{inputenc}
    \usepackage[english]{babel}
    \usepackage{natbib}
    \usepackage{geometry,tabularx,multirow}
    \usepackage[table]{xcolor}
    \usepackage{tcolorbox}
    \usepackage{bookmark}
    \usepackage{gensymb}
    \newcolumntype{Y}{>{\centering\arraybackslash}X}
\renewcommand\tabularxcolumn[1]{m{#1}} %This is the cause
    \begin{document}
    \newgeometry{right = 1.00in}
    \thispagestyle{empty}
    \begin{tabularx}{420pt}{|Y|Y|Y|}
    \hline
    \textbf{Description} & \textbf{Event} & \textbf{Date} \\
    \hline
    \end{tabularx}
    \end{document}

Please tell me how to eliminate this.

closed as off-topic by CarLaTeX, Peter Grill, marmot, Phelype Oleinik, Stefan Pinnow Dec 11 '18 at 9:31

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • I do not get the behavior you have shown. But, then you did not provide a fully compilable MWE so perhaps there are packages that you are including or other settings that is causing the problem. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that reproduces the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Dec 11 '18 at 6:09
  • 1
    Your code compiles fine for me and does not produce the excess horizontal lines. I suspect one of you packages are out of date. I recommend you add \listfiles just before \begin{document} and list the versions of the packages that appear in the log/console. – Peter Grill Dec 11 '18 at 6:32
  • updating packages worked. – Loukit Khemka Dec 11 '18 at 7:19
  • 4
    I'm voting to close this question as off-topic because it was solved updating the distribution. – CarLaTeX Dec 11 '18 at 8:43

Browse other questions tagged or ask your own question.