Select to view content in your preferred language

Text formatting errors

141
7
Jump to solution
a week ago
Woosh_AP
Regular Contributor

I am trying to format text in a text box in an ArcGIS Pro layout. Until recently I have never had issues, but I am starting to have issues whereby text formatting doesn't seem to be pushing through. An example is show below where I am trying to get the first line bold and underlined to no avail. I have tried a number of different fonts to ensure the font type wasn't the problem. Any ideas on resolving this would be welcome. I am using ArcGIS Pro 3.5.2.

Woosh_AP_0-1754646698282.png

 

0 Kudos
1 Solution

Accepted Solutions
CodyPatterson
MVP Regular Contributor

Hey @Woosh_AP 

I've figured it out! It's the ampersand &!

It looks like you'll need to escape the ampersands like this:

&

<BOL>Layer Credits:</BOL>
<dyn type="layout" name="AP Wall Map" property="serviceLayerCredits"/>; Danielson, J.J., and Gesch, D.B., 2011, Global multi-resolution terrain elevation data 2010 (GMTED2010): U.S. Geological Survey Open-File Report 2011-1073 U.S. Geological Survey Publications Warehouse; Lang, N., Jetz, W., Schindler, K., &amp; Wegner, J. D. (2022). A high-resolution canopy height model of the Earth. arXiv preprint arXiv:2204.08322 arxiv.org/abs/2204.08322; UNEP-WCMC and IUCN (2021), Protected Planet: The World Database on Protected Areas (WDPA), Cambridge, UK: UNEP-WCMC and IUCN. Available at: www.protectedplanet.net.; © OpenStreetMap contributors; www.geoboundaries.org; WorldBank.

Cody

View solution in original post

0 Kudos
7 Replies
DanPatterson
MVP Esteemed Contributor

Reference link

Text formatting tags—ArcGIS Pro | Documentation

did you see or try the _BOL and/or _UND tags near the bottom of the page?


... sort of retired...
0 Kudos
CodyPatterson
MVP Regular Contributor

Hey @Woosh_AP 

As Dan said, BOL and UND are the correct tags to use, but I'm wondering if you're in the right spot, this is where to be:

Right Click the text box, very bottom go to properties and use can use this "Show plain text" to see how things are formatted:

CodyPatterson_1-1754651128139.png

This shows:

CodyPatterson_2-1754651143245.png

From Dan's link, you  can use <BOL></BOL> or <FNT style="Bold"></FNT> but if you type it directly into the box, it will not take formatting, like this:

Clicked into box:

CodyPatterson_3-1754651291444.png

 

Clicked out of box:

 

CodyPatterson_4-1754651302214.png

The dynamic text showing something like this:

CodyPatterson_5-1754651326683.png

Hope that helps!

Cody

0 Kudos
Woosh_AP
Regular Contributor

Thanks both,

I have indeed tried both, and from the element properties dialog, not directly in the text box

Woosh_AP_0-1754655854310.png

Woosh_AP_1-1754655968054.png

 

 

0 Kudos
CodyPatterson
MVP Regular Contributor

Hey @Woosh_AP 

Peculiar! Would you be able to copy and paste your text into a reply? Also, the plain text is here:

CodyPatterson_0-1754657946394.png

 

Then the text I use is this here, could you give this a shot:

Description: <dyn type="mapFrame" name="{0}" property="description"/>
<BOL>Test</BOL>: <dyn type="layout" name="LayoutName" property="serviceLayerCredits"/>

Cody

0 Kudos
Woosh_AP
Regular Contributor

Hi @CodyPatterson 

 

I tried your text and also not working.

My text is copied below:

<BOL>Layer Credits:</BOL>
<dyn type="layout" name="AP Wall Map" property="serviceLayerCredits"/>; Danielson, J.J., and Gesch, D.B., 2011, Global multi-resolution terrain elevation data 2010 (GMTED2010): U.S. Geological Survey Open-File Report 2011-1073 U.S. Geological Survey Publications Warehouse; Lang, N., Jetz, W., Schindler, K., & Wegner, J. D. (2022). A high-resolution canopy height model of the Earth. arXiv preprint arXiv:2204.08322 arxiv.org/abs/2204.08322; UNEP-WCMC and IUCN (2021), Protected Planet: The World Database on Protected Areas (WDPA), Cambridge, UK: UNEP-WCMC and IUCN. Available at: www.protectedplanet.net.; © OpenStreetMap contributors; www.geoboundaries.org; WorldBank.

 

0 Kudos
CodyPatterson
MVP Regular Contributor

Hey @Woosh_AP 

I've figured it out! It's the ampersand &!

It looks like you'll need to escape the ampersands like this:

&amp;

<BOL>Layer Credits:</BOL>
<dyn type="layout" name="AP Wall Map" property="serviceLayerCredits"/>; Danielson, J.J., and Gesch, D.B., 2011, Global multi-resolution terrain elevation data 2010 (GMTED2010): U.S. Geological Survey Open-File Report 2011-1073 U.S. Geological Survey Publications Warehouse; Lang, N., Jetz, W., Schindler, K., &amp; Wegner, J. D. (2022). A high-resolution canopy height model of the Earth. arXiv preprint arXiv:2204.08322 arxiv.org/abs/2204.08322; UNEP-WCMC and IUCN (2021), Protected Planet: The World Database on Protected Areas (WDPA), Cambridge, UK: UNEP-WCMC and IUCN. Available at: www.protectedplanet.net.; © OpenStreetMap contributors; www.geoboundaries.org; WorldBank.

Cody

0 Kudos
Woosh_AP
Regular Contributor

Wow! That indeed was it (in combination with the font I was using). 
Thanks so much.

0 Kudos