I'm working on the translation of a German book and have created the following macro so as to link some translated words and expressions to their original, which then I print at the end of the document:



%%% Regulating dictionary entires

    \begin{enumerate}[label=Pág. \pageref{#1} -]
            \subitem {#3}


%%% Excerpt of Translated Text

Ele é um homem de especial \DicEntry{redlichkeit}{nobreza}...

%%% Excerpt of Dictionary Entries

\DicShow{redlichkeit}{Redlichkeit, die (-en):}
    Mit guten Absichten und großem Ernst.


It looks like this:

enter image description here

It works fine all right, but I've been wondering if there's any way to make it more efficiente, as in thus:

  • A command that reads back the text and outputs all the Dictionary Entries automatically, somewhat like the endnote package.
  • Outputting the glossary to a separate file, all of which I'll combine later.

I appreciate any ideas.

New contributor
Daniel Hadad is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Welcome to TeX.SE! Can you please make your code snippet compilable resulting in the screenshot you showed? BTW: German word "Redlichkeit" is written with capital R. :-) – Kurt Mar 14 at 13:33
  • On your deleted “answer”: to use commands with @ in their names you need to surround the definition with \makeatletter and \makeatother. – Phelype Oleinik Mar 15 at 23:07

Your Answer

Daniel Hadad is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.