Generalchanges, memoir | Errors about already defined Commands

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

changes, memoir | Errors about already defined Commands

Post by thedoctor818 »

Good Morning all.

What brings me back here this morning is that I am working on a publication (an Orthodox Prayer Book) and am currently using the memoir class. I really want to be able to keep that document class; however, I prefer the changes package for my editing rather than what the memoir class provides.

When I try to run both memoir and changes, I get the error message:

Code: Select all

command \added already defined changes.sty
Presumably I will get more errors of the same form such as:

Code: Select all

\replaced already defined
I am thinking that there should be a way for me to use only the \added, \deleted, and \changed commands from within the changes package and somehow ignore or rewrite those commands that have the same name in the memoir class.

Or perhaps, there is a way to expand upon the memoir class \added, \deleted, etc.

Here is my MWE:

Code: Select all

\documentclass[12pt,a4paper,twoside]{memoir}
\usepackage[british]{babel}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{titlesec}  %needs recent version of »titlesec«
\usepackage{xcolor}
\usepackage{amssymb}
\usepackage{indentfirst}
\usepackage{prayerbook}

\definechangeauthor[name={Michael Dykes},color=blue]{MD}

\title{AN ORTHODOX RULE OF PRAYER}
\author{Father Thomas Moore, Michael Dykes}

\begin{document}

\chapter{Saturday Evening Prayers}
Christ is risen from the dead, trampling down death by death, and upon those in the tombs bestowing life.\replaced[id=MD,remark=foo]{change the translation here}

\end{document}
Any help is greatly appreciated!
-Michael D

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

changes, memoir | Errors about already defined Commands

Post by localghost »

You can "un-define" the critical commands. A short example of how to achieve this is shown below.

Code: Select all

\documentclass[11pt,article]{memoir}
\usepackage[T1]{fontenc}
\let\added\undefined      % neutralize \added command
\let\deleted\undefined    % neutralize \deleted command
\usepackage{changes}

\title{Making the \texttt{changes} Package work with the \texttt{memoir} Class}
\author{thedoctor818}

\begin{document}
  \maketitle
\end{document}
The two lines to neutralize the commands in question have to be inserted before the changes packages. Finally have a look at Section 18.2 of the memoir user guide.


Thorsten
Joey1978
Posts: 1
Joined: Sat Jan 16, 2021 12:43 am

changes, memoir | Errors about already defined Commands

Post by Joey1978 »

Did you ever make that prayer book? I would love a copy. (9 years later :D )
Post Reply