<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to display labels as fractions? in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93282#M1078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps in your label expression create an out put like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&amp;lt;sup&amp;gt;"&amp;amp; [YourNumeratorField]&amp;amp; "&amp;lt;/sup&amp;gt;"&amp;amp;"/" &amp;amp; "&amp;lt;sub&amp;gt;" &amp;amp; [YourDenominatorField]&amp;amp;" &amp;lt;/sub&amp;gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2019 14:52:57 GMT</pubDate>
    <dc:creator>TedKowal</dc:creator>
    <dc:date>2019-10-01T14:52:57Z</dc:date>
    <item>
      <title>How to display labels as fractions?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93281#M1077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know whether it's possible to write label expression that displays fractions. I have points that contains list of tree species, height and diameter and I need to make them look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/460847_pastedImage_1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;My current expression displays each attribute in their own line but I need everything in single row.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;def FindLabel ( [TREE], &lt;H&gt;, &lt;D&gt; ):
&amp;nbsp; if [SDS]:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "&amp;lt;FNT size = '6,5'&amp;gt;"+[TREE] + "&amp;lt;/FNT&amp;gt;"'\n' +&amp;nbsp; "&amp;lt;UND&amp;gt;&amp;lt;FNT size = '6,5'&amp;gt;"&amp;nbsp; +&amp;nbsp; &lt;H&gt; +"&amp;lt;/FNT&amp;gt;&amp;lt;/UND&amp;gt;" + '\n' +"&amp;lt;FNT size = '6,5'&amp;gt;" + &lt;D&gt; +"&amp;lt;/FNT&amp;gt;"‍‍‍‍‍‍‍‍‍‍‍‍
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/D&gt;&lt;/H&gt;&lt;/D&gt;&lt;/H&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked text formatting tags&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-text/formatting-tags-available-in-arcmap.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-text/formatting-tags-available-in-arcmap.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Formatting tags available in ArcMap—Help | ArcGIS for Desktop&lt;/A&gt; but none of them allows to create fractions. I also tried using placement properties and defined each class separately. Perhaps there is some other way to make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using ArcMap 10.3.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93281#M1077</guid>
      <dc:creator>JanisMitkovs</dc:creator>
      <dc:date>2021-12-10T23:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to display labels as fractions?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93282#M1078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps in your label expression create an out put like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&amp;lt;sup&amp;gt;"&amp;amp; [YourNumeratorField]&amp;amp; "&amp;lt;/sup&amp;gt;"&amp;amp;"/" &amp;amp; "&amp;lt;sub&amp;gt;" &amp;amp; [YourDenominatorField]&amp;amp;" &amp;lt;/sub&amp;gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2019 14:52:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93282#M1078</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2019-10-01T14:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to display labels as fractions?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93283#M1079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not exactly what I wanted but this is a lot better of what I have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 08:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93283#M1079</guid>
      <dc:creator>JanisMitkovs</dc:creator>
      <dc:date>2019-10-02T08:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display labels as fractions?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93284#M1080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only other way to get what you want that I am aware of is to use CSS styling and HTML format to force centering of super and subscripts stacked over a horizontal line.&amp;nbsp; This would not be easy to implement in ArcMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/13878772/how-to-display-classic-built-up-fractions-with-an-horizontal-line-in-css-jav" title="https://stackoverflow.com/questions/13878772/how-to-display-classic-built-up-fractions-with-an-horizontal-line-in-css-jav"&gt;html - How to display "Classic" built-up fractions with an horizontal line in CSS / JavaScript? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93284#M1080</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2019-10-02T14:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to display labels as fractions?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93285#M1081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make my last one easier this is an idea request which you may want to vote on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/ideas/9592" target="_blank"&gt;https://community.esri.com/ideas/9592&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-display-labels-as-fractions/m-p/93285#M1081</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2021-06-22T08:19:13Z</dc:date>
    </item>
  </channel>
</rss>

