Questions tagged [empheq]

A package to provide various ways to highlight displayed equations and features for working with delimiters.

The empheq package provides many extensions to amsmath boxing of single equations, extending the facilities to multi-line displays. It also provides mechanisms for fine tuning and defining new large delimiters, as might be need around groups of equations.

108 questions
7
votes
3 answers

How to make fbox fit automatically around wide equations using empheq package

Is there a trick to make fbox used with empheq fit around the equations, even if they are too wide, or does not have to manually enter numerical values for sizes in this case? One set of my equations I'd like to put a box around are too wide, and I…
Nasser
  • 20,220
5
votes
1 answer

Is it possible to include text within empheq

Right now, I have \begin{gather} Eq1 \\ Eq2 \\ Eq3 \end{gather} where variables ... are defined as \begin{gather} Eq4 \\ Eq5 \end{gather} I would like to put a box around all of this including the text "where variables ... are defined as". Is it…
KevinB
  • 291
3
votes
1 answer

Force to align left a empheq box

\documentclass{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage[dvipsnames]{xcolor} \usepackage[most]{tcolorbox} \usepackage{empheq} \definecolor{lightgrey}{HTML}{f0f0f0} \newtcbox{\resultbox}[1][lightgrey]{ …
3
votes
2 answers

How to put multiple empheq environments side-by-side?

How do I put multiple empheq environments side-by-side? Like this: \documentclass{article} \usepackage{empheq} \begin{document} \begin{empheq}[left=\empheqlbrace]{align*} &\frac{1}{n} > \frac{1}{n^2} \\ &{a'}^2 - \frac{2a'}{n} + \frac{1}{n^2} >…
2
votes
2 answers

empheq labels going down

I have this empheq code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{empheq} \begin{document} \begin{empheq}{align} \min \quad & \displaystyle\sum_{t \in T}\sum_{(i,j,s) \in A^{t}} d_{ij}x^{t}_{ijs} \nonumber \\ …
2
votes
1 answer
1
vote
2 answers

How to put a box around only part of an aligned equation set

I have the following aligned equation set \begin{subequations}\label{1} \begin{align} &A=B=C\label{a}\\ &D=E=F\label{b} \end{align}} \end{subequations} I want to put the part A=B D=E In a single box, leaving the =C and =F out of the box. Can…
Ehud
  • 11
1
vote
1 answer

empheq and changing location of equation numbers

I am using the empheq/tcolorbox packages to put colored boxes around my equations but would like to place the equation numbers in the right margin. In the past, I have used the following code to put equation numbers in the right margin and it has…