Is my example possible without nesting tikzpictures?












0















I'm trying to generate a Sequential Flow Chart (SFC) with the following input to make it easy for everyone:



% Example SFCs
begin{SFC}
step{Step1}[Tran1] % Mandatory argument {<step text>} and optional transition [<transition text>]

begin{Alternative}
% First branch
begin{Branch}[Alt 1]
step{Step1-1}[Tran1-1]
end{Branch}

% Second branch
begin{Branch}[Alt 2]
step{Step1-2}[Tran1-2]
begin{Alternative}
begin{Branch}[Alt 2-1]
step{Step1-2-1}[Tran1-2-1]
end{Branch}
begin{Branch}[Alt 2-2]
step{Step1-2-2} % No transition condition
step{Step2-2-2}[Tran2-2-2]
end{Branch}
begin{Branch}[Alt 2-2]
step{Step1-2-3}[Tran1-2-3]
step{Other Example \ Test}[Test 123 \ This is a really long sentence]
end{Branch}
end{Alternative}
end{Branch}

% Third branch
begin{Branch}[Alt 3]
% This alternative route will be a skip
end{Branch}
end{Alternative}

step{Step3}[Tran3]
end{SFC}


This is generating the following image now with my code:
Output



However, I'm using a lot of nested tikzpictures. I've read that you're not supposed to do that. The tikzpictures are surrounded with a node, so I can create a path to the north or south of the tikzpicture. The following image displays the tikzpictures with a red dashed border:
Output with tikzpictures bordered



The difficulty for me is the placing of the nodes and paths at the right spot, without knowing how many nodes of various sizes will follow, due to the input file. Each node(){begin{tikzpicture}end{tikzpicture} creates a group of nodes for me, to which I can create a path to the north or south. The node will grow in size according to the contents of the tikzpicture, which will push the other nodes around the group away, which is really convenient for me. Does anyone perhaps know better ways to do this? Due to the current nesting, I can't create paths between nodes that are not in the same tikzpicture. I'd like to be able to do that. Maybe someone knows a solution?



Maybe something with scopes might work. But I'd have to shift a scope below a node depending on the size of that the scope. I don't know whether this is possible. I'd also have to put scopes next to each other.










share|improve this question























  • Could you please add a compilable TikZ code?

    – JouleV
    11 mins ago
















0















I'm trying to generate a Sequential Flow Chart (SFC) with the following input to make it easy for everyone:



% Example SFCs
begin{SFC}
step{Step1}[Tran1] % Mandatory argument {<step text>} and optional transition [<transition text>]

begin{Alternative}
% First branch
begin{Branch}[Alt 1]
step{Step1-1}[Tran1-1]
end{Branch}

% Second branch
begin{Branch}[Alt 2]
step{Step1-2}[Tran1-2]
begin{Alternative}
begin{Branch}[Alt 2-1]
step{Step1-2-1}[Tran1-2-1]
end{Branch}
begin{Branch}[Alt 2-2]
step{Step1-2-2} % No transition condition
step{Step2-2-2}[Tran2-2-2]
end{Branch}
begin{Branch}[Alt 2-2]
step{Step1-2-3}[Tran1-2-3]
step{Other Example \ Test}[Test 123 \ This is a really long sentence]
end{Branch}
end{Alternative}
end{Branch}

% Third branch
begin{Branch}[Alt 3]
% This alternative route will be a skip
end{Branch}
end{Alternative}

step{Step3}[Tran3]
end{SFC}


This is generating the following image now with my code:
Output



However, I'm using a lot of nested tikzpictures. I've read that you're not supposed to do that. The tikzpictures are surrounded with a node, so I can create a path to the north or south of the tikzpicture. The following image displays the tikzpictures with a red dashed border:
Output with tikzpictures bordered



The difficulty for me is the placing of the nodes and paths at the right spot, without knowing how many nodes of various sizes will follow, due to the input file. Each node(){begin{tikzpicture}end{tikzpicture} creates a group of nodes for me, to which I can create a path to the north or south. The node will grow in size according to the contents of the tikzpicture, which will push the other nodes around the group away, which is really convenient for me. Does anyone perhaps know better ways to do this? Due to the current nesting, I can't create paths between nodes that are not in the same tikzpicture. I'd like to be able to do that. Maybe someone knows a solution?



Maybe something with scopes might work. But I'd have to shift a scope below a node depending on the size of that the scope. I don't know whether this is possible. I'd also have to put scopes next to each other.










share|improve this question























  • Could you please add a compilable TikZ code?

    – JouleV
    11 mins ago














0












0








0








I'm trying to generate a Sequential Flow Chart (SFC) with the following input to make it easy for everyone:



% Example SFCs
begin{SFC}
step{Step1}[Tran1] % Mandatory argument {<step text>} and optional transition [<transition text>]

begin{Alternative}
% First branch
begin{Branch}[Alt 1]
step{Step1-1}[Tran1-1]
end{Branch}

% Second branch
begin{Branch}[Alt 2]
step{Step1-2}[Tran1-2]
begin{Alternative}
begin{Branch}[Alt 2-1]
step{Step1-2-1}[Tran1-2-1]
end{Branch}
begin{Branch}[Alt 2-2]
step{Step1-2-2} % No transition condition
step{Step2-2-2}[Tran2-2-2]
end{Branch}
begin{Branch}[Alt 2-2]
step{Step1-2-3}[Tran1-2-3]
step{Other Example \ Test}[Test 123 \ This is a really long sentence]
end{Branch}
end{Alternative}
end{Branch}

% Third branch
begin{Branch}[Alt 3]
% This alternative route will be a skip
end{Branch}
end{Alternative}

step{Step3}[Tran3]
end{SFC}


This is generating the following image now with my code:
Output



However, I'm using a lot of nested tikzpictures. I've read that you're not supposed to do that. The tikzpictures are surrounded with a node, so I can create a path to the north or south of the tikzpicture. The following image displays the tikzpictures with a red dashed border:
Output with tikzpictures bordered



The difficulty for me is the placing of the nodes and paths at the right spot, without knowing how many nodes of various sizes will follow, due to the input file. Each node(){begin{tikzpicture}end{tikzpicture} creates a group of nodes for me, to which I can create a path to the north or south. The node will grow in size according to the contents of the tikzpicture, which will push the other nodes around the group away, which is really convenient for me. Does anyone perhaps know better ways to do this? Due to the current nesting, I can't create paths between nodes that are not in the same tikzpicture. I'd like to be able to do that. Maybe someone knows a solution?



Maybe something with scopes might work. But I'd have to shift a scope below a node depending on the size of that the scope. I don't know whether this is possible. I'd also have to put scopes next to each other.










share|improve this question














I'm trying to generate a Sequential Flow Chart (SFC) with the following input to make it easy for everyone:



% Example SFCs
begin{SFC}
step{Step1}[Tran1] % Mandatory argument {<step text>} and optional transition [<transition text>]

begin{Alternative}
% First branch
begin{Branch}[Alt 1]
step{Step1-1}[Tran1-1]
end{Branch}

% Second branch
begin{Branch}[Alt 2]
step{Step1-2}[Tran1-2]
begin{Alternative}
begin{Branch}[Alt 2-1]
step{Step1-2-1}[Tran1-2-1]
end{Branch}
begin{Branch}[Alt 2-2]
step{Step1-2-2} % No transition condition
step{Step2-2-2}[Tran2-2-2]
end{Branch}
begin{Branch}[Alt 2-2]
step{Step1-2-3}[Tran1-2-3]
step{Other Example \ Test}[Test 123 \ This is a really long sentence]
end{Branch}
end{Alternative}
end{Branch}

% Third branch
begin{Branch}[Alt 3]
% This alternative route will be a skip
end{Branch}
end{Alternative}

step{Step3}[Tran3]
end{SFC}


This is generating the following image now with my code:
Output



However, I'm using a lot of nested tikzpictures. I've read that you're not supposed to do that. The tikzpictures are surrounded with a node, so I can create a path to the north or south of the tikzpicture. The following image displays the tikzpictures with a red dashed border:
Output with tikzpictures bordered



The difficulty for me is the placing of the nodes and paths at the right spot, without knowing how many nodes of various sizes will follow, due to the input file. Each node(){begin{tikzpicture}end{tikzpicture} creates a group of nodes for me, to which I can create a path to the north or south. The node will grow in size according to the contents of the tikzpicture, which will push the other nodes around the group away, which is really convenient for me. Does anyone perhaps know better ways to do this? Due to the current nesting, I can't create paths between nodes that are not in the same tikzpicture. I'd like to be able to do that. Maybe someone knows a solution?



Maybe something with scopes might work. But I'd have to shift a scope below a node depending on the size of that the scope. I don't know whether this is possible. I'd also have to put scopes next to each other.







positioning nesting






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 15 mins ago









David M.David M.

135




135













  • Could you please add a compilable TikZ code?

    – JouleV
    11 mins ago



















  • Could you please add a compilable TikZ code?

    – JouleV
    11 mins ago

















Could you please add a compilable TikZ code?

– JouleV
11 mins ago





Could you please add a compilable TikZ code?

– JouleV
11 mins ago










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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480907%2fis-my-example-possible-without-nesting-tikzpictures%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
















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%2f480907%2fis-my-example-possible-without-nesting-tikzpictures%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

円仁

平林たい子

新発田市