<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: siunitx: Revising the units</title>
	<atom:link href="http://www.texdev.net/2009/11/26/siunitx-revising-the-units/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/</link>
	<description>Coding in the TeX world</description>
	<lastBuildDate>Mon, 08 Mar 2010 14:08:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: e.spin</title>
		<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/comment-page-1/#comment-2255</link>
		<dc:creator>e.spin</dc:creator>
		<pubDate>Sat, 20 Feb 2010 14:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=570#comment-2255</guid>
		<description>Hi Joseph,
I am wondering how/whether it would be possible to typeset hour/min/secs in the way siunitx does with \arc.
This is to be used in the context of astronomy where angles are expressed in such a way...
Just to give you a visual clue of what I would like to achieve see the following example (using the euro package):

Any suggestions is welcome.
Thanks in advance
Bye
Enrico

\documentclass[a4paper]{report}

\newcommand\degr[1]{\hbox{$#1^\circ$}}
\newcommand\arcmin[1]{\hbox{$#1^\prime$}}
\def\farcs{\hbox{$.\!\!^{\prime\prime}$}}
\def\fdg{\hbox{$.\!\!^\circ$}}
\newcommand\phour[1]{\hbox{$#1^{\rm h}$}}
\newcommand\pmin[1]{\hbox{$#1^{\rm m}$}}
\def\fsec{\hbox{.\!\!^{\rm s}$}}


\def\arcsec{\hbox{$^{\prime\prime}$}}
\def\utw{\smash{\rlap{\lower5pt\hbox{$\sim$}}}}
\def\udtw{\smash{\rlap{\lower6pt\hbox{$\approx$}}}}
\def\fd{\hbox{$.\!\!^{\rm d}$}}
\def\farcm{\hbox{$.\mkern-4mu^\prime$}}
\def\fp{\hbox{$.\!\!^{\scriptscriptstyle\rm p}$}}

\usepackage{euro}
\newcommand*\fracdegs[1]{{%
    \EUROFORMAT{main}{\in}%
    \EUROFORMAT{in}{\val}%
    \EUROFORMAT{EUR}{\form{\,}{\,\fdg}{}\round{-10}}%
    \EURO{EUR}{#1}}}

\newcommand*\degminsecs[3]{{%
    \EUROFORMAT{main}{\in}%
    \EUROFORMAT{in}{\val}%
    \EUROFORMAT{EUR}{\form{\,}{\,\farcs}{}\round{-10}}%
    \ensuremath{%
      \degr{#1}\,\arcmin{#2}\,\EURO{EUR}{#3}}}}


\newcommand*\hms[3]{{%
    \EUROFORMAT{main}{\in}%
    \EUROFORMAT{in}{\val}%
    \EUROFORMAT{EUR}{\form{\,}{\,\fsec}{}\round{-10}}%
    \ensuremath{%
      \phour{#1}\,\pmin{#2}\,\EURO{EUR}{#3}}}}



\begin{document}
\fracdegs{23.456789}

\degminsecs{23}{45}{8.56789}

\hms{23}{45}{8.56789}


\end{document}</description>
		<content:encoded><![CDATA[<p>Hi Joseph,<br />
I am wondering how/whether it would be possible to typeset hour/min/secs in the way siunitx does with \arc.<br />
This is to be used in the context of astronomy where angles are expressed in such a way&#8230;<br />
Just to give you a visual clue of what I would like to achieve see the following example (using the euro package):</p>
<p>Any suggestions is welcome.<br />
Thanks in advance<br />
Bye<br />
Enrico</p>
<p>\documentclass[a4paper]{report}</p>
<p>\newcommand\degr[1]{\hbox{$#1^\circ$}}<br />
\newcommand\arcmin[1]{\hbox{$#1^\prime$}}<br />
\def\farcs{\hbox{$.\!\!^{\prime\prime}$}}<br />
\def\fdg{\hbox{$.\!\!^\circ$}}<br />
\newcommand\phour[1]{\hbox{$#1^{\rm h}$}}<br />
\newcommand\pmin[1]{\hbox{$#1^{\rm m}$}}<br />
\def\fsec{\hbox{.\!\!^{\rm s}$}}</p>
<p>\def\arcsec{\hbox{$^{\prime\prime}$}}<br />
\def\utw{\smash{\rlap{\lower5pt\hbox{$\sim$}}}}<br />
\def\udtw{\smash{\rlap{\lower6pt\hbox{$\approx$}}}}<br />
\def\fd{\hbox{$.\!\!^{\rm d}$}}<br />
\def\farcm{\hbox{$.\mkern-4mu^\prime$}}<br />
\def\fp{\hbox{$.\!\!^{\scriptscriptstyle\rm p}$}}</p>
<p>\usepackage{euro}<br />
\newcommand*\fracdegs[1]{{%<br />
    \EUROFORMAT{main}{\in}%<br />
    \EUROFORMAT{in}{\val}%<br />
    \EUROFORMAT{EUR}{\form{\,}{\,\fdg}{}\round{-10}}%<br />
    \EURO{EUR}{#1}}}</p>
<p>\newcommand*\degminsecs[3]{{%<br />
    \EUROFORMAT{main}{\in}%<br />
    \EUROFORMAT{in}{\val}%<br />
    \EUROFORMAT{EUR}{\form{\,}{\,\farcs}{}\round{-10}}%<br />
    \ensuremath{%<br />
      \degr{#1}\,\arcmin{#2}\,\EURO{EUR}{#3}}}}</p>
<p>\newcommand*\hms[3]{{%<br />
    \EUROFORMAT{main}{\in}%<br />
    \EUROFORMAT{in}{\val}%<br />
    \EUROFORMAT{EUR}{\form{\,}{\,\fsec}{}\round{-10}}%<br />
    \ensuremath{%<br />
      \phour{#1}\,\pmin{#2}\,\EURO{EUR}{#3}}}}</p>
<p>\begin{document}<br />
\fracdegs{23.456789}</p>
<p>\degminsecs{23}{45}{8.56789}</p>
<p>\hms{23}{45}{8.56789}</p>
<p>\end{document}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leo</title>
		<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/comment-page-1/#comment-1736</link>
		<dc:creator>leo</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=570#comment-1736</guid>
		<description>Thanks for that.</description>
		<content:encoded><![CDATA[<p>Thanks for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/comment-page-1/#comment-1733</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Sun, 29 Nov 2009 21:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=570#comment-1733</guid>
		<description>Hello Leo,

The difference would appear if you asked siunitx to convert prefixes to numbers. It can do the first version, but not the second.

Joseph</description>
		<content:encoded><![CDATA[<p>Hello Leo,</p>
<p>The difference would appear if you asked siunitx to convert prefixes to numbers. It can do the first version, but not the second.</p>
<p>Joseph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leo</title>
		<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/comment-page-1/#comment-1732</link>
		<dc:creator>leo</dc:creator>
		<pubDate>Sun, 29 Nov 2009 21:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=570#comment-1732</guid>
		<description>\newunit\Tbps{\tera\bit\per\second}

But I was merely trying to say that it is very easy to define new units even if one does not know much about what is in siunitx.

BTW, is there any difference between the following two definitions:

\newunit\Tb{\tera\bit}
\newunit\Tb{Tb}</description>
		<content:encoded><![CDATA[<p>\newunit\Tbps{\tera\bit\per\second}</p>
<p>But I was merely trying to say that it is very easy to define new units even if one does not know much about what is in siunitx.</p>
<p>BTW, is there any difference between the following two definitions:</p>
<p>\newunit\Tb{\tera\bit}<br />
\newunit\Tb{Tb}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/comment-page-1/#comment-1726</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Sun, 29 Nov 2009 16:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=570#comment-1726</guid>
		<description>BTW, it would be \newunit\Tbps{\tera\byte\per\second}, I hope!</description>
		<content:encoded><![CDATA[<p>BTW, it would be \newunit\Tbps{\tera\byte\per\second}, I hope!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/comment-page-1/#comment-1724</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Sun, 29 Nov 2009 10:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=570#comment-1724</guid>
		<description>Hello Leo,

You are of course right that there is an almost endless supply of possibles. That said, it is useful to have some things set up. One obvious one is abbreviations (things like \Hz, \nm, \mmol, etc.), which are useful I think. I&#039;m less sure about the &quot;prefixed&quot; units which I inherited from older packages. I tend to think \millimetre is not really much gain over \milli\metre. I do need to check these things work, however!

Joseph</description>
		<content:encoded><![CDATA[<p>Hello Leo,</p>
<p>You are of course right that there is an almost endless supply of possibles. That said, it is useful to have some things set up. One obvious one is abbreviations (things like \Hz, \nm, \mmol, etc.), which are useful I think. I&#8217;m less sure about the &#8220;prefixed&#8221; units which I inherited from older packages. I tend to think \millimetre is not really much gain over \milli\metre. I do need to check these things work, however!</p>
<p>Joseph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leo</title>
		<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/comment-page-1/#comment-1720</link>
		<dc:creator>leo</dc:creator>
		<pubDate>Sat, 28 Nov 2009 19:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=570#comment-1720</guid>
		<description>sorry. It should be Tb/s and Gb/s and the definition should be

\newunit\Tbps{Tb/s} and \newunit\Gbps{Gb/s}</description>
		<content:encoded><![CDATA[<p>sorry. It should be Tb/s and Gb/s and the definition should be</p>
<p>\newunit\Tbps{Tb/s} and \newunit\Gbps{Gb/s}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leo</title>
		<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/comment-page-1/#comment-1719</link>
		<dc:creator>leo</dc:creator>
		<pubDate>Sat, 28 Nov 2009 19:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=570#comment-1719</guid>
		<description>Sorry it should be Tb/s Gb/s and so

\newunit\Tbps{Tb/s}
\newunit\Gbps{Gb/s}</description>
		<content:encoded><![CDATA[<p>Sorry it should be Tb/s Gb/s and so</p>
<p>\newunit\Tbps{Tb/s}<br />
\newunit\Gbps{Gb/s}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leo</title>
		<link>http://www.texdev.net/2009/11/26/siunitx-revising-the-units/comment-page-1/#comment-1718</link>
		<dc:creator>leo</dc:creator>
		<pubDate>Sat, 28 Nov 2009 19:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=570#comment-1718</guid>
		<description>I use siunitx because it offers a way to typeset units consistently. So I am not sure it is good idea to include all kinds of units because it seems they are countless. For example in computer networks, Tbp/s Gbp/s etc. are widely used. If I am too lazy to look it up in the manual I will just do:

\newunit\Tbps{Tbp/s} ...

Leo</description>
		<content:encoded><![CDATA[<p>I use siunitx because it offers a way to typeset units consistently. So I am not sure it is good idea to include all kinds of units because it seems they are countless. For example in computer networks, Tbp/s Gbp/s etc. are widely used. If I am too lazy to look it up in the manual I will just do:</p>
<p>\newunit\Tbps{Tbp/s} &#8230;</p>
<p>Leo</p>
]]></content:encoded>
	</item>
</channel>
</rss>
