Missing vertical line when insert column width in tabularxcenter vertically the content and absolute position...

Metadata API deployments are failing in Spring '19

Emit zero-width bash prompt sequence from external binary

How to satisfy a player character's curiosity about another player character?

Can the Count of Monte Cristo's calculation of poison dosage be explained?

How to add multiple differently colored borders around a node?

What is better: yes / no radio, or simple checkbox?

Is 45 min enough time to catch my next flight

raspberry pi change directory (cd) command not working with USB drive

ip vs ifconfig commands pros and cons

When does coming up with an idea constitute sufficient contribution for authorship?

Protecting the tops of deck joists - or not?

Incompressible fluid definition

Visa application for Canada: Should douments in the local language of the consulate's location be translated?

Crystal compensation for temp and voltage

Does Windows 10's telemetry include sending *.doc files if Word crashed?

What is the wife of a henpecked husband called?

Word to be used for "standing with your toes pointing out"

Auto Insert date into Notepad

How to prepare vegetables for a sandwich that can last for several days in a fridge?

Connecting top and bottom of adjacent circles

Finding the number of integers that are a square and a cube at the same time

Getting a matrix of complex values from associations giving the real and imaginary parts of each element?

'A' vs 'an' in newspaper article

It took me a lot of time to make this, pls like. (YouTube Comments #1)



Missing vertical line when insert column width in tabularx


center vertically the content and absolute position of tcolorbox, tcbrasteradjusting column width tabularx + table marginFix column width with tabularxLast column vertical rule missingVertical table line is missing (tabularx and multirow)TabularX Vertical Border MissingTabularx p column broken vertical line with manual linebreakMissing table borders when using tabularxpandoc- tables missing when using environment `tabularx` from package tabularxTabularx determine col widthObtaining the column width in tabularx













1















This question is a sequel to this question.



After column width added (Y{2cm}|Y{5cm}|), vertical line is missing.



documentclass{article}
usepackage[usenames,dvipsnames]{xcolor}
usepackage[skins,listings,breakable,listingsutf8,theorems,hooks,fitting]{tcolorbox}%
tcbuselibrary{most}
usepackage{makecell,tabularx}
setcellgapes{12pt}
usepackage{array}
usepackage{colortbl}
tcbuselibrary{skins}

usepackage{tikz}
newcolumntype{Y}{>{centeringarraybackslash}X}

tcbset{tableA/.style={
enhanced,
fonttitle=bfseries,
fontupper=normalsizesffamily,
colback=blue!10!white,
colframe=green!50!black,
colbacktitle=red!40!white,
coltitle=black,center title}}

usepackage[export]{adjustbox}

begin{document}
begin{tcbraster}[colback=red!5!white,colframe=red!75!black,
fonttitle=bfseries,fontlower=itshape] %
{
makegapedcells
begin{tcolorbox}[tableA,tabularx*={renewcommand{arraystretch}{1.5}}{Y{2cm}|Y{5cm}|},title={This is a table},boxrule=0.8pt]
A & B \hline
A & includegraphics[width = 2cm, valign=c]{"example-image-a"} \hline
A & AAA \hline
B & BBB \hline
A & includegraphics[width = 2cm, valign=c]{"example-image-b"}
end{tcolorbox}
}
end{tcbraster}


end{document}


How can I get the vertical line?



Thank you
enter image description here










share|improve this question




















  • 1





    The Y type column does not take a width argument as you tried to to. This is why your above shown code reslts in the following error message: Package array Error: Illegal pream-token (2cm): As usual, it is not worth looking at the 'output' if you recieve an error message.

    – leandriis
    12 hours ago






  • 1





    If you want unevenly wide columns, you might be interested in using >{hsize=0.56hsize}Y|>{hsize=1.44hsize}Y| instead. This will result in the following output: i.stack.imgur.com/b3LV5.png

    – leandriis
    12 hours ago













  • @leandriis thank for your solution. And How can i set table width by cm? Thanks

    – tisaigon
    12 hours ago






  • 2





    do you really need tcbraster? how many boxes you will have in one row? table width is equal to tcolorbox width, but it in your case is defined by raster width and raster columns= (which you not defined).

    – Zarko
    11 hours ago






  • 1





    Since you use the tabularx mode and columns that derive from the x type column, you can only specify their width relative to hsize as shown in my previous comment. If you prefer to specify column widths using cm tabularx might not be the best package to use.

    – leandriis
    11 hours ago
















1















This question is a sequel to this question.



After column width added (Y{2cm}|Y{5cm}|), vertical line is missing.



documentclass{article}
usepackage[usenames,dvipsnames]{xcolor}
usepackage[skins,listings,breakable,listingsutf8,theorems,hooks,fitting]{tcolorbox}%
tcbuselibrary{most}
usepackage{makecell,tabularx}
setcellgapes{12pt}
usepackage{array}
usepackage{colortbl}
tcbuselibrary{skins}

usepackage{tikz}
newcolumntype{Y}{>{centeringarraybackslash}X}

tcbset{tableA/.style={
enhanced,
fonttitle=bfseries,
fontupper=normalsizesffamily,
colback=blue!10!white,
colframe=green!50!black,
colbacktitle=red!40!white,
coltitle=black,center title}}

usepackage[export]{adjustbox}

begin{document}
begin{tcbraster}[colback=red!5!white,colframe=red!75!black,
fonttitle=bfseries,fontlower=itshape] %
{
makegapedcells
begin{tcolorbox}[tableA,tabularx*={renewcommand{arraystretch}{1.5}}{Y{2cm}|Y{5cm}|},title={This is a table},boxrule=0.8pt]
A & B \hline
A & includegraphics[width = 2cm, valign=c]{"example-image-a"} \hline
A & AAA \hline
B & BBB \hline
A & includegraphics[width = 2cm, valign=c]{"example-image-b"}
end{tcolorbox}
}
end{tcbraster}


end{document}


How can I get the vertical line?



Thank you
enter image description here










share|improve this question




















  • 1





    The Y type column does not take a width argument as you tried to to. This is why your above shown code reslts in the following error message: Package array Error: Illegal pream-token (2cm): As usual, it is not worth looking at the 'output' if you recieve an error message.

    – leandriis
    12 hours ago






  • 1





    If you want unevenly wide columns, you might be interested in using >{hsize=0.56hsize}Y|>{hsize=1.44hsize}Y| instead. This will result in the following output: i.stack.imgur.com/b3LV5.png

    – leandriis
    12 hours ago













  • @leandriis thank for your solution. And How can i set table width by cm? Thanks

    – tisaigon
    12 hours ago






  • 2





    do you really need tcbraster? how many boxes you will have in one row? table width is equal to tcolorbox width, but it in your case is defined by raster width and raster columns= (which you not defined).

    – Zarko
    11 hours ago






  • 1





    Since you use the tabularx mode and columns that derive from the x type column, you can only specify their width relative to hsize as shown in my previous comment. If you prefer to specify column widths using cm tabularx might not be the best package to use.

    – leandriis
    11 hours ago














1












1








1








This question is a sequel to this question.



After column width added (Y{2cm}|Y{5cm}|), vertical line is missing.



documentclass{article}
usepackage[usenames,dvipsnames]{xcolor}
usepackage[skins,listings,breakable,listingsutf8,theorems,hooks,fitting]{tcolorbox}%
tcbuselibrary{most}
usepackage{makecell,tabularx}
setcellgapes{12pt}
usepackage{array}
usepackage{colortbl}
tcbuselibrary{skins}

usepackage{tikz}
newcolumntype{Y}{>{centeringarraybackslash}X}

tcbset{tableA/.style={
enhanced,
fonttitle=bfseries,
fontupper=normalsizesffamily,
colback=blue!10!white,
colframe=green!50!black,
colbacktitle=red!40!white,
coltitle=black,center title}}

usepackage[export]{adjustbox}

begin{document}
begin{tcbraster}[colback=red!5!white,colframe=red!75!black,
fonttitle=bfseries,fontlower=itshape] %
{
makegapedcells
begin{tcolorbox}[tableA,tabularx*={renewcommand{arraystretch}{1.5}}{Y{2cm}|Y{5cm}|},title={This is a table},boxrule=0.8pt]
A & B \hline
A & includegraphics[width = 2cm, valign=c]{"example-image-a"} \hline
A & AAA \hline
B & BBB \hline
A & includegraphics[width = 2cm, valign=c]{"example-image-b"}
end{tcolorbox}
}
end{tcbraster}


end{document}


How can I get the vertical line?



Thank you
enter image description here










share|improve this question
















This question is a sequel to this question.



After column width added (Y{2cm}|Y{5cm}|), vertical line is missing.



documentclass{article}
usepackage[usenames,dvipsnames]{xcolor}
usepackage[skins,listings,breakable,listingsutf8,theorems,hooks,fitting]{tcolorbox}%
tcbuselibrary{most}
usepackage{makecell,tabularx}
setcellgapes{12pt}
usepackage{array}
usepackage{colortbl}
tcbuselibrary{skins}

usepackage{tikz}
newcolumntype{Y}{>{centeringarraybackslash}X}

tcbset{tableA/.style={
enhanced,
fonttitle=bfseries,
fontupper=normalsizesffamily,
colback=blue!10!white,
colframe=green!50!black,
colbacktitle=red!40!white,
coltitle=black,center title}}

usepackage[export]{adjustbox}

begin{document}
begin{tcbraster}[colback=red!5!white,colframe=red!75!black,
fonttitle=bfseries,fontlower=itshape] %
{
makegapedcells
begin{tcolorbox}[tableA,tabularx*={renewcommand{arraystretch}{1.5}}{Y{2cm}|Y{5cm}|},title={This is a table},boxrule=0.8pt]
A & B \hline
A & includegraphics[width = 2cm, valign=c]{"example-image-a"} \hline
A & AAA \hline
B & BBB \hline
A & includegraphics[width = 2cm, valign=c]{"example-image-b"}
end{tcolorbox}
}
end{tcbraster}


end{document}


How can I get the vertical line?



Thank you
enter image description here







tabularx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 12 hours ago









JouleV

4,6691938




4,6691938










asked 13 hours ago









tisaigontisaigon

1997




1997








  • 1





    The Y type column does not take a width argument as you tried to to. This is why your above shown code reslts in the following error message: Package array Error: Illegal pream-token (2cm): As usual, it is not worth looking at the 'output' if you recieve an error message.

    – leandriis
    12 hours ago






  • 1





    If you want unevenly wide columns, you might be interested in using >{hsize=0.56hsize}Y|>{hsize=1.44hsize}Y| instead. This will result in the following output: i.stack.imgur.com/b3LV5.png

    – leandriis
    12 hours ago













  • @leandriis thank for your solution. And How can i set table width by cm? Thanks

    – tisaigon
    12 hours ago






  • 2





    do you really need tcbraster? how many boxes you will have in one row? table width is equal to tcolorbox width, but it in your case is defined by raster width and raster columns= (which you not defined).

    – Zarko
    11 hours ago






  • 1





    Since you use the tabularx mode and columns that derive from the x type column, you can only specify their width relative to hsize as shown in my previous comment. If you prefer to specify column widths using cm tabularx might not be the best package to use.

    – leandriis
    11 hours ago














  • 1





    The Y type column does not take a width argument as you tried to to. This is why your above shown code reslts in the following error message: Package array Error: Illegal pream-token (2cm): As usual, it is not worth looking at the 'output' if you recieve an error message.

    – leandriis
    12 hours ago






  • 1





    If you want unevenly wide columns, you might be interested in using >{hsize=0.56hsize}Y|>{hsize=1.44hsize}Y| instead. This will result in the following output: i.stack.imgur.com/b3LV5.png

    – leandriis
    12 hours ago













  • @leandriis thank for your solution. And How can i set table width by cm? Thanks

    – tisaigon
    12 hours ago






  • 2





    do you really need tcbraster? how many boxes you will have in one row? table width is equal to tcolorbox width, but it in your case is defined by raster width and raster columns= (which you not defined).

    – Zarko
    11 hours ago






  • 1





    Since you use the tabularx mode and columns that derive from the x type column, you can only specify their width relative to hsize as shown in my previous comment. If you prefer to specify column widths using cm tabularx might not be the best package to use.

    – leandriis
    11 hours ago








1




1





The Y type column does not take a width argument as you tried to to. This is why your above shown code reslts in the following error message: Package array Error: Illegal pream-token (2cm): As usual, it is not worth looking at the 'output' if you recieve an error message.

– leandriis
12 hours ago





The Y type column does not take a width argument as you tried to to. This is why your above shown code reslts in the following error message: Package array Error: Illegal pream-token (2cm): As usual, it is not worth looking at the 'output' if you recieve an error message.

– leandriis
12 hours ago




1




1





If you want unevenly wide columns, you might be interested in using >{hsize=0.56hsize}Y|>{hsize=1.44hsize}Y| instead. This will result in the following output: i.stack.imgur.com/b3LV5.png

– leandriis
12 hours ago







If you want unevenly wide columns, you might be interested in using >{hsize=0.56hsize}Y|>{hsize=1.44hsize}Y| instead. This will result in the following output: i.stack.imgur.com/b3LV5.png

– leandriis
12 hours ago















@leandriis thank for your solution. And How can i set table width by cm? Thanks

– tisaigon
12 hours ago





@leandriis thank for your solution. And How can i set table width by cm? Thanks

– tisaigon
12 hours ago




2




2





do you really need tcbraster? how many boxes you will have in one row? table width is equal to tcolorbox width, but it in your case is defined by raster width and raster columns= (which you not defined).

– Zarko
11 hours ago





do you really need tcbraster? how many boxes you will have in one row? table width is equal to tcolorbox width, but it in your case is defined by raster width and raster columns= (which you not defined).

– Zarko
11 hours ago




1




1





Since you use the tabularx mode and columns that derive from the x type column, you can only specify their width relative to hsize as shown in my previous comment. If you prefer to specify column widths using cm tabularx might not be the best package to use.

– leandriis
11 hours ago





Since you use the tabularx mode and columns that derive from the x type column, you can only specify their width relative to hsize as shown in my previous comment. If you prefer to specify column widths using cm tabularx might not be the best package to use.

– leandriis
11 hours ago










1 Answer
1






active

oldest

votes


















0














If you want to specify relative widths, you can define Y as



newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}


and in the argument you put a decimal number representing the fraction reserved for the column. In the example below, the second column will be three times as wide as the first column. The sum of the factors should equal the number of X columns allocated, here two.



Full example, with some reordering of the code.



documentclass{article}

usepackage[usenames,dvipsnames]{xcolor}
usepackage[most]{tcolorbox}
% add only the libraries you need
%tcbuselibrary{skins,listings,breakable,listingsutf8,theorems,hooks,fitting}

usepackage{makecell,tabularx}
usepackage{array}
usepackage{colortbl}
usepackage[export]{adjustbox}

usepackage{tikz}

newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}

setcellgapes{12pt}

tcbset{
tableA/.style={
enhanced,
fonttitle=bfseries,
fontupper=normalsizesffamily,
colback=blue!10!white,
colframe=green!50!black,
colbacktitle=red!40!white,
coltitle=black,
center title,
},
}

begin{document}

begin{tcbraster}[
colback=red!5!white,
colframe=red!75!black,
fonttitle=bfseries,
fontlower=itshape
]{
makegapedcells
begin{tcolorbox}[
tableA,
tabularx*={renewcommand{arraystretch}{1.5}}{Y{0.5}|Y{1.5}},
title={This is a table},boxrule=0.8pt
]
A & B \
hline
A & includegraphics[width = 2cm, valign=c]{"example-image-a"} \
hline
A & AAA \
hline
B & BBB \
hline
A & includegraphics[width = 2cm, valign=c]{"example-image-b"}
end{tcolorbox}
}
end{tcbraster}


end{document}


enter image description here






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477527%2fmissing-vertical-line-when-insert-column-width-in-tabularx%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    If you want to specify relative widths, you can define Y as



    newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}


    and in the argument you put a decimal number representing the fraction reserved for the column. In the example below, the second column will be three times as wide as the first column. The sum of the factors should equal the number of X columns allocated, here two.



    Full example, with some reordering of the code.



    documentclass{article}

    usepackage[usenames,dvipsnames]{xcolor}
    usepackage[most]{tcolorbox}
    % add only the libraries you need
    %tcbuselibrary{skins,listings,breakable,listingsutf8,theorems,hooks,fitting}

    usepackage{makecell,tabularx}
    usepackage{array}
    usepackage{colortbl}
    usepackage[export]{adjustbox}

    usepackage{tikz}

    newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}

    setcellgapes{12pt}

    tcbset{
    tableA/.style={
    enhanced,
    fonttitle=bfseries,
    fontupper=normalsizesffamily,
    colback=blue!10!white,
    colframe=green!50!black,
    colbacktitle=red!40!white,
    coltitle=black,
    center title,
    },
    }

    begin{document}

    begin{tcbraster}[
    colback=red!5!white,
    colframe=red!75!black,
    fonttitle=bfseries,
    fontlower=itshape
    ]{
    makegapedcells
    begin{tcolorbox}[
    tableA,
    tabularx*={renewcommand{arraystretch}{1.5}}{Y{0.5}|Y{1.5}},
    title={This is a table},boxrule=0.8pt
    ]
    A & B \
    hline
    A & includegraphics[width = 2cm, valign=c]{"example-image-a"} \
    hline
    A & AAA \
    hline
    B & BBB \
    hline
    A & includegraphics[width = 2cm, valign=c]{"example-image-b"}
    end{tcolorbox}
    }
    end{tcbraster}


    end{document}


    enter image description here






    share|improve this answer




























      0














      If you want to specify relative widths, you can define Y as



      newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}


      and in the argument you put a decimal number representing the fraction reserved for the column. In the example below, the second column will be three times as wide as the first column. The sum of the factors should equal the number of X columns allocated, here two.



      Full example, with some reordering of the code.



      documentclass{article}

      usepackage[usenames,dvipsnames]{xcolor}
      usepackage[most]{tcolorbox}
      % add only the libraries you need
      %tcbuselibrary{skins,listings,breakable,listingsutf8,theorems,hooks,fitting}

      usepackage{makecell,tabularx}
      usepackage{array}
      usepackage{colortbl}
      usepackage[export]{adjustbox}

      usepackage{tikz}

      newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}

      setcellgapes{12pt}

      tcbset{
      tableA/.style={
      enhanced,
      fonttitle=bfseries,
      fontupper=normalsizesffamily,
      colback=blue!10!white,
      colframe=green!50!black,
      colbacktitle=red!40!white,
      coltitle=black,
      center title,
      },
      }

      begin{document}

      begin{tcbraster}[
      colback=red!5!white,
      colframe=red!75!black,
      fonttitle=bfseries,
      fontlower=itshape
      ]{
      makegapedcells
      begin{tcolorbox}[
      tableA,
      tabularx*={renewcommand{arraystretch}{1.5}}{Y{0.5}|Y{1.5}},
      title={This is a table},boxrule=0.8pt
      ]
      A & B \
      hline
      A & includegraphics[width = 2cm, valign=c]{"example-image-a"} \
      hline
      A & AAA \
      hline
      B & BBB \
      hline
      A & includegraphics[width = 2cm, valign=c]{"example-image-b"}
      end{tcolorbox}
      }
      end{tcbraster}


      end{document}


      enter image description here






      share|improve this answer


























        0












        0








        0







        If you want to specify relative widths, you can define Y as



        newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}


        and in the argument you put a decimal number representing the fraction reserved for the column. In the example below, the second column will be three times as wide as the first column. The sum of the factors should equal the number of X columns allocated, here two.



        Full example, with some reordering of the code.



        documentclass{article}

        usepackage[usenames,dvipsnames]{xcolor}
        usepackage[most]{tcolorbox}
        % add only the libraries you need
        %tcbuselibrary{skins,listings,breakable,listingsutf8,theorems,hooks,fitting}

        usepackage{makecell,tabularx}
        usepackage{array}
        usepackage{colortbl}
        usepackage[export]{adjustbox}

        usepackage{tikz}

        newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}

        setcellgapes{12pt}

        tcbset{
        tableA/.style={
        enhanced,
        fonttitle=bfseries,
        fontupper=normalsizesffamily,
        colback=blue!10!white,
        colframe=green!50!black,
        colbacktitle=red!40!white,
        coltitle=black,
        center title,
        },
        }

        begin{document}

        begin{tcbraster}[
        colback=red!5!white,
        colframe=red!75!black,
        fonttitle=bfseries,
        fontlower=itshape
        ]{
        makegapedcells
        begin{tcolorbox}[
        tableA,
        tabularx*={renewcommand{arraystretch}{1.5}}{Y{0.5}|Y{1.5}},
        title={This is a table},boxrule=0.8pt
        ]
        A & B \
        hline
        A & includegraphics[width = 2cm, valign=c]{"example-image-a"} \
        hline
        A & AAA \
        hline
        B & BBB \
        hline
        A & includegraphics[width = 2cm, valign=c]{"example-image-b"}
        end{tcolorbox}
        }
        end{tcbraster}


        end{document}


        enter image description here






        share|improve this answer













        If you want to specify relative widths, you can define Y as



        newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}


        and in the argument you put a decimal number representing the fraction reserved for the column. In the example below, the second column will be three times as wide as the first column. The sum of the factors should equal the number of X columns allocated, here two.



        Full example, with some reordering of the code.



        documentclass{article}

        usepackage[usenames,dvipsnames]{xcolor}
        usepackage[most]{tcolorbox}
        % add only the libraries you need
        %tcbuselibrary{skins,listings,breakable,listingsutf8,theorems,hooks,fitting}

        usepackage{makecell,tabularx}
        usepackage{array}
        usepackage{colortbl}
        usepackage[export]{adjustbox}

        usepackage{tikz}

        newcolumntype{Y}[1]{>{hsize=#1hsizecenteringarraybackslash}X}

        setcellgapes{12pt}

        tcbset{
        tableA/.style={
        enhanced,
        fonttitle=bfseries,
        fontupper=normalsizesffamily,
        colback=blue!10!white,
        colframe=green!50!black,
        colbacktitle=red!40!white,
        coltitle=black,
        center title,
        },
        }

        begin{document}

        begin{tcbraster}[
        colback=red!5!white,
        colframe=red!75!black,
        fonttitle=bfseries,
        fontlower=itshape
        ]{
        makegapedcells
        begin{tcolorbox}[
        tableA,
        tabularx*={renewcommand{arraystretch}{1.5}}{Y{0.5}|Y{1.5}},
        title={This is a table},boxrule=0.8pt
        ]
        A & B \
        hline
        A & includegraphics[width = 2cm, valign=c]{"example-image-a"} \
        hline
        A & AAA \
        hline
        B & BBB \
        hline
        A & includegraphics[width = 2cm, valign=c]{"example-image-b"}
        end{tcolorbox}
        }
        end{tcbraster}


        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 6 hours ago









        egregegreg

        723k8819173221




        723k8819173221






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477527%2fmissing-vertical-line-when-insert-column-width-in-tabularx%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Installing LyX: “No textclass is found.”LyX installation error- text class not found- 'Reconfigure' or...

            (1602) Indiana Índice Designación y nombre Características orbitales Véase...

            Universidad Autónoma de Occidente Índice Historia Campus Facultades Programas Académicos Medios de...