![符号列表](https://linux22.com/image/388035/%E7%AC%A6%E5%8F%B7%E5%88%97%E8%A1%A8.png)
当我成功生成符号列表时,也发生了一些不想要的事情
- 当我没有给出任何命令时,图形列表和符号列表之间有一张空白页。
- 符号列表末尾出现 [symbols,title{List of Symbols}]
- 如何获取页面中心符号列表的标题
我的代码是;
\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\hyphenation{signifi-cant im-proved tele-communication}
\usepackage[hidelinks]{hyperref}
\hypersetup{colorlinks=true,allcolors=black}
\usepackage{fancyhdr}
\fancypagestyle{fancyhf}{
\fancyhead[L]{\nouppercase{\textbf{\leftmark}}}
\fancyhead[R]{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.1pt}
}
\fancypagestyle{plain}{
\fancyhead{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
}
\usepackage{tocloft}
% Center ToC heading
\renewcommand{\cfttoctitlefont}{\hfill\bfseries\LARGE}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\contentsname}{Table of Contents}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % for chapters
% Make \chapter leaders bold
\let\oldcftchapleader\cftchapleader
\renewcommand{\cftchapleader}{\bfseries\oldcftchapleader}
\usepackage{datetime}
\usepackage{enumitem}
\usepackage[printonlyused]{acronym}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage[ruled,vlined]{algorithm2e}
\newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}}
\SetCommentSty{mycommfont}
\usepackage{caption}
\usepackage{graphicx}
\graphicspath{{fig/}{graphs/}}
\usepackage[backend=bibtex,style=ieee,sorting=none,minnames=1]{biblatex}
\usepackage{array}
\usepackage[table]{xcolor}
\usepackage[automake,symbols,nonumberlist]{glossaries-extra}
\makeglossaries
\loadglsentries{symbols}
\usepackage[left=1.5in,right=1in,top=1in,bottom=1in]{geometry}
\renewcommand{\baselinestretch}{1.5}
\addbibresource{references.bib}
%custom commands
\renewcommand{\vec}[1]{\boldsymbol{\mathit{#1}}}
% Title Page
\title{MS Thesis}
\author{Salman}
\date{\today --- \currenttime}
\begin{document}
%\maketitle
\pagenumbering{roman}
\pagestyle{plain}
\setcounter{page}{9}
\include{abstract}
\begin{normalsize}
\tableofcontents
\newpage
% \ifx\totalfigures
\listoffigures
% \fi
\end{normalsize}
%\listoftables
\ifx\totaltables
\listoftables
\fi
\include{abbreviations}
{\renewcommand{\addcontentsline}[3]{}
\printglossaries[symbols,title={List of Symbols}]}
\pagenumbering{arabic}
\pagestyle{fancyhf}
\begin{normalsize}
\chapter{Introduction}\label{chap_1}
\include{chap_1}
\chapter{Background Theory and Literature Review}\label{chap_2}
\include{chap_2}
\renewcommand*{\UrlFont}{\rmfamily}
\printbibliography
{\renewcommand{\addcontentsline}[3]{}
\chapter{sample symbols}}
\include{sym_rough}
\end{normalsize}
\end{document}
并且 symbol.tex 文件是
\glsxtrnewsymbol[description={Lower case, boldface and italic letter represents a vector}]{a}{\ensuremath{\textbf{\textit{a}}}}
\glsxtrnewsymbol[description={Upper case, boldface and italic letter represents a matrix}]{A}{\ensuremath{\textbf{\textit{A}}}}
\glsxtrnewsymbol[description={$k^{th}$ user's information sequence}]{sk}{\ensuremath{\textbf{\textit{s}}_{k}}}
\glsxtrnewsymbol[description={$t^{th}$ information symbol of $k^{th}$ transmitter}]{skt}{\ensuremath{s_{k}(t)}}
\glsxtrnewsymbol[description={$t^{th}$ symbol at the output of the equalizer}]{tildeskt}{\ensuremath{s_{k}(t)}}