I want to be able to make certain horizontal lines and certain vertical lines bold in my table but not all.

$x$&100&10 000&$1$x$10^5$&$1$x$10^6$&$1$x$10^7$&$1$x$10^9$\\

I am looking for a box border, center line not bold. First 3 vertical lines and last to be bold.

Thanks for the help

  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Apr 25 '14 at 11:59
  • Looks like pretty much the same question as tex.stackexchange.com/questions/41758/…, do the answers there help? – Torbjørn T. Apr 25 '14 at 12:00
  • Yes it worked well thanks. Just not getting the box border. Can get the lines inside the table – user50528 Apr 25 '14 at 12:47

You can also have the border thicker if you supress the outer vlines and hlines, and replace them with an \fbox with no fboxsep. I added the vertical alignment of numbers in scientific notation thanks to the numprint package and its n/N column types, some more vertical spacing in cells with the cellspace package — and some colors…


\usepackage[autolanguage, np]{numprint}
\usepackage[svgnames, x11names, tables]{xcolor}


{\begin{tabular}{r!{\color{Salmon1}\vrule width1.2 pt}Sc|c|*{3}{n{1}{1}|}n{1}{1}}%{r@{\hskip\tabcolsep\vrule width1 pt\hskip\tabcolsep}Sl|c|c|c|c|c}%
$x$ & 100 & 10 000 &  \np{1e5} &  \np{1e6} &  \np{1e7} & \np{1e9}\\
$f(x)$ & 0,1  & 0,0001 &  \np{1e-5} & \np{1e-6} & \np{1e-7} & \np{1e-9}


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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