Remove “end if” lines using algorithmic
speculum - A simple, straightforward Arch Linux mirror list optimizer
Can a Pact of the Blade warlock use the correct existing pact magic weapon so it functions as a "Returning" weapon?
My cat mixes up floors. How can I help him?
Can a person refuse a presidential pardon?
Why are these T-SQL jobs from different SQL Server instances executed on the same instance (AlwaysOn Availability Groups)
How much mayhem could I cause as a sentient fish?
Why did the villain in the first Men in Black movie care about Earth's Cockroaches?
Why is it that Bernie Sanders is always called a "socialist"?
Writing a character who is going through a civilizing process without overdoing it?
Can you tell from a blurry photo if focus was too close or too far?
What incentives do banks have to gather up loans into pools (backed by Ginnie Mae)and selling them?
Why avoid shared user accounts?
Simple text-based tic-tac-toe
How can I get my players to come to the game session after agreeing to a date?
Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
Why do neural networks need so many training examples to perform?
Am I a Rude Number?
Why would space fleets be aligned?
Why did Luke use his left hand to shoot?
What is 6÷2×(1+2) =?
Is a new Boolean field better than a null reference when a value can be meaningfully absent?
What is the purpose of easy combat scenarios that don't need resource expenditure?
Do authors have to be politically correct in article-writing?
Remove “end if” lines using algorithmic
I'm new to Latex and currently writing pseudocode using algorithmic. I want to remove all "end if" lines from the code. I tried to use usepackage[noend]{algpseudocode}
but it does not work (see the image). Please help. Thank you!
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{algorithmic}
usepackage{algorithm}
usepackage[noend]{algpseudocode}
algnewcommandalgorithmicinput{textbf{Input:}}
algnewcommandalgorithmicoutput{textbf{Output:}}
algnewcommandInput{item[algorithmicinput]}%
algnewcommandOutput{item[algorithmicoutput]}%
algnewcommand{Donnees}{Statex textbf{$x$}}
begin{document}
begin{algorithm}
caption{The recommendation }
begin{algorithmic}[1]
Donnees: a scenario
Input{$Stakeholder_x, Solutions_x, Architectures_x$}
Output{$Issues_x, Measures_x, Attributes_x$}
FORALL{$Solution$ in $Solutions_x$}
IF{$Solution$ in $Solutions_{Stakeholder_x}$}
IF{$Solution_{Components}$ not in $Components_x$}
STATE add $Solution_{Components}$ to $Components_x$
ENDIF
IF{$Issues_{Solution}$ not in $Issues_x$}
STATE add $Issues_{Solution}$ to $Issues_x$
ENDIF
FORALL{$Architecture$ in $Architectures_x$}
IF{$Architecture$ in $Solution_{Architectures}$}
IF{$Component_{Architecture}$ not in $Components_x$}
STATE add $Component_{Architecture}$ to $Components_x$
IF{$Issues_{Architecture}$ not in $Issues_x$}
STATE add $Issues_{Architecture}$ to $Issues_x$
ENDIF
ENDIF
ENDIF
ENDFOR
ENDIF
ENDFOR
end{algorithmic}
end{algorithm}
algorithmic
New contributor
add a comment |
I'm new to Latex and currently writing pseudocode using algorithmic. I want to remove all "end if" lines from the code. I tried to use usepackage[noend]{algpseudocode}
but it does not work (see the image). Please help. Thank you!
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{algorithmic}
usepackage{algorithm}
usepackage[noend]{algpseudocode}
algnewcommandalgorithmicinput{textbf{Input:}}
algnewcommandalgorithmicoutput{textbf{Output:}}
algnewcommandInput{item[algorithmicinput]}%
algnewcommandOutput{item[algorithmicoutput]}%
algnewcommand{Donnees}{Statex textbf{$x$}}
begin{document}
begin{algorithm}
caption{The recommendation }
begin{algorithmic}[1]
Donnees: a scenario
Input{$Stakeholder_x, Solutions_x, Architectures_x$}
Output{$Issues_x, Measures_x, Attributes_x$}
FORALL{$Solution$ in $Solutions_x$}
IF{$Solution$ in $Solutions_{Stakeholder_x}$}
IF{$Solution_{Components}$ not in $Components_x$}
STATE add $Solution_{Components}$ to $Components_x$
ENDIF
IF{$Issues_{Solution}$ not in $Issues_x$}
STATE add $Issues_{Solution}$ to $Issues_x$
ENDIF
FORALL{$Architecture$ in $Architectures_x$}
IF{$Architecture$ in $Solution_{Architectures}$}
IF{$Component_{Architecture}$ not in $Components_x$}
STATE add $Component_{Architecture}$ to $Components_x$
IF{$Issues_{Architecture}$ not in $Issues_x$}
STATE add $Issues_{Architecture}$ to $Issues_x$
ENDIF
ENDIF
ENDIF
ENDFOR
ENDIF
ENDFOR
end{algorithmic}
end{algorithm}
algorithmic
New contributor
add a comment |
I'm new to Latex and currently writing pseudocode using algorithmic. I want to remove all "end if" lines from the code. I tried to use usepackage[noend]{algpseudocode}
but it does not work (see the image). Please help. Thank you!
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{algorithmic}
usepackage{algorithm}
usepackage[noend]{algpseudocode}
algnewcommandalgorithmicinput{textbf{Input:}}
algnewcommandalgorithmicoutput{textbf{Output:}}
algnewcommandInput{item[algorithmicinput]}%
algnewcommandOutput{item[algorithmicoutput]}%
algnewcommand{Donnees}{Statex textbf{$x$}}
begin{document}
begin{algorithm}
caption{The recommendation }
begin{algorithmic}[1]
Donnees: a scenario
Input{$Stakeholder_x, Solutions_x, Architectures_x$}
Output{$Issues_x, Measures_x, Attributes_x$}
FORALL{$Solution$ in $Solutions_x$}
IF{$Solution$ in $Solutions_{Stakeholder_x}$}
IF{$Solution_{Components}$ not in $Components_x$}
STATE add $Solution_{Components}$ to $Components_x$
ENDIF
IF{$Issues_{Solution}$ not in $Issues_x$}
STATE add $Issues_{Solution}$ to $Issues_x$
ENDIF
FORALL{$Architecture$ in $Architectures_x$}
IF{$Architecture$ in $Solution_{Architectures}$}
IF{$Component_{Architecture}$ not in $Components_x$}
STATE add $Component_{Architecture}$ to $Components_x$
IF{$Issues_{Architecture}$ not in $Issues_x$}
STATE add $Issues_{Architecture}$ to $Issues_x$
ENDIF
ENDIF
ENDIF
ENDFOR
ENDIF
ENDFOR
end{algorithmic}
end{algorithm}
algorithmic
New contributor
I'm new to Latex and currently writing pseudocode using algorithmic. I want to remove all "end if" lines from the code. I tried to use usepackage[noend]{algpseudocode}
but it does not work (see the image). Please help. Thank you!
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{algorithmic}
usepackage{algorithm}
usepackage[noend]{algpseudocode}
algnewcommandalgorithmicinput{textbf{Input:}}
algnewcommandalgorithmicoutput{textbf{Output:}}
algnewcommandInput{item[algorithmicinput]}%
algnewcommandOutput{item[algorithmicoutput]}%
algnewcommand{Donnees}{Statex textbf{$x$}}
begin{document}
begin{algorithm}
caption{The recommendation }
begin{algorithmic}[1]
Donnees: a scenario
Input{$Stakeholder_x, Solutions_x, Architectures_x$}
Output{$Issues_x, Measures_x, Attributes_x$}
FORALL{$Solution$ in $Solutions_x$}
IF{$Solution$ in $Solutions_{Stakeholder_x}$}
IF{$Solution_{Components}$ not in $Components_x$}
STATE add $Solution_{Components}$ to $Components_x$
ENDIF
IF{$Issues_{Solution}$ not in $Issues_x$}
STATE add $Issues_{Solution}$ to $Issues_x$
ENDIF
FORALL{$Architecture$ in $Architectures_x$}
IF{$Architecture$ in $Solution_{Architectures}$}
IF{$Component_{Architecture}$ not in $Components_x$}
STATE add $Component_{Architecture}$ to $Components_x$
IF{$Issues_{Architecture}$ not in $Issues_x$}
STATE add $Issues_{Architecture}$ to $Issues_x$
ENDIF
ENDIF
ENDIF
ENDFOR
ENDIF
ENDFOR
end{algorithmic}
end{algorithm}
algorithmic
algorithmic
New contributor
New contributor
New contributor
asked 1 min ago
fsfr23fsfr23
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
});
}
});
fsfr23 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%2f477181%2fremove-end-if-lines-using-algorithmic%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
fsfr23 is a new contributor. Be nice, and check out our Code of Conduct.
fsfr23 is a new contributor. Be nice, and check out our Code of Conduct.
fsfr23 is a new contributor. Be nice, and check out our Code of Conduct.
fsfr23 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%2f477181%2fremove-end-if-lines-using-algorithmic%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