Siunitx and breqn causes repeated value and unit error in align












0















I am experiencing a weird bug when using SI{}{} inside a align block.
The following latex code results in the value and unit being repeated as seen on the picture.
But only when written inside a align block.



documentclass[a4paper, 11pt]{article} 
usepackage{amsmath}
usepackage{breqn}
usepackage{siunitx}

begin{document}
centering
SI{311.2}{radian / second}
begin{align}
f_{n} &= SI{311.2}{radian / second} nonumber \
&= SI{49.5}{hertz}
end{align}
end{document}


Results in:



enter image description here



I have not experienced this kind of behaviour on another machine and even in another document on the same machine.



What could cause this behaviour?
And what can i do to stop it?



EDIT 1: Adds a complete example.



In construction of the example i figured out that it is the package breqn which causes the error.
But then i would like to ask, why does this happend, and what can i do about it?



Also, I have updated the title of the question to reflect change in question.










share|improve this question




















  • 3





    works fine for me. Show a complete example.

    – Ulrike Fischer
    Jan 7 at 14:54











  • All works fine here: can you add listfiles to your input and then edit the File list from your .log into the question?

    – Joseph Wright
    Jan 7 at 15:23






  • 1





    I think the general consensus nowadays is the you should not use breqn, the idea is nice, but in reality, its goal is very very hard to achieve and as such it is incompatible with a lot of stuff. Since we are seeing things four times, I'm guessing it is messing with mathchoice or similar (which basically has to typeset everuthing 4 times before it knows which is is being used)

    – daleif
    Jan 7 at 15:25











  • I can't reproduce the behavior too. You might want to consider using per instead of a /. I think it works better, but it's your choice. If you want to show a slash instead of negative exponents within the units, you can add the option usepackage[per-mode=symbol]{siunitx} or SI[per-mode=symbol]{}{} for a single unit. See the sinunitx package manual for more information.

    – JohanFit
    Jan 7 at 15:50
















0















I am experiencing a weird bug when using SI{}{} inside a align block.
The following latex code results in the value and unit being repeated as seen on the picture.
But only when written inside a align block.



documentclass[a4paper, 11pt]{article} 
usepackage{amsmath}
usepackage{breqn}
usepackage{siunitx}

begin{document}
centering
SI{311.2}{radian / second}
begin{align}
f_{n} &= SI{311.2}{radian / second} nonumber \
&= SI{49.5}{hertz}
end{align}
end{document}


Results in:



enter image description here



I have not experienced this kind of behaviour on another machine and even in another document on the same machine.



What could cause this behaviour?
And what can i do to stop it?



EDIT 1: Adds a complete example.



In construction of the example i figured out that it is the package breqn which causes the error.
But then i would like to ask, why does this happend, and what can i do about it?



Also, I have updated the title of the question to reflect change in question.










share|improve this question




















  • 3





    works fine for me. Show a complete example.

    – Ulrike Fischer
    Jan 7 at 14:54











  • All works fine here: can you add listfiles to your input and then edit the File list from your .log into the question?

    – Joseph Wright
    Jan 7 at 15:23






  • 1





    I think the general consensus nowadays is the you should not use breqn, the idea is nice, but in reality, its goal is very very hard to achieve and as such it is incompatible with a lot of stuff. Since we are seeing things four times, I'm guessing it is messing with mathchoice or similar (which basically has to typeset everuthing 4 times before it knows which is is being used)

    – daleif
    Jan 7 at 15:25











  • I can't reproduce the behavior too. You might want to consider using per instead of a /. I think it works better, but it's your choice. If you want to show a slash instead of negative exponents within the units, you can add the option usepackage[per-mode=symbol]{siunitx} or SI[per-mode=symbol]{}{} for a single unit. See the sinunitx package manual for more information.

    – JohanFit
    Jan 7 at 15:50














0












0








0








I am experiencing a weird bug when using SI{}{} inside a align block.
The following latex code results in the value and unit being repeated as seen on the picture.
But only when written inside a align block.



documentclass[a4paper, 11pt]{article} 
usepackage{amsmath}
usepackage{breqn}
usepackage{siunitx}

begin{document}
centering
SI{311.2}{radian / second}
begin{align}
f_{n} &= SI{311.2}{radian / second} nonumber \
&= SI{49.5}{hertz}
end{align}
end{document}


Results in:



enter image description here



I have not experienced this kind of behaviour on another machine and even in another document on the same machine.



What could cause this behaviour?
And what can i do to stop it?



EDIT 1: Adds a complete example.



In construction of the example i figured out that it is the package breqn which causes the error.
But then i would like to ask, why does this happend, and what can i do about it?



Also, I have updated the title of the question to reflect change in question.










share|improve this question
















I am experiencing a weird bug when using SI{}{} inside a align block.
The following latex code results in the value and unit being repeated as seen on the picture.
But only when written inside a align block.



