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













0















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:



Example










share|improve this question






















  • As a general yrule of thumb: Do not look at the 'output' if you recieve an error message.

    – leandriis
    15 secs ago















0















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:



Example










share|improve this question






















  • As a general yrule of thumb: Do not look at the 'output' if you recieve an error message.

    – leandriis
    15 secs ago













0












0








0








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:



Example










share|improve this question














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:



Example







tables macros xstring






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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










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%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















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%2f480563%2fsubstitute-a-space-to-a-string-to-force-tabular-cell-separation%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

acmart: Multiple authors: all with same affiliation, one author an additional affiliationHow to Write Names of Multiple Authors with Shared Affiliation in ACM 2017 Template?Multiple authors with different primary affiliation, but same additional affiliationSame affiliation for all authors without extra packagesIOS-Book-Article.cls: one author with multiple affiliationacmart: Shared Author AffiliationMultiple authors with different primary affiliation, but same additional affiliationAuthor affiliation with only 1 authorAdding Multiple Authors with Different Affiliation in LaTeX ArticleLaTeX: Multiple authors stays on same lineHow to Label Multiple Authors with Same DescriptionHow to make two authors use the same affiliationTwo authors with same affiliation on finished front page

How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

Problem using RevTeX4-1 with “! Undefined control sequence. @bibitemShut”