Reputation: 115
Currently I am defining acronys at the start of each chapter. I want to make a separate file for all acronyms.
\documentclass{scrbook}
\usepackage[acronym]{glossaries}
\makeglossaries
\begin{document}
\mainmatter
\printglossary[type=\acronymtype]
\include{ch1}
\include{ch2}
\end{document}
\chapter{ch1}
\acrfull{WLAN} is used as a trial for my example and problem
\newacronym{WLAN}{WLAN}{Wireless Local Area Network}
\chapter{ch2}
\acrfull{LAN} is used as a trial for my example and problem
\newacronym{LAN}{LAN}{Local Area Network}
How can I make all the acronyms in a separate file lets say acronyms.tex? And how to call them in the main file?
Upvotes: 3
Views: 2844
Reputation: 38967
You can have them in a separate file like this:
\documentclass{scrbook}
\usepackage[acronym]{glossaries}
\makeglossaries
\input{acronyms}
\begin{document}
\mainmatter
\printglossary[type=\acronymtype]
\chapter{ch1}
\acrfull{WLAN} is used as a trial for my example and problem
\chapter{ch2}
\acrfull{LAN} is used as a trial for my example and problem
\end{document}
with acronyms.tex
:
\newacronym{WLAN}{WLAN}{Wireless Local Area Network}
\newacronym{LAN}{LAN}{Local Area Network}
Upvotes: 3