visually distinguish right and left children











up vote
0
down vote

favorite












I'm using the qtree package to render small inline trees in my document. The tree nodes in my case are limited to 0 or 2 child nodes. I'd like to visually distinguish the right and left branches somehow. Ideally with a red dashed line one one side and green solid line on the other, or possibly a bubble on one, however almost any clear visual feature would suffice.



Why do I want this? Because other places in my larger document I'm using more complex ways of drawing much larger trees. In these cases I always distinguish the two children with a red-dashed line and a green solid line. And in my text I refer to the two children as the "positive" child and "negative" child, never the left and right (as sometimes graphviz swaps the right and left to minimize crossing lines). I'd like to remove all mention of right and left for these graphs, but I can't because of this seeming limit of qtree.



Can someone suggest an fix?



as far as MWE consider the following.



documentclass{article}
usepackage{qtree}
newcommandbdd[1]{%
{scriptsizebegin{tabular}[c]{@{}l@{}}$Tree[#1]$end{tabular}}}
newcommand*YLR{bdd{.Y L R }}
begin{document}
Simple tree YLR and another
{scriptsize begin{tabular}[c]{@{}l@{}}
$Tree[.non-string [.A ] [.B [.not-number [.L ] [.R ] ] !{qframesubtree} [. C ] ] ]$
end{tabular}} less simple.
end{document}


Here is how it current renders.



enter image description here










share|improve this question
























  • I found this question, but it was never answered. tex.stackexchange.com/questions/198405/…
    – Jim Newton
    15 hours ago















up vote
0
down vote

favorite












I'm using the qtree package to render small inline trees in my document. The tree nodes in my case are limited to 0 or 2 child nodes. I'd like to visually distinguish the right and left branches somehow. Ideally with a red dashed line one one side and green solid line on the other, or possibly a bubble on one, however almost any clear visual feature would suffice.



Why do I want this? Because other places in my larger document I'm using more complex ways of drawing much larger trees. In these cases I always distinguish the two children with a red-dashed line and a green solid line. And in my text I refer to the two children as the "positive" child and "negative" child, never the left and right (as sometimes graphviz swaps the right and left to minimize crossing lines). I'd like to remove all mention of right and left for these graphs, but I can't because of this seeming limit of qtree.



Can someone suggest an fix?



as far as MWE consider the following.



documentclass{article}
usepackage{qtree}
newcommandbdd[1]{%
{scriptsizebegin{tabular}[c]{@{}l@{}}$Tree[#1]$end{tabular}}}
newcommand*YLR{bdd{.Y L R }}
begin{document}
Simple tree YLR and another
{scriptsize begin{tabular}[c]{@{}l@{}}
$Tree[.non-string [.A ] [.B [.not-number [.L ] [.R ] ] !{qframesubtree} [. C ] ] ]$
end{tabular}} less simple.
end{document}


Here is how it current renders.



enter image description here










share|improve this question
























  • I found this question, but it was never answered. tex.stackexchange.com/questions/198405/…
    – Jim Newton
    15 hours ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm using the qtree package to render small inline trees in my document. The tree nodes in my case are limited to 0 or 2 child nodes. I'd like to visually distinguish the right and left branches somehow. Ideally with a red dashed line one one side and green solid line on the other, or possibly a bubble on one, however almost any clear visual feature would suffice.



Why do I want this? Because other places in my larger document I'm using more complex ways of drawing much larger trees. In these cases I always distinguish the two children with a red-dashed line and a green solid line. And in my text I refer to the two children as the "positive" child and "negative" child, never the left and right (as sometimes graphviz swaps the right and left to minimize crossing lines). I'd like to remove all mention of right and left for these graphs, but I can't because of this seeming limit of qtree.



Can someone suggest an fix?



as far as MWE consider the following.



documentclass{article}
usepackage{qtree}
newcommandbdd[1]{%
{scriptsizebegin{tabular}[c]{@{}l@{}}$Tree[#1]$end{tabular}}}
newcommand*YLR{bdd{.Y L R }}
begin{document}
Simple tree YLR and another
{scriptsize begin{tabular}[c]{@{}l@{}}
$Tree[.non-string [.A ] [.B [.not-number [.L ] [.R ] ] !{qframesubtree} [. C ] ] ]$
end{tabular}} less simple.
end{document}


Here is how it current renders.



enter image description here










share|improve this question















I'm using the qtree package to render small inline trees in my document. The tree nodes in my case are limited to 0 or 2 child nodes. I'd like to visually distinguish the right and left branches somehow. Ideally with a red dashed line one one side and green solid line on the other, or possibly a bubble on one, however almost any clear visual feature would suffice.



Why do I want this? Because other places in my larger document I'm using more complex ways of drawing much larger trees. In these cases I always distinguish the two children with a red-dashed line and a green solid line. And in my text I refer to the two children as the "positive" child and "negative" child, never the left and right (as sometimes graphviz swaps the right and left to minimize crossing lines). I'd like to remove all mention of right and left for these graphs, but I can't because of this seeming limit of qtree.



Can someone suggest an fix?



as far as MWE consider the following.



documentclass{article}
usepackage{qtree}
newcommandbdd[1]{%
{scriptsizebegin{tabular}[c]{@{}l@{}}$Tree[#1]$end{tabular}}}
newcommand*YLR{bdd{.Y L R }}
begin{document}
Simple tree YLR and another
{scriptsize begin{tabular}[c]{@{}l@{}}
$Tree[.non-string [.A ] [.B [.not-number [.L ] [.R ] ] !{qframesubtree} [. C ] ] ]$
end{tabular}} less simple.
end{document}


Here is how it current renders.



enter image description here







graphs qtree






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 17 hours ago

























asked yesterday









Jim Newton

1386




1386












  • I found this question, but it was never answered. tex.stackexchange.com/questions/198405/…
    – Jim Newton
    15 hours ago


















  • I found this question, but it was never answered. tex.stackexchange.com/questions/198405/…
    – Jim Newton
    15 hours ago
















I found this question, but it was never answered. tex.stackexchange.com/questions/198405/…
– Jim Newton
15 hours ago




I found this question, but it was never answered. tex.stackexchange.com/questions/198405/…
– Jim Newton
15 hours ago















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',
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%2f461084%2fvisually-distinguish-right-and-left-children%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461084%2fvisually-distinguish-right-and-left-children%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

サソリ

広島県道265号伴広島線

Accessing regular linux commands in Huawei's Dopra Linux