
Этот код строится на основерешение найдено здесь.
Как сделать так, чтобы таблица была сдвинута влево, как здесь:?
Вот код:
\documentclass{article}
\usepackage[acronym,toc]{glossaries}
\makeglossaries
\newacronym{uri}{URI}{Unique Resonance Identifier}
\newacronym{led}{LED}{light-emitting diode}
\newacronym{eeprom}{EEPROM}{electrically erasable programmable
read-only memory}
\glsaddall[types=\acronymtype]
\newglossarystyle{custom_acronyms}
{
\setglossarystyle{long3colheader}%
\renewcommand*{\glossaryheader}{}%
\renewcommand{\glossentry}[2]{%
\textbf{\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}}}
& \glossentrydesc{##1}
& ##2
\tabularnewline}%
}
\begin{document}
No acronyms here.
%\printglossaries
\printglossary[type=acronym,style=custom_acronyms]
\end{document}
решение1
На самом деле глоссарии используют longtable для генерации глоссариев, поэтому вам нужно сообщить LaTeX, что вам не нужны настройки полей таблицы по умолчанию. Это делается с помощью \setlength{\LTleft}{0pt}
. Если этого все еще недостаточно, вы можете сдвинуть таблицу еще левее, используя отрицательное число, например\setlength{\LTleft}{-5pt}
Вот мой MWE
\documentclass{article}
\usepackage[acronym,toc]{glossaries}
\makeglossaries
\newacronym{uri}{URI}{Unique Resonance Identifier}
\newacronym{led}{LED}{light-emitting diode}
\newacronym{eeprom}{EEPROM}{electrically erasable programmable
read-only memory}
\glsaddall[types=\acronymtype]
\newglossarystyle{custom_acronyms}
{
\setglossarystyle{long3col}%
\renewcommand*{\glossaryheader}{}%
\renewcommand{\glossentry}[2]{%
\textbf{\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}}}
& \glossentrydesc{##1}
& ##2
\tabularnewline}%
}
\begin{document}
Acronyms here (so that the glo file will be generated): \gls{uri}, \gls{led}, \gls{eeprom}.
%\printglossaries
\setlength\LTleft{-5pt}
\printglossary[type=acronym,style=custom_acronyms]
\end{document}
Который производит