Skip to content

Fix optimization problem alignment with 1 constraint#53

Open
lopenguin wants to merge 2 commits intojeslago:masterfrom
lopenguin:master
Open

Fix optimization problem alignment with 1 constraint#53
lopenguin wants to merge 2 commits intojeslago:masterfrom
lopenguin:master

Conversation

@lopenguin
Copy link

Hello,

I've found optidef to be extremely useful. However, I noticed this strange behavior when writing an optimization problem with a single constraint:

Screenshot from 2025-06-25 09-39-20

It was fairly easy to fix by editing the align environment. I figured I should open a pull request so others have access to this fix! Here's what it looks like after the fix:

Screenshot from 2025-06-25 09-56-18

I also make a small change to the alignment of the s.t. symbol. This is personal preference; feel free to remove that change.

I think the latest version of this repo is not up to date with CTAN. Are there plans to upload any updates to CTAN?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant