How to save space when writing equations with cases? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)tables with column width that depends on the width of table entriesTwo columns of equations, aligned and just one number per columnHow to adjust the blank space between the top of the left curly brace and the contents?How to align text to the right in math mode?flalign numberingTables: Missing $ insertedHow to properly format a proof/explanation with multiple points of alignment?Unwanted space with label in subfigure (subcaption) environmentHow can I left-align each cell in an equation containing math symbols?How do I get something into a rectangle without space for non-existent descenders?

A term for a woman complaining about things/begging in a cute/childish way

Co-worker has annoying ringtone

How were pictures turned from film to a big picture in a picture frame before digital scanning?

Dynamic filling of a region of a polar plot

Getting prompted for verification code but where do I put it in?

Why are my pictures showing a dark band on one edge?

Intuitive explanation of the rank-nullity theorem

Is there any word for a place full of confusion?

Is it possible for SQL statements to execute concurrently within a single session in SQL Server?

Why are vacuum tubes still used in amateur radios?

Project Euler #1 in C++

As Singapore Airlines (Krisflyer) Gold, can I bring my family into the lounge on a domestic Virgin Australia flight?

Deconstruction is ambiguous

Can the Flaming Sphere spell be rammed into multiple Tiny creatures that are in the same 5-foot square?

What makes a man succeed?

How to write capital alpha?

Random body shuffle every night—can we still function?

Why can't I install Tomboy in Ubuntu Mate 19.04?

Do I really need to have a message in a novel to appeal to readers?

Most bit efficient text communication method?

What does this say in Elvish?

What is the difference between a "ranged attack" and a "ranged weapon attack"?

AppleTVs create a chatty alternate WiFi network

How could we fake a moon landing now?



How to save space when writing equations with cases?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)tables with column width that depends on the width of table entriesTwo columns of equations, aligned and just one number per columnHow to adjust the blank space between the top of the left curly brace and the contents?How to align text to the right in math mode?flalign numberingTables: Missing $ insertedHow to properly format a proof/explanation with multiple points of alignment?Unwanted space with label in subfigure (subcaption) environmentHow can I left-align each cell in an equation containing math symbols?How do I get something into a rectangle without space for non-existent descenders?










1















I am writing in IEEE double column environment. I have some equations with cases. For example, this equation seems to have too much space after the brace and also before and after the commas.



enter image description here



I was using the array environment which seems to cause those large spacing. I still prefer to have some independent control over the alignment of the three parts of the equation, since in some cases for each column, the length may be quite different, and I may choose to center, left, or right align for each column. What would be a good way to make those spacings smaller but still have control over the alignment?



The code I used for the equation is



