3

I am new to LaTeX and I am using it for the first time while working on a paper and tried to include an acronym file. The code is as follows

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl} 

\usepackage[printonlyused]{acronym} % Acronyms 
\usepackage{fancyhdr} 

\begin{document}

\tableofcontents 
\newpage 

\section*{List of Acronyms} % 2cm distance between acronym and explanation 
\begin{acronym}[\hspace*{2cm}] 
\setlength{\itemsep}{-\parsep} 
\acro{FEM}{Finite Element Method} 
\acro{FFT}{Fast Fourier Transform} 
\end{acronym} 

\newpage 

\end{document}

It was working before but I have no idea why it is not displayed in my output file now.

1

You have not used any of the acronyms and requested that the list of acronyms only prints those that have been used by give the package the option printonlyused. Either remove that option writing simply

\usepackage{acronym}

or use some of the acronyms, e.g. via \ac{FEM}:

Sample output

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl} 

\usepackage[printonlyused]{acronym} % Acronyms 
\usepackage{fancyhdr} 

\begin{document}

\ac{FEM}

\section*{List of Acronyms} % 2cm distance between acronym and explanation 
\begin{acronym}[\hspace*{2cm}] 
\setlength{\itemsep}{-\parsep} 
\acro{FEM}{Finite Element Method} 
\acro{FFT}{Fast Fourier Transform} 
\end{acronym} 

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.