<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Uwe,</p>
<p>Don't know about subscript/superscript - you can try it.</p>
<p>If it works, it would also be <sub> and <sup> since QGIS also uses HTML-like syntax for rich-text formatting. But it depends whether rich-text formatting was enabled for the labels of the map-grid or not. I believe there are different types of text objects in qt and it depends on what the programmer picked who implemented the map grid labeling.</p>
<p>And of course you can use the modulus operator in combination with CASE WHEN END to have every-nth label with a different format.</p>
<p>Andreas</p>
<p>On 2016-02-11 12:35, Uwe Fischer wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><!-- meta ignored --><!-- node type 8 --><!-- node type 8 -->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79; mso-fareast-language: EN-US;">Hi Andreas,<!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79; mso-fareast-language: EN-US;"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79; mso-fareast-language: EN-US;">thank you so much! Believe it or not, for some reason I did not see the „custom" option at the end of the formats list! Blind like a Maulwurf ... I'm sure here I can find what is needed! Thanks again. <!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79; mso-fareast-language: EN-US;"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79; mso-fareast-language: EN-US;">Do you think there is a way to make use of subscript/superscript (hoffentlich hab ich das nicht wieder übersehen!)? I' have not used my own funcions yet, but I'd love to check it out.<!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79; mso-fareast-language: EN-US;"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79; mso-fareast-language: EN-US;">In ArcMap, it would be <sup>string</sup>. I'll search the iNet too, what I find will be posted if interesting.<!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79; mso-fareast-language: EN-US;"><!-- o ignored --> </span></p>
<div>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79;">Mit freundlichen Grüßen,<!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79;"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; font-variant: small-caps; color: #1f4e79;">Uwe Fischer<!-- o ignored --></span></p>
</div>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Verdana',sans-serif; color: #1f4e79; mso-fareast-language: EN-US;"><!-- o ignored --> </span></p>
<div>
<div style="border: none; border-top: solid #E1E1E1 1.0pt; padding: 3.0pt 0cm 0cm 0cm;">
<p class="MsoNormal"><strong><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;">Von:</span></strong><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"> Neumann, Andreas [mailto:a.neumann@carto.net] <br /><strong>Gesendet:</strong> Donnerstag, 11. Februar 2016 11:44<br /><strong>An:</strong> Uwe Fischer <gisfisch@t-online.de><br /><strong>Cc:</strong> Qgis-user@lists.osgeo.org<br /><strong>Betreff:</strong> Re: [Qgis-user] Print Composer: formatting UTM coordinates<!-- o ignored --></span></p>
</div>
</div>
<p class="MsoNormal"><!-- o ignored --> </p>
<p><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;">Hi Uwe,<!-- o ignored --></span></p>
<p><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;">First - you can set the "Koordinatengenauigkeit" (coordinate accuracy or something similar in english) to zero for UTM grid.<!-- o ignored --></span></p>
<p><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;">QGIS is super flexible regarding formatting of map grids. You can use the full-power of the QGIS expressions to format your grid. But it is your task to do the Expression correctly. Just set the format to "user defined" and use the "E" (Epsilon) button next to the format selection list.<!-- o ignored --></span></p>
<p><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;">Specifically have a look at the round/format_number functions and string manipulation. If that isn't good enough you can even do you own Python functions).<!-- o ignored --></span></p>
<p><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;">The only issues is that you need a relatively recent QGIS version >= 2.8 (I think) for that.<!-- o ignored --></span></p>
<p><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;">Hope this helps to get started.<!-- o ignored --></span></p>
<p><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;">Andreas<!-- o ignored --></span></p>
<p><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;">On 2016-02-11 11:27, Uwe Fischer wrote:<!-- o ignored --></span></p>
<blockquote style="border: none; border-left: solid #1010FF 1.5pt; padding: 0cm 0cm 0cm 5.0pt; margin-left: 0cm; margin-right: 0cm;">
<div>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;">Hi list,</span><!-- o ignored --></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;"> </span><!-- o ignored --></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;">does anybody know a way to get custom formatted UTM coordinates in a grid frame around the map? I have tested all the options in print composer and yet could not find what I am looking for. The problem is that UTM coordinates have 6 to 8 digits that don't change much along a large scale map (eg 1:10.000). That results in ugly long, bad readable numbers with changes only in their middle digits and with many trailing zeros at the right.</span><!-- o ignored --></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;"> </span><!-- o ignored --></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;">It would be nice to have a number format like in older german topographic maps, that is: printing the leftmost digits („big values") just once at the map corners (or when they change), formatted as smaller superscript index. Printing the interesting middle digits with only one decimal at every tick mark (eg every 500 meters). Avoiding trailing zeroes. I hope that describes what I mean.</span><!-- o ignored --></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;"> </span><!-- o ignored --></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;">Any suggestions? Thanks a lot!</span><!-- o ignored --></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;"> </span><!-- o ignored --></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;">Regards, Uwe</span><!-- o ignored --></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="font-family: 'Verdana',sans-serif;"> </span><!-- o ignored --></p>
</div>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;"><!-- o ignored --> </span></p>
<div>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Courier New';">_______________________________________________<br />Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br />List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br />Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><!-- o ignored --></span></p>
</div>
</blockquote>
<p><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;"> <!-- o ignored --></span></p>
<div>
<p class="MsoNormal"><span style="font-size: 10.0pt; font-family: 'Verdana',sans-serif;"> <!-- o ignored --></span></p>
</div>
</div>
</blockquote>
<p> </p>
<div> </div>
</body></html>