Break long word (not long text!) in longtable cellHow to break long words after n chars (long genomic sequences)Line-breaking long cell contents when using longtable through datatoolHow to automatically break “a long word with underscore” in a cell of table, using longtabu package?In table cell, how to break long words after “::” or “_”?Longtable Long Word wrapping issuelong word exceeds page widthDoes not break word into parts for a new paragraphBreak long word in tabularLstlisting does not break on long line containing only “*”Too long line in Bibliography, not URL, line break neededAuto line break with very long word within table
How to make Flex Markers appear in Logic Pro X?
What pc resources are used when bruteforcing?
JavaScript: Access 'this' when calling function stored in variable
Wifi light switch needs neutral wire. Why? AND Can that wire be a skinny one?
Was murdering a slave illegal in American slavery, and if so, what punishments were given for it?
Existence of a model of ZFC in which the natural numbers are really the natural numbers
Computing elements of a 1000 x 60 matrix exhausts RAM
A nasty indefinite integral
Writing "hahaha" versus describing the laugh
Congruence, Equal, and Equivalence
If a character has cast the Fly spell on themselves, can they "hand off" to the Levitate spell without interruption?
How to safely discharge oneself
Way of refund if scammed?
Does attacking (or having a rider attack) cancel Charge/Pounce-like abilities?
Proto-Indo-European (PIE) words with IPA
Is it safe to redirect stdout and stderr to the same file without file descriptor copies?
Can diplomats be allowed on the flight deck of a commercial European airline?
Three knights or knaves, three different hair colors
How can I reduce the size of matrix?
Is it normal to "extract a paper" from a master thesis?
Is it OK to look at the list of played moves during the game to determine the status of the 50 move rule?
Caught with my phone during an exam
Why the work done is positive when bringing 2 opposite charges together?
Which values for voltage divider
Break long word (not long text!) in longtable cell
How to break long words after n chars (long genomic sequences)Line-breaking long cell contents when using longtable through datatoolHow to automatically break “a long word with underscore” in a cell of table, using longtabu package?In table cell, how to break long words after “::” or “_”?Longtable Long Word wrapping issuelong word exceeds page widthDoes not break word into parts for a new paragraphBreak long word in tabularLstlisting does not break on long line containing only “*”Too long line in Bibliography, not URL, line break neededAuto line break with very long word within table
How to break VERY long word in latex? For example:
begincenter
beginlongtablep3cm
hline
1 & 2 & 3 \ hline
11111111111111111111111111111111111111111111111111111111111 & 2 & 3 \ hline
endlongtable
endcenter
11111111111111111111111111111111111111111111111111111111111 overlaps next table cells in it's row. Thanks in advance.
UPDATE: Turns out that seqsplit doesn't work for me, as it removes existing spaces between words. I forgot to mention that text may contain space and I didn't notice that it eliminates spaces :(
line-breaking
New contributor
add a comment |
How to break VERY long word in latex? For example:
begincenter
beginlongtablep3cm
hline
1 & 2 & 3 \ hline
11111111111111111111111111111111111111111111111111111111111 & 2 & 3 \ hline
endlongtable
endcenter
11111111111111111111111111111111111111111111111111111111111 overlaps next table cells in it's row. Thanks in advance.
UPDATE: Turns out that seqsplit doesn't work for me, as it removes existing spaces between words. I forgot to mention that text may contain space and I didn't notice that it eliminates spaces :(
line-breaking
New contributor
welcome to tex.se! you should usebabel
for used language. if word hasn't defined hyphenation, you should insert them manually (with-
). as you show in code fragment, you haven't real word, so the meaning of series of digits with this can change its meaning. be careful with hyphenation in such a cases.
– Zarko
May 15 at 3:10
4
This isn't exactly the same situation but the long string that needs to be broken isn't a word: How to break long words after n chars (long genomic sequences)
– barbara beeton
May 15 at 3:21
@barbarabeeton - Many thanks for mentioning theseqsplit
appoach; I've updated my answer to incorporate your suggestion.
– Mico
May 15 at 4:37
add a comment |
How to break VERY long word in latex? For example:
begincenter
beginlongtablep3cm
hline
1 & 2 & 3 \ hline
11111111111111111111111111111111111111111111111111111111111 & 2 & 3 \ hline
endlongtable
endcenter
11111111111111111111111111111111111111111111111111111111111 overlaps next table cells in it's row. Thanks in advance.
UPDATE: Turns out that seqsplit doesn't work for me, as it removes existing spaces between words. I forgot to mention that text may contain space and I didn't notice that it eliminates spaces :(
line-breaking
New contributor
How to break VERY long word in latex? For example:
begincenter
beginlongtablep3cm
hline
1 & 2 & 3 \ hline
11111111111111111111111111111111111111111111111111111111111 & 2 & 3 \ hline
endlongtable
endcenter
11111111111111111111111111111111111111111111111111111111111 overlaps next table cells in it's row. Thanks in advance.
UPDATE: Turns out that seqsplit doesn't work for me, as it removes existing spaces between words. I forgot to mention that text may contain space and I didn't notice that it eliminates spaces :(
line-breaking
line-breaking
New contributor
New contributor
edited May 16 at 3:38
Georgy Farniev
New contributor
asked May 15 at 3:01
Georgy FarnievGeorgy Farniev
234
234
New contributor
New contributor
welcome to tex.se! you should usebabel
for used language. if word hasn't defined hyphenation, you should insert them manually (with-
). as you show in code fragment, you haven't real word, so the meaning of series of digits with this can change its meaning. be careful with hyphenation in such a cases.
– Zarko
May 15 at 3:10
4
This isn't exactly the same situation but the long string that needs to be broken isn't a word: How to break long words after n chars (long genomic sequences)
– barbara beeton
May 15 at 3:21
@barbarabeeton - Many thanks for mentioning theseqsplit
appoach; I've updated my answer to incorporate your suggestion.
– Mico
May 15 at 4:37
add a comment |
welcome to tex.se! you should usebabel
for used language. if word hasn't defined hyphenation, you should insert them manually (with-
). as you show in code fragment, you haven't real word, so the meaning of series of digits with this can change its meaning. be careful with hyphenation in such a cases.
– Zarko
May 15 at 3:10
4
This isn't exactly the same situation but the long string that needs to be broken isn't a word: How to break long words after n chars (long genomic sequences)
– barbara beeton
May 15 at 3:21
@barbarabeeton - Many thanks for mentioning theseqsplit
appoach; I've updated my answer to incorporate your suggestion.
– Mico
May 15 at 4:37
welcome to tex.se! you should use
babel
for used language. if word hasn't defined hyphenation, you should insert them manually (with -
). as you show in code fragment, you haven't real word, so the meaning of series of digits with this can change its meaning. be careful with hyphenation in such a cases.– Zarko
May 15 at 3:10
welcome to tex.se! you should use
babel
for used language. if word hasn't defined hyphenation, you should insert them manually (with -
). as you show in code fragment, you haven't real word, so the meaning of series of digits with this can change its meaning. be careful with hyphenation in such a cases.– Zarko
May 15 at 3:10
4
4
This isn't exactly the same situation but the long string that needs to be broken isn't a word: How to break long words after n chars (long genomic sequences)
– barbara beeton
May 15 at 3:21
This isn't exactly the same situation but the long string that needs to be broken isn't a word: How to break long words after n chars (long genomic sequences)
– barbara beeton
May 15 at 3:21
@barbarabeeton - Many thanks for mentioning the
seqsplit
appoach; I've updated my answer to incorporate your suggestion.– Mico
May 15 at 4:37
@barbarabeeton - Many thanks for mentioning the
seqsplit
appoach; I've updated my answer to incorporate your suggestion.– Mico
May 15 at 4:37
add a comment |
2 Answers
2
active
oldest
votes
(updated the answer to mention the seqsplit
approach)
I have two suggestions:
load the
xurl
package and encase the very long "word" in anurl
directive, andload the
seqsplit
package and encase the very long "word" in aseqsplit
directive.
It looks like the seqsplit
approach manages to pack its contents a tad more tightly than the url
approach does.
In the following code, I replaced longtable
with tabular
since the example isn't really specific to the longtable
package and its machinery.
documentclassarticle
usepackagexurl,seqsplit,array
setlengthextrarowheight3pt % optional
begindocument
begintabularp8cm
hline
A & B & C \
hline
urlstylesame% default is 'urlstylett'
url11111111111111111111111111111111111111111111111111111111111 & 2 & 3 \
seqsplit11111111111111111111111111111111111111111111111111111111111
& 2 & 3 \
hline
endtabular
enddocument
seqsplit
will most likely use the main font, whileurl
may use a monospace font; that could account for the difference in packing density.
– barbara beeton
May 15 at 15:43
@barbarabeeton - Thanks. My answer made sure to include the directiveurlstylesame
; the font *should" be the same in both cells.
– Mico
May 15 at 15:46
add a comment |
One can do manual breaking.
documentclassarticle
usepackagelongtable
begindocument
beginlongtablep3cm
hline
1 & 2 & 3 \ hline
111111111111111111111111111111111111111111111-11111111111111 & 2 & 3 \ hline
endlongtable
enddocument
also with use oftabular
can be to wide (OP not provide any information about its document layout)... use of thelongtable
has sense, if the table can not be placed on one page ... OP question is not very clear :-(
– Zarko
May 15 at 3:13
@Zarko Yes,longtable
ortabular
can't fix the too-wide issue. But this particular table is not long enough (but I know the main table the OP is working on is longer :))
– JouleV
May 15 at 3:14
3
how you know this? apparently you have crystal ball :-). mine is out of order :-(.
– Zarko
May 15 at 3:17
1
@Zarko Hmm I have none. I just take the OP's code and put-
to a random position in the1111111111111111...
Or am I misunderstanding the word "crystal ball"?
– JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– JouleV
May 15 at 5:23
|
show 4 more comments
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
);
);
Georgy Farniev 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%2f490899%2fbreak-long-word-not-long-text-in-longtable-cell%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
(updated the answer to mention the seqsplit
approach)
I have two suggestions:
load the
xurl
package and encase the very long "word" in anurl
directive, andload the
seqsplit
package and encase the very long "word" in aseqsplit
directive.
It looks like the seqsplit
approach manages to pack its contents a tad more tightly than the url
approach does.
In the following code, I replaced longtable
with tabular
since the example isn't really specific to the longtable
package and its machinery.
documentclassarticle
usepackagexurl,seqsplit,array
setlengthextrarowheight3pt % optional
begindocument
begintabularp8cm
hline
A & B & C \
hline
urlstylesame% default is 'urlstylett'
url11111111111111111111111111111111111111111111111111111111111 & 2 & 3 \
seqsplit11111111111111111111111111111111111111111111111111111111111
& 2 & 3 \
hline
endtabular
enddocument
seqsplit
will most likely use the main font, whileurl
may use a monospace font; that could account for the difference in packing density.
– barbara beeton
May 15 at 15:43
@barbarabeeton - Thanks. My answer made sure to include the directiveurlstylesame
; the font *should" be the same in both cells.
– Mico
May 15 at 15:46
add a comment |
(updated the answer to mention the seqsplit
approach)
I have two suggestions:
load the
xurl
package and encase the very long "word" in anurl
directive, andload the
seqsplit
package and encase the very long "word" in aseqsplit
directive.
It looks like the seqsplit
approach manages to pack its contents a tad more tightly than the url
approach does.
In the following code, I replaced longtable
with tabular
since the example isn't really specific to the longtable
package and its machinery.
documentclassarticle
usepackagexurl,seqsplit,array
setlengthextrarowheight3pt % optional
begindocument
begintabularp8cm
hline
A & B & C \
hline
urlstylesame% default is 'urlstylett'
url11111111111111111111111111111111111111111111111111111111111 & 2 & 3 \
seqsplit11111111111111111111111111111111111111111111111111111111111
& 2 & 3 \
hline
endtabular
enddocument
seqsplit
will most likely use the main font, whileurl
may use a monospace font; that could account for the difference in packing density.
– barbara beeton
May 15 at 15:43
@barbarabeeton - Thanks. My answer made sure to include the directiveurlstylesame
; the font *should" be the same in both cells.
– Mico
May 15 at 15:46
add a comment |
(updated the answer to mention the seqsplit
approach)
I have two suggestions:
load the
xurl
package and encase the very long "word" in anurl
directive, andload the
seqsplit
package and encase the very long "word" in aseqsplit
directive.
It looks like the seqsplit
approach manages to pack its contents a tad more tightly than the url
approach does.
In the following code, I replaced longtable
with tabular
since the example isn't really specific to the longtable
package and its machinery.
documentclassarticle
usepackagexurl,seqsplit,array
setlengthextrarowheight3pt % optional
begindocument
begintabularp8cm
hline
A & B & C \
hline
urlstylesame% default is 'urlstylett'
url11111111111111111111111111111111111111111111111111111111111 & 2 & 3 \
seqsplit11111111111111111111111111111111111111111111111111111111111
& 2 & 3 \
hline
endtabular
enddocument
(updated the answer to mention the seqsplit
approach)
I have two suggestions:
load the
xurl
package and encase the very long "word" in anurl
directive, andload the
seqsplit
package and encase the very long "word" in aseqsplit
directive.
It looks like the seqsplit
approach manages to pack its contents a tad more tightly than the url
approach does.
In the following code, I replaced longtable
with tabular
since the example isn't really specific to the longtable
package and its machinery.
documentclassarticle
usepackagexurl,seqsplit,array
setlengthextrarowheight3pt % optional
begindocument
begintabularp8cm
hline
A & B & C \
hline
urlstylesame% default is 'urlstylett'
url11111111111111111111111111111111111111111111111111111111111 & 2 & 3 \
seqsplit11111111111111111111111111111111111111111111111111111111111
& 2 & 3 \
hline
endtabular
enddocument
edited May 15 at 4:41
answered May 15 at 3:21
MicoMico
291k32400788
291k32400788
seqsplit
will most likely use the main font, whileurl
may use a monospace font; that could account for the difference in packing density.
– barbara beeton
May 15 at 15:43
@barbarabeeton - Thanks. My answer made sure to include the directiveurlstylesame
; the font *should" be the same in both cells.
– Mico
May 15 at 15:46
add a comment |
seqsplit
will most likely use the main font, whileurl
may use a monospace font; that could account for the difference in packing density.
– barbara beeton
May 15 at 15:43
@barbarabeeton - Thanks. My answer made sure to include the directiveurlstylesame
; the font *should" be the same in both cells.
– Mico
May 15 at 15:46
seqsplit
will most likely use the main font, while url
may use a monospace font; that could account for the difference in packing density.– barbara beeton
May 15 at 15:43
seqsplit
will most likely use the main font, while url
may use a monospace font; that could account for the difference in packing density.– barbara beeton
May 15 at 15:43
@barbarabeeton - Thanks. My answer made sure to include the directive
urlstylesame
; the font *should" be the same in both cells.– Mico
May 15 at 15:46
@barbarabeeton - Thanks. My answer made sure to include the directive
urlstylesame
; the font *should" be the same in both cells.– Mico
May 15 at 15:46
add a comment |
One can do manual breaking.
documentclassarticle
usepackagelongtable
begindocument
beginlongtablep3cm
hline
1 & 2 & 3 \ hline
111111111111111111111111111111111111111111111-11111111111111 & 2 & 3 \ hline
endlongtable
enddocument
also with use oftabular
can be to wide (OP not provide any information about its document layout)... use of thelongtable
has sense, if the table can not be placed on one page ... OP question is not very clear :-(
– Zarko
May 15 at 3:13
@Zarko Yes,longtable
ortabular
can't fix the too-wide issue. But this particular table is not long enough (but I know the main table the OP is working on is longer :))
– JouleV
May 15 at 3:14
3
how you know this? apparently you have crystal ball :-). mine is out of order :-(.
– Zarko
May 15 at 3:17
1
@Zarko Hmm I have none. I just take the OP's code and put-
to a random position in the1111111111111111...
Or am I misunderstanding the word "crystal ball"?
– JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– JouleV
May 15 at 5:23
|
show 4 more comments
One can do manual breaking.
documentclassarticle
usepackagelongtable
begindocument
beginlongtablep3cm
hline
1 & 2 & 3 \ hline
111111111111111111111111111111111111111111111-11111111111111 & 2 & 3 \ hline
endlongtable
enddocument
also with use oftabular
can be to wide (OP not provide any information about its document layout)... use of thelongtable
has sense, if the table can not be placed on one page ... OP question is not very clear :-(
– Zarko
May 15 at 3:13
@Zarko Yes,longtable
ortabular
can't fix the too-wide issue. But this particular table is not long enough (but I know the main table the OP is working on is longer :))
– JouleV
May 15 at 3:14
3
how you know this? apparently you have crystal ball :-). mine is out of order :-(.
– Zarko
May 15 at 3:17
1
@Zarko Hmm I have none. I just take the OP's code and put-
to a random position in the1111111111111111...
Or am I misunderstanding the word "crystal ball"?
– JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– JouleV
May 15 at 5:23
|
show 4 more comments
One can do manual breaking.
documentclassarticle
usepackagelongtable
begindocument
beginlongtablep3cm
hline
1 & 2 & 3 \ hline
111111111111111111111111111111111111111111111-11111111111111 & 2 & 3 \ hline
endlongtable
enddocument
One can do manual breaking.
documentclassarticle
usepackagelongtable
begindocument
beginlongtablep3cm
hline
1 & 2 & 3 \ hline
111111111111111111111111111111111111111111111-11111111111111 & 2 & 3 \ hline
endlongtable
enddocument
edited May 15 at 3:17
answered May 15 at 3:06
JouleVJouleV
18.3k22971
18.3k22971
also with use oftabular
can be to wide (OP not provide any information about its document layout)... use of thelongtable
has sense, if the table can not be placed on one page ... OP question is not very clear :-(
– Zarko
May 15 at 3:13
@Zarko Yes,longtable
ortabular
can't fix the too-wide issue. But this particular table is not long enough (but I know the main table the OP is working on is longer :))
– JouleV
May 15 at 3:14
3
how you know this? apparently you have crystal ball :-). mine is out of order :-(.
– Zarko
May 15 at 3:17
1
@Zarko Hmm I have none. I just take the OP's code and put-
to a random position in the1111111111111111...
Or am I misunderstanding the word "crystal ball"?
– JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– JouleV
May 15 at 5:23
|
show 4 more comments
also with use oftabular
can be to wide (OP not provide any information about its document layout)... use of thelongtable
has sense, if the table can not be placed on one page ... OP question is not very clear :-(
– Zarko
May 15 at 3:13
@Zarko Yes,longtable
ortabular
can't fix the too-wide issue. But this particular table is not long enough (but I know the main table the OP is working on is longer :))
– JouleV
May 15 at 3:14
3
how you know this? apparently you have crystal ball :-). mine is out of order :-(.
– Zarko
May 15 at 3:17
1
@Zarko Hmm I have none. I just take the OP's code and put-
to a random position in the1111111111111111...
Or am I misunderstanding the word "crystal ball"?
– JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– JouleV
May 15 at 5:23
also with use of
tabular
can be to wide (OP not provide any information about its document layout)... use of the longtable
has sense, if the table can not be placed on one page ... OP question is not very clear :-(– Zarko
May 15 at 3:13
also with use of
tabular
can be to wide (OP not provide any information about its document layout)... use of the longtable
has sense, if the table can not be placed on one page ... OP question is not very clear :-(– Zarko
May 15 at 3:13
@Zarko Yes,
longtable
or tabular
can't fix the too-wide issue. But this particular table is not long enough (but I know the main table the OP is working on is longer :))– JouleV
May 15 at 3:14
@Zarko Yes,
longtable
or tabular
can't fix the too-wide issue. But this particular table is not long enough (but I know the main table the OP is working on is longer :))– JouleV
May 15 at 3:14
3
3
how you know this? apparently you have crystal ball :-). mine is out of order :-(.
– Zarko
May 15 at 3:17
how you know this? apparently you have crystal ball :-). mine is out of order :-(.
– Zarko
May 15 at 3:17
1
1
@Zarko Hmm I have none. I just take the OP's code and put
-
to a random position in the 1111111111111111...
Or am I misunderstanding the word "crystal ball"?– JouleV
May 15 at 3:21
@Zarko Hmm I have none. I just take the OP's code and put
-
to a random position in the 1111111111111111...
Or am I misunderstanding the word "crystal ball"?– JouleV
May 15 at 3:21
1
1
@GeorgyFarniev Alright no problem
– JouleV
May 15 at 5:23
@GeorgyFarniev Alright no problem
– JouleV
May 15 at 5:23
|
show 4 more comments
Georgy Farniev is a new contributor. Be nice, and check out our Code of Conduct.
Georgy Farniev is a new contributor. Be nice, and check out our Code of Conduct.
Georgy Farniev is a new contributor. Be nice, and check out our Code of Conduct.
Georgy Farniev 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%2f490899%2fbreak-long-word-not-long-text-in-longtable-cell%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
welcome to tex.se! you should use
babel
for used language. if word hasn't defined hyphenation, you should insert them manually (with-
). as you show in code fragment, you haven't real word, so the meaning of series of digits with this can change its meaning. be careful with hyphenation in such a cases.– Zarko
May 15 at 3:10
4
This isn't exactly the same situation but the long string that needs to be broken isn't a word: How to break long words after n chars (long genomic sequences)
– barbara beeton
May 15 at 3:21
@barbarabeeton - Many thanks for mentioning the
seqsplit
appoach; I've updated my answer to incorporate your suggestion.– Mico
May 15 at 4:37