custom midrule length The Next CEO of Stack OverflowMidrule that extends only over some of the columns in booktabsHorizontal line of custom length like an —Error using toprule midrule from Booktabs packageProblems with toprule and midrule in a tableHow to trim the length of toprule?Use of midrule in booktabs tablemidrule splits vertical lines in tableHow to trim the length of topruleLighter midruleRemove midrule in tableMidrule Not Working

Novel about a guy who is possessed by the divine essence and the world ends?

What happened in Rome, when the western empire "fell"?

What connection does MS Office have to Netscape Navigator?

Why has the US not been more assertive in confronting Russia in recent years?

If a black hole is created from light, can this black hole then move at speed of light?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Is there an analogue of projective spaces for proper schemes?

Can I run my washing machine drain line into a condensate pump so it drains better?

Which kind of appliances can one connect to electric sockets located in a airplane's toilet?

Is it ever safe to open a suspicious html file (e.g. email attachment)?

In excess I'm lethal

Rotate a column

Why am I allowed to create multiple unique pointers from a single object?

Sending manuscript to multiple publishers

If the heap is initialized for security, then why is the stack uninitialized?

What happens if you roll doubles 3 times then land on "Go to jail?"

What can we do to stop prior company from asking us questions?

How to count occurrences of text in a file?

Is it possible to search for a directory/file combination?

How powerful is the invisibility granted by the Gloom Stalker ranger's Umbral Sight feature?

Can I equip Skullclamp on a creature I am sacrificing?

Written every which way

What exact does MIB represent in SNMP? How is it different from OID?

Multiple labels for a single equation



custom midrule length



The Next CEO of Stack OverflowMidrule that extends only over some of the columns in booktabsHorizontal line of custom length like an —Error using toprule midrule from Booktabs packageProblems with toprule and midrule in a tableHow to trim the length of toprule?Use of midrule in booktabs tablemidrule splits vertical lines in tableHow to trim the length of topruleLighter midruleRemove midrule in tableMidrule Not Working










1















I just want a simple midrule that doesn't span the entire page or cell.

For instance, with rule, you can specify dimensions like:



rule[0.2cm]100pt0.5pt


That's as close as I can get it, but it doesn't fit nicely in the same amount of space as midrule, it seems to take up and extra half a line (row) or so. It has this little extra buffer of empty space, like an invisible border or something. Normally it wouldn't bother me, but I have a bit of a theme happening that took me a while to get all nice and if I neglect the uniform, it's going to make the whole thing look sloppy. Is there some way to get what I want? Below is a quick example. Notice how the midrule is all nice and snug with the others, but the rule is being greedy, but on the other hand, it lets me specify length manually.



enter image description here



documentclass[margin=6]standalone
usepackageamsmath,booktabs

begindocument

begintabularc

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
midrule
multicolumn2c$f:V(e) to V(c)$ \
midrule
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
midrule
multicolumn2c$f:V(e) to V(c)$ \
multicolumn2crule[0.2cm]180pt0.5pt \
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
endtabular

enddocument









share|improve this question



















  • 1





    You will get much better answers if you provide us with a full example.

    – marmot
    48 mins ago











  • BTW, if you mean midrule rather than midline, then this answer may contain what you want.

    – marmot
    22 mins ago











  • @marmot there you go, i uploaded more info. I have tried cmidrule but I couldn't get it to do what i want. Weird syntax too. All I want to do is set a custom line length.

    – tjt263
    8 mins ago















1















I just want a simple midrule that doesn't span the entire page or cell.

For instance, with rule, you can specify dimensions like:



rule[0.2cm]100pt0.5pt


That's as close as I can get it, but it doesn't fit nicely in the same amount of space as midrule, it seems to take up and extra half a line (row) or so. It has this little extra buffer of empty space, like an invisible border or something. Normally it wouldn't bother me, but I have a bit of a theme happening that took me a while to get all nice and if I neglect the uniform, it's going to make the whole thing look sloppy. Is there some way to get what I want? Below is a quick example. Notice how the midrule is all nice and snug with the others, but the rule is being greedy, but on the other hand, it lets me specify length manually.



enter image description here



documentclass[margin=6]standalone
usepackageamsmath,booktabs

begindocument

begintabularc

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
midrule
multicolumn2c$f:V(e) to V(c)$ \
midrule
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
midrule
multicolumn2c$f:V(e) to V(c)$ \
multicolumn2crule[0.2cm]180pt0.5pt \
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
endtabular

enddocument