documentclass[a4paper, 11pt]{article} 
usepackage{amsmath}
usepackage{breqn}
usepackage{siunitx}

begin{document}
centering
SI{311.2}{radian / second}
begin{align}
f_{n} &= SI{311.2}{radian / second} nonumber \
&= SI{49.5}{hertz}
end{align}
end{document}


Results in:



enter image description here



I have not experienced this kind of behaviour on another machine and even in another document on the same machine.



What could cause this behaviour?
And what can i do to stop it?



EDIT 1: Adds a complete example.



In construction of the example i figured out that it is the package breqn which causes the error.
But then i would like to ask, why does this happend, and what can i do about it?



Also, I have updated the title of the question to reflect change in question.







siunitx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 7 at 15:10







SørenHN

















asked Jan 7 at 14:45









SørenHNSørenHN

11




11








  • 3





    works fine for me. Show a complete example.

    – Ulrike Fischer
    Jan 7 at 14:54











  • All works fine here: can you add listfiles to your input and then edit the File list from your .log into the question?

    – Joseph Wright
    Jan 7 at 15:23






  • 1





    I think the general consensus nowadays is the you should not use breqn, the idea is nice, but in reality, its goal is very very hard to achieve and as such it is incompatible with a lot of stuff. Since we are seeing things four times, I'm guessing it is messing with mathchoice or similar (which basically has to typeset everuthing 4 times before it knows which is is being used)

    – daleif
    Jan 7 at 15:25











  • I can't reproduce the behavior too. You might want to consider using per instead of a /. I think it works better, but it's your choice. If you want to show a slash instead of negative exponents within the units, you can add the option usepackage[per-mode=symbol]{siunitx} or SI[per-mode=symbol]{}{} for a single unit. See the sinunitx package manual for more information.

    – JohanFit
    Jan 7 at 15:50














  • 3





    works fine for me. Show a complete example.

    – Ulrike Fischer
    Jan 7 at 14:54











  • All works fine here: can you add listfiles to your input and then edit the File list from your .log into the question?

    – Joseph Wright
    Jan 7 at 15:23






  • 1





    I think the general consensus nowadays is the you should not use breqn, the idea is nice, but in reality, its goal is very very hard to achieve and as such it is incompatible with a lot of stuff. Since we are seeing things four times, I'm guessing it is messing with mathchoice or similar (which basically has to typeset everuthing 4 times before it knows which is is being used)

    – daleif
    Jan 7 at 15:25











  • I can't reproduce the behavior too. You might want to consider using per instead of a /. I think it works better, but it's your choice. If you want to show a slash instead of negative exponents within the units, you can add the option usepackage[per-mode=symbol]{siunitx} or SI[per-mode=symbol]{}{} for a single unit. See the sinunitx package manual for more information.

    – JohanFit
    Jan 7 at 15:50








3




3





works fine for me. Show a complete example.

– Ulrike Fischer
Jan 7 at 14:54





works fine for me. Show a complete example.

– Ulrike Fischer
Jan 7 at 14:54













All works fine here: can you add listfiles to your input and then edit the File list from your .log into the question?

– Joseph Wright
Jan 7 at 15:23





All works fine here: can you add listfiles to your input and then edit the File list from your .log into the question?

– Joseph Wright
Jan 7 at 15:23




1




1





I think the general consensus nowadays is the you should not use breqn, the idea is nice, but in reality, its goal is very very hard to achieve and as such it is incompatible with a lot of stuff. Since we are seeing things four times, I'm guessing it is messing with mathchoice or similar (which basically has to typeset everuthing 4 times before it knows which is is being used)

– daleif
Jan 7 at 15:25





I think the general consensus nowadays is the you should not use breqn, the idea is nice, but in reality, its goal is very very hard to achieve and as such it is incompatible with a lot of stuff. Since we are seeing things four times, I'm guessing it is messing with mathchoice or similar (which basically has to typeset everuthing 4 times before it knows which is is being used)

– daleif
Jan 7 at 15:25













I can't reproduce the behavior too. You might want to consider using per instead of a /. I think it works better, but it's your choice. If you want to show a slash instead of negative exponents within the units, you can add the option usepackage[per-mode=symbol]{siunitx} or SI[per-mode=symbol]{}{} for a single unit. See the sinunitx package manual for more information.

– JohanFit
Jan 7 at 15:50





I can't reproduce the behavior too. You might want to consider using per instead of a /. I think it works better, but it's your choice. If you want to show a slash instead of negative exponents within the units, you can add the option usepackage[per-mode=symbol]{siunitx} or SI[per-mode=symbol]{}{} for a single unit. See the sinunitx package manual for more information.

– JohanFit
Jan 7 at 15:50










0






active

oldest

votes











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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f468981%2fsiunitx-and-breqn-causes-repeated-value-and-unit-error-in-align%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f468981%2fsiunitx-and-breqn-causes-repeated-value-and-unit-error-in-align%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

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents