<?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: python labeling in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379529#M29931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you.&amp;nbsp; It worked!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 01:35:26 GMT</pubDate>
    <dc:creator>DavidO_Connor</dc:creator>
    <dc:date>2013-02-07T01:35:26Z</dc:date>
    <item>
      <title>python labeling</title>
      <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379524#M29926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&amp;nbsp; - I'm just looking to start learning Python.&amp;nbsp; Starting with the absolute basics, I'd just like to make some labels with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the help page here: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s800000027000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00s800000027000000&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It says "For example, you might use the bold formatting tag to make the first line bold in a stacked, multiline label".&amp;nbsp; That's exactly what I'd like to do, but I'm having trouble doing it.&amp;nbsp; So far I've been able to pull the five values from my attribute table and have a name for them, but I can't find out how to manipulate it any further.&amp;nbsp; Ideally, I'd like the first line to be bold and underlined, and for the all the lines to start at the same lateral position, which I think is called left justified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what I have so far:&amp;nbsp; [Location_I] + '\n' +"PCE: " + [PCE] + '\n' +"TCE: " + [TCE] + '\n' +"cDCE: " + [cDCE] + '\n' +"VC: " + [VC] + '\n' +"11DCE: " + [DCE_11DCE] + '\n' +"11DCA: " + [DCA_11DCA] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the properties window of a pointfile feature class, I'm adding this into the label field after clicking on the expression button and selecting Python from the drop down list.&amp;nbsp; If you could point me to other examples or good reference pages, I would be grateful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 00:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-labeling/m-p/379524#M29926</guid>
      <dc:creator>DavidO_Connor</dc:creator>
      <dc:date>2013-02-06T00:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: python labeling</title>
      <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379525#M29927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What issue are you having? Did you read the link at the top of the page you linked?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_text_formatting_tags/00s80000000p000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_text_formatting_tags/00s80000000p000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: To bold you use "&amp;lt;BOL&amp;gt;" + [field] + "&amp;lt;/BOL&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alignment I do not think is exposed through tags/code, you need to go into the symbol property and select left horizontal alignment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 13:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-labeling/m-p/379525#M29927</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-02-06T13:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: python labeling</title>
      <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379526#M29928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much Matthew.&amp;nbsp; I did read it closer! But it still seems something is wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I entered:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&amp;lt;BOL&amp;gt;" + [Location_I] + "&amp;lt;/BOL&amp;gt;" + '\n' +"PCE: " + [PCE] + '\n' +"TCE: " + [TCE] + '\n' +"cDCE: " + [cDCE] + '\n' +"VC: " + [VC] + '\n' +"11DCE: " + [DCE_11DCE] + '\n' +"11DCA: " + [DCA_11DCA] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I test the expression it is valid, but the sample image shows what looks like all the text is bold and mostly on top of itself, instead of being stacked. (picture attached).&amp;nbsp; When I remove the bold parts, and just enter the previous script, the label goes back to stacked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 15:51:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-labeling/m-p/379526#M29928</guid>
      <dc:creator>DavidO_Connor</dc:creator>
      <dc:date>2013-02-06T15:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: python labeling</title>
      <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379527#M29929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nevermind, it worked! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's not too hard, could you write how I would bold and underline for a&amp;nbsp; [field]?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 15:56:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-labeling/m-p/379527#M29929</guid>
      <dc:creator>DavidO_Connor</dc:creator>
      <dc:date>2013-02-06T15:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: python labeling</title>
      <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379528#M29930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes the preview window is a little off when you start mixing different formatting tags. Stacking them is pretty simple, you just need to maintain first in last out order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;"&amp;lt;BOL&amp;gt;&amp;lt;UND&amp;gt;" + [Location_I] + "&amp;lt;/UND&amp;gt;&amp;lt;/BOL&amp;gt;"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bad&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;"&amp;lt;BOL&amp;gt;&amp;lt;UND&amp;gt;" + [Location_I] + "&amp;lt;/BOL&amp;gt;&amp;lt;/UND&amp;gt;"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 16:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-labeling/m-p/379528#M29930</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-02-06T16:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: python labeling</title>
      <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379529#M29931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you.&amp;nbsp; It worked!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 01:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-labeling/m-p/379529#M29931</guid>
      <dc:creator>DavidO_Connor</dc:creator>
      <dc:date>2013-02-07T01:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: python labeling</title>
      <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379530#M29932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;New to Python (or for that matter VBScript).&amp;nbsp; The instructions above seem straight forward but i am unable to get it to work.&amp;nbsp; The following is what I've tried to do&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;"&amp;lt;BOL&amp;gt;&amp;lt;UND&amp;gt;"&amp;nbsp; +&amp;nbsp; [Section_Number]&amp;nbsp; +&amp;nbsp; "&amp;lt;UND&amp;gt;&amp;lt;BOL&amp;gt;"&amp;nbsp; +&amp;nbsp;&amp;nbsp; '\n '&amp;nbsp; +&amp;nbsp;&amp;nbsp; [Planned_Plants] +&amp;nbsp; '\n '&amp;nbsp; +&amp;nbsp; [Acres_numeric] + ' ac'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 8.5pt; font-family: 'Verdana',sans-serif;"&gt;That would hopefully produce the following result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: black; text-decoration: underline; font-size: 8.5pt; font-family: 'Verdana',sans-serif;"&gt;3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;1,110&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;1.3 ac&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 8.5pt; font-family: 'Verdana',sans-serif;"&gt;Below is the resulting label on my map:&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;&amp;lt;BOL&amp;gt;&amp;lt;UND&amp;gt;3&amp;lt;UND&amp;gt;&amp;lt;BOL&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;1,110&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;1.3 ac&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;I'm obviously missing something but unable to identify what I'm doing wrong.&amp;nbsp; Any help would be much appreciated. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 01:55:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-labeling/m-p/379530#M29932</guid>
      <dc:creator>JeffreyWittler</dc:creator>
      <dc:date>2017-06-07T01:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: python labeling</title>
      <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379531#M29933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"&amp;lt;BOL&amp;gt;&amp;lt;UND&amp;gt;"&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;Section_Number&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="string token"&gt;"&amp;lt;/UND&amp;gt;&amp;lt;/BOL&amp;gt;"&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;'\n '&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;Planned_Plants&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="string token"&gt;'\n '&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;Acres_numeric&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;' ac'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You are closing the XML tags incorrectly.&amp;nbsp; Instead of &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;lt;UND&amp;gt;&lt;/SPAN&gt;, you need &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;lt;/UND&amp;gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 13:37:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-labeling/m-p/379531#M29933</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-06-07T13:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: python labeling</title>
      <link>https://community.esri.com/t5/python-questions/python-labeling/m-p/379532#M29934</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;&lt;/P&gt;&lt;P&gt;Jeffrey Wittler | Environmental Resources Manager | Clark Public Utilities | p: 360.992.8577&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 16:58:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-labeling/m-p/379532#M29934</guid>
      <dc:creator>JeffreyWittler</dc:creator>
      <dc:date>2017-06-08T16:58:42Z</dc:date>
    </item>
  </channel>
</rss>

