Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: print comma in superscript

by hdb (Prior)
on Apr 09, 2013 at 06:30 UTC ( #1027655=note: print w/replies, xml ) Need Help??

in reply to print comma in superscript

There is which is useful in this context. I compiled a small example, which creates a file super.rtf that has superscripts with commata.

use strict; use warnings; use RTF::Writer; my %authors = ( "Isheng J. Tsai" => "1,2", "Magdalena Zarowiecki" => "1", "Nick Riddiford" => "14,15", ); my $rtf = RTF::Writer->new_to_file( "super.rtf" ); $rtf->prolog( title => "Authors" ); $rtf->paragraph( \'', "The authors:" ); for my $a (sort keys %authors) { $rtf->print( \'\plain', "$a" ); $rtf->print( \'\super', $authors{$a} ); $rtf->print( \'\plain', "," ); } $rtf->close;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027655]
[makita]: I am inspecting it second day :)
[makita]: Thanks
[Discipulus]: better to ask a full SOPW
erix self-flagellates with the cluebat
[erix]: indeed had to be( time make check-world ) > test_run2.output 2>&1
[erix]: probably misremembered because of 2>&1 |

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-03-23 08:51 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.