Re: Verwaiste Literatureinträge identifizieren

Dirk Hünniger (via tex-d-l Mailing List) <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Hallo Wolfgang hier mal mein minimalbeispiel mit python3


s="""\\documentclass[12pt]{article}
\\begin{document}

\\cite{adolf}
\\cite{claus}
\begin{thebibliography}{<longest label>}

\\bibitem{adolf} Adolf
\\bibitem{berta} Berta
\\bibitem{claus} Claus
\\bibitem{dirk} Dirk

\\end{thebibliography}

\\end{document}
"""
cites={}
bibitems={}
for x in s.split("\\cite{")[1:]:
   cites[x.split("}")[0]]=None

for x in s.split("\\bibitem{")[1:]:
   bibitems[x.split("}")[0]]=None

for k,v in bibitems.items():
   if not k in cites:
     print (k)

# Ausgabe: beta dirk

On 25.01.23 13:27, Wolfgang Hugemann (via tex-d-l Mailing List) wrote:
>>
>> kann man das nicht anhand des log-Files rausfinden, indem man nach 
>> Einträgen wie
>>     LaTeX Warning: Citation `XYZ' on page 242 undefined on input line 
>> 4551.
>> sucht?
> Ja, so herum ist es einfach. Da stehen dann ja auch Fragezeichen im 
> PDF. Aber herauszufinden, welche Einträge im Literaturverzeichnis 
> 'ungenutzt' sind, ist etwas schwieriger.
>
> Wolfgang Hugemann
>
>
>

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.