
我試圖以相同的方式格式化我的表格列表和縮寫列表,以便首字母縮寫的縮排與表格引用的縮排相同。然而,即使使用不同的術語表樣式(例如 long),我也沒有運氣。
\documentclass{article}
\usepackage{longtable,array}
\usepackage[acronym,nonumberlist,nomain,nopostdot]{glossaries}
\include{glossary}
%\setglossarystyle{long}
\makeglossaries
\newacronym{SNA}{SNA}{some nice acronym}
\begin{document}
\printglossary[title={List of Abbreviations},type=\acronymtype]
\listoftables
\begin{longtable}{|l|}
\hline
... \\ \hline
\caption{Some nice table}
\label{tbl:table1}
\end{longtable}
\end{document}
有任何想法嗎?
預先非常感謝您!
答案1
使用tocloft
and會將條目\setlength{cfttabindent}{0em}
的縮排減少為,因此根本沒有縮排。table
0em
\documentclass{article}
\usepackage{longtable,array}
\usepackage{tocloft}
\usepackage[acronym,nonumberlist,nomain,nopostdot]{glossaries}
\setlength{\cfttabindent}{0em}
%\include{glossary}
%\setglossarystyle{long}
\makeglossaries
\newacronym{SNA}{SNA}{some nice acronym}
\begin{document}
\gls{SNA}
\printglossary[title={List of Abbreviations},type=\acronymtype]
\listoftables
\begin{longtable}{|l|}
\hline
... \\ \hline
\caption{Some nice table}
\label{tbl:table1}
\end{longtable}
\end{document}
答案2
您也可以使用套件tocbasic
(KOMA-Script 套件的一部分):
\documentclass{article}
\usepackage{longtable,array}
\usepackage[acronym,nonumberlist,nomain,nopostdot]{glossaries}
%\include{glossary}
%\setglossarystyle{long}
\makeglossaries
\newacronym{SNA}{SNA}{some nice acronym}
\usepackage{tocbasic}[2016/06/14]
\DeclareTOCStyleEntry[indent=0pt]{tocline}{table}
\begin{document}
\printglossary[title={List of Abbreviations},type=\acronymtype]
\listoftables
\begin{longtable}{|l|}
\hline
... \\ \hline
\caption{Some nice table}
\label{tbl:table1}
\end{longtable}
\end{document}
或者,如果您使用的是 KOMA-Script 類,如你的另一個問題:
\documentclass[oneside,
listof=totoc% <- all list titles goes to TOC
]{scrbook}[2016/06/14]
\DeclareTOCStyleEntry[indent=0pt]{tocline}{table}
\usepackage[acronym,nonumberlist,nomain,nopostdot,
toc% <- added
]{glossaries}
\makeglossaries
\newacronym{SNA}{SNA}{some nice acronym}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\listoftables
\printglossary[title={List of Abbreviations},type=\acronymtype]
\chapter{Chapter One}
\gls{SNA}
\captionof{table}{A table caption}
\end{document}