An elegant aspect for enumerate the equations of a bookar package for Aspect Ratio symbolgrayed box for enumerateTypeset book for childrenFirst paragraph of the enumerate in boldCustomized bold labels for enumerateTemplate for a heavily illustrated bookDefault formatting for manually entered enumerate tagschngcntr package works for first chapter but not for other chapters of bookHow to get the aspect ratio of an image programmaticallyDynamic counter for corollaries of Theorems and Propositions at the same time
Convert integer to full text string duration
Does 5e have an equivalent of the Psychic Paper from Doctor Who?
Shipped package arrived - didn't order, possible scam?
Why would "dead languages" be the only languages that spells could be written in?
Do intermediate subdomains need to exist?
How to deal with a Murder Hobo Paladin?
Has there ever been a cold war other than between the U.S. and the U.S.S.R.?
Why does mean tend be more stable in different samples than median?
Convert Front Door Entry Mailbox to a Front & Rear Door Entry Mailbox
Find max number you can create from an array of numbers
What happens if the limit of 4 billion files was exceeded in an ext4 partition?
n-level Ouroboros Quine
Is this car delivery via Ebay Motors on Craigslist a scam?
Question about targeting a Hexproof creature
Middle/Vertical alignment doesn't work with table of images
Is の方 necessary here?
A positive integer functional equation
How did Captain Marvel do this without dying?
In the Seventh Seal why does Death let the chess game happen?
Boss furious on bad appraisal
Way to see all encrypted fields in Salesforce?
Should I warn my boss I might take sick leave?
Is it acceptable that I plot a time-series figure with years increasing from right to left?
What is it called when the tritone is added to a minor scale?
An elegant aspect for enumerate the equations of a book
ar package for Aspect Ratio symbolgrayed box for enumerateTypeset book for childrenFirst paragraph of the enumerate in boldCustomized bold labels for enumerateTemplate for a heavily illustrated bookDefault formatting for manually entered enumerate tagschngcntr package works for first chapter but not for other chapters of bookHow to get the aspect ratio of an image programmaticallyDynamic counter for corollaries of Theorems and Propositions at the same time
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to create this kind of enumeration for the various equations of my book, similar, as this image:
My MWE is:
documentclassbook
usepackagemathtools
usepackagenewtxtext
usepackagenewtxmath
PassOptionsToPackagesvgnames, dvipsnames, table, x11namesxcolor
usepackagetikz
usepackageclassico
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
renewcommandtheequationbfseriessffamilythesection-arabicequationtextcolorocreding228
begindocument
beginequation
oint mathbfE cdot d mathbfa = int rho , dv
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0
endequation
enddocument
with this output:
I have encountered the following problems (see the image below):
- I don't know how to eliminate the round brackets;
- if we suppose we don't delete the round brackets, the one on the left is not in bold while the one on the right is in bold.
- Using the
pifont
package I was trying to reverse the direction of the arrow to the left usingrotatebox......
, with thegraphicx
package, but I am not, probably, to rotate the direction of the arrow to the left.
graphics symbols color bold chngcntr
|
show 1 more comment
I am trying to create this kind of enumeration for the various equations of my book, similar, as this image:
My MWE is:
documentclassbook
usepackagemathtools
usepackagenewtxtext
usepackagenewtxmath
PassOptionsToPackagesvgnames, dvipsnames, table, x11namesxcolor
usepackagetikz
usepackageclassico
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
renewcommandtheequationbfseriessffamilythesection-arabicequationtextcolorocreding228
begindocument
beginequation
oint mathbfE cdot d mathbfa = int rho , dv
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0
endequation
enddocument
with this output:
I have encountered the following problems (see the image below):
- I don't know how to eliminate the round brackets;
- if we suppose we don't delete the round brackets, the one on the left is not in bold while the one on the right is in bold.
- Using the
pifont
package I was trying to reverse the direction of the arrow to the left usingrotatebox......
, with thegraphicx
package, but I am not, probably, to rotate the direction of the arrow to the left.
graphics symbols color bold chngcntr
1
What should aref
(oreqref
) for an equation look like within your text?
– Werner
8 hours ago
@Werner You're right. I hadn't thought of that. It must appear with round brackets in bold without the symbol. Since I am not good in English and I use the translator, since sometimes my question is not understandable to everyone, can I ask you to edit my question please? Upvote your comment.
– Sebastiano
8 hours ago
So, something like this (forget the round brackets in the reference). Are you okay with using a user-definedeqnref
(rather thanref
oreqref
)?
– Werner
8 hours ago
@Werner For both text (eqref
) and for the equations, leave the brackets round. For the rest it's ok :-). I have understood that you will have to introduce a new macro foreqnref
to get what you can't have by default.
– Sebastiano
8 hours ago
1
newtagformSebastianoreflectboxtextcolorocreding227 usetagformSebastiano renewcommandtheequationbfseriessffamilythesection-arabicequation
?
– marmot
8 hours ago
|
show 1 more comment
I am trying to create this kind of enumeration for the various equations of my book, similar, as this image:
My MWE is:
documentclassbook
usepackagemathtools
usepackagenewtxtext
usepackagenewtxmath
PassOptionsToPackagesvgnames, dvipsnames, table, x11namesxcolor
usepackagetikz
usepackageclassico
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
renewcommandtheequationbfseriessffamilythesection-arabicequationtextcolorocreding228
begindocument
beginequation
oint mathbfE cdot d mathbfa = int rho , dv
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0
endequation
enddocument
with this output:
I have encountered the following problems (see the image below):
- I don't know how to eliminate the round brackets;
- if we suppose we don't delete the round brackets, the one on the left is not in bold while the one on the right is in bold.
- Using the
pifont
package I was trying to reverse the direction of the arrow to the left usingrotatebox......
, with thegraphicx
package, but I am not, probably, to rotate the direction of the arrow to the left.
graphics symbols color bold chngcntr
I am trying to create this kind of enumeration for the various equations of my book, similar, as this image:
My MWE is:
documentclassbook
usepackagemathtools
usepackagenewtxtext
usepackagenewtxmath
PassOptionsToPackagesvgnames, dvipsnames, table, x11namesxcolor
usepackagetikz
usepackageclassico
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
renewcommandtheequationbfseriessffamilythesection-arabicequationtextcolorocreding228
begindocument
beginequation
oint mathbfE cdot d mathbfa = int rho , dv
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0
endequation
enddocument
with this output:
I have encountered the following problems (see the image below):
- I don't know how to eliminate the round brackets;
- if we suppose we don't delete the round brackets, the one on the left is not in bold while the one on the right is in bold.
- Using the
pifont
package I was trying to reverse the direction of the arrow to the left usingrotatebox......
, with thegraphicx
package, but I am not, probably, to rotate the direction of the arrow to the left.
graphics symbols color bold chngcntr
graphics symbols color bold chngcntr
asked 8 hours ago
SebastianoSebastiano
13.4k5 gold badges25 silver badges71 bronze badges
13.4k5 gold badges25 silver badges71 bronze badges
1
What should aref
(oreqref
) for an equation look like within your text?
– Werner
8 hours ago
@Werner You're right. I hadn't thought of that. It must appear with round brackets in bold without the symbol. Since I am not good in English and I use the translator, since sometimes my question is not understandable to everyone, can I ask you to edit my question please? Upvote your comment.
– Sebastiano
8 hours ago
So, something like this (forget the round brackets in the reference). Are you okay with using a user-definedeqnref
(rather thanref
oreqref
)?
– Werner
8 hours ago
@Werner For both text (eqref
) and for the equations, leave the brackets round. For the rest it's ok :-). I have understood that you will have to introduce a new macro foreqnref
to get what you can't have by default.
– Sebastiano
8 hours ago
1
newtagformSebastianoreflectboxtextcolorocreding227 usetagformSebastiano renewcommandtheequationbfseriessffamilythesection-arabicequation
?
– marmot
8 hours ago
|
show 1 more comment
1
What should aref
(oreqref
) for an equation look like within your text?
– Werner
8 hours ago
@Werner You're right. I hadn't thought of that. It must appear with round brackets in bold without the symbol. Since I am not good in English and I use the translator, since sometimes my question is not understandable to everyone, can I ask you to edit my question please? Upvote your comment.
– Sebastiano
8 hours ago
So, something like this (forget the round brackets in the reference). Are you okay with using a user-definedeqnref
(rather thanref
oreqref
)?
– Werner
8 hours ago
@Werner For both text (eqref
) and for the equations, leave the brackets round. For the rest it's ok :-). I have understood that you will have to introduce a new macro foreqnref
to get what you can't have by default.
– Sebastiano
8 hours ago
1
newtagformSebastianoreflectboxtextcolorocreding227 usetagformSebastiano renewcommandtheequationbfseriessffamilythesection-arabicequation
?
– marmot
8 hours ago
1
1
What should a
ref
(or eqref
) for an equation look like within your text?– Werner
8 hours ago
What should a
ref
(or eqref
) for an equation look like within your text?– Werner
8 hours ago
@Werner You're right. I hadn't thought of that. It must appear with round brackets in bold without the symbol. Since I am not good in English and I use the translator, since sometimes my question is not understandable to everyone, can I ask you to edit my question please? Upvote your comment.
– Sebastiano
8 hours ago
@Werner You're right. I hadn't thought of that. It must appear with round brackets in bold without the symbol. Since I am not good in English and I use the translator, since sometimes my question is not understandable to everyone, can I ask you to edit my question please? Upvote your comment.
– Sebastiano
8 hours ago
So, something like this (forget the round brackets in the reference). Are you okay with using a user-defined
eqnref
(rather than ref
or eqref
)?– Werner
8 hours ago
So, something like this (forget the round brackets in the reference). Are you okay with using a user-defined
eqnref
(rather than ref
or eqref
)?– Werner
8 hours ago
@Werner For both text (
eqref
) and for the equations, leave the brackets round. For the rest it's ok :-). I have understood that you will have to introduce a new macro for eqnref
to get what you can't have by default.– Sebastiano
8 hours ago
@Werner For both text (
eqref
) and for the equations, leave the brackets round. For the rest it's ok :-). I have understood that you will have to introduce a new macro for eqnref
to get what you can't have by default.– Sebastiano
8 hours ago
1
1
newtagformSebastianoreflectboxtextcolorocreding227 usetagformSebastiano renewcommandtheequationbfseriessffamilythesection-arabicequation
?– marmot
8 hours ago
newtagformSebastianoreflectboxtextcolorocreding227 usetagformSebastiano renewcommandtheequationbfseriessffamilythesection-arabicequation
?– marmot
8 hours ago
|
show 1 more comment
2 Answers
2
active
oldest
votes
The following produces what you're after:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
renewcommandtheequationthesection-arabicequation
newcommandeqnnumsymboltextcolorocrereflectboxding228
makeatletter
newtagformbbrackets% <name>
[textbf]% Internal style
(% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
It uses
mathtools
'newtagform
to establish a new form of tag forequation
s and related environments.A conditional to set the symbol. If inside an
equation
oralign
, the symbol is added, otherwise it's left out. This allows you to useeqref
. It's not extensively tested, but works in the example provided.
If you want to remove the bold numbering from your reference, you can use the following:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
makeatletter
renewcommandtheequationthesection-arabicequation
newcommandeqnumfmt%
ifnumpdfstrcmp@currenvirequation=0
bfseries
else
ifnumpdfstrcmp@currenviralign=0
bfseries
fi
fi
newcommandeqnnumsymboltextcolorocrereflectboxding228
newtagformbbrackets% <name>
[eqnumfmt]% Internal style
(bgroup% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
egroup)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
I've had my doubts. But if I use your code within my book the numbering starts from 1 which is the first chapter or from scratch? I think it starts from scratch and I should change from 0 to 1. Finally, I forgot that there was the commandreflectbox
. I wanted to ask you if you could do an additional edit to delete the bold in the text part that calls the equation.
– Sebastiano
8 hours ago
1
@Sebastiano: The equation numbering is section-equation, so if you don't have asection
, it will be0
. If you do, it will be1
or higher. Also remember thatsection
s are number per-chapter; in other words, reset to0
when you issuechapter
.
– Werner
8 hours ago
My sincere and cordial thanks for your help and for those who appreciated my question in particular.
– Sebastiano
7 hours ago
add a comment |
I propose this other solution, without parentheses, based on the newtagform
command from mathtools
and the adforn
ornaments package, which has a left-oriented arrow tip. I took the liberty to change its colour, which suits better the black characters (quia gustum meum…). Of course, feel free to choose your own colour if you prefer it:
documentclassbook
usepackagemathtools
usepackagenewtxtext
usepackagenewtxmath
PassOptionsToPackagesvgnames, dvipsnames, table, x11namesxcolor
usepackagetikz
usepackageclassico
usepackageadforn
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
counterwithinequationsection%
renewcommandtheequationthesection-arabicequation
newtagformarrowtip[bfseriessffamily],textcolorIndianRed3Largeadforn42
usetagformarrowtip
begindocument
setcounterchapter2
setcountersection5
beginequation
oint mathbfE cdot d mathbfa = int rho , dv
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0
endequation
enddocument
This does include the entire tag, as-is, in the reference (when usingeqref
). Something the OP doesn't seem interested in.
– Werner
6 hours ago
@Werner: You're right (ahd I wouldn't be interested either), but one can play withcleveref
to solve the problem.
– Bernard
6 hours ago
@Bernard Your proposal is also interesting and I vote for it. I thank you and everyone for your cooperation. I have two different codes. I will try them both :-). Thank you for everything. My sincere greetings and compliments for the Latin language :-)-
– Sebastiano
33 mins 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%2f498540%2fan-elegant-aspect-for-enumerate-the-equations-of-a-book%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
The following produces what you're after:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
renewcommandtheequationthesection-arabicequation
newcommandeqnnumsymboltextcolorocrereflectboxding228
makeatletter
newtagformbbrackets% <name>
[textbf]% Internal style
(% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
It uses
mathtools
'newtagform
to establish a new form of tag forequation
s and related environments.A conditional to set the symbol. If inside an
equation
oralign
, the symbol is added, otherwise it's left out. This allows you to useeqref
. It's not extensively tested, but works in the example provided.
If you want to remove the bold numbering from your reference, you can use the following:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
makeatletter
renewcommandtheequationthesection-arabicequation
newcommandeqnumfmt%
ifnumpdfstrcmp@currenvirequation=0
bfseries
else
ifnumpdfstrcmp@currenviralign=0
bfseries
fi
fi
newcommandeqnnumsymboltextcolorocrereflectboxding228
newtagformbbrackets% <name>
[eqnumfmt]% Internal style
(bgroup% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
egroup)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
I've had my doubts. But if I use your code within my book the numbering starts from 1 which is the first chapter or from scratch? I think it starts from scratch and I should change from 0 to 1. Finally, I forgot that there was the commandreflectbox
. I wanted to ask you if you could do an additional edit to delete the bold in the text part that calls the equation.
– Sebastiano
8 hours ago
1
@Sebastiano: The equation numbering is section-equation, so if you don't have asection
, it will be0
. If you do, it will be1
or higher. Also remember thatsection
s are number per-chapter; in other words, reset to0
when you issuechapter
.
– Werner
8 hours ago
My sincere and cordial thanks for your help and for those who appreciated my question in particular.
– Sebastiano
7 hours ago
add a comment |
The following produces what you're after:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
renewcommandtheequationthesection-arabicequation
newcommandeqnnumsymboltextcolorocrereflectboxding228
makeatletter
newtagformbbrackets% <name>
[textbf]% Internal style
(% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
It uses
mathtools
'newtagform
to establish a new form of tag forequation
s and related environments.A conditional to set the symbol. If inside an
equation
oralign
, the symbol is added, otherwise it's left out. This allows you to useeqref
. It's not extensively tested, but works in the example provided.
If you want to remove the bold numbering from your reference, you can use the following:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
makeatletter
renewcommandtheequationthesection-arabicequation
newcommandeqnumfmt%
ifnumpdfstrcmp@currenvirequation=0
bfseries
else
ifnumpdfstrcmp@currenviralign=0
bfseries
fi
fi
newcommandeqnnumsymboltextcolorocrereflectboxding228
newtagformbbrackets% <name>
[eqnumfmt]% Internal style
(bgroup% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
egroup)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
I've had my doubts. But if I use your code within my book the numbering starts from 1 which is the first chapter or from scratch? I think it starts from scratch and I should change from 0 to 1. Finally, I forgot that there was the commandreflectbox
. I wanted to ask you if you could do an additional edit to delete the bold in the text part that calls the equation.
– Sebastiano
8 hours ago
1
@Sebastiano: The equation numbering is section-equation, so if you don't have asection
, it will be0
. If you do, it will be1
or higher. Also remember thatsection
s are number per-chapter; in other words, reset to0
when you issuechapter
.
– Werner
8 hours ago
My sincere and cordial thanks for your help and for those who appreciated my question in particular.
– Sebastiano
7 hours ago
add a comment |
The following produces what you're after:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
renewcommandtheequationthesection-arabicequation
newcommandeqnnumsymboltextcolorocrereflectboxding228
makeatletter
newtagformbbrackets% <name>
[textbf]% Internal style
(% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
It uses
mathtools
'newtagform
to establish a new form of tag forequation
s and related environments.A conditional to set the symbol. If inside an
equation
oralign
, the symbol is added, otherwise it's left out. This allows you to useeqref
. It's not extensively tested, but works in the example provided.
If you want to remove the bold numbering from your reference, you can use the following:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
makeatletter
renewcommandtheequationthesection-arabicequation
newcommandeqnumfmt%
ifnumpdfstrcmp@currenvirequation=0
bfseries
else
ifnumpdfstrcmp@currenviralign=0
bfseries
fi
fi
newcommandeqnnumsymboltextcolorocrereflectboxding228
newtagformbbrackets% <name>
[eqnumfmt]% Internal style
(bgroup% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
egroup)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
The following produces what you're after:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
renewcommandtheequationthesection-arabicequation
newcommandeqnnumsymboltextcolorocrereflectboxding228
makeatletter
newtagformbbrackets% <name>
[textbf]% Internal style
(% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
It uses
mathtools
'newtagform
to establish a new form of tag forequation
s and related environments.A conditional to set the symbol. If inside an
equation
oralign
, the symbol is added, otherwise it's left out. This allows you to useeqref
. It's not extensively tested, but works in the example provided.
If you want to remove the bold numbering from your reference, you can use the following:
documentclassbook
usepackagemathtools
usepackage[svgnames, dvipsnames, table, x11names]xcolor
usepackagepifont
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
usepackagechngcntr
counterwithinequationsection
makeatletter
renewcommandtheequationthesection-arabicequation
newcommandeqnumfmt%
ifnumpdfstrcmp@currenvirequation=0
bfseries
else
ifnumpdfstrcmp@currenviralign=0
bfseries
fi
fi
newcommandeqnnumsymboltextcolorocrereflectboxding228
newtagformbbrackets% <name>
[eqnumfmt]% Internal style
(bgroup% Left bracket
ifnumpdfstrcmp@currenvirequation=0
eqnnumsymbol%
else
ifnumpdfstrcmp@currenviralign=0
eqnnumsymbol%
fi
fi
egroup)% Right bracket
makeatother
usetagformbbrackets
begindocument
See both~eqrefeq:eqn1 and~eqrefeq:eqn2. Also see~eqrefeq:eqn3.
beginequation
oint mathbfE cdot d mathbfa = int rho , mathrmdv labeleq:eqn1
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0 labeleq:eqn2
endequation
beginalign
abc labeleq:eqn3
endalign
enddocument
edited 7 hours ago
answered 8 hours ago
WernerWerner
456k75 gold badges1019 silver badges1751 bronze badges
456k75 gold badges1019 silver badges1751 bronze badges
I've had my doubts. But if I use your code within my book the numbering starts from 1 which is the first chapter or from scratch? I think it starts from scratch and I should change from 0 to 1. Finally, I forgot that there was the commandreflectbox
. I wanted to ask you if you could do an additional edit to delete the bold in the text part that calls the equation.
– Sebastiano
8 hours ago
1
@Sebastiano: The equation numbering is section-equation, so if you don't have asection
, it will be0
. If you do, it will be1
or higher. Also remember thatsection
s are number per-chapter; in other words, reset to0
when you issuechapter
.
– Werner
8 hours ago
My sincere and cordial thanks for your help and for those who appreciated my question in particular.
– Sebastiano
7 hours ago
add a comment |
I've had my doubts. But if I use your code within my book the numbering starts from 1 which is the first chapter or from scratch? I think it starts from scratch and I should change from 0 to 1. Finally, I forgot that there was the commandreflectbox
. I wanted to ask you if you could do an additional edit to delete the bold in the text part that calls the equation.
– Sebastiano
8 hours ago
1
@Sebastiano: The equation numbering is section-equation, so if you don't have asection
, it will be0
. If you do, it will be1
or higher. Also remember thatsection
s are number per-chapter; in other words, reset to0
when you issuechapter
.
– Werner
8 hours ago
My sincere and cordial thanks for your help and for those who appreciated my question in particular.
– Sebastiano
7 hours ago
I've had my doubts. But if I use your code within my book the numbering starts from 1 which is the first chapter or from scratch? I think it starts from scratch and I should change from 0 to 1. Finally, I forgot that there was the command
reflectbox
. I wanted to ask you if you could do an additional edit to delete the bold in the text part that calls the equation.– Sebastiano
8 hours ago
I've had my doubts. But if I use your code within my book the numbering starts from 1 which is the first chapter or from scratch? I think it starts from scratch and I should change from 0 to 1. Finally, I forgot that there was the command
reflectbox
. I wanted to ask you if you could do an additional edit to delete the bold in the text part that calls the equation.– Sebastiano
8 hours ago
1
1
@Sebastiano: The equation numbering is section-equation, so if you don't have a
section
, it will be 0
. If you do, it will be 1
or higher. Also remember that section
s are number per-chapter; in other words, reset to 0
when you issue chapter
.– Werner
8 hours ago
@Sebastiano: The equation numbering is section-equation, so if you don't have a
section
, it will be 0
. If you do, it will be 1
or higher. Also remember that section
s are number per-chapter; in other words, reset to 0
when you issue chapter
.– Werner
8 hours ago
My sincere and cordial thanks for your help and for those who appreciated my question in particular.
– Sebastiano
7 hours ago
My sincere and cordial thanks for your help and for those who appreciated my question in particular.
– Sebastiano
7 hours ago
add a comment |
I propose this other solution, without parentheses, based on the newtagform
command from mathtools
and the adforn
ornaments package, which has a left-oriented arrow tip. I took the liberty to change its colour, which suits better the black characters (quia gustum meum…). Of course, feel free to choose your own colour if you prefer it:
documentclassbook
usepackagemathtools
usepackagenewtxtext
usepackagenewtxmath
PassOptionsToPackagesvgnames, dvipsnames, table, x11namesxcolor
usepackagetikz
usepackageclassico
usepackageadforn
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
counterwithinequationsection%
renewcommandtheequationthesection-arabicequation
newtagformarrowtip[bfseriessffamily],textcolorIndianRed3Largeadforn42
usetagformarrowtip
begindocument
setcounterchapter2
setcountersection5
beginequation
oint mathbfE cdot d mathbfa = int rho , dv
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0
endequation
enddocument
This does include the entire tag, as-is, in the reference (when usingeqref
). Something the OP doesn't seem interested in.
– Werner
6 hours ago
@Werner: You're right (ahd I wouldn't be interested either), but one can play withcleveref
to solve the problem.
– Bernard
6 hours ago
@Bernard Your proposal is also interesting and I vote for it. I thank you and everyone for your cooperation. I have two different codes. I will try them both :-). Thank you for everything. My sincere greetings and compliments for the Latin language :-)-
– Sebastiano
33 mins ago
add a comment |
I propose this other solution, without parentheses, based on the newtagform
command from mathtools
and the adforn
ornaments package, which has a left-oriented arrow tip. I took the liberty to change its colour, which suits better the black characters (quia gustum meum…). Of course, feel free to choose your own colour if you prefer it:
documentclassbook
usepackagemathtools
usepackagenewtxtext
usepackagenewtxmath
PassOptionsToPackagesvgnames, dvipsnames, table, x11namesxcolor
usepackagetikz
usepackageclassico
usepackageadforn
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
counterwithinequationsection%
renewcommandtheequationthesection-arabicequation
newtagformarrowtip[bfseriessffamily],textcolorIndianRed3Largeadforn42
usetagformarrowtip
begindocument
setcounterchapter2
setcountersection5
beginequation
oint mathbfE cdot d mathbfa = int rho , dv
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0
endequation
enddocument
This does include the entire tag, as-is, in the reference (when usingeqref
). Something the OP doesn't seem interested in.
– Werner
6 hours ago
@Werner: You're right (ahd I wouldn't be interested either), but one can play withcleveref
to solve the problem.
– Bernard
6 hours ago
@Bernard Your proposal is also interesting and I vote for it. I thank you and everyone for your cooperation. I have two different codes. I will try them both :-). Thank you for everything. My sincere greetings and compliments for the Latin language :-)-
– Sebastiano
33 mins ago
add a comment |
I propose this other solution, without parentheses, based on the newtagform
command from mathtools
and the adforn
ornaments package, which has a left-oriented arrow tip. I took the liberty to change its colour, which suits better the black characters (quia gustum meum…). Of course, feel free to choose your own colour if you prefer it:
documentclassbook
usepackagemathtools
usepackagenewtxtext
usepackagenewtxmath
PassOptionsToPackagesvgnames, dvipsnames, table, x11namesxcolor
usepackagetikz
usepackageclassico
usepackageadforn
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
counterwithinequationsection%
renewcommandtheequationthesection-arabicequation
newtagformarrowtip[bfseriessffamily],textcolorIndianRed3Largeadforn42
usetagformarrowtip
begindocument
setcounterchapter2
setcountersection5
beginequation
oint mathbfE cdot d mathbfa = int rho , dv
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0
endequation
enddocument
I propose this other solution, without parentheses, based on the newtagform
command from mathtools
and the adforn
ornaments package, which has a left-oriented arrow tip. I took the liberty to change its colour, which suits better the black characters (quia gustum meum…). Of course, feel free to choose your own colour if you prefer it:
documentclassbook
usepackagemathtools
usepackagenewtxtext
usepackagenewtxmath
PassOptionsToPackagesvgnames, dvipsnames, table, x11namesxcolor
usepackagetikz
usepackageclassico
usepackageadforn
definecolorocreRGB243,102,25
%----------------------------------------------------------------------------------
% Change number equations with sections
%----------------------------------------------------------------------------------
counterwithinequationsection%
renewcommandtheequationthesection-arabicequation
newtagformarrowtip[bfseriessffamily],textcolorIndianRed3Largeadforn42
usetagformarrowtip
begindocument
setcounterchapter2
setcountersection5
beginequation
oint mathbfE cdot d mathbfa = int rho , dv
endequation
beginequation
oint mathbfB cdot d mathbfa = mathbf0
endequation
enddocument
edited 6 hours ago
answered 7 hours ago
BernardBernard
183k7 gold badges83 silver badges216 bronze badges
183k7 gold badges83 silver badges216 bronze badges
This does include the entire tag, as-is, in the reference (when usingeqref
). Something the OP doesn't seem interested in.
– Werner
6 hours ago
@Werner: You're right (ahd I wouldn't be interested either), but one can play withcleveref
to solve the problem.
– Bernard
6 hours ago
@Bernard Your proposal is also interesting and I vote for it. I thank you and everyone for your cooperation. I have two different codes. I will try them both :-). Thank you for everything. My sincere greetings and compliments for the Latin language :-)-
– Sebastiano
33 mins ago
add a comment |
This does include the entire tag, as-is, in the reference (when usingeqref
). Something the OP doesn't seem interested in.
– Werner
6 hours ago
@Werner: You're right (ahd I wouldn't be interested either), but one can play withcleveref
to solve the problem.
– Bernard
6 hours ago
@Bernard Your proposal is also interesting and I vote for it. I thank you and everyone for your cooperation. I have two different codes. I will try them both :-). Thank you for everything. My sincere greetings and compliments for the Latin language :-)-
– Sebastiano
33 mins ago
This does include the entire tag, as-is, in the reference (when using
eqref
). Something the OP doesn't seem interested in.– Werner
6 hours ago
This does include the entire tag, as-is, in the reference (when using
eqref
). Something the OP doesn't seem interested in.– Werner
6 hours ago
@Werner: You're right (ahd I wouldn't be interested either), but one can play with
cleveref
to solve the problem.– Bernard
6 hours ago
@Werner: You're right (ahd I wouldn't be interested either), but one can play with
cleveref
to solve the problem.– Bernard
6 hours ago
@Bernard Your proposal is also interesting and I vote for it. I thank you and everyone for your cooperation. I have two different codes. I will try them both :-). Thank you for everything. My sincere greetings and compliments for the Latin language :-)-
– Sebastiano
33 mins ago
@Bernard Your proposal is also interesting and I vote for it. I thank you and everyone for your cooperation. I have two different codes. I will try them both :-). Thank you for everything. My sincere greetings and compliments for the Latin language :-)-
– Sebastiano
33 mins 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%2f498540%2fan-elegant-aspect-for-enumerate-the-equations-of-a-book%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
What should a
ref
(oreqref
) for an equation look like within your text?– Werner
8 hours ago
@Werner You're right. I hadn't thought of that. It must appear with round brackets in bold without the symbol. Since I am not good in English and I use the translator, since sometimes my question is not understandable to everyone, can I ask you to edit my question please? Upvote your comment.
– Sebastiano
8 hours ago
So, something like this (forget the round brackets in the reference). Are you okay with using a user-defined
eqnref
(rather thanref
oreqref
)?– Werner
8 hours ago
@Werner For both text (
eqref
) and for the equations, leave the brackets round. For the rest it's ok :-). I have understood that you will have to introduce a new macro foreqnref
to get what you can't have by default.– Sebastiano
8 hours ago
1
newtagformSebastianoreflectboxtextcolorocreding227 usetagformSebastiano renewcommandtheequationbfseriessffamilythesection-arabicequation
?– marmot
8 hours ago