share|improve this question



















  • 1





    You will get much better answers if you provide us with a full example.

    – marmot
    48 mins ago











  • BTW, if you mean midrule rather than midline, then this answer may contain what you want.

    – marmot
    22 mins ago











  • @marmot there you go, i uploaded more info. I have tried cmidrule but I couldn't get it to do what i want. Weird syntax too. All I want to do is set a custom line length.

    – tjt263
    8 mins ago













1












1








1








I just want a simple midrule that doesn't span the entire page or cell.

For instance, with rule, you can specify dimensions like:



rule[0.2cm]100pt0.5pt


That's as close as I can get it, but it doesn't fit nicely in the same amount of space as midrule, it seems to take up and extra half a line (row) or so. It has this little extra buffer of empty space, like an invisible border or something. Normally it wouldn't bother me, but I have a bit of a theme happening that took me a while to get all nice and if I neglect the uniform, it's going to make the whole thing look sloppy. Is there some way to get what I want? Below is a quick example. Notice how the midrule is all nice and snug with the others, but the rule is being greedy, but on the other hand, it lets me specify length manually.



enter image description here



documentclass[margin=6]standalone
usepackageamsmath,booktabs

begindocument

begintabularc

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
midrule
multicolumn2c$f:V(e) to V(c)$ \
midrule
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
midrule
multicolumn2c$f:V(e) to V(c)$ \
multicolumn2crule[0.2cm]180pt0.5pt \
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
endtabular

enddocument









share|improve this question
















I just want a simple midrule that doesn't span the entire page or cell.

For instance, with rule, you can specify dimensions like:



rule[0.2cm]100pt0.5pt


That's as close as I can get it, but it doesn't fit nicely in the same amount of space as midrule, it seems to take up and extra half a line (row) or so. It has this little extra buffer of empty space, like an invisible border or something. Normally it wouldn't bother me, but I have a bit of a theme happening that took me a while to get all nice and if I neglect the uniform, it's going to make the whole thing look sloppy. Is there some way to get what I want? Below is a quick example. Notice how the midrule is all nice and snug with the others, but the rule is being greedy, but on the other hand, it lets me specify length manually.



enter image description here



documentclass[margin=6]standalone
usepackageamsmath,booktabs

begindocument

begintabularc

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
midrule
multicolumn2c$f:V(e) to V(c)$ \
midrule
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
midrule
multicolumn2c$f:V(e) to V(c)$ \
multicolumn2crule[0.2cm]180pt0.5pt \
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
endtabular

enddocument






formatting rules article booktabs layout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 14 mins ago







tjt263

















asked 52 mins ago









tjt263tjt263

2127




2127







  • 1





    You will get much better answers if you provide us with a full example.

    – marmot
    48 mins ago











  • BTW, if you mean midrule rather than midline, then this answer may contain what you want.

    – marmot
    22 mins ago











  • @marmot there you go, i uploaded more info. I have tried cmidrule but I couldn't get it to do what i want. Weird syntax too. All I want to do is set a custom line length.

    – tjt263
    8 mins ago












  • 1





    You will get much better answers if you provide us with a full example.

    – marmot
    48 mins ago











  • BTW, if you mean midrule rather than midline, then this answer may contain what you want.

    – marmot
    22 mins ago











  • @marmot there you go, i uploaded more info. I have tried cmidrule but I couldn't get it to do what i want. Weird syntax too. All I want to do is set a custom line length.

    – tjt263
    8 mins ago







1




1





You will get much better answers if you provide us with a full example.

– marmot
48 mins ago





You will get much better answers if you provide us with a full example.

– marmot
48 mins ago













BTW, if you mean midrule rather than midline, then this answer may contain what you want.

– marmot
22 mins ago





BTW, if you mean midrule rather than midline, then this answer may contain what you want.

– marmot
22 mins ago













@marmot there you go, i uploaded more info. I have tried cmidrule but I couldn't get it to do what i want. Weird syntax too. All I want to do is set a custom line length.

– tjt263
8 mins ago





@marmot there you go, i uploaded more info. I have tried cmidrule but I couldn't get it to do what i want. Weird syntax too. All I want to do is set a custom line length.

– tjt263
8 mins ago










1 Answer
1






active

oldest

votes


















0














I am using this answer to obtain



documentclass[margin=6]standalone
usepackageamsmath,booktabs

begindocument

begintabularc

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
midrule
multicolumn2c$f:V(e) to V(c)$ \
midrule
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
multicolumn2cscshape Bijection \
cmidrule(l5emr5em)1-2
multicolumn2c$f:V(e) to V(c)$ \
multicolumn2crule[0.2cm]180pt0.5pt \
multicolumn2c$f(e_1)=c_1
f(e_2)=c_3
f(e_3)=c_5$ \

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

