|
Mar 13 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath @JosephWright Thanks but at least for me you don't need to do that. You could just put what you just said into the documentation and maybe link to pgfmath for more advanced stuff. Only problem might be that the two are not 100% compatible. For example pgfmath doesn't seem to be able to use the surrounding text font and it doesn't have a round-minimum feature AFAICS. But well, maybe it's the best thing to implement these things there instead of bloating siunitx if number formatting never was the primary goal of the package. |
|
Mar 13 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath @JosephWright I don't know how many other interactions there might be but in this case it might be easiest if you just separated the conversion from scientific notation and the conversion to scientific notation. The problem here seems to be that it's not possible to convert the scientific input to the desired output because the conversion requires scientific output itself. |
|
Mar 12 |
comment |
How to diagonally divide a table cell … properly? @FrederickNord I agree, there really should be a package that provides a simple \diagcell{}{} macro that you can use in any table cell and that's it. But maybe this is another case for tex.stackexchange.com/questions/27440/what-cant-tex-do |
|
Mar 12 |
revised |
What are all the font styles I can use in math mode? be less world-centric ... I learned that you don't need the A4 part |
|
Mar 12 |
revised |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath adapted question to answer ;) |
|
Mar 12 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath I guess just fixing my document is easier. I forgot to mention that I did find assume math mode=true which switches off ensuremath but that doesn't seem like the right way accomplish that. Anyway, as I said, this will do just fine. Thanks! |
|
Mar 12 |
accepted | Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath |
|
Mar 12 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath This is almost perfect, thanks! If you know a way to set the numbers in the surrounding font instead of always in math font, that would be perfect. If not I have to change the parts where I still have to use siunitx because I use actual units and go through my document if I somewhere still use numbers without any surrounding macro. |
|
Mar 12 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath @egreg Typographically, I couldn't agree more. I hate it. However, it is not only good practice but the practice in at least part of the social sciences. |
|
Mar 12 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath @Jake No, your answer was actually ok as far as I could see before you deleted it. I just mimicked the behaviour of siunitx as far as it didn't bother me but both .8 and 4.00 would be ok as output. |
|
Mar 12 |
revised |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath After tag change, text change, too. Also include package mentioned by Keks Dose. |
|
Mar 12 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath @KeksDose Thanks for the hint. The syntax seems very different. If you're familiar with it and can quickly rewrite the \newcommand to produce the desired output, I'd gladly accept that as an answer. |
|
Mar 12 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath @Jake Maybe it is a bug, yes :/ But rounding as such works fine with omitting the zeros as can be seen in the second example. It's really just the scientific notation conversion that adds the zeros. |
|
Mar 12 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath @Jake Except for the minus sign. That was just my stupidity and blindness of not being in math mode and not noticing it. |
|
Mar 12 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath @Qrrbrbirlbel Good to know. The thing is, I don't want scientific notation but I occasionally get it on the input side and to get rid of it I need those options. |
|
Mar 12 |
comment |
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath @Jake Sorry I didn't make that clear: the second line is the desired output. |
|
Mar 12 |
asked | Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath |
|
Mar 8 |
comment |
Using TikZ, how to draw an elliptical arc starting from point A to point B with the origin as its center where both radii are given? What, no music? |
|
Mar 8 |
comment |
How to implement a floating text box? @cmhughes apparently mdframed does solve all my problems. I can just use {\begin{elabox}[#1]{}\begin{mdframed}[backgroundcolor=black!10,hidealllines=true]\refstepcounter{boxcounter}\textbf{\elaboxname~\arabic{boxcounter}: #2}\par\aftergroup\@afterindentfalse
\aftergroup\@afterheading}{\end{mdframed}\end{elabox}} and everything looks fine. Didn't get the frametitle to work with the counter but the manual way is fine by me. This can be marked as a duplicate or you can turn your comment into an answer, I don't care. |
|
Mar 7 |
comment |
How to implement a floating text box? @cmhughes I'm having a look. Seems like the mdframed package might be useful to get rid of the strange lrbox/colorbox combination I'm using. |