Change column specification for single specific cellsTabular environment column specificationmulti-page two column table in a single column documentmathbf ignored in table column specificationTabular and grid typesettingDocument possessing simultaneously text in single column and double column;Table without column specificationtabu package - gaps in vertical linesVertical alignment of multi column cellsCan't change longtable width for middle columnProblem in creating multi column tables with specific size text

Self-Preservation: How to DM NPCs that Love Living?

How do I get a list of only the files (not the directories) from a package?

Is having a hidden directory under /etc safe?

Recording the inputs of a command and producing a list of them later on

Select * from View takes 4 minutes

Beginner's snake game using PyGame

How to decline physical affection from a child whose parents are pressuring them?

What should I do about a religious player who refuses to accept the existence of multiple gods in D&D?

Are grass strips more dangerous than tarmac?

Joist hangers to use for rough cut 2x8 (2 3/4" x 8 3/4")?

What does it mean by "d-ism of Leibniz" and "dotage of Newton" in simple English?

Is the capacitor drawn or wired wrongly?

Make a formula to get the highest score

Can an old DSLR be upgraded to match modern smartphone image quality

Coding Challenge Solution - Good Range

Why is Colorado so different politically from nearby states?

What does War Machine's "Canopy! Canopy!" line mean in "Avengers: Endgame"?

Accidentally cashed a check twice

Singlequote and backslash

The deliberate use of misleading terminology

Does a component pouch automatically contain components?

Is there any Biblical Basis for 400 years of silence between Old and New Testament?

How crucial is a waifu game storyline?

What is a natural deduction proof from ~(A↔B) to ~(A→B)?



Change column specification for single specific cells


Tabular environment column specificationmulti-page two column table in a single column documentmathbf ignored in table column specificationTabular and grid typesettingDocument possessing simultaneously text in single column and double column;Table without column specificationtabu package - gaps in vertical linesVertical alignment of multi column cellsCan't change longtable width for middle columnProblem in creating multi column tables with specific size text













2















Say I have a table with some data, a header row and a summary. The table has specific column specifications, like below



documentclassarticle

setlengthparskip1em
begindocument
% Consider this table:
begintabularl@~--~l%<- Makes a dash between columns
NODASH1 & NODASH2 \hline
beforedash & afterdash \
beforedash & afterdash \hline
Sum & NODASH!
endtabular

Below, a possible workaround that I don't really fancy

defnodash#1multicolumn1l#1
% Now using the nodash to remove the dashes that I don't want
begintabularl@~--~l
nodashNODASH1 & NODASH2 \hline
beforedash & afterdash \
beforedash & afterdash \hline
nodashSum & NODASH!
endtabular

enddocument


Which produces the following output:
enter image description here



So I'm looking for a more canonical way to produce the bottom table.
Any ideas?










share|improve this question



















  • 2





    Your write-up and code are slightly confusing. E.g., what is the purpose of the third column in both tabular environments?

    – Mico
    Apr 14 at 11:01











  • @Mico yup - that was very confusing, and there wasn't supposed to be a third column! Is it clear now?

    – Andreas Storvik Strauman
    Apr 14 at 13:19











  • Another issue with your posting is that the title contains the qualifier "for only one single row". However, a careful reading of your posting suggests that you actually wish to change the column specification for two cells, not for one row. You may want to edit your posting to eliminate the need for people to guess as to what you really want to achieve...

    – Mico
    Apr 14 at 13:50















2















Say I have a table with some data, a header row and a summary. The table has specific column specifications, like below



documentclassarticle

setlengthparskip1em
begindocument
% Consider this table:
begintabularl@~--~l%<- Makes a dash between columns
NODASH1 & NODASH2 \hline
beforedash & afterdash \
beforedash & afterdash \hline
Sum & NODASH!
endtabular

Below, a possible workaround that I don't really fancy

defnodash#1multicolumn1l#1
% Now using the nodash to remove the dashes that I don't want
begintabularl@~--~l
nodashNODASH1 & NODASH2 \hline
beforedash & afterdash \
beforedash & afterdash \hline
nodashSum & NODASH!
endtabular

enddocument


Which produces the following output:
enter image description here



So I'm looking for a more canonical way to produce the bottom table.
Any ideas?










share|improve this question



















  • 2





    Your write-up and code are slightly confusing. E.g., what is the purpose of the third column in both tabular environments?

    – Mico
    Apr 14 at 11:01











  • @Mico yup - that was very confusing, and there wasn't supposed to be a third column! Is it clear now?

    – Andreas Storvik Strauman
    Apr 14 at 13:19











  • Another issue with your posting is that the title contains the qualifier "for only one single row". However, a careful reading of your posting suggests that you actually wish to change the column specification for two cells, not for one row. You may want to edit your posting to eliminate the need for people to guess as to what you really want to achieve...

    – Mico
    Apr 14 at 13:50













2












2








2








Say I have a table with some data, a header row and a summary. The table has specific column specifications, like below



documentclassarticle

setlengthparskip1em
begindocument
% Consider this table:
begintabularl@~--~l%<- Makes a dash between columns
NODASH1 & NODASH2 \hline
beforedash & afterdash \
beforedash & afterdash \hline
Sum & NODASH!
endtabular

Below, a possible workaround that I don't really fancy

defnodash#1multicolumn1l#1
% Now using the nodash to remove the dashes that I don't want
begintabularl@~--~l
nodashNODASH1 & NODASH2 \hline
beforedash & afterdash \
beforedash & afterdash \hline
nodashSum & NODASH!
endtabular

enddocument


Which produces the following output:
enter image description here



So I'm looking for a more canonical way to produce the bottom table.
Any ideas?










share|improve this question
















Say I have a table with some data, a header row and a summary. The table has specific column specifications, like below



documentclassarticle

setlengthparskip1em
begindocument
% Consider this table:
begintabularl@~--~l%<- Makes a dash between columns
NODASH1 & NODASH2 \hline
beforedash & afterdash \
beforedash & afterdash \hline
Sum & NODASH!
endtabular

Below, a possible workaround that I don't really fancy

defnodash#1multicolumn1l#1
% Now using the nodash to remove the dashes that I don't want
begintabularl@~--~l
nodashNODASH1 & NODASH2 \hline
beforedash & afterdash \
beforedash & afterdash \hline
nodashSum & NODASH!
endtabular

enddocument


Which produces the following output:
enter image description here



So I'm looking for a more canonical way to produce the bottom table.
Any ideas?







tables multicolumn columns






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 14 at 13:56







Andreas Storvik Strauman

















asked Apr 14 at 10:52









Andreas Storvik StraumanAndreas Storvik Strauman

2,686519




2,686519







  • 2





    Your write-up and code are slightly confusing. E.g., what is the purpose of the third column in both tabular environments?

    – Mico
    Apr 14 at 11:01











  • @Mico yup - that was very confusing, and there wasn't supposed to be a third column! Is it clear now?

    – Andreas Storvik Strauman
    Apr 14 at 13:19











  • Another issue with your posting is that the title contains the qualifier "for only one single row". However, a careful reading of your posting suggests that you actually wish to change the column specification for two cells, not for one row. You may want to edit your posting to eliminate the need for people to guess as to what you really want to achieve...

    – Mico
    Apr 14 at 13:50












  • 2





    Your write-up and code are slightly confusing. E.g., what is the purpose of the third column in both tabular environments?

    – Mico
    Apr 14 at 11:01











  • @Mico yup - that was very confusing, and there wasn't supposed to be a third column! Is it clear now?

    – Andreas Storvik Strauman
    Apr 14 at 13:19











  • Another issue with your posting is that the title contains the qualifier "for only one single row". However, a careful reading of your posting suggests that you actually wish to change the column specification for two cells, not for one row. You may want to edit your posting to eliminate the need for people to guess as to what you really want to achieve...

    – Mico
    Apr 14 at 13:50







2




2





Your write-up and code are slightly confusing. E.g., what is the purpose of the third column in both tabular environments?

– Mico
Apr 14 at 11:01





Your write-up and code are slightly confusing. E.g., what is the purpose of the third column in both tabular environments?

– Mico
Apr 14 at 11:01













@Mico yup - that was very confusing, and there wasn't supposed to be a third column! Is it clear now?

– Andreas Storvik Strauman
Apr 14 at 13:19





@Mico yup - that was very confusing, and there wasn't supposed to be a third column! Is it clear now?

– Andreas Storvik Strauman
Apr 14 at 13:19













Another issue with your posting is that the title contains the qualifier "for only one single row". However, a careful reading of your posting suggests that you actually wish to change the column specification for two cells, not for one row. You may want to edit your posting to eliminate the need for people to guess as to what you really want to achieve...

– Mico
Apr 14 at 13:50





Another issue with your posting is that the title contains the qualifier "for only one single row". However, a careful reading of your posting suggests that you actually wish to change the column specification for two cells, not for one row. You may want to edit your posting to eliminate the need for people to guess as to what you really want to achieve...

– Mico
Apr 14 at 13:50










1 Answer
1






active

oldest

votes


















3














Using multicolumn1 is the intended interface to specifying a different layout for heading or other rows. Note that you can get away with the simple



multicolumn1l...


here as it is a left-aligned column.



For a right (or center) aligned column you would need



multicolumn1r@phantom~--~#1


so that the alignment didn't spread into the inter-column space generated by the @ expression in the main tabular preamble.






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%2f484775%2fchange-column-specification-for-single-specific-cells%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









    3














    Using multicolumn1 is the intended interface to specifying a different layout for heading or other rows. Note that you can get away with the simple



    multicolumn1l...


    here as it is a left-aligned column.



    For a right (or center) aligned column you would need



    multicolumn1r@phantom~--~#1


    so that the alignment didn't spread into the inter-column space generated by the @ expression in the main tabular preamble.






    share|improve this answer



























      3














      Using multicolumn1 is the intended interface to specifying a different layout for heading or other rows. Note that you can get away with the simple



      multicolumn1l...


      here as it is a left-aligned column.



      For a right (or center) aligned column you would need



      multicolumn1r@phantom~--~#1


      so that the alignment didn't spread into the inter-column space generated by the @ expression in the main tabular preamble.






      share|improve this answer

























        3












        3








        3







        Using multicolumn1 is the intended interface to specifying a different layout for heading or other rows. Note that you can get away with the simple



        multicolumn1l...


        here as it is a left-aligned column.



        For a right (or center) aligned column you would need



        multicolumn1r@phantom~--~#1


        so that the alignment didn't spread into the inter-column space generated by the @ expression in the main tabular preamble.






        share|improve this answer













        Using multicolumn1 is the intended interface to specifying a different layout for heading or other rows. Note that you can get away with the simple



        multicolumn1l...


        here as it is a left-aligned column.



        For a right (or center) aligned column you would need



        multicolumn1r@phantom~--~#1


        so that the alignment didn't spread into the inter-column space generated by the @ expression in the main tabular preamble.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 14 at 11:14









        David CarlisleDavid Carlisle

        507k4211541906




        507k4211541906



























            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%2f484775%2fchange-column-specification-for-single-specific-cells%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

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?