beginequation
theta_pk=left{ beginarrayccc
omega t+alpha+beta & , & n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta & , & n=7,8,9,10,11,12,ldots
endarrayright.
endequation









share|improve this question

















  • 5





    There exists an environment for that: cases.

    – marmot
    7 hours ago















1















I am writing in IEEE double column environment. I have some equations with cases. For example, this equation seems to have too much space after the brace and also before and after the commas.



enter image description here



I was using the array environment which seems to cause those large spacing. I still prefer to have some independent control over the alignment of the three parts of the equation, since in some cases for each column, the length may be quite different, and I may choose to center, left, or right align for each column. What would be a good way to make those spacings smaller but still have control over the alignment?



The code I used for the equation is



beginequation
theta_pk=left{ beginarrayccc
omega t+alpha+beta & , & n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta & , & n=7,8,9,10,11,12,ldots
endarrayright.
endequation









share|improve this question

















  • 5





    There exists an environment for that: cases.

    – marmot
    7 hours ago













1












1








1








I am writing in IEEE double column environment. I have some equations with cases. For example, this equation seems to have too much space after the brace and also before and after the commas.



enter image description here



I was using the array environment which seems to cause those large spacing. I still prefer to have some independent control over the alignment of the three parts of the equation, since in some cases for each column, the length may be quite different, and I may choose to center, left, or right align for each column. What would be a good way to make those spacings smaller but still have control over the alignment?



The code I used for the equation is



beginequation
theta_pk=left{ beginarrayccc
omega t+alpha+beta & , & n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta & , & n=7,8,9,10,11,12,ldots
endarrayright.
endequation









share|improve this question














I am writing in IEEE double column environment. I have some equations with cases. For example, this equation seems to have too much space after the brace and also before and after the commas.



enter image description here



I was using the array environment which seems to cause those large spacing. I still prefer to have some independent control over the alignment of the three parts of the equation, since in some cases for each column, the length may be quite different, and I may choose to center, left, or right align for each column. What would be a good way to make those spacings smaller but still have control over the alignment?



The code I used for the equation is



beginequation
theta_pk=left{ beginarrayccc
omega t+alpha+beta & , & n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta & , & n=7,8,9,10,11,12,ldots
endarrayright.
endequation






math-mode spacing






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 7 hours ago









nanjunnanjun

14016




14016







  • 5





    There exists an environment for that: cases.

    – marmot
    7 hours ago












  • 5





    There exists an environment for that: cases.

    – marmot
    7 hours ago







5




5





There exists an environment for that: cases.

– marmot
7 hours ago





There exists an environment for that: cases.

– marmot
7 hours ago










2 Answers
2






active

oldest

votes


















4














as mentioned @marmot in comment, cases from amsmath is right toool for what you like obtain:



enter image description here



documentclassIEEEtran
usepackageamsmath

usepackagelipsum % for dummy text

begindocument
lipsum[1]
beginequation
theta_pk =
begincases
omega t+alpha+beta & , n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta & , n=7,8,9,10,11,12,ldots
endcases
endequation
lipsum[2-4]
enddocument





share|improve this answer























  • Is it possible to reduce the space before the commas if I have slightly longer equations to fit in the column?

    – nanjun
    6 hours ago






  • 1





    Great answer!! According to AMS, I think that the commas have to start just after the expression e.g. omega t+alpha+beta, and not omega t+alpha+beta&,, and at the end of the line should be a comma e.g. ldots,.

    – manooooh
    6 hours ago











  • @manooooh -- "According to AMS ... have to" is a bit of a stretch. The traditional location of the commas is indeed at the end of the initial segment of a line, not after the &. That is what is shown in the user guide (texdoc amsldoc).

    – barbara beeton
    44 mins ago


















1














A variant, with the fleqn environment from nccmath. I improvedged the alignment in the first column of the cases environment, using a phantom — sign in the first row.



You also can save some space – to a certain extent, with the mathrlap command from mathtools (which loads amsmath). I didn't need it here.



documentclassIEEEtran
usepackageamsmath, nccmath

usepackagelipsum % for dummy text

begindocument

lipsum[1]
beginfleqn
beginequation
theta_pk =
begincases
phantom-omega t+alpha+beta, & n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta, & n=7,8,9,10,11,12,ldots
endcases
endequation
endfleqn
lipsum[2-4]

enddocument


enter image description here






share|improve this answer























  • What's the purpose of fleqn? I see no reason for it.

    – egreg
    6 hours ago











  • @egreg: Inside this environment, the equations are flushleft, while being aligned, gathered, &c. This can save some space.

    – Bernard
    5 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/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%2f485658%2fhow-to-save-space-when-writing-equations-with-cases%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









4














as mentioned @marmot in comment, cases from amsmath is right toool for what you like obtain:



enter image description here



documentclassIEEEtran
usepackageamsmath

usepackagelipsum % for dummy text

begindocument
lipsum[1]
beginequation
theta_pk =
begincases
omega t+alpha+beta & , n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta & , n=7,8,9,10,11,12,ldots
endcases
endequation
lipsum[2-4]
enddocument





share|improve this answer























  • Is it possible to reduce the space before the commas if I have slightly longer equations to fit in the column?

    – nanjun
    6 hours ago






  • 1





    Great answer!! According to AMS, I think that the commas have to start just after the expression e.g. omega t+alpha+beta, and not omega t+alpha+beta&,, and at the end of the line should be a comma e.g. ldots,.

    – manooooh
    6 hours ago











  • @manooooh -- "According to AMS ... have to" is a bit of a stretch. The traditional location of the commas is indeed at the end of the initial segment of a line, not after the &. That is what is shown in the user guide (texdoc amsldoc).

    – barbara beeton
    44 mins ago















4














as mentioned @marmot in comment, cases from amsmath is right toool for what you like obtain:



enter image description here



documentclassIEEEtran
usepackageamsmath

usepackagelipsum % for dummy text

begindocument
lipsum[1]
beginequation
theta_pk =
begincases
omega t+alpha+beta & , n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta & , n=7,8,9,10,11,12,ldots
endcases
endequation
lipsum[2-4]
enddocument





share|improve this answer























  • Is it possible to reduce the space before the commas if I have slightly longer equations to fit in the column?

    – nanjun
    6 hours ago






  • 1





    Great answer!! According to AMS, I think that the commas have to start just after the expression e.g. omega t+alpha+beta, and not omega t+alpha+beta&,, and at the end of the line should be a comma e.g. ldots,.

    – manooooh
    6 hours ago











  • @manooooh -- "According to AMS ... have to" is a bit of a stretch. The traditional location of the commas is indeed at the end of the initial segment of a line, not after the &. That is what is shown in the user guide (texdoc amsldoc).

    – barbara beeton
    44 mins ago













4












4








4







as mentioned @marmot in comment, cases from amsmath is right toool for what you like obtain:



enter image description here



documentclassIEEEtran
usepackageamsmath

usepackagelipsum % for dummy text

begindocument
lipsum[1]
beginequation
theta_pk =
begincases
omega t+alpha+beta & , n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta & , n=7,8,9,10,11,12,ldots
endcases
endequation
lipsum[2-4]
enddocument





share|improve this answer













as mentioned @marmot in comment, cases from amsmath is right toool for what you like obtain:



enter image description here



documentclassIEEEtran
usepackageamsmath

usepackagelipsum % for dummy text

begindocument
lipsum[1]
beginequation
theta_pk =
begincases
omega t+alpha+beta & , n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta & , n=7,8,9,10,11,12,ldots
endcases
endequation
lipsum[2-4]
enddocument






share|improve this answer












share|improve this answer



share|improve this answer










answered 6 hours ago









ZarkoZarko

130k869169




130k869169












  • Is it possible to reduce the space before the commas if I have slightly longer equations to fit in the column?

    – nanjun
    6 hours ago






  • 1





    Great answer!! According to AMS, I think that the commas have to start just after the expression e.g. omega t+alpha+beta, and not omega t+alpha+beta&,, and at the end of the line should be a comma e.g. ldots,.

    – manooooh
    6 hours ago











  • @manooooh -- "According to AMS ... have to" is a bit of a stretch. The traditional location of the commas is indeed at the end of the initial segment of a line, not after the &. That is what is shown in the user guide (texdoc amsldoc).

    – barbara beeton
    44 mins ago

















  • Is it possible to reduce the space before the commas if I have slightly longer equations to fit in the column?

    – nanjun
    6 hours ago






  • 1





    Great answer!! According to AMS, I think that the commas have to start just after the expression e.g. omega t+alpha+beta, and not omega t+alpha+beta&,, and at the end of the line should be a comma e.g. ldots,.

    – manooooh
    6 hours ago











  • @manooooh -- "According to AMS ... have to" is a bit of a stretch. The traditional location of the commas is indeed at the end of the initial segment of a line, not after the &. That is what is shown in the user guide (texdoc amsldoc).

    – barbara beeton
    44 mins ago
















Is it possible to reduce the space before the commas if I have slightly longer equations to fit in the column?

– nanjun
6 hours ago





Is it possible to reduce the space before the commas if I have slightly longer equations to fit in the column?

– nanjun
6 hours ago




1




1





Great answer!! According to AMS, I think that the commas have to start just after the expression e.g. omega t+alpha+beta, and not omega t+alpha+beta&,, and at the end of the line should be a comma e.g. ldots,.

– manooooh
6 hours ago





Great answer!! According to AMS, I think that the commas have to start just after the expression e.g. omega t+alpha+beta, and not omega t+alpha+beta&,, and at the end of the line should be a comma e.g. ldots,.

– manooooh
6 hours ago













@manooooh -- "According to AMS ... have to" is a bit of a stretch. The traditional location of the commas is indeed at the end of the initial segment of a line, not after the &. That is what is shown in the user guide (texdoc amsldoc).

– barbara beeton
44 mins ago





@manooooh -- "According to AMS ... have to" is a bit of a stretch. The traditional location of the commas is indeed at the end of the initial segment of a line, not after the &. That is what is shown in the user guide (texdoc amsldoc).

– barbara beeton
44 mins ago











1














A variant, with the fleqn environment from nccmath. I improvedged the alignment in the first column of the cases environment, using a phantom — sign in the first row.



You also can save some space – to a certain extent, with the mathrlap command from mathtools (which loads amsmath). I didn't need it here.



documentclassIEEEtran
usepackageamsmath, nccmath

usepackagelipsum % for dummy text

begindocument

lipsum[1]
beginfleqn
beginequation
theta_pk =
begincases
phantom-omega t+alpha+beta, & n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta, & n=7,8,9,10,11,12,ldots
endcases
endequation
endfleqn
lipsum[2-4]

enddocument


enter image description here






share|improve this answer























  • What's the purpose of fleqn? I see no reason for it.

    – egreg
    6 hours ago











  • @egreg: Inside this environment, the equations are flushleft, while being aligned, gathered, &c. This can save some space.

    – Bernard
    5 hours ago
















1














A variant, with the fleqn environment from nccmath. I improvedged the alignment in the first column of the cases environment, using a phantom — sign in the first row.



You also can save some space – to a certain extent, with the mathrlap command from mathtools (which loads amsmath). I didn't need it here.



documentclassIEEEtran
usepackageamsmath, nccmath

usepackagelipsum % for dummy text

begindocument

lipsum[1]
beginfleqn
beginequation
theta_pk =
begincases
phantom-omega t+alpha+beta, & n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta, & n=7,8,9,10,11,12,ldots
endcases
endequation
endfleqn
lipsum[2-4]

enddocument


enter image description here






share|improve this answer























  • What's the purpose of fleqn? I see no reason for it.

    – egreg
    6 hours ago











  • @egreg: Inside this environment, the equations are flushleft, while being aligned, gathered, &c. This can save some space.

    – Bernard
    5 hours ago














1












1








1







A variant, with the fleqn environment from nccmath. I improvedged the alignment in the first column of the cases environment, using a phantom — sign in the first row.



You also can save some space – to a certain extent, with the mathrlap command from mathtools (which loads amsmath). I didn't need it here.



documentclassIEEEtran
usepackageamsmath, nccmath

usepackagelipsum % for dummy text

begindocument

lipsum[1]
beginfleqn
beginequation
theta_pk =
begincases
phantom-omega t+alpha+beta, & n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta, & n=7,8,9,10,11,12,ldots
endcases
endequation
endfleqn
lipsum[2-4]

enddocument


enter image description here






share|improve this answer













A variant, with the fleqn environment from nccmath. I improvedged the alignment in the first column of the cases environment, using a phantom — sign in the first row.



You also can save some space – to a certain extent, with the mathrlap command from mathtools (which loads amsmath). I didn't need it here.



documentclassIEEEtran
usepackageamsmath, nccmath

usepackagelipsum % for dummy text

begindocument

lipsum[1]
beginfleqn
beginequation
theta_pk =
begincases
phantom-omega t+alpha+beta, & n=1,2,3,4,5,6,ldots\
-omega t-alpha-beta, & n=7,8,9,10,11,12,ldots
endcases
endequation
endfleqn
lipsum[2-4]

enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 6 hours ago









BernardBernard

176k778210




176k778210












  • What's the purpose of fleqn? I see no reason for it.

    – egreg
    6 hours ago











  • @egreg: Inside this environment, the equations are flushleft, while being aligned, gathered, &c. This can save some space.

    – Bernard
    5 hours ago


















  • What's the purpose of fleqn? I see no reason for it.

    – egreg
    6 hours ago











  • @egreg: Inside this environment, the equations are flushleft, while being aligned, gathered, &c. This can save some space.

    – Bernard
    5 hours ago

















What's the purpose of fleqn? I see no reason for it.

– egreg
6 hours ago





What's the purpose of fleqn? I see no reason for it.

– egreg
6 hours ago













@egreg: Inside this environment, the equations are flushleft, while being aligned, gathered, &c. This can save some space.

– Bernard
5 hours ago






@egreg: Inside this environment, the equations are flushleft, while being aligned, gathered, &c. This can save some space.

– Bernard
5 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%2f485658%2fhow-to-save-space-when-writing-equations-with-cases%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

Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2