midrule
endtabular
enddocument


enter image description here



Here l5emr5em indicates that the rule gets shortened by 5em on each side.





share























    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%2f482214%2fcustom-midrule-length%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














    I am using this answer to obtain



    documentclass[margin=6]standalone
    usepackageamsmath,booktabs

    begindocument

    begintabularc

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    midrule
    multicolumn2cscshape Bijection \
    midrule
    multicolumn2c$f:V(e) to V(c)$ \
    midrule
    multicolumn2c$f(e_1)=c_1
    f(e_2)=c_3
    f(e_3)=c_5$ \

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    midrule
    multicolumn2cscshape Bijection \
    cmidrule(l5emr5em)1-2
    multicolumn2c$f:V(e) to V(c)$ \
    multicolumn2crule[0.2cm]180pt0.5pt \
    multicolumn2c$f(e_1)=c_1
    f(e_2)=c_3
    f(e_3)=c_5$ \

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    midrule
    endtabular
    enddocument


    enter image description here



    Here l5emr5em indicates that the rule gets shortened by 5em on each side.





    share



























      0














      I am using this answer to obtain



      documentclass[margin=6]standalone
      usepackageamsmath,booktabs

      begindocument

      begintabularc

      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

      midrule
      multicolumn2cscshape Bijection \
      midrule
      multicolumn2c$f:V(e) to V(c)$ \
      midrule
      multicolumn2c$f(e_1)=c_1
      f(e_2)=c_3
      f(e_3)=c_5$ \

      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

      midrule
      multicolumn2cscshape Bijection \
      cmidrule(l5emr5em)1-2
      multicolumn2c$f:V(e) to V(c)$ \
      multicolumn2crule[0.2cm]180pt0.5pt \
      multicolumn2c$f(e_1)=c_1
      f(e_2)=c_3
      f(e_3)=c_5$ \

      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

      midrule
      endtabular
      enddocument


      enter image description here



      Here l5emr5em indicates that the rule gets shortened by 5em on each side.





      share

























        0












        0








        0







        I am using this answer to obtain



        documentclass[margin=6]standalone
        usepackageamsmath,booktabs

        begindocument

        begintabularc

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        midrule
        multicolumn2cscshape Bijection \
        midrule
        multicolumn2c$f:V(e) to V(c)$ \
        midrule
        multicolumn2c$f(e_1)=c_1
        f(e_2)=c_3
        f(e_3)=c_5$ \

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        midrule
        multicolumn2cscshape Bijection \
        cmidrule(l5emr5em)1-2
        multicolumn2c$f:V(e) to V(c)$ \
        multicolumn2crule[0.2cm]180pt0.5pt \
        multicolumn2c$f(e_1)=c_1
        f(e_2)=c_3
        f(e_3)=c_5$ \

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        midrule
        endtabular
        enddocument


        enter image description here



        Here l5emr5em indicates that the rule gets shortened by 5em on each side.





        share













        I am using this answer to obtain



        documentclass[margin=6]standalone
        usepackageamsmath,booktabs

        begindocument

        begintabularc

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        midrule
        multicolumn2cscshape Bijection \
        midrule
        multicolumn2c$f:V(e) to V(c)$ \
        midrule
        multicolumn2c$f(e_1)=c_1
        f(e_2)=c_3
        f(e_3)=c_5$ \

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        midrule
        multicolumn2cscshape Bijection \
        cmidrule(l5emr5em)1-2
        multicolumn2c$f:V(e) to V(c)$ \
        multicolumn2crule[0.2cm]180pt0.5pt \
        multicolumn2c$f(e_1)=c_1
        f(e_2)=c_3
        f(e_3)=c_5$ \

        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        midrule
        endtabular
        enddocument


        enter image description here



        Here l5emr5em indicates that the rule gets shortened by 5em on each side.






        share











        share


        share










        answered 2 mins ago









        marmotmarmot

        113k5144273




        113k5144273



























            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%2f482214%2fcustom-midrule-length%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

            Lioubotyn Sommaire Géographie | Histoire | Population | Notes et références | Liens externes | Menu de navigationlubotin.kharkov.uamodifier« Recensements et estimations de la population depuis 1897 »« Office des statistiques d'Ukraine : population au 1er janvier 2010, 2011 et 2012 »« Office des statistiques d'Ukraine : population au 1er janvier 2011, 2012 et 2013 »Informations officiellesCartes topographiquesCarte routièrem

            Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

            Mpande kaSenzangakhona Biographie | Références | Menu de navigationmodifierMpande kaSenzangakhonavoir la liste des auteursm