Obeylines and gappto from etoolbox Unicorn Meta Zoo #1: Why another podcast? ...

Scheduling based problem

tikz-feynman: edge labels

What was Apollo 13's "Little Jolt" after MECO?

My bank got bought out, am I now going to have to start filing tax returns in a different state?

Has a Nobel Peace laureate ever been accused of war crimes?

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Unable to completely uninstall Zoom meeting app

Why doesn't the standard consider a template constructor as a copy constructor?

How do I prove this combinatorial identity

How to find if a column is referenced in a computed column?

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

Retract an already submitted recommendation letter (written for an undergrad student)

How much of a wave function must reside inside event horizon for it to be consumed by the black hole?

Which big number is bigger?

When do you need buffers/drivers on buses in a microprocessor design?

Intern got a job offer for same salary than a long term team member

Is Electric Central Heating worth it if using Solar Panels?

A Paper Record is What I Hamper

std::unique_ptr of base class holding reference of derived class does not show warning in gcc compiler while naked pointer shows it. Why?

finding a tangent line to a parabola

How do I reattach a shelf to the wall when it ripped out of the wall?

What is /etc/mtab in Linux?

How much cash can I safely carry into the USA and avoid civil forfeiture?

Is it possible to cast 2x Final Payment while sacrificing just one creature?



Obeylines and gappto from etoolbox



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraHow can I undo an etoolbox patch?etoolbox: trouble with boolean expressionsmultiple lists in etoolboxPhantom and etoolbox iftoggleDifference between newbool and newtoggle from etoolbox packageRemove indentation from abstract environment with etoolboxetoolbox conflict with bm packagehelp with using etoolbox with docsvlist and listaddrenewcommand or patchcmd (from etoolbox)?question of ifstrequal in etoolbox












1















In order to simplify data entry with as little markup of the data as possible, I am attempting the following:



documentclass{article}

usepackage{etoolbox}

begingroup
obeylines
gdefing#1 #2 #3{gappto{tabbody}{% Collect rows of tabular[x] in tabbody
%% Ignore #1 and/or #2 if empty (= . )
if.#2
if.#1
&&#3\
else
#1&&#3\
fi
else
if.#1
&#2&#3\
else
#1&#2&#3\
fi
fi
}%
}
endgroup

%%%%%% This, without the if's works, though it does not do what I need:

begingroup
obeylines
gdefiing#1 #2 #3{gappto{tabbody}{% Collect rows of tabular[x] in tabbody
#1&#2&#3\
}%
}
endgroup

begin{document}

begingroup
obeylines
everypar={ing} %<<<--- change to iing and there is no error
a 1 u
b 2 v
. 3 w
d 4 x
e 5 y
f 6 z
endgroup

begin{tabular}{ccc}
tabbody
end{tabular}

end{document}


I'm getting an unexpected error:



ERROR: Incomplete if; all text was ignored after line 39.

--- TeX said ---
<inserted text>
fi
l.39 ^^I^^Itabbody


I have looked at past queries, but have not thus far found an answer. If I remove all of the if statements from the definition of ing (=iing) the problem goes a way. Quite sure I'm missing something really basic -- something to do with the timing of the expansion of the ifs, but I'm stuck for the moment.










share|improve this question























  • Why do you need obeylines so many places? Dropping obeylines before the definition of ing allows the file to compile and produces reasonable output.

    – Andrew Swann
    7 mins ago


















1















In order to simplify data entry with as little markup of the data as possible, I am attempting the following:



documentclass{article}

usepackage{etoolbox}

begingroup
obeylines
gdefing#1 #2 #3{gappto{tabbody}{% Collect rows of tabular[x] in tabbody
%% Ignore #1 and/or #2 if empty (= . )
if.#2
if.#1
&&#3\
else
#1&&#3\
fi
else
if.#1
&#2&#3\
else
#1&#2&#3\
fi
fi
}%
}
endgroup

%%%%%% This, without the if's works, though it does not do what I need:

begingroup
obeylines
gdefiing#1 #2 #3{gappto{tabbody}{% Collect rows of tabular[x] in tabbody
#1&#2&#3\
}%
}
endgroup

begin{document}

begingroup
obeylines
everypar={ing} %<<<--- change to iing and there is no error
a 1 u
b 2 v
. 3 w
d 4 x
e 5 y
f 6 z
endgroup

begin{tabular}{ccc}
tabbody
end{tabular}

end{document}


I'm getting an unexpected error:



