Skip to content

Commit

Permalink
Support the bibentry package (fixes #40)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Sep 27, 2022
1 parent 0e20e36 commit 6f7c166
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Added
- Support for the `bibentry` package

### Fixed
- Height and width values for `amlccd` style

Expand Down
17 changes: 16 additions & 1 deletion achemso.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,18 @@
%\end{macro}
%\end{macro}
%
% Ensure \pkg{bibentry} works
% \begin{macrocode}
\AtBeginDocument{
\@ifpackageloaded{bibentry}
{%
\patchcmd{\BR@nobib}{thebibliography}{mcitethebibliography}
{}{}%
}
{}%
}
% \end{macrocode}
%
%\begin{macro}{\acs@bib@file}
%\begin{macro}{\acs@bib@message}
%\begin{macro}{\acs@bib@name}
Expand Down Expand Up @@ -1239,6 +1251,7 @@
\RequirePackage[margin=2.54cm]{geometry}
\RequirePackage{
caption,
etoolbox,
float,
graphicx,
setspace,
Expand Down Expand Up @@ -4937,7 +4950,9 @@ FUNCTION { end.bibitem } {
if$
write$
newline$
"\EndOfBibitem" write$
"\EndOfBibitem{}" write$
newline$
newline$
}
% Formatting names: authors and editors are not quite the same,
Expand Down

0 comments on commit 6f7c166

Please sign in to comment.