Substitute a space to a string to force tabular cell separationTransforming string into tabular rowDiagonal tabular cell questionsSubstitute string in subscripttabu package - gaps in vertical linesSubstitute string that contains a backslashAlign vertical cell tabularHyperref inserts vertical space in tabular cellTabular multicolumn cell boundariesCentering within tabular cellSubstitute string within lstinputlisting command
Identifying "long and narrow" polygons in with Postgis
What does the word 'upstream' mean in the context?
Why is participating in the European Parliamentary elections used as a threat?
Grepping string, but include all non-blank lines following each grep match
What happens if I try to grapple mirror image?
Is stochastic gradient descent pseudo-stochastic?
Unable to disable Microsoft Store in domain environment
How much do grades matter for a future academia position?
If the only attacker is removed from combat, is a creature still counted as having attacked this turn?
Do people actually use the word "kaputt" in conversation?
What happens if a creature's ETB would bounce Thalia, Heretic Cathar?
How to preserve electronics (computers, iPads and phones) for hundreds of years
Weird lines in Microsoft Word
Giving feedback to someone without sounding prejudiced
How do I tell my boss that I'm quitting in 15 days (a colleague left this week)
Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?
Proving a complicated language is not a CFL
Can I run 125khz RF circuit on a breadboard?
Why does a 97 / 92 key piano exist by Bösendorfer?
What should be the ideal length of sentences in a blog post for ease of reading?
How to test the sharpness of a knife?
How to Disable and Drop all Temporal Tables from a database
Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?
Proving an identity involving cross products and coplanar vectors
Substitute a space to a string to force tabular cell separation
Transforming string into tabular rowDiagonal tabular cell questionsSubstitute string in subscripttabu package - gaps in vertical linesSubstitute string that contains a backslashAlign vertical cell tabularHyperref inserts vertical space in tabular cellTabular multicolumn cell boundariesCentering within tabular cellSubstitute string within lstinputlisting command
I'd like to construct tables using macros to align syllables with other text. For that task, I defined a table with no separation between columns. This, however led to words being stuck together if connected with an ampersand.
Substituting with xstring and StrSubstitute does not work for macros like hspace or phantom, and , strangely produces an error. Naturally simple written spaces are ignored by the tabular environment. How could the space be inserted?
Here's a dummy example. First, a version with no substitutions. Then one with ,,. Finally, the wanted result. For me, this example compiles with errors about inserting a missing } in Overleaf. But it does produce the correct result.
documentclass[12pt]article
usepackage[utf8]inputenc
usepackage[english]babel
RequirePackagexstring
begindocument
begintabular@*8l@
Wo-&ah we're & half way there, && Wo-&oah & livin' on a prayer \
StrSubstituteWo-&ah we're & half way there, && Wo-&oah & livin' on a prayer& &,, \
endtabular
Wo-ah we're half way there, Wo-oah livin' on a prayer
enddocument
Here's what it looks like:

tables macros xstring
add a comment |
I'd like to construct tables using macros to align syllables with other text. For that task, I defined a table with no separation between columns. This, however led to words being stuck together if connected with an ampersand.
Substituting with xstring and StrSubstitute does not work for macros like hspace or phantom, and , strangely produces an error. Naturally simple written spaces are ignored by the tabular environment. How could the space be inserted?
Here's a dummy example. First, a version with no substitutions. Then one with ,,. Finally, the wanted result. For me, this example compiles with errors about inserting a missing } in Overleaf. But it does produce the correct result.
documentclass[12pt]article
usepackage[utf8]inputenc
usepackage[english]babel
RequirePackagexstring
begindocument
begintabular@*8l@
Wo-&ah we're & half way there, && Wo-&oah & livin' on a prayer \
StrSubstituteWo-&ah we're & half way there, && Wo-&oah & livin' on a prayer& &,, \
endtabular
Wo-ah we're half way there, Wo-oah livin' on a prayer
enddocument
Here's what it looks like:

tables macros xstring
As a general yrule of thumb: Do not look at the 'output' if you recieve an error message.
– leandriis
15 secs ago
add a comment |
I'd like to construct tables using macros to align syllables with other text. For that task, I defined a table with no separation between columns. This, however led to words being stuck together if connected with an ampersand.
Substituting with xstring and StrSubstitute does not work for macros like hspace or phantom, and , strangely produces an error. Naturally simple written spaces are ignored by the tabular environment. How could the space be inserted?
Here's a dummy example. First, a version with no substitutions. Then one with ,,. Finally, the wanted result. For me, this example compiles with errors about inserting a missing } in Overleaf. But it does produce the correct result.
documentclass[12pt]article
usepackage[utf8]inputenc
usepackage[english]babel
RequirePackagexstring
begindocument
begintabular@*8l@
Wo-&ah we're & half way there, && Wo-&oah & livin' on a prayer \
StrSubstituteWo-&ah we're & half way there, && Wo-&oah & livin' on a prayer& &,, \
endtabular
Wo-ah we're half way there, Wo-oah livin' on a prayer
enddocument
Here's what it looks like:

tables macros xstring
I'd like to construct tables using macros to align syllables with other text. For that task, I defined a table with no separation between columns. This, however led to words being stuck together if connected with an ampersand.
Substituting with xstring and StrSubstitute does not work for macros like hspace or phantom, and , strangely produces an error. Naturally simple written spaces are ignored by the tabular environment. How could the space be inserted?
Here's a dummy example. First, a version with no substitutions. Then one with ,,. Finally, the wanted result. For me, this example compiles with errors about inserting a missing } in Overleaf. But it does produce the correct result.
documentclass[12pt]article
usepackage[utf8]inputenc
usepackage[english]babel
RequirePackagexstring
begindocument
begintabular@*8l@
Wo-&ah we're & half way there, && Wo-&oah & livin' on a prayer \
StrSubstituteWo-&ah we're & half way there, && Wo-&oah & livin' on a prayer& &,, \
endtabular
Wo-ah we're half way there, Wo-oah livin' on a prayer
enddocument
Here's what it looks like:

tables macros xstring
tables macros xstring
asked 14 mins ago
FelixFelix
1386
1386
As a general yrule of thumb: Do not look at the 'output' if you recieve an error message.
– leandriis
15 secs ago
add a comment |
As a general yrule of thumb: Do not look at the 'output' if you recieve an error message.
– leandriis
15 secs ago
As a general yrule of thumb: Do not look at the 'output' if you recieve an error message.
– leandriis
15 secs ago
As a general yrule of thumb: Do not look at the 'output' if you recieve an error message.
– leandriis
15 secs ago
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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%2f480563%2fsubstitute-a-space-to-a-string-to-force-tabular-cell-separation%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
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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%2f480563%2fsubstitute-a-space-to-a-string-to-force-tabular-cell-separation%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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
As a general yrule of thumb: Do not look at the 'output' if you recieve an error message.
– leandriis
15 secs ago