multiline equation inside a matrix that is a part of multiline equationMultiline equation and textMultiline equation with LHS alone on first line?Multiline equation without numbermultiline equation inside newglossaryentryAligning equation including multiline expressionsAligning Multiline Matrix EquationsMultiline equation inside a split environmentWriting matrix inside an equationSplitting a long text in an equationProblem splitting/fitting equation

How can I prevent interns from being expendable?

Asking bank to reduce APR instead of increasing credit limit

Possible nonclassical ion from a bicyclic system

How to detach yourself from a character you're going to kill?

If Sweden was to magically float away, at what altitude would it be visible from the southern hemisphere?

How should I push back against my job assigning "homework"?

Is it possible to kill all life on Earth?

Creating Fictional Slavic Place Names

Why would Lupin kill Pettigrew?

Modern approach to radio buttons

Points within polygons in different projections

What is the difference between nullifying your vote and not going to vote at all?

What was this black-and-white film set in the Arctic or Antarctic where the monster/alien gets fried in the end?

Term for checking piece whose opponent daren't capture it

find the Integer value after a string from a file

What is/are this/these giant NASA box(es)?

Can a non-EU citizen travel within the Schengen area without identity documents?

Could I be denied entry into Ireland due to medical and police situations during a previous UK visit?

The qvolume of an integer

What does it mean when you think without speaking?

What are the slash markings on Gatwick's 08R/26L?

What is game ban VS VAC ban in steam?

Mother abusing my finances

What does the behaviour of water on the skin of an aircraft in flight tell us?



multiline equation inside a matrix that is a part of multiline equation


Multiline equation and textMultiline equation with LHS alone on first line?Multiline equation without numbermultiline equation inside newglossaryentryAligning equation including multiline expressionsAligning Multiline Matrix EquationsMultiline equation inside a split environmentWriting matrix inside an equationSplitting a long text in an equationProblem splitting/fitting equation













3















I have an equation split to multiple lines.
But the last line of the multiline equation contains 2x1 vector with long equations that go out of margin.
How do I further split the equations in the vector so that they do go over margin and look visually pleasing?



beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
&=beginbmatrix tanhBig(w^ro_1,1cdotalphacdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,1cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Big) \ tanhBig(w^ro_1,2cdot alpha cdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,2cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Big) endbmatrix.
endsplit
endequation


Current output looks like below where good portion of equations go over margin:
enter image description here



Any help will be greatly appreciated










share|improve this question






















  • Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

    – Zarko
    May 19 at 23:07
















3















I have an equation split to multiple lines.
But the last line of the multiline equation contains 2x1 vector with long equations that go out of margin.
How do I further split the equations in the vector so that they do go over margin and look visually pleasing?



beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
&=beginbmatrix tanhBig(w^ro_1,1cdotalphacdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,1cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Big) \ tanhBig(w^ro_1,2cdot alpha cdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,2cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Big) endbmatrix.
endsplit
endequation


Current output looks like below where good portion of equations go over margin:
enter image description here



Any help will be greatly appreciated










share|improve this question






















  • Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

    – Zarko
    May 19 at 23:07














3












3








3








I have an equation split to multiple lines.
But the last line of the multiline equation contains 2x1 vector with long equations that go out of margin.
How do I further split the equations in the vector so that they do go over margin and look visually pleasing?



beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
&=beginbmatrix tanhBig(w^ro_1,1cdotalphacdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,1cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Big) \ tanhBig(w^ro_1,2cdot alpha cdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,2cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Big) endbmatrix.
endsplit
endequation


Current output looks like below where good portion of equations go over margin:
enter image description here



Any help will be greatly appreciated










share|improve this question














I have an equation split to multiple lines.
But the last line of the multiline equation contains 2x1 vector with long equations that go out of margin.
How do I further split the equations in the vector so that they do go over margin and look visually pleasing?



beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
&=beginbmatrix tanhBig(w^ro_1,1cdotalphacdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,1cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Big) \ tanhBig(w^ro_1,2cdot alpha cdot tanhbig(w^ir_1,1cdot x_1(1)+w^ir_2,1cdot x_2(1)big) + w^ro_2,2cdot alpha cdot tanhbig(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)big) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Big) endbmatrix.
endsplit
endequation


Current output looks like below where good portion of equations go over margin:
enter image description here



Any help will be greatly appreciated







equations split multline






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 15 at 19:34









user32147user32147

1462




1462












  • Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

    – Zarko
    May 19 at 23:07


















  • Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

    – Zarko
    May 19 at 23:07

















Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

– Zarko
May 19 at 23:07






Any news? Is any of received answers the most acceptable to you? If it, please click on check mark at top left side of selected answer. As I have seen, so far you not accept any answer on your question ;-(.

– Zarko
May 19 at 23:07











3 Answers
3






active

oldest

votes


















7














You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here






share|improve this answer

























  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10



















5














Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument





share|improve this answer

























  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14


















3














I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here






share|improve this answer























  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16











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%2f491032%2fmultiline-equation-inside-a-matrix-that-is-a-part-of-multiline-equation%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









7














You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here






share|improve this answer

























  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10
















7














You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here






share|improve this answer

























  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10














7












7








7







You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here






share|improve this answer















You can break lines within a matrix by useing of multlined from the mathtools package:



documentclassarticle
usepackagegeometry
usepackagemathtools

begindocument
beginequation labeleq:7
beginsplit
mathbfy(1)&=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) \
& = beginbmatrix
beginmultlined
tanhBigl(w^ro_1,1cdotalphacdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,1cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1) + w^ir_2,2 cdot x_2(1)bigr) + w^io_1,1 cdot x_1(1)+w^io_2,1 cdot x_2(1)Bigr)
endmultlined \[4ex]
%
beginmultlined
tanhBigl(w^ro_1,2cdot alpha cdot tanhbigl(w^ir_1,1cdot x_1(1) + w^ir_2,1cdot x_2(1)bigr) \[-2ex]
+ w^ro_2,2cdot alpha cdot tanhbigl(w^ir_1,2cdot x_1(1)+w^ir_2,2 cdot x_2(1)bigr) + w^io_1,2cdot x_1(1)+w^io_2,2cdot x_2(1)Bigr)
endmultlined
endbmatrix.
endsplit
endequation
enddocument


note: I try to fix of use Big( and big(. More correct is Bigl( and bigl( and Bigr) and bigr). most of the math operators are defined, so instead ˙tanh you should use tanh which write it correct mathrm font. I also reduce width of cdots enclosing them in curly braces. Do you really need them?



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited May 15 at 20:34

























answered May 15 at 20:02









ZarkoZarko

135k872180




135k872180












  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10


















  • Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

    – user32147
    May 16 at 1:10

















Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

– user32147
May 16 at 1:10






Thank you for correcting usage of other natations. This is really helpful! I initially didn't have cdots but I feel like including them makes it more readable. Does cdot have smaller width compared to just plain cdot ?

– user32147
May 16 at 1:10












5














Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument





share|improve this answer

























  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14















5














Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument





share|improve this answer

























  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14













5












5








5







Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument





share|improve this answer















Here there is my proposal:



enter image description here



documentclass[a4paper,12pt]article
usepackagemathtools,amssymb
usepackage[left=1in,right=.3in]geometry

begindocument
beginequation labeleq:7
beginaligned
mathbfy(1)&=tanh(mathbfW^mathrmrocdotmathbfh(1)+mathbfW^mathrmiocdotmathbfx(1)) \
&=beginbmatrix tanhBig((w^mathrmmathrmro_1,1cdotalphacdot tanhmu) + w^mathrmro_2,1cdot alpha cdot tanh lambda + w^mathrmio_1,1 cdot x_1(1)+w^mathrmio_2,1 cdot x_2(1)Big) \
tanh Big((w^mathrmro_1,2cdot alpha cdot tanhmu) + w^mathrmro_2,2cdot alpha cdot tanh lambda + w^mathrmio_1,2cdot x_1(1)+w^mathrmio_2,2cdot x_2(1)Big) endbmatrix
endaligned
endequation

where $mu=(w^mathrmir_1,1cdot x_1(1)+w^mathrmir_2,1cdot x_2(1))$ and $lambda=(w^mathrmir_1,2cdot x_1(1)+w^mathrmir_2,2 cdot x_2(1))$
enddocument






share|improve this answer














share|improve this answer



share|improve this answer








edited May 15 at 22:51

























answered May 15 at 20:15









SebastianoSebastiano

12.6k42570




12.6k42570












  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14

















  • i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

    – Zarko
    May 15 at 20:30











  • @Zarko I have edited my code. Maybe this one's better.

    – Sebastiano
    May 15 at 22:36











  • this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

    – Brandon Kuczenski
    May 15 at 23:06






  • 1





    @Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

    – Zarko
    May 15 at 23:42






  • 1





    Thank you! I really appreciate the help.

    – user32147
    May 16 at 1:14
















i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

– Zarko
May 15 at 20:30





i see, that now i need new glasses :-). fonts are so tiny ... anyway +1

– Zarko
May 15 at 20:30













@Zarko I have edited my code. Maybe this one's better.

– Sebastiano
May 15 at 22:36





@Zarko I have edited my code. Maybe this one's better.

– Sebastiano
May 15 at 22:36













this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

– Brandon Kuczenski
May 15 at 23:06





this is definitely the best solution; downvote (not me) was probably because it does not answer the OP's question

– Brandon Kuczenski
May 15 at 23:06




1




1





@Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

– Zarko
May 15 at 23:42





@Sebastiano, yes, now is better! i can read now without magnifying glass :-) :-) :-)

– Zarko
May 15 at 23:42




1




1





Thank you! I really appreciate the help.

– user32147
May 16 at 1:14





Thank you! I really appreciate the help.

– user32147
May 16 at 1:14











3














I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here






share|improve this answer























  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16















3














I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here






share|improve this answer























  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16













3












3








3







I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here






share|improve this answer













I propose this layout, which doesn't require multiline equations inside matrix. Instead, I suppressed the cdots (unnecessary, from my point of view) and used the mmatrix (medium-size matrix) environment from nccmath, and the fleqn environment (same package). This size remains readable, as it is ~80 % of displaystyle.



documentclassarticle
usepackage[showframe]geometry
usepackagemathtools, nccmath

begindocument
vspace*1cm
beginfleqn

beginequation
beginaligned[b] labeleq:7
&mathbfy(1)=tanh(mathbfW^rocdotmathbfh(1)+mathbfW^iocdotmathbfx(1)) = \
& beginmmatrix beginbmatrix
tanhBigl(w^ro_1,1 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,1 alpha tanhbigl(w^ir_1,2 x_1(1) + w^ir_2,2 x_2(1)bigr) + w^io_1,1 x_1(1)+w^io_2,1 x_2(1)Bigr)
\
%
tanhBigl(w^ro_1,2 alpha tanhbigl(w^ir_1,1 x_1(1) + w^ir_2,1 x_2(1)bigr)
+ w^ro_2,2 alpha tanhbigl(w^ir_1,2 x_1(1)+w^ir_2,2 x_2(1)bigr) + w^io_1,2 x_1(1)+w^io_2,2 x_2(1)Bigr)
endbmatrix
endmmatrix
endaligned
endequation
endfleqn

enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered May 15 at 21:16









BernardBernard

180k780212




180k780212












  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16

















  • thank you for the suggestion! this is really helpful!

    – user32147
    May 16 at 1:07











  • initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

    – user32147
    May 16 at 1:16
















thank you for the suggestion! this is really helpful!

– user32147
May 16 at 1:07





thank you for the suggestion! this is really helpful!

– user32147
May 16 at 1:07













initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

– user32147
May 16 at 1:16





initially I was able to fit the matrix in one line without cdot but I decided to put cdot as I feel like the equation is easier to parse and read with them.

– user32147
May 16 at 1:16

















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%2f491032%2fmultiline-equation-inside-a-matrix-that-is-a-part-of-multiline-equation%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

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020