View Single Post
Old 08-08-2023, 10:03 PM   #8783
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by JimmXinu View Post
"different layout" meaning? You can set it per site or even per story in personal.ini.
I mean I wanted to set a chapter title pattern for the embedded TOC and a different one for the chapter HTML. I've tried ${origchapter}/${tocchapter}/${title} in chapter_start and the output was the same as ${chapter} since the pattern was being overwritten by chapter_title_x_pattern.

Code:
[archiveofourown.org]

## The basic pattern used when not using add_chapter_numbers or
## mark_new_chapters
chapter_title_def_pattern:${title} [${date}]

## Pattern used with add_chapter_numbers, but not mark_new_chapters
chapter_title_add_pattern:${number}. ${title} [${date}]

## Pattern used with mark_new_chapters, but not add_chapter_numbers
## (new) is just text and can be changed.
chapter_title_new_pattern:${title} [${date}] | (NEW)

## Pattern used with add_chapter_numbers and mark_new_chapters
## (new) is just text and can be changed.
chapter_title_addnew_pattern:${number}. ${title} [${date}] | (NEW)

chapter_start:<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${chapter}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 <meta name="chapterurl" content="${url}"></meta>
 <meta name="chapterorigtitle" content="${origchapter}"></meta>
 <meta name="chaptertoctitle" content="${tocchapter}"></meta>
 <meta name="chaptertitle" content="${chapter}"></meta>
 </head>
 <body class="fff_chapter">
 <h3 class="fff_chapter_title">${chapter}</h3>
 <div class="fff_chapter_title small hr-sect">${date}</div>

[overrides]

strip_chapter_numbers:true
add_chapter_numbers:true
mark_new_chapters:latestonly
(Attached is result)

But what I want is ${number}. ${title} [${date}] on embedded TOC, but only ${number}. ${title} on the EPUB output.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	147
Size:	314.9 KB
ID:	203066  
culytera is offline   Reply With Quote