I am using the jmlr2e.sty package, used for papers submitted to a scientific journal. That sty file has the command \renewenvironment for redefining the \begin{abstract} command. Some lines below the usepackage{jmlr2e} I write \renewcommand\abstractname{newname} but it doesn't work. I have also tried \AtBeginDocument but the pdf keeps showing "Abstract" instead of "newname".

I am using Mac OS and Tex Live.

  • 1
    'Not working' is not a precise description... Is \abstractname defined at all? If it is not defined, then \renewcommand\abstractname would fail, of course. Please post a document that shows this issue and give a link to this jmlr2e.sty package
    – user31729
    Commented Oct 24, 2017 at 17:23

1 Answer 1


jmlr2e doesn't use \abstractname. Instead, it hard-codes the name:

%                               A B S T R A C T

%% use \begin{abstract} .. \end{abstract} for abstracts.
{\centerline{\large\bf Abstract}\vspace{0.7ex}%
  \bgroup\leftskip 20pt\rightskip 20pt\small\noindent\ignorespaces}%
{\par\egroup\vskip 0.25ex}

You can patch it with etoolbox:

enter image description here


% http://www.jmlr.org/format/jmlr2e.sty

% \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}




You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .