答案1
要将章节中的参考书目标题更改为report
章节中的参考书目标题,请使用与我如何创建像章节一样的参考书目?,即添加
\usepackage{etoolbox}
\patchcmd{\thebibliography}{\chapter*}{\section*}{}{}
到文档-->设置-->序言。
除非你正在使用natbib
,在这种情况下你需要重新定义\bibsection
,因为该宏负责将标题放置在thebibliography
创建的环境中natbib
。例如,将其添加到序言中:
\AtBeginDocument{\renewcommand\bibsection{%
\section*{\bibname\ifx\@mkboth\@gobbletwo\else\markright{\MakeUppercase{\bibname}}\fi}%
}}
tocbibind
但如果您使用这个将参考书目添加到目录,则此方法不起作用。如果您正在使用该包,请将其添加到序言中:
\AtBeginDocument{\renewcommand\bibsection{\t@cb@bsection}}
要删除标题,请按照https://tex.stackexchange.com/a/22654/在 LyX 中也可以完美运行。唯一的区别是,当您使用该类时report
,参考书目标题是\chapter*
,因此您需要重新定义\chapter
not \section
。
要修改字体和间距,可以使用更改特定章节的字体大小。\usepackage{titlesec}
在文档-->设置-->序言中添加,并在ERT中添加\titleformat
/代码。\titlespacing
示例.lyx
文件(将文本复制到文本编辑器,保存为something.lyx
):
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass report
\begin_preamble
\usepackage{titlesec}
\end_preamble
\use_default_options true
\begin_modules
theorems-ams
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Standard
foo bar
\begin_inset CommandInset citation
LatexCommand cite
key "article-full"
literal "false"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
begingroup
\end_layout
\begin_layout Plain Layout
%% the next code line removes the heading altogether
\end_layout
\begin_layout Plain Layout
%
\backslash
renewcommand{
\backslash
chapter}[2]{
\backslash
cleardoublepage}%
\end_layout
\begin_layout Plain Layout
%
\end_layout
\begin_layout Plain Layout
%% the next code line changes the font to
\backslash
Huge bold and sans serif
\end_layout
\begin_layout Plain Layout
\backslash
titleformat{
\backslash
chapter}{}{}{0pt}{
\backslash
normalfont
\backslash
Huge
\backslash
sffamily
\backslash
bfseries}
\end_layout
\begin_layout Plain Layout
%% and finally this one is for setting the spacing
\end_layout
\begin_layout Plain Layout
\backslash
titlespacing*{
\backslash
chapter}{0pt}{0pt}{10pt}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset bibtex
LatexCommand bibtex
btprint "btPrintCited"
bibfiles "xampl"
options "plain"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
endgroup
\end_layout
\end_inset
\end_layout
\end_body
\end_document