ERROR: Incomplete if; all text was ignored after line 39.

--- TeX said ---
<inserted text>
fi
l.39 ^^I^^Itabbody


I have looked at past queries, but have not thus far found an answer. If I remove all of the if statements from the definition of ing (=iing) the problem goes a way. Quite sure I'm missing something really basic -- something to do with the timing of the expansion of the ifs, but I'm stuck for the moment.










share|improve this question























  • Why do you need obeylines so many places? Dropping obeylines before the definition of ing allows the file to compile and produces reasonable output.

    – Andrew Swann
    7 mins ago
















1












1








1








In order to simplify data entry with as little markup of the data as possible, I am attempting the following:



documentclass{article}

usepackage{etoolbox}

begingroup
obeylines
gdefing#1 #2 #3{gappto{tabbody}{% Collect rows of tabular[x] in tabbody
%% Ignore #1 and/or #2 if empty (= . )
if.#2
if.#1
&&#3\
else
#1&&#3\
fi
else
if.#1
&#2&#3\
else
#1&#2&#3\
fi
fi
}%
}
endgroup

%%%%%% This, without the if's works, though it does not do what I need:

begingroup
obeylines
gdefiing#1 #2 #3{gappto{tabbody}{% Collect rows of tabular[x] in tabbody
#1&#2&#3\
}%
}
endgroup

begin{document}

begingroup
obeylines
everypar={ing} %<<<--- change to iing and there is no error
a 1 u
b 2 v
. 3 w
d 4 x
e 5 y
f 6 z
endgroup

begin{tabular}{ccc}
tabbody
end{tabular}

end{document}


I'm getting an unexpected error:



ERROR: Incomplete if; all text was ignored after line 39.

--- TeX said ---
<inserted text>
fi
l.39 ^^I^^Itabbody


I have looked at past queries, but have not thus far found an answer. If I remove all of the if statements from the definition of ing (=iing) the problem goes a way. Quite sure I'm missing something really basic -- something to do with the timing of the expansion of the ifs, but I'm stuck for the moment.










share|improve this question














In order to simplify data entry with as little markup of the data as possible, I am attempting the following:



documentclass{article}

usepackage{etoolbox}

begingroup
obeylines
gdefing#1 #2 #3{gappto{tabbody}{% Collect rows of tabular[x] in tabbody
%% Ignore #1 and/or #2 if empty (= . )
if.#2
if.#1
&&#3\
else
#1&&#3\
fi
else
if.#1
&#2&#3\
else
#1&#2&#3\
fi
fi
}%
}
endgroup

%%%%%% This, without the if's works, though it does not do what I need:

begingroup
obeylines
gdefiing#1 #2 #3{gappto{tabbody}{% Collect rows of tabular[x] in tabbody
#1&#2&#3\
}%
}
endgroup

begin{document}

begingroup
obeylines
everypar={ing} %<<<--- change to iing and there is no error
a 1 u
b 2 v
. 3 w
d 4 x
e 5 y
f 6 z
endgroup

begin{tabular}{ccc}
tabbody
end{tabular}

end{document}


I'm getting an unexpected error:



ERROR: Incomplete if; all text was ignored after line 39.

--- TeX said ---
<inserted text>
fi
l.39 ^^I^^Itabbody


I have looked at past queries, but have not thus far found an answer. If I remove all of the if statements from the definition of ing (=iing) the problem goes a way. Quite sure I'm missing something really basic -- something to do with the timing of the expansion of the ifs, but I'm stuck for the moment.







etoolbox






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 11 mins ago









sgmoyesgmoye

4,09311328




4,09311328













  • Why do you need obeylines so many places? Dropping obeylines before the definition of ing allows the file to compile and produces reasonable output.

    – Andrew Swann
    7 mins ago





















  • Why do you need obeylines so many places? Dropping obeylines before the definition of ing allows the file to compile and produces reasonable output.

    – Andrew Swann
    7 mins ago



















Why do you need obeylines so many places? Dropping obeylines before the definition of ing allows the file to compile and produces reasonable output.

– Andrew Swann
7 mins ago







Why do you need obeylines so many places? Dropping obeylines before the definition of ing allows the file to compile and produces reasonable output.

– Andrew Swann
7 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%2f487572%2fobeylines-and-gappto-from-etoolbox%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%2f487572%2fobeylines-and-gappto-from-etoolbox%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

El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

Castillo d'Acher Características Menú de navegación

Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...