View Single Post
Old 01-08-2011, 08:40 AM   #381
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Quote:
Originally Posted by flo_tm View Post
After searching the forum and fiddling a little bit myself, I can't seem to solve two little problems: I want to customize the catalog creation so the publication date in parentheses is removed and every author gets some empty space before the start of his text block.
Instructions for creating a local copy of the catalog resources, from the first post in this thread (revised):
Spoiler:

If you wish to change the default appearance of the Description pages, you can create a local copy of the template and CSS files which will override the default layout. This requires familiarity with HTML and CSS.
  • Open your calibre configuration directory - Preferences|Advanced|Miscellaneous|Open calibre configuration directory.
  • Within this directory, create a subdirectory resources (if it doesn't already exist).
  • Within the newly created resources directory, create a subdirectory catalog.
  • Open a new file system window, navigate to the default catalog resources folder:
    • OSX: Applications/calibre/Contents/Resources/resources/catalog
    • Windows:Program Files\Calibre2\resources\catalog
  • Copy all of the files from the default catalog resources folder to the newly created resources/catalog directory within your calibre configuration directory.
  • Edit template.xhtml and stylesheet.css to your preferences. If you want to start over, copy from the default template and CSS files again. If you want to discard your customizations, delete the catalog subfolder from your calibre configuration resources directory.

If you're referring to the year of publication appended to the book title in the 'Authors' list, it is always included. If you want a switch for that, create an enhancement request.

If you're referring to the year of publication inserted in the book's description page, open template.xhtml in your text editor:
Change
Code:
<td class="date">{pubyear}</td>
to
Code:
<td class="date"></td>
To add extra space between author listings, open stylesheet.css in your text editor:
Change
Code:
p.author_index {
	font-size:large;
	font-weight:bold;
	text-align:left;
	margin-top:0px;     /* controls spacing between author groups */
	margin-bottom:-2px;
	text-indent: 0em;
	}
to
Code:
p.author_index {
	font-size:large;
	font-weight:bold;
	text-align:left;
	margin-top:8px;  /* controls spacing between author groups */
	margin-bottom:-2px;
	text-indent: 0em;
	}
The margin-top: rule controls the spacing between author groups. Any non-zero value will increase the space.

Quote:
By default, the publication date is always attached after the title - and this date is never correct.
I need an example of the incorrect date.

G

Last edited by GRiker; 01-08-2011 at 09:51 AM.
GRiker is offline