Embrac package and enumerate











up vote
6
down vote

favorite












In using the embrac package to make parentheses appear upright in emph evironments, I noticed that it did work in most cases, but not in an enumerate environment that appeared in a theorem (where text appears fully slanted).



This is my setup.



documentclass{article}
usepackage{amsmath, amsthm, enumitem}
usepackage{embrac}
newtheorem{lemma}{Lemma}

begin{document}

begin{lemma}
This holds:
begin{enumerate}[label=(roman*)]
item $a^2+b^2=c^2$.
end{enumerate}
end{lemma}

end{document}


In the (i) in the enumeration, the brackets still appear slanted.



enter image description here










share|improve this question
























  • Please, could you add a picture into your question? Thank you very much.
    – Sebastiano
    Nov 24 at 16:46






  • 2




    embrac does not redefine em it only changes emph, so it does not apply in your lemma at all. Try This holds: (i) for example to see that the brackets are unaffected. I believe it would be non-trivial to get em to be embrac-ified, hence I suggest you go with [label=upshape(roman*)], you could possibly wrap that up in a setlist in the preamble to only type this once.
    – moewe
    Nov 24 at 16:47










  • @Sebastiano My apologies; added.
    – S. van Nigtevecht
    Nov 24 at 17:25






  • 1




    @moewe Thank you, I did not know that em was used in a lemma environment. That workaround should solve it.
    – S. van Nigtevecht
    Nov 24 at 17:41










  • @S.vanNigtevecht No apologies :-). My English language is very bad. With the pcture I can understand the question.
    – Sebastiano
    Nov 24 at 19:20















up vote
6
down vote

favorite












In using the embrac package to make parentheses appear upright in emph evironments, I noticed that it did work in most cases, but not in an enumerate environment that appeared in a theorem (where text appears fully slanted).



This is my setup.



documentclass{article}
usepackage{amsmath, amsthm, enumitem}
usepackage{embrac}
newtheorem{lemma}{Lemma}

begin{document}

begin{lemma}
This holds:
begin{enumerate}[label=(roman*)]
item $a^2+b^2=c^2$.
end{enumerate}
end{lemma}

end{document}


In the (i) in the enumeration, the brackets still appear slanted.



enter image description here










share|improve this question
























  • Please, could you add a picture into your question? Thank you very much.
    – Sebastiano
    Nov 24 at 16:46






  • 2




    embrac does not redefine em it only changes emph, so it does not apply in your lemma at all. Try This holds: (i) for example to see that the brackets are unaffected. I believe it would be non-trivial to get em to be embrac-ified, hence I suggest you go with [label=upshape(roman*)], you could possibly wrap that up in a setlist in the preamble to only type this once.
    – moewe
    Nov 24 at 16:47










  • @Sebastiano My apologies; added.
    – S. van Nigtevecht
    Nov 24 at 17:25






  • 1




    @moewe Thank you, I did not know that em was used in a lemma environment. That workaround should solve it.
    – S. van Nigtevecht
    Nov 24 at 17:41










  • @S.vanNigtevecht No apologies :-). My English language is very bad. With the pcture I can understand the question.
    – Sebastiano
    Nov 24 at 19:20













up vote
6
down vote

favorite









up vote
6
down vote

favorite











In using the embrac package to make parentheses appear upright in emph evironments, I noticed that it did work in most cases, but not in an enumerate environment that appeared in a theorem (where text appears fully slanted).



This is my setup.



documentclass{article}
usepackage{amsmath, amsthm, enumitem}
usepackage{embrac}
newtheorem{lemma}{Lemma}

begin{document}

begin{lemma}
This holds:
begin{enumerate}[label=(roman*)]
item $a^2+b^2=c^2$.
end{enumerate}
end{lemma}

end{document}


In the (i) in the enumeration, the brackets still appear slanted.



enter image description here










share|improve this question















