Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [empheq]

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

0
votes
2answers
39 views

How to do vertical sorting in the equation?

MWE \documentclass{article} \usepackage{amsmath} \begin{document} \begin{array} I_1\cdot(R_1 + R_4)+I_2\cdot R_1 +I_3\cdot 0 =\varepsilon_1\\ I_1\cdot R_1 + I_2\cdot(R_1+R_2+R_5) +I_3\cdot R_5 =\...
1
vote
1answer
50 views

Multiline math environment that allows for individually tagged equations grouped by brace as rhs

I'm looking for a math environment that would allow me to write two lines/equations, that needn't be aligned per se, but in which one of the lines looks like this: a = {a(x), where a(x) is a system of ...
0
votes
1answer
40 views

ntheorem + showonlyrefs

I like the showonlyrefs option provided by mathtools. I also would like to use ntheorem. But they seem difficult to use together. Applying the various recommendations in the related manuals (including ...
1
vote
1answer
65 views

How can I place an array in empheq environment?

I'd like to place an array in a empheq environment. I tried the following code which gives the error: Paragraph ended before \empheq was complete. \documentclass{article} \usepackage[utf8]{inputenc} \...
2
votes
2answers
55 views

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 ...
1
vote
2answers
62 views

Line Break in Equation Using empheq

I have an equation that overspills into the margins; I am using (and would like to continue using) empheq for it. Let me give a MWE. Note that it's not what I've actually got in my document, just an ...
1
vote
1answer
40 views

How to box the last (or one) line of an aligned set of equations? [duplicate]

I am trying to get the last equation in a list of aligned equations boxed, however this is more challenging than I thought it might be. I would like to be able to do it with the box both including ...
0
votes
2answers
57 views

Incompatibility between split and empheq?

I have an issue using split inside an empheq environment. When combining both environments, the alignment of the empheq is broken. Any clues ? If this is a duplicate or an obvious/known ...
3
votes
2answers
127 views

Subequations with brace and aligned systems of equations

I am looking for the best way to align systems of equations in a subequations environment with a brace on the left side and an introductive sentence. This is what I have for now : \documentclass{...
0
votes
1answer
86 views

Add text on left side of an empheq environment with a brace

I wanted to write my equations with a left brace and text on the side left to my equations so I first used this code : \[ \text{Sous contraintes}\left\{ \begin{array}{ll} eq1 & ...
0
votes
1answer
59 views

How to balance the vertical positions of equations inside an `empheq` environment

To write grouped equations, I use the empheq package with some [left=...] option , which in general works as expected. However, when having a line with an integral sign, and I guess this may happen ...
0
votes
0answers
22 views

empheq equation flows out of column bounds [duplicate]

I am using the boxed equation format shown here. However, it flows out of column bounds when following the IEEE journal format as shown in image. \documentclass{article} \usepackage{color} \...
1
vote
1answer
395 views

Align some equations in empheq environment

I am trying to align some equations in an empheq environment but cannot get it right. Here is my MWE: \documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{...
2
votes
2answers
130 views

newenvironment with empheq inside tcolorbox

I have to define a new environment doing something like that. \documentclass[12pt]{article} \usepackage{tcolorbox,empheq} \begin{document} \begin{tcolorbox} \begin{empheq}{align} a=b \end{empheq} \...
2
votes
0answers
31 views

Conflict between empheq and tocdepth? [duplicate]

I have reduced my problem to a MWE and I have no idea what is going on. The following code compiles and functions as expected when I remove the empheq package: \documentclass{article} \usepackage[...
4
votes
2answers
295 views

Fancy box around equation in align environment

I am aware of both this and this questions. However, can we combine them? What I mean by this is can I enclose in a fancy box à la empheq part of an equation in an align environment? (I believe there ...
0
votes
1answer
301 views

change size of empheq box

I have the following code in order to align some equation: \begingroup\makeatletter\def\f@size{8}\check@mathfonts \def\maketag@@@#1{\hbox{\m@th\large\normalfont#1}}% \begin{empheq}[box=\widefbox]{...
2
votes
1answer
216 views

Whitespace denominator in fraction [title changable]

MWE \documentclass[a4paper,12pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[svgnames]{xcolor} \usepackage{empheq} \definecolor{formula}{RGB}{255,...
4
votes
1answer
83 views

Footnotes inside a system of numbered equations

Is it possible to insert footnotes inside a system of numbered equations? I tried to do it with the following code, but the footnote is not shown: \documentclass{article} \usepackage{amsmath, ...
1
vote
1answer
213 views

braced equation with multiple lines on right side, with equation numbers

I thought I'd come across a solution for my question but surprisingly (to me) I did not. I hoped an example would have been in https://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics but maybe it ...
3
votes
2answers
191 views

Summarize a set of equations with arrows, boxes and circled numbers

I have a set of equations summarized in this way: The code that produces this is the following: \documentclass[12pt]{article} \usepackage{empheq} \usepackage[left=2.5cm,top=2.5cm,right=2.5cm,...
2
votes
0answers
115 views

How to remove vertical space when subequations are used along with empheq?

I am using empheq along with subequations as given in the MWE. However, the use of subequations create a vertical space between the paragraph and equation as shown in figure, which I don't want. I ...
1
vote
2answers
106 views

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 ...
0
votes
1answer
179 views

Connect equation boxes in beamer

I am looking for the simplest way to connect two equation boxes with an arrow. Currently I am using the empheq. This is what I have done so far: \usepackage{empheq} \usepackage[most]{tcolorbox} \...
1
vote
1answer
253 views

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 ...
0
votes
1answer
128 views

Placing text to the right of multiline equation

I have a piecewise equation, with a curly brace on the right hand side which spans both parts. I wish to place text at the centre of this brace (and hence not really on on the two lines used for the ...
4
votes
1answer
183 views

Rmathbr doesn't work with \coloneqq

I was creating one complex tikz-flow chain. One moment compiler stopped working. I was trying to get why. And I found that the following MWE causes that \documentclass{article} \usepackage{empheq} ...
2
votes
2answers
327 views

Adjusting vertical space around equation using \empheq package

I have been using a simple method for adding a framed, colored box around important equations I want to highlight. The empheq package has worked well. However, I am having a lot of trouble figuring ...
5
votes
4answers
460 views

new line in empheq

I have a big equation that I want to split with empheq : \begin{empheq}[right={\empheqrbrace = - \oint_S \frac{\overline{\overline{G}}(\vec{r}-\vec{\xi})}{8\pi \mu}\left(\overline{\overline{\sigma}}(...
5
votes
4answers
660 views

Horizontal line in fbox

I'm using an align-environment(employing the empheq package) with a surrounding \fbox for showing a set of formulas. Now I'm trying to draw a horizontal line under both "Part 1" and "Part 2" which ...
2
votes
2answers
174 views

flalign* formulas leftbound

I'm using an align-like environment (employing the empheq package) to display a formal system where I want to display two parts with a surrounding box. My problem is: I want the equations on the right-...
1
vote
2answers
182 views

Coloured box around equation in tabular

I have been using the empheq package to put coloured boxes around some equations. I tried to put it inside a tabular environment and it flags up the following errors: Bad math environment delimiter. \...
4
votes
2answers
2k views

Box around formula using \begin{empheq} moving source outside box

I want to move my source outside the box, so that it is next to the equation number. \documentclass[a4paper,12pt,headsepline]{scrreprt} \usepackage{amsmath} % Mathe \usepackage{mathtools} \...
0
votes
1answer
178 views

Change spacing after one empheq environment

I have a boxed equation using align in an empheq environment like: \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath,amsfonts,amssymb} \usepackage{empheq} \...
0
votes
1answer
68 views

Is there a way to page break `empheq`?

I have a very long series of equations that I want to align and emphasize by boxing them. I've used empheq with success before, but never ran into the problem of having my equations over flowing to ...
3
votes
1answer
550 views

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} \...
2
votes
1answer
345 views

System of equations numbering and cref

I'm using the SIAM template, and I want numbering a system of equation 1a,1b,..., to label them and to be able to quote them thanks to the \cref command from the cleveref package. I tried the ...
2
votes
1answer
422 views

Line numbering for boxed multi-line equations using empheq package leaves extra blankspace

I'm using the empheq package to put boxes around equations that span multiple lines (using align). There are 6 lines to the equation, and the whole box should receive one number (1), for which I use ...
1
vote
0answers
327 views

Cross-referencing inside empheq environment

Today I encountered a problem getting a cross-reference of one of my equation inside the empheq package. I use the gather environment inside my empheq equation and would like to label both equation ...
1
vote
1answer
480 views

Globally change the size of \frac in align environment

I use the empheq package to display my equations, but I would like to change the size of fractions displayed inside the align or align* environment, from display style to text style. I know I can ...
1
vote
1answer
593 views

Transparency inside empheq (color box)

I'm currently writing a formulary for dynamics and searched for a way to box important equations and have them coloured. The answer to my problem was the empheq package - for now. Now I'm facing the ...
7
votes
4answers
950 views

Equations and Equation Numbers within a Box

I use the code below to make a box around equations. It puts the equations numbers outside the box, however I would like to have the equation numbers within the box. How can I alter my code to do ...
1
vote
1answer
1k views

Add notes in the equation under brace [duplicate]

How to write the equation shown in the image
3
votes
1answer
422 views

Add a fitted box to a multiline equation

I am trying to draw a fitted box around some equations. However, I was not able to control the width of the box. How can I achieve this? \documentclass{beamer} \usepackage{amssymb,amsmath,empheq} \...
5
votes
1answer
436 views

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 ...
3
votes
1answer
645 views

LaTeX locally change equation numbering in empheq

The following short sample generates a list of numbered chemical reactions. I would like to change the numbering from the default (1) and (2) to (R1) and (R2). \documentclass[]{article} \usepackage{...
0
votes
0answers
22 views

Text is too closely spaced preceding empheq environment [duplicate]

This is a follow-up question regarding a previous question: Previous Question In the dukedissertation document class the solution given in the link provided above leads to improper line spacing ...
1
vote
3answers
3k views

Aligned equations in a colored box

I would like to put a set of aligned equations into a colored box. After a quick search on tex.stackexchange, I have found the following solution to put (apparently) one equation in a color box : >...
1
vote
1answer
505 views

\empheqlbrace autoscaling problem with dukedissertation document class

I am using the empheq package to group equations organized using the align command. If used in an article document class the left brace automatically scales wonderfully to group equations organized ...
2
votes
1answer
626 views

Digit zero with a dot inside also in text mode

\documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{empheq} \makeatletter \newcommand*{\pmzerodot}{% \nfss@text{% \sbox0{$\...