Skip to content

Commit

Permalink
Added new command 'acspl' to resolve hyperref problems when manually …
Browse files Browse the repository at this point in the history
…unsetting acronyms
  • Loading branch information
MariusStuber committed Feb 6, 2022
1 parent eafdff1 commit de65a80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Sollte die gewünschte Kurzform von dem verwendeten Code-Kürzel abweichen, kann
Sollte der Kasus des Akronyms nicht in den ersten Satz passen, kann das Ausschreiben der langen Form des Akronyms blockiert werden und das Wort entsprechend selbst geschrieben werden.

```LaTeX
\acused{abc} Alphabeten (\acp{abc})
Alphabeten (\acspl{abc})
```

#### bibliography.bib
Expand Down
8 changes: 8 additions & 0 deletions format.tex
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@

\usepackage[printonlyused]{acronym}

% Set label to create hyperlink from list of acronyms and print short form
\makeatletter
\newcommand{\acspl}[1]{%
\AC@placelabel{#1}%
\acs{#1}%
}
\makeatother

%----------------------------------------------------------
% Appendix
%----------------------------------------------------------
Expand Down

0 comments on commit de65a80

Please sign in to comment.