# Tag Info

11

There's little hope of having a syntax like \SI{10}{\au}, because this would involve deep surgery in siunitx. A syntax such as \au{10} seems to be the best choice. \documentclass{article} \usepackage{siunitx} \ExplSyntaxOn \NewDocumentCommand{\au}{m} { \SI{#1}{{a.u.}} \peek_charcode_remove:NT . { \mode_if_math:F { ...

10

The commas in maths match commas from the default serif font but are taken from the OML encoding. You can see this if you force the text to use the serif font by changing the frame to \begin{frame} $f(x,y,z) > 0$ if {\rmfamily $x$, $y$,} and $z$ are positive. \end{frame} However, now the commas are being taken from the serif font while the rest of ...

7

If it is feasible for you, you may want to introduce a new command for this. In my solution, you will not be able to write \SI{123}{\au}, but it will handle all possibilities. % arara: pdflatex \documentclass{article} \usepackage{xspace} \usepackage{siunitx} \makeatletter \DeclareRobustCommand{\au}[1]{% \@ifnextchar{.} {\SI{#1}{{a.u}}} ...

2


1

As an extension of the @YiannisLazarides answer, you can use mfirstuc which is included with TexLive 2014. This will take care of the capitalisation for you, and you won't have to repeat yourself when defining the upper-case version of your command. \documentclass{article} \usepackage{mfirstuc} \def\secname{fancy section} ...

1

Based on the answer given by @daleif in How to delete a full stop on reference ending, I added \newcommand\EatDot[1]{} in the main file and amended the bibliography file to: @article{test1, note = "\href{http://www.blah1.com/}{Title 1}\EatDot", } @article{test2, note = "\href{http://www.blah2.com/}{Title 2}\EatDot", } The output file is: [1] ...

Only top voted, non community-wiki answers of a minimum length are eligible