Renew arraystretch only inside matrix environment The 2019 Stack Overflow Developer Survey...

Feature engineering suggestion required

Why isn't the circumferential light around the M87 black hole's event horizon symmetric?

Loose spokes after only a few rides

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

How to notate time signature switching consistently every measure

How come people say “Would of”?

Are spiders unable to hurt humans, especially very small spiders?

Can one be advised by a professor who is very far away?

What is the closest word meaning "respect for time / mindful"

A poker game description that does not feel gimmicky

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Why can Shazam fly?

What do hard-Brexiteers want with respect to the Irish border?

Is this app Icon Browser Safe/Legit?

Are there incongruent pythagorean triangles with the same perimeter and same area?

How to deal with fear of taking dependencies

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Lightning Grid - Columns and Rows?

The difference between dialogue marks

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

When should I buy a clipper card after flying to OAK?

Did 3000BC Egyptians use meteoric iron weapons?

"as much details as you can remember"

Why did Acorn's A3000 have red function keys?



Renew arraystretch only inside matrix environment



The 2019 Stack Overflow Developer Survey Results Are Inbreaking lines in a matrix/array environmentA matrix inside a tableDeterminants inside matrixarraystretch both horizontally and verticallyMatrix inside matrixCreating a Payoff Matrix Using LaTeX Tabular EnvironmentMatrix within matrix with numberingTabular with matrix inside3x3 Normal Form Payoff Matrix in LaTeX Tabular EnvironmentHow to typeset `matrix` inside `aligned` environment?












1















I am using renewcommand{arraystretch}{2.5} in my arrays to produce nice tables. But this is affecting also matrix environments. Supposedly one can redefine the arraystretch locally inside each environment, but this does not work when I try to make my matrices look nice again. Please help.



Here's a MWE (which also illustrates the issue):



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz-cd}
renewcommand{arraystretch}{2.5}
usepackage{amssymb, amsmath}
begin{document}

[begin{array}{|c|c|}
hline omega^s_{~s}= 0 & omega^s_{~theta}= -dfrac{f'}{f},theta^theta \[.5em] hline omega^theta_{~s}=dfrac{f'}{f},theta^theta & omega^theta_{~theta}=0 \[.5em] hline
end{array}]

[ begin{vmatrix} renewcommand*{arraystretch}{.5}
g(u_1,v_1) & g(u_1,v_2) \ g(u_2,v_1) & g(u_2,v_2)
end{vmatrix}]

end{document}








share



























    1















    I am using renewcommand{arraystretch}{2.5} in my arrays to produce nice tables. But this is affecting also matrix environments. Supposedly one can redefine the arraystretch locally inside each environment, but this does not work when I try to make my matrices look nice again. Please help.



    Here's a MWE (which also illustrates the issue):



    documentclass{article}
    usepackage[utf8]{inputenc}
    usepackage{tikz-cd}
    renewcommand{arraystretch}{2.5}
    usepackage{amssymb, amsmath}
    begin{document}

    [begin{array}{|c|c|}
    hline omega^s_{~s}= 0 & omega^s_{~theta}= -dfrac{f'}{f},theta^theta \[.5em] hline omega^theta_{~s}=dfrac{f'}{f},theta^theta & omega^theta_{~theta}=0 \[.5em] hline
    end{array}]

    [ begin{vmatrix} renewcommand*{arraystretch}{.5}
    g(u_1,v_1) & g(u_1,v_2) \ g(u_2,v_1) & g(u_2,v_2)
    end{vmatrix}]

    end{document}








    share

























      1












      1








      1








      I am using renewcommand{arraystretch}{2.5} in my arrays to produce nice tables. But this is affecting also matrix environments. Supposedly one can redefine the arraystretch locally inside each environment, but this does not work when I try to make my matrices look nice again. Please help.



      Here's a MWE (which also illustrates the issue):



      documentclass{article}
      usepackage[utf8]{inputenc}
      usepackage{tikz-cd}
      renewcommand{arraystretch}{2.5}
      usepackage{amssymb, amsmath}
      begin{document}

      [begin{array}{|c|c|}
      hline omega^s_{~s}= 0 & omega^s_{~theta}= -dfrac{f'}{f},theta^theta \[.5em] hline omega^theta_{~s}=dfrac{f'}{f},theta^theta & omega^theta_{~theta}=0 \[.5em] hline
      end{array}]

      [ begin{vmatrix} renewcommand*{arraystretch}{.5}
      g(u_1,v_1) & g(u_1,v_2) \ g(u_2,v_1) & g(u_2,v_2)
      end{vmatrix}]

      end{document}








      share














      I am using renewcommand{arraystretch}{2.5} in my arrays to produce nice tables. But this is affecting also matrix environments. Supposedly one can redefine the arraystretch locally inside each environment, but this does not work when I try to make my matrices look nice again. Please help.



      Here's a MWE (which also illustrates the issue):



      documentclass{article}
      usepackage[utf8]{inputenc}
      usepackage{tikz-cd}
      renewcommand{arraystretch}{2.5}
      usepackage{amssymb, amsmath}
      begin{document}

      [begin{array}{|c|c|}
      hline omega^s_{~s}= 0 & omega^s_{~theta}= -dfrac{f'}{f},theta^theta \[.5em] hline omega^theta_{~s}=dfrac{f'}{f},theta^theta & omega^theta_{~theta}=0 \[.5em] hline
      end{array}]

      [ begin{vmatrix} renewcommand*{arraystretch}{.5}
      g(u_1,v_1) & g(u_1,v_2) \ g(u_2,v_1) & g(u_2,v_2)
      end{vmatrix}]

      end{document}






      tables spacing matrices arrays





      share












      share










      share



      share










      asked 4 mins ago









      Ivo TerekIvo Terek

      26129




      26129






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You can use bgroup and egroup for that.



          documentclass{article}
          usepackage[utf8]{inputenc}
          usepackage{tikz-cd}
          renewcommand{arraystretch}{2.5}
          usepackage{amssymb, amsmath}
          begin{document}

          [bgroupbegin{array}{|c|c|}
          hline omega^s_{~s}= 0 & omega^s_{~theta}= -dfrac{f'}{f},theta^theta \[.5em] hline omega^theta_{~s}=dfrac{f'}{f},theta^theta & omega^theta_{~theta}=0 \[.5em] hline
          end{array}egroup]

          [ bgrouprenewcommand*{arraystretch}{.5}begin{vmatrix}
          g(u_1,v_1) & g(u_1,v_2) \ g(u_2,v_1) & g(u_2,v_2)
          end{vmatrix}egroup]

          end{document}


          enter image description here





          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%2f484241%2frenew-arraystretch-only-inside-matrix-environment%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














            You can use bgroup and egroup for that.



            documentclass{article}
            usepackage[utf8]{inputenc}
            usepackage{tikz-cd}
            renewcommand{arraystretch}{2.5}
            usepackage{amssymb, amsmath}
            begin{document}

            [bgroupbegin{array}{|c|c|}
            hline omega^s_{~s}= 0 & omega^s_{~theta}= -dfrac{f'}{f},theta^theta \[.5em] hline omega^theta_{~s}=dfrac{f'}{f},theta^theta & omega^theta_{~theta}=0 \[.5em] hline
            end{array}egroup]

            [ bgrouprenewcommand*{arraystretch}{.5}begin{vmatrix}
            g(u_1,v_1) & g(u_1,v_2) \ g(u_2,v_1) & g(u_2,v_2)
            end{vmatrix}egroup]

            end{document}


            enter image description here





            share




























              0














              You can use bgroup and egroup for that.



              documentclass{article}
              usepackage[utf8]{inputenc}
              usepackage{tikz-cd}
              renewcommand{arraystretch}{2.5}
              usepackage{amssymb, amsmath}
              begin{document}

              [bgroupbegin{array}{|c|c|}
              hline omega^s_{~s}= 0 & omega^s_{~theta}= -dfrac{f'}{f},theta^theta \[.5em] hline omega^theta_{~s}=dfrac{f'}{f},theta^theta & omega^theta_{~theta}=0 \[.5em] hline
              end{array}egroup]

              [ bgrouprenewcommand*{arraystretch}{.5}begin{vmatrix}
              g(u_1,v_1) & g(u_1,v_2) \ g(u_2,v_1) & g(u_2,v_2)
              end{vmatrix}egroup]

              end{document}


              enter image description here





              share


























                0












                0








                0







                You can use bgroup and egroup for that.



                documentclass{article}
                usepackage[utf8]{inputenc}
                usepackage{tikz-cd}
                renewcommand{arraystretch}{2.5}
                usepackage{amssymb, amsmath}
                begin{document}

                [bgroupbegin{array}{|c|c|}
                hline omega^s_{~s}= 0 & omega^s_{~theta}= -dfrac{f'}{f},theta^theta \[.5em] hline omega^theta_{~s}=dfrac{f'}{f},theta^theta & omega^theta_{~theta}=0 \[.5em] hline
                end{array}egroup]

                [ bgrouprenewcommand*{arraystretch}{.5}begin{vmatrix}
                g(u_1,v_1) & g(u_1,v_2) \ g(u_2,v_1) & g(u_2,v_2)
                end{vmatrix}egroup]

                end{document}


                enter image description here





                share













                You can use bgroup and egroup for that.



                documentclass{article}
                usepackage[utf8]{inputenc}
                usepackage{tikz-cd}
                renewcommand{arraystretch}{2.5}
                usepackage{amssymb, amsmath}
                begin{document}

                [bgroupbegin{array}{|c|c|}
                hline omega^s_{~s}= 0 & omega^s_{~theta}= -dfrac{f'}{f},theta^theta \[.5em] hline omega^theta_{~s}=dfrac{f'}{f},theta^theta & omega^theta_{~theta}=0 \[.5em] hline
                end{array}egroup]

                [ bgrouprenewcommand*{arraystretch}{.5}begin{vmatrix}
                g(u_1,v_1) & g(u_1,v_2) \ g(u_2,v_1) & g(u_2,v_2)
                end{vmatrix}egroup]

                end{document}


                enter image description here






                share











                share


                share










                answered 19 secs ago









                marmotmarmot

                117k5150283




                117k5150283






























                    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%2f484241%2frenew-arraystretch-only-inside-matrix-environment%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

                    El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

                    Castillo d'Acher Características Menú de navegación

                    Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...