
Ich versuche, mein Tabellenverzeichnis und mein Abkürzungsverzeichnis auf die gleiche Weise zu formatieren, sodass die Einrückung der Akronyme der Einrückung der Tabellenverweise entspricht. Allerdings hatte ich auch bei Verwendung eines anderen Glossarstils wie „long“ keinen Erfolg.
\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}
Irgendwelche Ideen?
Vielen Dank im Voraus!
Antwort1
Verwenden Sie tocloft
und, wodurch die Einrückung der Einträge auf \setlength{cfttabindent}{0em}
reduziert wird , sodass überhaupt keine Einrückung mehr vorhanden ist.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}
Antwort2
Sie können auch das Paket verwenden tocbasic
(Teil des KOMA-Script-Pakets):
\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}
Oder wenn Sie eine KOMA-Script-Klasse verwenden wie indeine andere Frage:
\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}