Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2011, 02:37 PM   #1
lathom
Kindle user
lathom began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Mar 2011
Location: Falls Church, VA
Device: Kindle
Right justify columns in GUI

How can I make custom columns display right-justified?
lathom is offline   Reply With Quote
Old 07-13-2011, 02:44 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
right click on the column header and choose change text alignment. Note that this only works for columns that display text.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-13-2011, 03:38 PM   #3
lathom
Kindle user
lathom began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Mar 2011
Location: Falls Church, VA
Device: Kindle
Thanks Kovid - I knew it had to be simple. I had been messing with the template functions with no success. On that note, I would like to have a column showing the size rounded to the nearest KB and I'm having no luck with the number_format template. I ended up with {::'subitems(divide(booksize(),1000),0,1)'} which gets me close, but it doesn't sort right.

Thanks for an amazing program!
-Andy
lathom is offline   Reply With Quote
Old 07-13-2011, 05:17 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by lathom View Post
Thanks Kovid - I knew it had to be simple. I had been messing with the template functions with no success. On that note, I would like to have a column showing the size rounded to the nearest KB and I'm having no luck with the number_format template. I ended up with {::'subitems(divide(booksize(),1000),0,1)'} which gets me close, but it doesn't sort right.

Thanks for an amazing program!
-Andy
With a late release of calibre, try the template function human_readable. You must tell calibre that the column is to be sorted as a number.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make it align justify? yuxi_kelly Sony Reader 6 12-25-2010 12:10 PM
Problems getting text to justify ficbot Calibre 4 01-13-2010 02:27 PM
Problem with justify chlorine Kindle Formats 4 02-16-2009 04:20 PM
Help me justify an upgrade... chili_666 Sony Reader 18 02-16-2009 01:26 AM
Justify align in RTF? griffbrad Sony Reader 6 11-27-2006 03:25 PM


All times are GMT -4. The time now is 07:40 PM.


MobileRead.com is a privately owned, operated and funded community.