В латексе хотелось бы знать, как создать команду, чтобы она цитировала название журнала. На него не требуется гиперссылка. Например. если у меня есть следующий документ
\documentclass{article}
\usepackage{filecontents}
% Sample bibliography
\begin{filecontents}{\jobname.bib}
@article{AUTH2024,
author = {Author, A. and Author, B. and Author, C.},
title = {Title of the Article},
journal = {Journal Name},
year = {2024},
volume = {1},
pages = {1-10},
}
\end{filecontents}
\begin{document}
\citejournal{AUTH2024}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}
В приведенном выше документе должно быть напечатано только название журнала, которое будет происходить из элемента journal
в бибтексе citekey.
Спасибо.
Это очень просто, если вы переключитесь с бибтекса на библтекс:
\documentclass{article}
\usepackage{biblatex}
\begin{filecontents}{\jobname.bib}
@article{AUTH2024,
author = {Author, A. and Author, B. and Author, C.},
title = {Title of the Article},
journal = {Journal Name},
year = {2024},
volume = {1},
pages = {1-10},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareCiteCommand{\citejournal}{}{\printfield{journaltitle}}{}{}
\begin{document}
\cite{AUTH2024}
\citejournal{AUTH2024}
\printbibliography
\end{document}
Если вы предпочитаете бибтекс, вы можете использовать пакет usebib
:
\documentclass{article}
\usepackage{usebib}
\newbibfield{journal}
\begin{filecontents}{\jobname.bib}
@article{AUTH2024,
author = {Author, A. and Author, B. and Author, C.},
title = {Title of the Article},
journal = {Journal Name},
year = {2024},
volume = {1},
pages = {1-10},
}
\end{filecontents}
\bibinput{\jobname}
\begin{document}
\nocite{AUTH2024}% to make the entry appear in the bibliography
\usebibentry{AUTH2024}{journal}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}
Проголосовали за переход на TeX — LaTeX.