Adds a new chapter to the report.

        :param str title: Title of the chapter.
433103
def add_chapter(self, title):
        '''
        
        '''
        chap_id = 'chap%s' % self.chap_counter
        self.chap_counter += 1
        self.sidebar += '<a href="#%s" class="list-group-item">%s</a>\n' % (
            chap_id, title)
        self.body += '<h1 id="%s">%s</h1>\n' % (chap_id, title)
1160706
def set_title(self, title):
        
        assert isinstance(title, six.text_type)
        self._winapi(windll.kernel32.SetConsoleTitleW, title)
192689
def add(self, feature):
        
        self.features_.append(feature)
        self.num_features_ = len(self.features_)
1199989
def view_or_add(self, title):
        '''
        
        '''
        postinfo = MWiki.get_by_wiki(title)
        if postinfo:
            if postinfo.kind == self.kind:
                self.view(postinfo)
            else:
                return False
        else:
            self.to_add(title)
904644
def set_title(self, title=None):
        

        if not title:
            # TODO: https://bugreports.qt-project.org/browse/QTBUG-27084
            # titleTemplate = self.is_modified() and "{0} *" or "{0}"
            # title = titleTemplate.format(self.get_file_short_name())
            title = self.get_file_short_name()

        LOGGER.debug("> Setting editor title to '{0}'.".format(title))
        self.__title = title
        self.setWindowTitle(title)

        self.title_changed.emit()
        return True
808749
private void buildSectionTitle(MarkupDocBuilder markupDocBuilder, String title) {
        if (config.getPathsGroupedBy() == GroupBy.AS_IS) {
            markupDocBuilder.sectionTitleLevel3(title);
        } else {
            markupDocBuilder.sectionTitleLevel4(title);
        }
    }
709682
def setSubTitle(self, title):
        
        self._subTitleLabel.setText(title)
        self._subTitleLabel.adjustSize()
        self.adjustMargins()
948257
def add_output(self, name, value):
        
        self.template.add_output(Output(name, Value=value))
1257176
def set_title(self, title):
        

        self.title = title

        self.add_metadata('DC', 'title', self.title)
211553
def _add_title(hist: HistogramBase, vega: dict, kwargs: dict):
    """"""
    title = kwargs.pop("title", hist.title)
    if title:
        vega["title"] = {
            "text": title
        }
170222
def submit_text(self, title, text):
        
        return self._reddit.submit_text(self.display_name, title, text)
937635
def add_feature(self, feature):
        # type: (Any) -> int
        
        # A copy of self.feature_names is always made, because it might be
        # "owned" by someone else.
        # It's possible to make the copy only at the first call to
        # self.add_feature to improve performance.
        idx = self.n_features
        if isinstance(self.feature_names, (list, np.ndarray)):
            self.feature_names = list(self.feature_names)
            self.feature_names.append(feature)
        elif isinstance(self.feature_names, dict):
            self.feature_names = dict(self.feature_names)
            self.feature_names[idx] = feature
        elif self.feature_names is None:
            self.feature_names = {idx: feature}
        self.n_features += 1
        return idx
1038669
def addEntryText(self):
        
        if self.tableType():
            name = self.tableType().schema().displayName().lower()
            return 'add new {0}...'.format(name)
        return 'add new record...'
1115017
def addAttachment(self, title, attachment):
        
        self._attachments[title] = attachment
        self.resizeToContents()
1156693
def set_title(self, title = None):
        

        if title is None or type(title) is not str:
            raise KPError("Need a new title.")
        else:
            self.title = title
            self.last_mod = datetime.now().replace(microsecond=0)
            return True
1186730
def add_section(self, section):
        
        self._sections = self._ensure_append(section, self._sections)
428652
def add_header(self, name: str, value: _HeaderTypes) -> None:
        
        self._headers.add(name, self._convert_header_value(value))