How do you use environments that have the same name within a single latex document?












2















I'm trying to typeset some proof tree exercises. But I need to use the prooftree environment from the bussproofs package, as well as the prooftree environment from the prooftrees package. Is there a way I can rename one of these so that they are both usable within a single document?










share|improve this question

























  • Since these kind of environments are not used too often (at least I haven't see any) it would be nice from you to provide a minimal non working example with code for both and let as try to do the job needed just for your request and not all the search needed from someone that doesn't use these packages...

    – koleygr
    1 hour ago
















2















I'm trying to typeset some proof tree exercises. But I need to use the prooftree environment from the bussproofs package, as well as the prooftree environment from the prooftrees package. Is there a way I can rename one of these so that they are both usable within a single document?










share|improve this question

























  • Since these kind of environments are not used too often (at least I haven't see any) it would be nice from you to provide a minimal non working example with code for both and let as try to do the job needed just for your request and not all the search needed from someone that doesn't use these packages...

    – koleygr
    1 hour ago














2












2








2


0






I'm trying to typeset some proof tree exercises. But I need to use the prooftree environment from the bussproofs package, as well as the prooftree environment from the prooftrees package. Is there a way I can rename one of these so that they are both usable within a single document?










share|improve this question
















I'm trying to typeset some proof tree exercises. But I need to use the prooftree environment from the bussproofs package, as well as the prooftree environment from the prooftrees package. Is there a way I can rename one of these so that they are both usable within a single document?







trees bussproofs prooftrees






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 50 mins ago









Alan Munn

162k28431706




162k28431706










asked 1 hour ago









objectiveseaobjectivesea

19817




19817













  • Since these kind of environments are not used too often (at least I haven't see any) it would be nice from you to provide a minimal non working example with code for both and let as try to do the job needed just for your request and not all the search needed from someone that doesn't use these packages...

    – koleygr
    1 hour ago



















  • Since these kind of environments are not used too often (at least I haven't see any) it would be nice from you to provide a minimal non working example with code for both and let as try to do the job needed just for your request and not all the search needed from someone that doesn't use these packages...

    – koleygr
    1 hour ago

















Since these kind of environments are not used too often (at least I haven't see any) it would be nice from you to provide a minimal non working example with code for both and let as try to do the job needed just for your request and not all the search needed from someone that doesn't use these packages...

– koleygr
1 hour ago





Since these kind of environments are not used too often (at least I haven't see any) it would be nice from you to provide a minimal non working example with code for both and let as try to do the job needed just for your request and not all the search needed from someone that doesn't use these packages...

– koleygr
1 hour ago










1 Answer
1






active

oldest

votes


















5














As explained in the prooftrees documentation, you can use the environment tableau instead of prooftree if you load the prooftrees package with the tableaux option. This allows you to use both bussproofs and prooftrees together.



usepackage[tableaux]{prooftrees}
usepackage{bussproofs}


Here's a full example:



documentclass{article}
usepackage[tableaux]{prooftrees}
usepackage{bussproofs}
begin{document}


begin{prooftree}
AxiomC{$A lor B$}
AxiomC{[$A$]}
noLine
UnaryInfC{$C$}
AxiomC{[$B$]}
noLine
UnaryInfC{$C$}
TrinaryInfC{$C$}
end{prooftree}
begin{tableau}
{
to prove=neg(a vee b) vee ((a vee b) vee b)
}
[{(a vee b) vee ((a vee b) vee b)}, just = 1
[{neg (a vee b)}, just = 2
[{a,b},just=3,close={4}
]
]
[{(a vee b) vee b}
[{a vee b}
]
[{b}
]
]
]
end{tableau}
end{document}


output of code






share|improve this answer
























  • When I try to compile this, I get the following error: File `forest-lib-tableaux.sty' not found. This file doesn't appear to be in either the forest package or the prooftrees package. Do you know how to resolve that error?

    – objectivesea
    33 mins ago











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478531%2fhow-do-you-use-environments-that-have-the-same-name-within-a-single-latex-docume%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














As explained in the prooftrees documentation, you can use the environment tableau instead of prooftree if you load the prooftrees package with the tableaux option. This allows you to use both bussproofs and prooftrees together.



usepackage[tableaux]{prooftrees}
usepackage{bussproofs}


Here's a full example:



documentclass{article}
usepackage[tableaux]{prooftrees}
usepackage{bussproofs}
begin{document}


begin{prooftree}
AxiomC{$A lor B$}
AxiomC{[$A$]}
noLine
UnaryInfC{$C$}
AxiomC{[$B$]}
noLine
UnaryInfC{$C$}
TrinaryInfC{$C$}
end{prooftree}
begin{tableau}
{
to prove=neg(a vee b) vee ((a vee b) vee b)
}
[{(a vee b) vee ((a vee b) vee b)}, just = 1
[{neg (a vee b)}, just = 2
[{a,b},just=3,close={4}
]
]
[{(a vee b) vee b}
[{a vee b}
]
[{b}
]
]
]
end{tableau}
end{document}


output of code






share|improve this answer
























  • When I try to compile this, I get the following error: File `forest-lib-tableaux.sty' not found. This file doesn't appear to be in either the forest package or the prooftrees package. Do you know how to resolve that error?

    – objectivesea
    33 mins ago
















5














As explained in the prooftrees documentation, you can use the environment tableau instead of prooftree if you load the prooftrees package with the tableaux option. This allows you to use both bussproofs and prooftrees together.



usepackage[tableaux]{prooftrees}
usepackage{bussproofs}


Here's a full example:



documentclass{article}
usepackage[tableaux]{prooftrees}
usepackage{bussproofs}
begin{document}


begin{prooftree}
AxiomC{$A lor B$}
AxiomC{[$A$]}
noLine
UnaryInfC{$C$}
AxiomC{[$B$]}
noLine
UnaryInfC{$C$}
TrinaryInfC{$C$}
end{prooftree}
begin{tableau}
{
to prove=neg(a vee b) vee ((a vee b) vee b)
}
[{(a vee b) vee ((a vee b) vee b)}, just = 1
[{neg (a vee b)}, just = 2
[{a,b},just=3,close={4}
]
]
[{(a vee b) vee b}
[{a vee b}
]
[{b}
]
]
]
end{tableau}
end{document}


output of code






share|improve this answer
























  • When I try to compile this, I get the following error: File `forest-lib-tableaux.sty' not found. This file doesn't appear to be in either the forest package or the prooftrees package. Do you know how to resolve that error?

    – objectivesea
    33 mins ago














5












5








5







As explained in the prooftrees documentation, you can use the environment tableau instead of prooftree if you load the prooftrees package with the tableaux option. This allows you to use both bussproofs and prooftrees together.



usepackage[tableaux]{prooftrees}
usepackage{bussproofs}


Here's a full example:



documentclass{article}
usepackage[tableaux]{prooftrees}
usepackage{bussproofs}
begin{document}


begin{prooftree}
AxiomC{$A lor B$}
AxiomC{[$A$]}
noLine
UnaryInfC{$C$}
AxiomC{[$B$]}
noLine
UnaryInfC{$C$}
TrinaryInfC{$C$}
end{prooftree}
begin{tableau}
{
to prove=neg(a vee b) vee ((a vee b) vee b)
}
[{(a vee b) vee ((a vee b) vee b)}, just = 1
[{neg (a vee b)}, just = 2
[{a,b},just=3,close={4}
]
]
[{(a vee b) vee b}
[{a vee b}
]
[{b}
]
]
]
end{tableau}
end{document}


output of code






share|improve this answer













As explained in the prooftrees documentation, you can use the environment tableau instead of prooftree if you load the prooftrees package with the tableaux option. This allows you to use both bussproofs and prooftrees together.



usepackage[tableaux]{prooftrees}
usepackage{bussproofs}


Here's a full example:



documentclass{article}
usepackage[tableaux]{prooftrees}
usepackage{bussproofs}
begin{document}


begin{prooftree}
AxiomC{$A lor B$}
AxiomC{[$A$]}
noLine
UnaryInfC{$C$}
AxiomC{[$B$]}
noLine
UnaryInfC{$C$}
TrinaryInfC{$C$}
end{prooftree}
begin{tableau}
{
to prove=neg(a vee b) vee ((a vee b) vee b)
}
[{(a vee b) vee ((a vee b) vee b)}, just = 1
[{neg (a vee b)}, just = 2
[{a,b},just=3,close={4}
]
]
[{(a vee b) vee b}
[{a vee b}
]
[{b}
]
]
]
end{tableau}
end{document}


output of code







share|improve this answer












share|improve this answer



share|improve this answer










answered 51 mins ago









Alan MunnAlan Munn

162k28431706




162k28431706













  • When I try to compile this, I get the following error: File `forest-lib-tableaux.sty' not found. This file doesn't appear to be in either the forest package or the prooftrees package. Do you know how to resolve that error?

    – objectivesea
    33 mins ago



















  • When I try to compile this, I get the following error: File `forest-lib-tableaux.sty' not found. This file doesn't appear to be in either the forest package or the prooftrees package. Do you know how to resolve that error?

    – objectivesea
    33 mins ago

















When I try to compile this, I get the following error: File `forest-lib-tableaux.sty' not found. This file doesn't appear to be in either the forest package or the prooftrees package. Do you know how to resolve that error?

– objectivesea
33 mins ago





When I try to compile this, I get the following error: File `forest-lib-tableaux.sty' not found. This file doesn't appear to be in either the forest package or the prooftrees package. Do you know how to resolve that error?

– objectivesea
33 mins ago


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478531%2fhow-do-you-use-environments-that-have-the-same-name-within-a-single-latex-docume%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Bundesstraße 106

Verónica Boquete

Ida-Boy-Ed-Garten