<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">Hi Christian,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">If the subscript data is just numbers
you can have a look at this post:</div>
<div class="moz-cite-prefix"><a class="moz-txt-link-freetext" href="https://gis.stackexchange.com/questions/181287/achieving-super-or-subscript-graticule-labels-in-qgis-composer-windows">https://gis.stackexchange.com/questions/181287/achieving-super-or-subscript-graticule-labels-in-qgis-composer-windows</a></div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">As this is a custom expression function
it is applicable to labels as well.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Cheers,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Andy<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 05/01/2023 13:32, Bodamer, Christian
via QGIS-User wrote:<br>
</div>
<blockquote type="cite" cite="mid:FR2P281MB1817A505E6C2AFDE39609619F2FA9@FR2P281MB1817.DEUP281.PROD.OUTLOOK.COM">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970;
background-color:#F7F9FA; color:#8D3970; font-size:14px;
line-height:22px; font-family: Calibri, Arial, Helvetica,
sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the
University of Southampton.
</div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello list,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">wish you a happy NEW
YEAR!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I like to label with
two columns. The secound column sholud be subscript. I
activate HTML Formating and use the following code in the
Value field:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">format(<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
'<span>%1</span> Sub<span
style="vertical-align:sub">%2</span>',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> "column1" ,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> "column2" <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The text of column2 is
displayed but not subscript. Also
<sub>%2</sub> doesn't work.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Changing the color
with style="color:red" works. I don't see the mistake.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Does someone has an
idea?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal">Christian<o:p></o:p></p>
</div>
<p> </p>
<p style="color: #195eae;">+++ Verkehrsmeldungen und alles rund
um die Autobahn finden Sie in unserer App:<a style="color:
#195eae;" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.autobahn.de%2Fapp&data=05%7C01%7Cajph%40geodata.soton.ac.uk%7Cd433e8a3fcfa43b7963608daef2151a5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638085223627527396%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=E3Xni3ibeIJjLSsmQQ9kbbAzgpDC5V7CTzGDKEbXlGU%3D&reserved=0" originalsrc="https://www.autobahn.de/app" shash="ZJRGY5Tjf7R/pCrngmjxaf2o+p27tVQ1k4n8OwQcz/GxcaV7yVETJc+Zu8jCFXKAOYVz1JX8PlsEqGb0awMxXuZ+lVennZTvDSWjjV/wVMwdp3wnoxUUv1SbnRtXSwqMZrgCB0nsJKxJOuISoE96k9ZKApXIC2MHbLANAsC5uvQ=" moz-do-not-send="true"> Autobahn.de/app</a> +++</p>
<p> </p>
<p>Die Autobahn GmbH des Bundes<br>
Rechtsform GmbH<br>
Sitz Heidestraße 15 · 10557 Berlin · AG Charlottenburg · HRB
200131 B<br>
Geschäftsführung Stephan Krenz, Gunther Adler, Anne Rethmann<br>
Aufsichtsratsvorsitzender Oliver Luksic<br>
<br>
Vertraulichkeitshinweis<br>
Diese Nachricht und jeder etwaig uebermittelte Anhang
beinhalten vertrauliche Informationen und sind nur fuer die
Personen oder Unternehmen bestimmt, an welche sie tatsaechlich
gerichtet sind. Sollten Sie nicht der bestimmungsgemaesse
Empfaenger sein, weisen wir Sie darauf hin, dass die
Verbreitung, das (auch teilweise) Kopieren sowie der Gebrauch
der empfangenen E-Mail und der darin enthaltenen Informationen
verboten sind und gegebenenfalls Schadensersatzpflichten
ausloesen können. Sollten Sie diese Nachricht aufgrund eines
Uebermittlungsfehlers erhalten haben, bitten wir Sie, den
Absender unverzueglich hiervon in Kenntnis zu setzen.<br>
Sicherheitswarnung: Bitte beachten Sie, dass das Internet kein
sicheres Kommunikationsmedium ist. Obwohl wir im Rahmen
unseres Qualitaetsmanagements und der gebotenen Sorgfalt
Schritte eingeleitet haben, um einen Computervirenbefall
weitestgehend zu verhindern, koennen wir wegen der Natur des
Internet das Risiko eines Computervirenbefalls dieser E-Mail
nicht ausschliessen.<br>
<br>
Confidentiality note<br>
This notice and any attachments which are transmitted contain
confidential information and are intended only for the persons
or companies to whom they are actually addressed. If you are
not the intended recipient, please note that the distribution,
copying (even partial) and use of the received e-mail and the
information contained in the e-mail are prohibited and may
result in a possible liability for damages. Should you have
received this message due to a transmission error, we ask you
to inform the sender immediately.<br>
Safety warning: Please note that the Internet is not a safe
means of communication or form of media. Although we are
continuously increasing our due care of preventing virus
attacks as a part of our Quality Management, we are not able
to fully prevent virus attacks as a result of the nature of
the Internet.</p>
<p> </p>
<p>Hinweis zur Datenverarbeitung / Link to data protection
policy: <a style="color: #195eae;" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.autobahn.de%2Fdatenschutz&data=05%7C01%7Cajph%40geodata.soton.ac.uk%7Cd433e8a3fcfa43b7963608daef2151a5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638085223627527396%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SHrZeCqxy4d8KoW7O4c9OOiWUFDsErImQ7%2FObQmiZTw%3D&reserved=0" originalsrc="https://www.autobahn.de/datenschutz" shash="BH0niGcMOQs3Uxgv9KZL3ab+YcY4+/5WWoCe4s7tB6g6jYzH7E3ZXBZSHzyY8Vk1w8P5xGY7hjFrU206guiIvgzVB6dTsdD/R5BwaM3iwkXE0HtLvg4JHWhlrYlCKj2tAe5eoUy6W5ncDlCU96Vw3lpkKphjwyVRUN/1cn0YaGY=" moz-do-not-send="true">
https://www.autobahn.de/datenschutz</a></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-User mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-User@lists.osgeo.org">QGIS-User@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Andy Harfoot
Skype: gdi_ajph
Teams: <a class="moz-txt-link-abbreviated" href="mailto:ajph@soton.ac.uk">ajph@soton.ac.uk</a>
GeoData Institute
University of Southampton
Southampton
SO17 1BJ
<a class="moz-txt-link-abbreviated" href="http://www.geodata.soton.ac.uk">www.geodata.soton.ac.uk</a></pre>
</body>
</html>