How to resolve clashing definitions of comment in comment.sty and changes.sty without affecting either's interface? The 2019 Stack Overflow Developer Survey Results Are InMark portions of text without affecting spacingComment out lines without using % and comment enviromentGenerating a list with macros using tasks packageCreating removable comment command without extra spacecomment-package and macro definitionsLaTeX error trying to close comment environmentPutting custom environment (using environ package) start and ends in commandsAlias for an lstlisting environmentA way to “execute” only latex procedural code (def, let) in a sequence ignoring the rest?mapsto and function definition / definition environment
Are there any other methods to apply to solving simultaneous equations?
What did it mean to "align" a radio?
Output the Arecibo Message
Can someone be penalized for an "unlawful" act if no penalty is specified?
How to deal with fear of taking dependencies
Is three citations per paragraph excessive for undergraduate research paper?
Where to refill my bottle in India?
The difference between dialogue marks
What is the meaning of Triage in Cybersec world?
Is bread bad for ducks?
If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?
Is there any way to tell whether the shot is going to hit you or not?
Is "plugging out" electronic devices an American expression?
Am I thawing this London Broil safely?
How to notate time signature switching consistently every measure
Multiply Two Integer Polynomials
What tool would a Roman-age civilization have for the breaking of silver and other metals into dust?
Why is the maximum length of OpenWrt’s root password 8 characters?
Can we generate random numbers using irrational numbers like π and e?
Why didn't the Event Horizon Telescope team mention Sagittarius A*?
Button changing it's text & action. Good or terrible?
Loose spokes after only a few rides
Which Sci-Fi work first showed weapon of galactic-scale mass destruction?
Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?
How to resolve clashing definitions of comment in comment.sty and changes.sty without affecting either's interface?
The 2019 Stack Overflow Developer Survey Results Are InMark portions of text without affecting spacingComment out lines without using % and comment enviromentGenerating a list with macros using tasks packageCreating removable comment command without extra spacecomment-package and macro definitionsLaTeX error trying to close comment environmentPutting custom environment (using environ package) start and ends in commandsAlias for an lstlisting environmentA way to “execute” only latex procedural code (def, let) in a sequence ignoring the rest?mapsto and function definition / definition environment
I'm writing a package that uses both changes (v3.1.2) and comment (v3.8), and I'd like to expose their functionality to consumers of my package without having to modify either one's interface.
The problem is that both changes.sty
and comment.sty
define comment
. Hence
documentclassarticle
usepackagecomment
usepackagechanges
begindocumentenddocument
throws the error
Command comment already defined.
I understand this can be fixed using savesym by (essentially) modifying changes.sty
's interface, e.g.
documentclassarticle
usepackagesavesym
usepackagechanges
savesymbolcomment % rename comment -> origcomment
usepackagecomment
begindocument
origcommentpdf comment using 'changes.sty'
begincomment
code comment using 'comment.sty'
endcomment
enddocument
Alternatively, comment.sty
provides excludecomment
for defining custom comment environments, e.g.
documentclassarticle
usepackagesavesym
usepackagecomment
savesymbolcomment
excludecommentmycomment
usepackagechanges
begindocument
commentpdf comment using 'changes.sty'
beginmycomment
code comment using 'comment.sty'
endmycomment
enddocument
but changes.sty
breaks the default comment
environment.
Is it possible to build a layer in my package which mediates between changes.sty
's comment
command and comment.sty
's comment
environment? The aim is to expose the original interface of each to a consumer of my package.
The two clashing definitions are as follows:
% changes.sty line 791
newcommandcomment[2][@empty]%
setkeysChanges@comment#1%
Changes@output%
comment%
Changes@comment@id%
%
%
#2%
changescommentname%
#2%
% comment.sty line 241
defexcludecomment
#1messageExcluding comment '#1'%
csargdef#1endgroup messageExcluding '#1' comment.%
begingroup
DefaultCutFileName defProcessCutFile%
defThisComment####1ProcessComment#1%
csargdefAfter#1CommentCloseAndInputCutFile endgroup
CommentEndDef#1
% ...
% line 292
excludecommentcomment
macros environments package-writing comments changes
New contributor
add a comment |
I'm writing a package that uses both changes (v3.1.2) and comment (v3.8), and I'd like to expose their functionality to consumers of my package without having to modify either one's interface.
The problem is that both changes.sty
and comment.sty
define comment
. Hence
documentclassarticle
usepackagecomment
usepackagechanges
begindocumentenddocument
throws the error
Command comment already defined.
I understand this can be fixed using savesym by (essentially) modifying changes.sty
's interface, e.g.
documentclassarticle
usepackagesavesym
usepackagechanges
savesymbolcomment % rename comment -> origcomment
usepackagecomment
begindocument
origcommentpdf comment using 'changes.sty'
begincomment
code comment using 'comment.sty'
endcomment
enddocument
Alternatively, comment.sty
provides excludecomment
for defining custom comment environments, e.g.
documentclassarticle
usepackagesavesym
usepackagecomment
savesymbolcomment
excludecommentmycomment
usepackagechanges
begindocument
commentpdf comment using 'changes.sty'
beginmycomment
code comment using 'comment.sty'
endmycomment
enddocument
but changes.sty
breaks the default comment
environment.
Is it possible to build a layer in my package which mediates between changes.sty
's comment
command and comment.sty
's comment
environment? The aim is to expose the original interface of each to a consumer of my package.
The two clashing definitions are as follows:
% changes.sty line 791
newcommandcomment[2][@empty]%
setkeysChanges@comment#1%
Changes@output%
comment%
Changes@comment@id%
%
%
#2%
changescommentname%
#2%
% comment.sty line 241
defexcludecomment
#1messageExcluding comment '#1'%
csargdef#1endgroup messageExcluding '#1' comment.%
begingroup
DefaultCutFileName defProcessCutFile%
defThisComment####1ProcessComment#1%
csargdefAfter#1CommentCloseAndInputCutFile endgroup
CommentEndDef#1
% ...
% line 292
excludecommentcomment
macros environments package-writing comments changes
New contributor
add a comment |
I'm writing a package that uses both changes (v3.1.2) and comment (v3.8), and I'd like to expose their functionality to consumers of my package without having to modify either one's interface.
The problem is that both changes.sty
and comment.sty
define comment
. Hence
documentclassarticle
usepackagecomment
usepackagechanges
begindocumentenddocument
throws the error
Command comment already defined.
I understand this can be fixed using savesym by (essentially) modifying changes.sty
's interface, e.g.
documentclassarticle
usepackagesavesym
usepackagechanges
savesymbolcomment % rename comment -> origcomment
usepackagecomment
begindocument
origcommentpdf comment using 'changes.sty'
begincomment
code comment using 'comment.sty'
endcomment
enddocument
Alternatively, comment.sty
provides excludecomment
for defining custom comment environments, e.g.
documentclassarticle
usepackagesavesym
usepackagecomment
savesymbolcomment
excludecommentmycomment
usepackagechanges
begindocument
commentpdf comment using 'changes.sty'
beginmycomment
code comment using 'comment.sty'
endmycomment
enddocument
but changes.sty
breaks the default comment
environment.
Is it possible to build a layer in my package which mediates between changes.sty
's comment
command and comment.sty
's comment
environment? The aim is to expose the original interface of each to a consumer of my package.
The two clashing definitions are as follows:
% changes.sty line 791
newcommandcomment[2][@empty]%
setkeysChanges@comment#1%
Changes@output%
comment%
Changes@comment@id%
%
%
#2%
changescommentname%
#2%
% comment.sty line 241
defexcludecomment
#1messageExcluding comment '#1'%
csargdef#1endgroup messageExcluding '#1' comment.%
begingroup
DefaultCutFileName defProcessCutFile%
defThisComment####1ProcessComment#1%
csargdefAfter#1CommentCloseAndInputCutFile endgroup
CommentEndDef#1
% ...
% line 292
excludecommentcomment
macros environments package-writing comments changes
New contributor
I'm writing a package that uses both changes (v3.1.2) and comment (v3.8), and I'd like to expose their functionality to consumers of my package without having to modify either one's interface.
The problem is that both changes.sty
and comment.sty
define comment
. Hence
documentclassarticle
usepackagecomment
usepackagechanges
begindocumentenddocument
throws the error
Command comment already defined.
I understand this can be fixed using savesym by (essentially) modifying changes.sty
's interface, e.g.
documentclassarticle
usepackagesavesym
usepackagechanges
savesymbolcomment % rename comment -> origcomment
usepackagecomment
begindocument
origcommentpdf comment using 'changes.sty'
begincomment
code comment using 'comment.sty'
endcomment
enddocument
Alternatively, comment.sty
provides excludecomment
for defining custom comment environments, e.g.
documentclassarticle
usepackagesavesym
usepackagecomment
savesymbolcomment
excludecommentmycomment
usepackagechanges
begindocument
commentpdf comment using 'changes.sty'
beginmycomment
code comment using 'comment.sty'
endmycomment
enddocument
but changes.sty
breaks the default comment
environment.
Is it possible to build a layer in my package which mediates between changes.sty
's comment
command and comment.sty
's comment
environment? The aim is to expose the original interface of each to a consumer of my package.
The two clashing definitions are as follows:
% changes.sty line 791
newcommandcomment[2][@empty]%
setkeysChanges@comment#1%
Changes@output%
comment%
Changes@comment@id%
%
%
#2%
changescommentname%
#2%
% comment.sty line 241
defexcludecomment
#1messageExcluding comment '#1'%
csargdef#1endgroup messageExcluding '#1' comment.%
begingroup
DefaultCutFileName defProcessCutFile%
defThisComment####1ProcessComment#1%
csargdefAfter#1CommentCloseAndInputCutFile endgroup
CommentEndDef#1
% ...
% line 292
excludecommentcomment
macros environments package-writing comments changes
macros environments package-writing comments changes
New contributor
New contributor
New contributor
asked 4 mins ago
wfschwfsch
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
wfsch is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484233%2fhow-to-resolve-clashing-definitions-of-comment-in-comment-sty-and-changes-sty-w%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
wfsch is a new contributor. Be nice, and check out our Code of Conduct.
wfsch is a new contributor. Be nice, and check out our Code of Conduct.
wfsch is a new contributor. Be nice, and check out our Code of Conduct.
wfsch is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484233%2fhow-to-resolve-clashing-definitions-of-comment-in-comment-sty-and-changes-sty-w%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown