How do you use decimal as labels in sub-equations instead of only whole numbers in align?How to organize...
Manipulate scientific format without the "e"
Six real numbers so that product of any five is the sixth one
Do Hexblade warlocks choose their spells from the Hexblade spell list or the warlock spell list?
Can I send almost 1MB transaction?
In Adventurer's League, is it possible to keep the Ring of Winter if you manage to acquire it?
Can we carry rice to Japan?
How would we write a misogynistic character without offending people?
Canadian citizen, on US no-fly list. What can I do in order to be allowed on flights which go through US airspace?
When was drinking water recognized as crucial in marathon running?
How can I be pwned if I'm not registered on the compromised site?
Alameda and Belisario throwing a fair die.
Heating basement floor with water heater
Achieving MPPT of a solar panel with LM2596
What could trigger powerful quakes on icy world?
Real life puzzle: Unknown alphabet or shorthand
Reason why dimensional travelling would be restricted
Why can't we make a perpetual motion machine by using a magnet to pull up a piece of metal, then letting it fall back down?
Is the set of paths between any two points moving only in units on the plane countable or uncountable?
Shift from /sk/ → /ʃ/
VAT refund for a conference ticket in Sweden
Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?
What are all the squawk codes?
When should a commit not be version tagged?
Is divide-by-zero a security vulnerability?
How do you use decimal as labels in sub-equations instead of only whole numbers in align?
How to organize labels when there are too many equations?In align environment, how can you label some (but not all) of the equations?How can I use multline within an align environment?How can I number my subsequent results after my theorems?Chemnum: Chapter-related numbering?How to make an align environment with multiple equations per line and one equation reference?How to align separate equations to one sidenumbering equations sectionwiseHow do you align steps/columns between multiple equations?Format per section numbering of figures and tables
In the align
environment, it automatically labels consecutive lines within the same environment as (1),(2),...,(n), line by line. But I want it to organize equations more properly and use (1.0), (1.1), (1.2)... for the first equation in the first align
environment, and then (2.0), (2.1), (2.2)... and etc for consecutive equations in following separate align
environments. Is there a way to do this?
numbering align subequations
add a comment |
In the align
environment, it automatically labels consecutive lines within the same environment as (1),(2),...,(n), line by line. But I want it to organize equations more properly and use (1.0), (1.1), (1.2)... for the first equation in the first align
environment, and then (2.0), (2.1), (2.2)... and etc for consecutive equations in following separate align
environments. Is there a way to do this?
numbering align subequations
1
may be you need thesubequations
environment
– Hafid Boukhoulda
yesterday
add a comment |
In the align
environment, it automatically labels consecutive lines within the same environment as (1),(2),...,(n), line by line. But I want it to organize equations more properly and use (1.0), (1.1), (1.2)... for the first equation in the first align
environment, and then (2.0), (2.1), (2.2)... and etc for consecutive equations in following separate align
environments. Is there a way to do this?
numbering align subequations
In the align
environment, it automatically labels consecutive lines within the same environment as (1),(2),...,(n), line by line. But I want it to organize equations more properly and use (1.0), (1.1), (1.2)... for the first equation in the first align
environment, and then (2.0), (2.1), (2.2)... and etc for consecutive equations in following separate align
environments. Is there a way to do this?
numbering align subequations
numbering align subequations
edited 21 hours ago
Mico
281k31385774
281k31385774
asked yesterday
Vane VoeVane Voe
282
282
1
may be you need thesubequations
environment
– Hafid Boukhoulda
yesterday
add a comment |
1
may be you need thesubequations
environment
– Hafid Boukhoulda
yesterday
1
1
may be you need the
subequations
environment– Hafid Boukhoulda
yesterday
may be you need the
subequations
environment– Hafid Boukhoulda
yesterday
add a comment |
2 Answers
2
active
oldest
votes
I suggest you load the etoolbox
package and use the patchcmd
macro to "patch" the subequations
environment in two places.
documentclass{article}
usepackage{amsmath} % for 'align' and 'subequations' environments
usepackage{etoolbox} % for 'patchcmd' macro
patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter
begin{document}
begin{subequations}
begin{align}
1+1=2\
2+2=4\
3+3=6
end{align}
end{subequations}
begin{subequations}
begin{align}
4+4=8\
0+0=0\
1-1=0
end{align}
end{subequations}
end{document}
add a comment |
Use mathtools
package to edit equation brackets. Use patchcmd
from etoolbox
to customize the way subequations tags will look like.
Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment
from etoolbox
documentclass[]{book}
usepackage{amsmath}
renewcommand{theequation}{arabic{equation}}
usepackage{amssymb, amsfonts}
usepackage{adjustbox}
usepackage[]{mathtools}
newtagform{eqbrackets}[]{(}{)}
usetagform{eqbrackets}
usepackage{etoolbox}
patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}
begin{document}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq1}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq2}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq3}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq1}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq4}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq5}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq6}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq5}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
end{alignat}
end{subequations}
end{document}
Your solution would appear to work at present only foralignat
environments. How would you generalize the solution to deal withalign
environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?
– Mico
21 hours ago
I was just trying to offer the best help I can. In your solution you identified{1}
refers to the subequation number when starting subequations and replaced it with{0}
which leads to setting subequations number to 0 inalign
oralignedat
. But how did you know that{1}
insubequations
exist only once and refers to subeqiations numbering and decided that it is safe to replace it?
– Al-Motasem Aldaoudeyeh
21 hours ago
In the code for thesubequations
environment in the fileamsmath.sty
, there is the following instruction:setcounter{equation}{0}
. It's the only instance of{0}
; that's why it's "safe" to replace it with{-1}
.
– Mico
21 hours ago
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477757%2fhow-do-you-use-decimal-as-labels-in-sub-equations-instead-of-only-whole-numbers%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
I suggest you load the etoolbox
package and use the patchcmd
macro to "patch" the subequations
environment in two places.
documentclass{article}
usepackage{amsmath} % for 'align' and 'subequations' environments
usepackage{etoolbox} % for 'patchcmd' macro
patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter
begin{document}
begin{subequations}
begin{align}
1+1=2\
2+2=4\
3+3=6
end{align}
end{subequations}
begin{subequations}
begin{align}
4+4=8\
0+0=0\
1-1=0
end{align}
end{subequations}
end{document}
add a comment |
I suggest you load the etoolbox
package and use the patchcmd
macro to "patch" the subequations
environment in two places.
documentclass{article}
usepackage{amsmath} % for 'align' and 'subequations' environments
usepackage{etoolbox} % for 'patchcmd' macro
patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter
begin{document}
begin{subequations}
begin{align}
1+1=2\
2+2=4\
3+3=6
end{align}
end{subequations}
begin{subequations}
begin{align}
4+4=8\
0+0=0\
1-1=0
end{align}
end{subequations}
end{document}
add a comment |
I suggest you load the etoolbox
package and use the patchcmd
macro to "patch" the subequations
environment in two places.
documentclass{article}
usepackage{amsmath} % for 'align' and 'subequations' environments
usepackage{etoolbox} % for 'patchcmd' macro
patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter
begin{document}
begin{subequations}
begin{align}
1+1=2\
2+2=4\
3+3=6
end{align}
end{subequations}
begin{subequations}
begin{align}
4+4=8\
0+0=0\
1-1=0
end{align}
end{subequations}
end{document}
I suggest you load the etoolbox
package and use the patchcmd
macro to "patch" the subequations
environment in two places.
documentclass{article}
usepackage{amsmath} % for 'align' and 'subequations' environments
usepackage{etoolbox} % for 'patchcmd' macro
patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter
begin{document}
begin{subequations}
begin{align}
1+1=2\
2+2=4\
3+3=6
end{align}
end{subequations}
begin{subequations}
begin{align}
4+4=8\
0+0=0\
1-1=0
end{align}
end{subequations}
end{document}
answered 21 hours ago
MicoMico
281k31385774
281k31385774
add a comment |
add a comment |
Use mathtools
package to edit equation brackets. Use patchcmd
from etoolbox
to customize the way subequations tags will look like.
Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment
from etoolbox
documentclass[]{book}
usepackage{amsmath}
renewcommand{theequation}{arabic{equation}}
usepackage{amssymb, amsfonts}
usepackage{adjustbox}
usepackage[]{mathtools}
newtagform{eqbrackets}[]{(}{)}
usetagform{eqbrackets}
usepackage{etoolbox}
patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}
begin{document}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq1}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq2}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq3}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq1}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq4}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq5}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq6}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq5}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
end{alignat}
end{subequations}
end{document}
Your solution would appear to work at present only foralignat
environments. How would you generalize the solution to deal withalign
environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?
– Mico
21 hours ago
I was just trying to offer the best help I can. In your solution you identified{1}
refers to the subequation number when starting subequations and replaced it with{0}
which leads to setting subequations number to 0 inalign
oralignedat
. But how did you know that{1}
insubequations
exist only once and refers to subeqiations numbering and decided that it is safe to replace it?
– Al-Motasem Aldaoudeyeh
21 hours ago
In the code for thesubequations
environment in the fileamsmath.sty
, there is the following instruction:setcounter{equation}{0}
. It's the only instance of{0}
; that's why it's "safe" to replace it with{-1}
.
– Mico
21 hours ago
add a comment |
Use mathtools
package to edit equation brackets. Use patchcmd
from etoolbox
to customize the way subequations tags will look like.
Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment
from etoolbox
documentclass[]{book}
usepackage{amsmath}
renewcommand{theequation}{arabic{equation}}
usepackage{amssymb, amsfonts}
usepackage{adjustbox}
usepackage[]{mathtools}
newtagform{eqbrackets}[]{(}{)}
usetagform{eqbrackets}
usepackage{etoolbox}
patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}
begin{document}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq1}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq2}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq3}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq1}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq4}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq5}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq6}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq5}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
end{alignat}
end{subequations}
end{document}
Your solution would appear to work at present only foralignat
environments. How would you generalize the solution to deal withalign
environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?
– Mico
21 hours ago
I was just trying to offer the best help I can. In your solution you identified{1}
refers to the subequation number when starting subequations and replaced it with{0}
which leads to setting subequations number to 0 inalign
oralignedat
. But how did you know that{1}
insubequations
exist only once and refers to subeqiations numbering and decided that it is safe to replace it?
– Al-Motasem Aldaoudeyeh
21 hours ago
In the code for thesubequations
environment in the fileamsmath.sty
, there is the following instruction:setcounter{equation}{0}
. It's the only instance of{0}
; that's why it's "safe" to replace it with{-1}
.
– Mico
21 hours ago
add a comment |
Use mathtools
package to edit equation brackets. Use patchcmd
from etoolbox
to customize the way subequations tags will look like.
Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment
from etoolbox
documentclass[]{book}
usepackage{amsmath}
renewcommand{theequation}{arabic{equation}}
usepackage{amssymb, amsfonts}
usepackage{adjustbox}
usepackage[]{mathtools}
newtagform{eqbrackets}[]{(}{)}
usetagform{eqbrackets}
usepackage{etoolbox}
patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}
begin{document}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq1}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq2}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq3}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq1}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq4}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq5}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq6}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq5}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
end{alignat}
end{subequations}
end{document}
Use mathtools
package to edit equation brackets. Use patchcmd
from etoolbox
to customize the way subequations tags will look like.
Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment
from etoolbox
documentclass[]{book}
usepackage{amsmath}
renewcommand{theequation}{arabic{equation}}
usepackage{amssymb, amsfonts}
usepackage{adjustbox}
usepackage[]{mathtools}
newtagform{eqbrackets}[]{(}{)}
usetagform{eqbrackets}
usepackage{etoolbox}
patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}
begin{document}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq1}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq2}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq3}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq1}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq4}
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq5}
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
label{eq:SubEq6}
end{alignat}
end{subequations}
See SubEq. ref{eq:SubEq5}
begin{subequations}
begin{alignat}{3}
I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
\
%
V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
\
%
P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
end{alignat}
end{subequations}
end{document}
answered 22 hours ago
Al-Motasem AldaoudeyehAl-Motasem Aldaoudeyeh
1,598312
1,598312
Your solution would appear to work at present only foralignat
environments. How would you generalize the solution to deal withalign
environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?
– Mico
21 hours ago
I was just trying to offer the best help I can. In your solution you identified{1}
refers to the subequation number when starting subequations and replaced it with{0}
which leads to setting subequations number to 0 inalign
oralignedat
. But how did you know that{1}
insubequations
exist only once and refers to subeqiations numbering and decided that it is safe to replace it?
– Al-Motasem Aldaoudeyeh
21 hours ago
In the code for thesubequations
environment in the fileamsmath.sty
, there is the following instruction:setcounter{equation}{0}
. It's the only instance of{0}
; that's why it's "safe" to replace it with{-1}
.
– Mico
21 hours ago
add a comment |
Your solution would appear to work at present only foralignat
environments. How would you generalize the solution to deal withalign
environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?
– Mico
21 hours ago
I was just trying to offer the best help I can. In your solution you identified{1}
refers to the subequation number when starting subequations and replaced it with{0}
which leads to setting subequations number to 0 inalign
oralignedat
. But how did you know that{1}
insubequations
exist only once and refers to subeqiations numbering and decided that it is safe to replace it?
– Al-Motasem Aldaoudeyeh
21 hours ago
In the code for thesubequations
environment in the fileamsmath.sty
, there is the following instruction:setcounter{equation}{0}
. It's the only instance of{0}
; that's why it's "safe" to replace it with{-1}
.
– Mico
21 hours ago
Your solution would appear to work at present only for
alignat
environments. How would you generalize the solution to deal with align
environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?– Mico
21 hours ago
Your solution would appear to work at present only for
alignat
environments. How would you generalize the solution to deal with align
environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?– Mico
21 hours ago
I was just trying to offer the best help I can. In your solution you identified
{1}
refers to the subequation number when starting subequations and replaced it with {0}
which leads to setting subequations number to 0 in align
or alignedat
. But how did you know that {1}
in subequations
exist only once and refers to subeqiations numbering and decided that it is safe to replace it?– Al-Motasem Aldaoudeyeh
21 hours ago
I was just trying to offer the best help I can. In your solution you identified
{1}
refers to the subequation number when starting subequations and replaced it with {0}
which leads to setting subequations number to 0 in align
or alignedat
. But how did you know that {1}
in subequations
exist only once and refers to subeqiations numbering and decided that it is safe to replace it?– Al-Motasem Aldaoudeyeh
21 hours ago
In the code for the
subequations
environment in the file amsmath.sty
, there is the following instruction: setcounter{equation}{0}
. It's the only instance of {0}
; that's why it's "safe" to replace it with {-1}
.– Mico
21 hours ago
In the code for the
subequations
environment in the file amsmath.sty
, there is the following instruction: setcounter{equation}{0}
. It's the only instance of {0}
; that's why it's "safe" to replace it with {-1}
.– Mico
21 hours ago
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477757%2fhow-do-you-use-decimal-as-labels-in-sub-equations-instead-of-only-whole-numbers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
may be you need the
subequations
environment– Hafid Boukhoulda
yesterday