In using the embrac package to make parentheses appear upright in emph evironments, I noticed that it did work in most cases, but not in an enumerate environment that appeared in a theorem (where text appears fully slanted).



This is my setup.



documentclass{article}
usepackage{amsmath, amsthm, enumitem}
usepackage{embrac}
newtheorem{lemma}{Lemma}

begin{document}

begin{lemma}
This holds:
begin{enumerate}[label=(roman*)]
item $a^2+b^2=c^2$.
end{enumerate}
end{lemma}

end{document}


In the (i) in the enumeration, the brackets still appear slanted.



enter image description here







formatting italic embrac






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 at 17:45

























asked Nov 24 at 16:41









S. van Nigtevecht

1456




1456












  • Please, could you add a picture into your question? Thank you very much.
    – Sebastiano
    Nov 24 at 16:46






  • 2




    embrac does not redefine em it only changes emph, so it does not apply in your lemma at all. Try This holds: (i) for example to see that the brackets are unaffected. I believe it would be non-trivial to get em to be embrac-ified, hence I suggest you go with [label=upshape(roman*)], you could possibly wrap that up in a setlist in the preamble to only type this once.
    – moewe
    Nov 24 at 16:47










  • @Sebastiano My apologies; added.
    – S. van Nigtevecht
    Nov 24 at 17:25






  • 1




    @moewe Thank you, I did not know that em was used in a lemma environment. That workaround should solve it.
    – S. van Nigtevecht
    Nov 24 at 17:41










  • @S.vanNigtevecht No apologies :-). My English language is very bad. With the pcture I can understand the question.
    – Sebastiano
    Nov 24 at 19:20


















  • Please, could you add a picture into your question? Thank you very much.
    – Sebastiano
    Nov 24 at 16:46






  • 2




    embrac does not redefine em it only changes emph, so it does not apply in your lemma at all. Try This holds: (i) for example to see that the brackets are unaffected. I believe it would be non-trivial to get em to be embrac-ified, hence I suggest you go with [label=upshape(roman*)], you could possibly wrap that up in a setlist in the preamble to only type this once.
    – moewe
    Nov 24 at 16:47










  • @Sebastiano My apologies; added.
    – S. van Nigtevecht
    Nov 24 at 17:25






  • 1




    @moewe Thank you, I did not know that em was used in a lemma environment. That workaround should solve it.
    – S. van Nigtevecht
    Nov 24 at 17:41










  • @S.vanNigtevecht No apologies :-). My English language is very bad. With the pcture I can understand the question.
    – Sebastiano
    Nov 24 at 19:20
















Please, could you add a picture into your question? Thank you very much.
– Sebastiano
Nov 24 at 16:46




Please, could you add a picture into your question? Thank you very much.
– Sebastiano
Nov 24 at 16:46




2




2




embrac does not redefine em it only changes emph, so it does not apply in your lemma at all. Try This holds: (i) for example to see that the brackets are unaffected. I believe it would be non-trivial to get em to be embrac-ified, hence I suggest you go with [label=upshape(roman*)], you could possibly wrap that up in a setlist in the preamble to only type this once.
– moewe
Nov 24 at 16:47




embrac does not redefine em it only changes emph, so it does not apply in your lemma at all. Try This holds: (i) for example to see that the brackets are unaffected. I believe it would be non-trivial to get em to be embrac-ified, hence I suggest you go with [label=upshape(roman*)], you could possibly wrap that up in a setlist in the preamble to only type this once.
– moewe
Nov 24 at 16:47












@Sebastiano My apologies; added.
– S. van Nigtevecht
Nov 24 at 17:25




@Sebastiano My apologies; added.
– S. van Nigtevecht
Nov 24 at 17:25




1




1




@moewe Thank you, I did not know that em was used in a lemma environment. That workaround should solve it.
– S. van Nigtevecht
Nov 24 at 17:41




@moewe Thank you, I did not know that em was used in a lemma environment. That workaround should solve it.
– S. van Nigtevecht
Nov 24 at 17:41












@S.vanNigtevecht No apologies :-). My English language is very bad. With the pcture I can understand the question.
– Sebastiano
Nov 24 at 19:20




@S.vanNigtevecht No apologies :-). My English language is very bad. With the pcture I can understand the question.
– Sebastiano
Nov 24 at 19:20










1 Answer
1






active

oldest

votes

















up vote
5
down vote



accepted










Section 9 Watch Out! of the emrac documentation explains that embrac only applies to emph{...}, but not to {em ...} and {itshape ...}. Since amsthm's lemma uses itshape to typeset its body in italics, embrac can't be used here. It would be a non-trivial (impossible?) exercise to convert embrac's behaviour for the macro emph to the switch itshape, so you will have to find a different work-around. The easiest is to use upshape for the label. Since you use enumitem you can pack that up into a global definition.



documentclass{article}
usepackage{amsmath, amsthm, enumitem}
usepackage{embrac}
newtheorem{lemma}{Lemma}

setlist[enumerate]{label=upshape(roman*)}

begin{document}

begin{lemma}
This holds:
begin{enumerate}
item $a^2+b^2=c^2$.
end{enumerate}
end{lemma}

end{document}


enumerate item in upright font



or define a new list type thmenum



newlist{thmenum}{enumerate}{1}
setlist[thmenum]{label=upshape(roman*)}


and then use it like this



begin{lemma}
This holds:
begin{thmenum}
item $a^2+b^2=c^2$.
end{thmenum}
end{lemma}


if you want to preserve the original enumerate. The result is the same.






share|improve this answer

















  • 2




    Perhaps label={{upshape(}roman*{upshape)}} might be better so that only the paren are upright.
    – Peter Grill
    Nov 24 at 18:31











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',
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461581%2fembrac-package-and-enumerate%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










Section 9 Watch Out! of the emrac documentation explains that embrac only applies to emph{...}, but not to {em ...} and {itshape ...}. Since amsthm's lemma uses itshape to typeset its body in italics, embrac can't be used here. It would be a non-trivial (impossible?) exercise to convert embrac's behaviour for the macro emph to the switch itshape, so you will have to find a different work-around. The easiest is to use upshape for the label. Since you use enumitem you can pack that up into a global definition.



documentclass{article}
usepackage{amsmath, amsthm, enumitem}
usepackage{embrac}
newtheorem{lemma}{Lemma}

setlist[enumerate]{label=upshape(roman*)}

begin{document}

begin{lemma}
This holds:
begin{enumerate}
item $a^2+b^2=c^2$.
end{enumerate}
end{lemma}

end{document}


enumerate item in upright font



or define a new list type thmenum



newlist{thmenum}{enumerate}{1}
setlist[thmenum]{label=upshape(roman*)}


and then use it like this



begin{lemma}
This holds:
begin{thmenum}
item $a^2+b^2=c^2$.
end{thmenum}
end{lemma}


if you want to preserve the original enumerate. The result is the same.






share|improve this answer

















  • 2




    Perhaps label={{upshape(}roman*{upshape)}} might be better so that only the paren are upright.
    – Peter Grill
    Nov 24 at 18:31















up vote
5
down vote



accepted










Section 9 Watch Out! of the emrac documentation explains that embrac only applies to emph{...}, but not to {em ...} and {itshape ...}. Since amsthm's lemma uses itshape to typeset its body in italics, embrac can't be used here. It would be a non-trivial (impossible?) exercise to convert embrac's behaviour for the macro emph to the switch itshape, so you will have to find a different work-around. The easiest is to use upshape for the label. Since you use enumitem you can pack that up into a global definition.



documentclass{article}
usepackage{amsmath, amsthm, enumitem}
usepackage{embrac}
newtheorem{lemma}{Lemma}

setlist[enumerate]{label=upshape(roman*)}

begin{document}

begin{lemma}
This holds:
begin{enumerate}
item $a^2+b^2=c^2$.
end{enumerate}
end{lemma}

end{document}


enumerate item in upright font



or define a new list type thmenum



newlist{thmenum}{enumerate}{1}
setlist[thmenum]{label=upshape(roman*)}


and then use it like this



begin{lemma}
This holds:
begin{thmenum}
item $a^2+b^2=c^2$.
end{thmenum}
end{lemma}


if you want to preserve the original enumerate. The result is the same.






share|improve this answer

















  • 2




    Perhaps label={{upshape(}roman*{upshape)}} might be better so that only the paren are upright.
    – Peter Grill
    Nov 24 at 18:31













up vote
5
down vote



accepted







up vote
5
down vote



accepted






Section 9 Watch Out! of the emrac documentation explains that embrac only applies to emph{...}, but not to {em ...} and {itshape ...}. Since amsthm's lemma uses itshape to typeset its body in italics, embrac can't be used here. It would be a non-trivial (impossible?) exercise to convert embrac's behaviour for the macro emph to the switch itshape, so you will have to find a different work-around. The easiest is to use upshape for the label. Since you use enumitem you can pack that up into a global definition.



documentclass{article}
usepackage{amsmath, amsthm, enumitem}
usepackage{embrac}
newtheorem{lemma}{Lemma}

setlist[enumerate]{label=upshape(roman*)}

begin{document}

begin{lemma}
This holds:
begin{enumerate}
item $a^2+b^2=c^2$.
end{enumerate}
end{lemma}

end{document}


enumerate item in upright font



or define a new list type thmenum



newlist{thmenum}{enumerate}{1}
setlist[thmenum]{label=upshape(roman*)}


and then use it like this



begin{lemma}
This holds:
begin{thmenum}
item $a^2+b^2=c^2$.
end{thmenum}
end{lemma}


if you want to preserve the original enumerate. The result is the same.






share|improve this answer












Section 9 Watch Out! of the emrac documentation explains that embrac only applies to emph{...}, but not to {em ...} and {itshape ...}. Since amsthm's lemma uses itshape to typeset its body in italics, embrac can't be used here. It would be a non-trivial (impossible?) exercise to convert embrac's behaviour for the macro emph to the switch itshape, so you will have to find a different work-around. The easiest is to use upshape for the label. Since you use enumitem you can pack that up into a global definition.



documentclass{article}
usepackage{amsmath, amsthm, enumitem}
usepackage{embrac}
newtheorem{lemma}{Lemma}

setlist[enumerate]{label=upshape(roman*)}

begin{document}

begin{lemma}
This holds:
begin{enumerate}
item $a^2+b^2=c^2$.
end{enumerate}
end{lemma}

end{document}


enumerate item in upright font



or define a new list type thmenum



newlist{thmenum}{enumerate}{1}
setlist[thmenum]{label=upshape(roman*)}


and then use it like this



begin{lemma}
This holds:
begin{thmenum}
item $a^2+b^2=c^2$.
end{thmenum}
end{lemma}


if you want to preserve the original enumerate. The result is the same.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 24 at 17:53









moewe

83.7k8107321




83.7k8107321








  • 2




    Perhaps label={{upshape(}roman*{upshape)}} might be better so that only the paren are upright.
    – Peter Grill
    Nov 24 at 18:31














  • 2




    Perhaps label={{upshape(}roman*{upshape)}} might be better so that only the paren are upright.
    – Peter Grill
    Nov 24 at 18:31








2




2




Perhaps label={{upshape(}roman*{upshape)}} might be better so that only the paren are upright.
– Peter Grill
Nov 24 at 18:31




Perhaps label={{upshape(}roman*{upshape)}} might be better so that only the paren are upright.
– Peter Grill
Nov 24 at 18:31


















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461581%2fembrac-package-and-enumerate%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei