Quote:
Originally Posted by JimmXinu
"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.