Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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 http://search.cpan.org/~sburke/RTF-Writer/lib/RTF/Cookbook.pod 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;


Comment on Re: print comma in superscript
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027655]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2015-07-03 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls