Remove outer padding in tikzcdAdjusting the width of a displaymath environmenttikzcd error with [ ]Problems with tikzcd diagramsMaking Tikzcd picture largerDouble arrows in tikzcdCurved arrow in tikzcdFilling of diagrams using tikzcdtikzcd - Spacing issuesLabel inside tikzcd square

Bit floating sequence

How do we create our own symbolisms?

Can multiple public keys lead to the same shared secret in x25519?

Short story: Interstellar inspector senses "off" nature of planet hiding aggressive culture

Why is the the worst case for this function O(n*n)

Why would an airport be depicted with symbology for runways longer than 8,069 feet even though it is reported on the sectional as 7,200 feet?

What exactly is Apple Cider

What is this sticking out of my wall?

Word for something that used to be popular but not anymore

Contractor cut joist hangers to make them fit

What explains the Genie's fate?

How to convert P2O5 concentration to H3PO4 concentration?

When does order matter in probability?

Galilean transformation vs simple translation

Is every sentence we write or utter either true or false?

Is there a specific way to describe over-grown, old, tough vegetables?

How to improvise or make pot grip / pot handle

Features seen on the Space Shuttle's solid booster; what does "LOADED" mean exactly?

Why is it that I have to play this note on the piano as A sharp?

What is the difference between tl_to_str:V and tl_to_str:N?

Are professors obligated to accept supervisory role? If not, how does it work?

Is mountain bike good for long distances?

Is there a way to deal with desistance in a off-chain game?

Can you mark a new target with the Hunter's Mark spell if the original target shifts to a different plane?



Remove outer padding in tikzcd


Adjusting the width of a displaymath environmenttikzcd error with [ ]Problems with tikzcd diagramsMaking Tikzcd picture largerDouble arrows in tikzcdCurved arrow in tikzcdFilling of diagrams using tikzcdtikzcd - Spacing issuesLabel inside tikzcd square






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















This is the result I would like to obtain using tikz-cd



A = ker left(B xrightarrowF Cright)


but



documentclassarticle
usepackagetikz-cd
begindocument
[
A = ker left(
begintikzcd
A rar["F"] & B
endtikzcd
right)
]
enddocument


gives me too much spacing.



Is there an option to remove the extra padding?










share|improve this question


























  • While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it. This is especially important for tikz as there are numerous libraries.

    – Peter Grill
    8 hours ago






  • 2





    Try the begintikzcd[cramped] option and sep=small will reduce the spacing between the paren

    – Peter Grill
    8 hours ago











  • The cramped option did exactly what I was looking for!

    – Damien L
    8 hours ago

















3















This is the result I would like to obtain using tikz-cd



A = ker left(B xrightarrowF Cright)


but



documentclassarticle
usepackagetikz-cd
begindocument
[
A = ker left(
begintikzcd
A rar["F"] & B
endtikzcd
right)
]
enddocument


gives me too much spacing.



Is there an option to remove the extra padding?










share|improve this question


























  • While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it. This is especially important for tikz as there are numerous libraries.

    – Peter Grill
    8 hours ago






  • 2





    Try the begintikzcd[cramped] option and sep=small will reduce the spacing between the paren

    – Peter Grill
    8 hours ago











  • The cramped option did exactly what I was looking for!

    – Damien L
    8 hours ago













3












3








3


0






This is the result I would like to obtain using tikz-cd



A = ker left(B xrightarrowF Cright)


but



documentclassarticle
usepackagetikz-cd
begindocument
[
A = ker left(
begintikzcd
A rar["F"] & B
endtikzcd
right)
]
enddocument


gives me too much spacing.



Is there an option to remove the extra padding?










share|improve this question
















This is the result I would like to obtain using tikz-cd



A = ker left(B xrightarrowF Cright)


but



documentclassarticle
usepackagetikz-cd
begindocument
[
A = ker left(
begintikzcd
A rar["F"] & B
endtikzcd
right)
]
enddocument


gives me too much spacing.



Is there an option to remove the extra padding?







tikz-cd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 hours ago







Damien L

















asked 8 hours ago









Damien LDamien L

3072 silver badges10 bronze badges




3072 silver badges10 bronze badges















  • While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it. This is especially important for tikz as there are numerous libraries.

    – Peter Grill
    8 hours ago






  • 2





    Try the begintikzcd[cramped] option and sep=small will reduce the spacing between the paren

    – Peter Grill
    8 hours ago











  • The cramped option did exactly what I was looking for!

    – Damien L
    8 hours ago

















  • While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it. This is especially important for tikz as there are numerous libraries.

    – Peter Grill
    8 hours ago






  • 2





    Try the begintikzcd[cramped] option and sep=small will reduce the spacing between the paren

    – Peter Grill
    8 hours ago











  • The cramped option did exactly what I was looking for!

    – Damien L
    8 hours ago
















While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it. This is especially important for tikz as there are numerous libraries.

– Peter Grill
8 hours ago





While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it. This is especially important for tikz as there are numerous libraries.

– Peter Grill
8 hours ago




2




2





Try the begintikzcd[cramped] option and sep=small will reduce the spacing between the paren

– Peter Grill
8 hours ago





Try the begintikzcd[cramped] option and sep=small will reduce the spacing between the paren

– Peter Grill
8 hours ago













The cramped option did exactly what I was looking for!

– Damien L
8 hours ago





The cramped option did exactly what I was looking for!

– Damien L
8 hours ago










2 Answers
2






active

oldest

votes


















2
















If you deem that xrightarrow produces too short an arrow, you can patch it in order to use a minimum width (here 2.5em).



documentclassarticle
usepackageamsmath
usepackagetikz-cd
usepackageetoolbox

makeatletter
patchcmdext@arrow
hbox towdtw@
hbox tomaybe@wdtw@
ddt
newcommandmaybe@wd[1]%
ifdimwd#1<minimum@arrow
minimum@arrow
else
wd#1%
fi

newcommandminimum@arrow2.5em
makeatother

begindocument

[
A = ker left(A xrightarrowF B right)
qquad
A = ker bigl(A xrightarrowF B bigr)
]



[
A = ker left(
hspace-arraycolsep
begintikzcd
A arrow[r,"F"] & B
endtikzcd
hspace-arraycolsep
right)
]

enddocument


I also added a trick to remove the padding to the tikzcd and also tried bigl( and bigr) to get a better output.



enter image description here



On the other hand, a simple ker(AxrightarrowFB) (with no patching) seems sufficient to me:



[
A = ker bigl(A xrightarrowF B bigr)
]


produces



enter image description here






share|improve this answer
































    2
















    Using the cramped, sep=small options to tikzcd you can obtain the desired spacing



    enter image description here



    Code:



    documentclass[12pt]article
    usepackagetikz-cd
    usepackageamsmath

    begindocument
    [
    A = ker left(B xrightarrowF Cright)
    ]
    [
    A = ker left(
    begintikzcd[cramped, sep=small]
    A rar["F"] & B
    endtikzcd
    right)
    ]
    enddocument





    share|improve this answer

























    • Upvoted, thanks!

      – CarLaTeX
      2 hours ago













    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/4.0/"u003ecc by-sa 4.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%2f507446%2fremove-outer-padding-in-tikzcd%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2
















    If you deem that xrightarrow produces too short an arrow, you can patch it in order to use a minimum width (here 2.5em).



    documentclassarticle
    usepackageamsmath
    usepackagetikz-cd
    usepackageetoolbox

    makeatletter
    patchcmdext@arrow
    hbox towdtw@
    hbox tomaybe@wdtw@
    ddt
    newcommandmaybe@wd[1]%
    ifdimwd#1<minimum@arrow
    minimum@arrow
    else
    wd#1%
    fi

    newcommandminimum@arrow2.5em
    makeatother

    begindocument

    [
    A = ker left(A xrightarrowF B right)
    qquad
    A = ker bigl(A xrightarrowF B bigr)
    ]



    [
    A = ker left(
    hspace-arraycolsep
    begintikzcd
    A arrow[r,"F"] & B
    endtikzcd
    hspace-arraycolsep
    right)
    ]

    enddocument


    I also added a trick to remove the padding to the tikzcd and also tried bigl( and bigr) to get a better output.



    enter image description here



    On the other hand, a simple ker(AxrightarrowFB) (with no patching) seems sufficient to me:



    [
    A = ker bigl(A xrightarrowF B bigr)
    ]


    produces



    enter image description here






    share|improve this answer





























      2
















      If you deem that xrightarrow produces too short an arrow, you can patch it in order to use a minimum width (here 2.5em).



      documentclassarticle
      usepackageamsmath
      usepackagetikz-cd
      usepackageetoolbox

      makeatletter
      patchcmdext@arrow
      hbox towdtw@
      hbox tomaybe@wdtw@
      ddt
      newcommandmaybe@wd[1]%
      ifdimwd#1<minimum@arrow
      minimum@arrow
      else
      wd#1%
      fi

      newcommandminimum@arrow2.5em
      makeatother

      begindocument

      [
      A = ker left(A xrightarrowF B right)
      qquad
      A = ker bigl(A xrightarrowF B bigr)
      ]



      [
      A = ker left(
      hspace-arraycolsep
      begintikzcd
      A arrow[r,"F"] & B
      endtikzcd
      hspace-arraycolsep
      right)
      ]

      enddocument


      I also added a trick to remove the padding to the tikzcd and also tried bigl( and bigr) to get a better output.



      enter image description here



      On the other hand, a simple ker(AxrightarrowFB) (with no patching) seems sufficient to me:



      [
      A = ker bigl(A xrightarrowF B bigr)
      ]


      produces



      enter image description here






      share|improve this answer



























        2














        2










        2









        If you deem that xrightarrow produces too short an arrow, you can patch it in order to use a minimum width (here 2.5em).



        documentclassarticle
        usepackageamsmath
        usepackagetikz-cd
        usepackageetoolbox

        makeatletter
        patchcmdext@arrow
        hbox towdtw@
        hbox tomaybe@wdtw@
        ddt
        newcommandmaybe@wd[1]%
        ifdimwd#1<minimum@arrow
        minimum@arrow
        else
        wd#1%
        fi

        newcommandminimum@arrow2.5em
        makeatother

        begindocument

        [
        A = ker left(A xrightarrowF B right)
        qquad
        A = ker bigl(A xrightarrowF B bigr)
        ]



        [
        A = ker left(
        hspace-arraycolsep
        begintikzcd
        A arrow[r,"F"] & B
        endtikzcd
        hspace-arraycolsep
        right)
        ]

        enddocument


        I also added a trick to remove the padding to the tikzcd and also tried bigl( and bigr) to get a better output.



        enter image description here



        On the other hand, a simple ker(AxrightarrowFB) (with no patching) seems sufficient to me:



        [
        A = ker bigl(A xrightarrowF B bigr)
        ]


        produces



        enter image description here






        share|improve this answer













        If you deem that xrightarrow produces too short an arrow, you can patch it in order to use a minimum width (here 2.5em).



        documentclassarticle
        usepackageamsmath
        usepackagetikz-cd
        usepackageetoolbox

        makeatletter
        patchcmdext@arrow
        hbox towdtw@
        hbox tomaybe@wdtw@
        ddt
        newcommandmaybe@wd[1]%
        ifdimwd#1<minimum@arrow
        minimum@arrow
        else
        wd#1%
        fi

        newcommandminimum@arrow2.5em
        makeatother

        begindocument

        [
        A = ker left(A xrightarrowF B right)
        qquad
        A = ker bigl(A xrightarrowF B bigr)
        ]



        [
        A = ker left(
        hspace-arraycolsep
        begintikzcd
        A arrow[r,"F"] & B
        endtikzcd
        hspace-arraycolsep
        right)
        ]

        enddocument


        I also added a trick to remove the padding to the tikzcd and also tried bigl( and bigr) to get a better output.



        enter image description here



        On the other hand, a simple ker(AxrightarrowFB) (with no patching) seems sufficient to me:



        [
        A = ker bigl(A xrightarrowF B bigr)
        ]


        produces



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 6 hours ago









        egregegreg

        767k91 gold badges2002 silver badges3357 bronze badges




        767k91 gold badges2002 silver badges3357 bronze badges


























            2
















            Using the cramped, sep=small options to tikzcd you can obtain the desired spacing



            enter image description here



            Code:



            documentclass[12pt]article
            usepackagetikz-cd
            usepackageamsmath

            begindocument
            [
            A = ker left(B xrightarrowF Cright)
            ]
            [
            A = ker left(
            begintikzcd[cramped, sep=small]
            A rar["F"] & B
            endtikzcd
            right)
            ]
            enddocument





            share|improve this answer

























            • Upvoted, thanks!

              – CarLaTeX
              2 hours ago















            2
















            Using the cramped, sep=small options to tikzcd you can obtain the desired spacing



            enter image description here



            Code:



            documentclass[12pt]article
            usepackagetikz-cd
            usepackageamsmath

            begindocument
            [
            A = ker left(B xrightarrowF Cright)
            ]
            [
            A = ker left(
            begintikzcd[cramped, sep=small]
            A rar["F"] & B
            endtikzcd
            right)
            ]
            enddocument





            share|improve this answer

























            • Upvoted, thanks!

              – CarLaTeX
              2 hours ago













            2














            2










            2









            Using the cramped, sep=small options to tikzcd you can obtain the desired spacing



            enter image description here



            Code:



            documentclass[12pt]article
            usepackagetikz-cd
            usepackageamsmath

            begindocument
            [
            A = ker left(B xrightarrowF Cright)
            ]
            [
            A = ker left(
            begintikzcd[cramped, sep=small]
            A rar["F"] & B
            endtikzcd
            right)
            ]
            enddocument





            share|improve this answer













            Using the cramped, sep=small options to tikzcd you can obtain the desired spacing



            enter image description here



            Code:



            documentclass[12pt]article
            usepackagetikz-cd
            usepackageamsmath

            begindocument
            [
            A = ker left(B xrightarrowF Cright)
            ]
            [
            A = ker left(
            begintikzcd[cramped, sep=small]
            A rar["F"] & B
            endtikzcd
            right)
            ]
            enddocument






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 5 hours ago









            Peter GrillPeter Grill

            171k26 gold badges454 silver badges775 bronze badges




            171k26 gold badges454 silver badges775 bronze badges















            • Upvoted, thanks!

              – CarLaTeX
              2 hours ago

















            • Upvoted, thanks!

              – CarLaTeX
              2 hours ago
















            Upvoted, thanks!

            – CarLaTeX
            2 hours ago





            Upvoted, thanks!

            – CarLaTeX
            2 hours ago


















            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%2f507446%2fremove-outer-padding-in-tikzcd%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

            ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

            Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

            19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу