BibTeX, biblatex and biberHow to remove the page number from the references pages

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
QC_
Posts: 2
Joined: Sat Mar 09, 2024 6:56 am

How to remove the page number from the references pages

Post by QC_ »

Hi, I am wondering how to remove the page number from the references pages.

thanks



q1.PNG
q1.PNG (27.58 KiB) Viewed 5854 times
This is main.tex

Code: Select all

% !Mode:: "TeX:UTF-8"

\documentclass[openany,twoside,fontset=none,UTF8]{ctexbook}








\input{setup/package}
\graphicspath{{figures/}} % 





\pagestyle{empty} 





%===================================== Cover and TOC =====================================
\begin{document}
\input{setup/format}
\frontmatter
%\input{setup/cover}


	\includepdf[pages={1-3}]{1.pdf}% 






\input{setup/content}
\input{setup/abstract}





\input{setup/nomenclature} % 

%======================================= Main Body =======================================
\mainmatter



\pagestyle{empty} 




\include{body/chapter_1}
\include{body/chapter_2}
\include{body/chapter_3}


\pagestyle{empty} 

\include{body/chapter_4}






 
%======================================= Reference =======================================
\five\selectfont
\addcontentsline{to}{chapter}{References}
\bibliography{bib/mybib}






\include{appendix/acknowledgements}



\pagestyle{empty} 



%======================================= Appendix ========================================
\include{setup/formatApp}
%\include{appendix/appA}
%\include{appendix/appB}
%\include{appendix/achievements}
%\include{appendix/committeedecision}
%\include{appendix/reviewerlist}
%\include{appendix/authorization}

\end{document} 
This is format.tex

Code: Select all

% !Mode:: "TeX:UTF-8" 

%========================================= Font ==========================================
% 
\newcommand{\three}{\fontsize{16pt}{16pt}\selectfont}      % 
\newcommand{\four}{\fontsize{15pt}{15pt}\selectfont}     % 
\newcommand{\five}{\fontsize{14pt}{14pt}\selectfont}       % 
\newcommand{\six}{\fontsize{12pt}{12pt}\selectfont}      % 
\newcommand{\okfive}{\fontsize{10.5pt}{10.5pt}\selectfont}   % 
\newcommand{\smallfive}{\fontsize{9pt}{9pt}\selectfont}        % 

% 
\makeatletter
\renewcommand\normalsize{
	\@setfontsize\normalsize{12pt}{12pt}
	\setlength\abovedisplayskip{8pt}
	\setlength\abovedisplayshortskip{8pt}
	\setlength\belowdisplayskip{\abovedisplayskip}
	\setlength\belowdisplayshortskip{\abovedisplayshortskip}
	\let\@listi\@listI
}

% 
\renewcommand{\footnotesize}{\wuhao}

% 
\setlength{\parindent}{2em}
\setlength{\parskip}{3pt plus1pt minus1pt}
\def\defaultfont{\renewcommand{\baselinestretch}{1.5}\normalsize\selectfont}

% 
\renewcommand{\CJKglue}{\hskip 0.56pt plus 0.08\baselineskip}

% 
\predisplaypenalty=0
\allowdisplaybreaks[4]

% 
\raggedbottom

%========================================= TOC ===========================================
% 
\renewcommand\contentsname{content}
\titlecontents{chapter}[3.8em]{\hspace{-3.8em}}{\thecontentslabel~~}{}{\titlerule*[4pt]{.}\contentspage}
\dottedcontents{section}[38pt]{}{22pt}{0.3pc}
\dottedcontents{subsection}[70pt]{}{32pt}{0.3pc}

% 
\renewcommand*\l@chapter{\@dottedtocline{0}{0em}{5em}}
\renewcommand*\l@section{\@dottedtocline{1}{1em}{1.8em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{2.8em}{2.5em}}
\def\@dotsep{0.75}           % 
\setlength\leftmargini {50pt}
\setlength\leftmarginii {50pt}
\def\engcontentsname{CONTENTS}
\newcommand\tableofengcontents{
	\@restonecolfalse
	\chapter*{\engcontentsname  %
		\@mkboth{%
			\engcontentsname}{\engcontentsname}}
	\@starttoc{toe}%
	\if@restonecol\twocolumn\fi
}

%======================================= Chapter =========================================
% 
\renewcommand\chaptername{\thechapter}
\ctexset{chapter={name={,},number={\arabic{chapter}}}}
\setcounter{secnumdepth}{4} \setcounter{tocdepth}{2}
\titleformat{\chapter}{\center\three}{\chaptertitlename}{0.8em}{}
\titlespacing{\chapter}{0pt}{-5.3mm}{4.2mm}
\titleformat{\section}{\three}{\thesection}{0.5em}{}
\titlespacing{\section}{0pt}{3mm}{3mm}
\titleformat{\subsection}{\three}{\thesubsection}{0.5em}{}
\titlespacing{\subsection}{2.13em}{3mm}{3mm}

% 
\def\BiChapter{\relax\@ifnextchar [{\@BiChapter}{\@@BiChapter}}
\def\@BiChapter[#1]#2#3{\chapter[#1]{#2}
    \addcontentsline{toe}{chapter}{\four \thechapter\hspace{0.5em} #3}}
\def\@@BiChapter#1#2{\chapter{#1}
    \addcontentsline{toe}{chapter}{\four \thechapter\hspace{0.5em}{\boldmath #2}}}

% 
\newcommand{\BiSection}[2]{
	\section{#1}
	\addcontentsline{toe}{section}{\protect\numberline{\csname thesection\endcsname}#2}
}
\newcommand{\BiSubsection}[2]{
	\subsection{#1}
	\addcontentsline{toe}{subsection}{\protect\numberline{\csname thesubsection\endcsname}#2}
}
\newcommand{\BiSubsubsection}[2]{
    \subsubsection{#1}
    \addcontentsline{toe}{subsubsection}{\protect\numberline{\csname thesubsubsection\endcsname}#2}
}

% 
\newcommand{\BiAppChapter}[2]{
	\phantomsection 
	\chapter{#1}
	\addcontentsline{toe}{chapter}{\four Appendix \thechapter~~#2}
}
\newcommand{\BiAppendixChapter}[2]{
	\phantomsection
	\markboth{#1}{#1}
	\addcontentsline{toc}{chapter}{\four #1}
	\addcontentsline{toe}{chapter}{\four #2}  \chapter*{#1}
}

% 
\bibliographystyle{bib/gbt-7714-2015-numerical}
\addtolength{\bibsep}{-0.8em}
%\renewcommand{\bibname}{References}% 











%======================================== Header =========================================
% 
%\newcommand{\makeheadrule}{
%\rule[6pt]{\textwidth}{0.5pt} \\[-17.5pt]
%\rule{\textwidth}{0.5pt}}
%\renewcommand{\headrule}{       {\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi \makeheadrule}}
%\pagestyle{fancyplain}






% 
%\renewcommand{\chaptermark}[1]{\markboth{\chaptertitlename~~\ #1}{}}
%\fancyhf{}
%\fancyhead[CO]{\wuhao \leftmark}
%\fancyhead[CE]{\wuhao thesis}
%\fancyfoot[LE,RO]{\xiaowu \thepage}









%======================================= Theorem =========================================
% 
\theoremstyle{plain}
\theoremheaderfont{\hei\rmfamily}
\theorembodyfont{\rmfamily}
\theoremseparator{:}

% 
\setlength{\theorempreskipamount}{8pt}
\setlength{\theorempostskipamount}{8pt}

% 
\theoremsymbol{$\Diamond$} \newtheorem{definition}{\hskip 2em \hei Diamond}[chapter]
\theoremsymbol{$\blacklozenge$} \newtheorem{example}{\hskip 2em \hei blacklozenge}[chapter]
\theoremsymbol{$\square$} \newtheorem{theorem}{\hskip 2em \hei square}[chapter]
\theoremsymbol{$\blacksquare$} \newtheorem*{proof}{\hskip 2em \hei blacksquare}

%========================================= FTE ===========================================
% 
%
%
\renewcommand{\thefigure}{\arabic{chapter}-\arabic{figure}}
\renewcommand{\thesubfigure}{(\alph{subfigure})}
\renewcommand{\p@subfigure}{\thefigure~}
\renewcommand{\thetable}{\arabic{chapter}-\arabic{table}}
\renewcommand{\theequation}{\arabic{chapter}-\arabic{equation}}

% 
\newcolumntype{Y}{>{\centering\arraybackslash}X}

% 
\captionnamefont{\five}
\captiontitlefont{\five}
\captiondelim{~~}
\hangcaption
\renewcommand{\subcapsize}{\five}
\setlength{\abovecaptionskip}{0pt}
\setlength{\belowcaptionskip}{0pt}

% 
\renewcommand{\Re}{\mathrm{Re}}
\renewcommand{\Im}{\mathrm{Im}}
\newcommand{\mbf}[1]{\mathbf{#1}}
\newcommand{\Exp}{\mathrm{E}}
\newcommand{\dif}{\mathrm{d}}
\newcommand{\seq}[2]{#1_1,#1_2,\cdots,#1_#2}
\newcommand{\iprod}[2]{\langle #1,#2 \rangle}

% 
\setitemize{leftmargin=3em,itemsep=0em,partopsep=0em,parsep=0em,topsep=-0em}
\setenumerate{leftmargin=3.2em,itemsep=0em,partopsep=0em,parsep=0em,topsep=0em}

%  \end{publist}
\newcounter{pubctr} %
\newenvironment{publist}{\wuhao\selectfont
	\begin{list}{[\arabic{pubctr}]}{
     \usecounter{pubctr}
     \setlength{\leftmargin}{2em}		% 
     \setlength{\labelsep}{0.8em}		% 
     \setlength{\parsep}{0ex}			% 
     \setlength{\itemsep}{0ex}			% 
    }}
{\end{list}}%

% 
\renewcommand{\algorithmcfname}{a}
\renewcommand{\algocf@captiontext}[2]{\wuhao#1\algocf@typo ~ \AlCapFnt{}#2}
\renewcommand\thealgocf{\csname the\algocf@within\endcsname-\@arabic\c@algocf}
\SetAlCapSty{textrm}
\SetAlCapSkip{1ex}
\makeatother

% 
\renewcommand{\lstlistingname}{b}
\renewcommand{\thelstlisting}{\arabic{chapter}-\arabic{lstlisting}}

% 
\newcommand{\citeup}[1]{\textsuperscript{\cite{#1}}}
%======================================== Other ==========================================
% 
\def\temp{\relax}
\let\temp\addcontentsline
\gdef\addcontentsline{\phantomsection\temp}
\gdef\hitempty{}
deal with

Code: Select all

%======================================= Reference =======================================
\thispagestyle{empty}

\pagestyle{empty} 
\wuhao\selectfont
\thispagestyle{empty}

\pagestyle{empty} 
\addcontentsline{toc}{chapter}{参考文献}
\thispagestyle{empty}

\pagestyle{empty} 
\addcontentsline{toe}{chapter}{References}
\thispagestyle{empty}

\pagestyle{empty} 
\bibliography{bib/mybib}
\thispagestyle{empty}

\pagestyle{empty} 

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
QC_
Posts: 2
Joined: Sat Mar 09, 2024 6:56 am

How to remove the page number from the references pages

Post by QC_ »

deal with

Code: Select all

%======================================= Reference =======================================
\thispagestyle{empty}

\pagestyle{empty} 
\wuhao\selectfont
\thispagestyle{empty}

\pagestyle{empty} 
\addcontentsline{toc}{chapter}{参考文献}
\thispagestyle{empty}

\pagestyle{empty} 
\addcontentsline{toe}{chapter}{References}
\thispagestyle{empty}

\pagestyle{empty} 
\bibliography{bib/mybib}
\thispagestyle{empty}

\pagestyle{empty} 
Post Reply