Break long word (not long text!) in longtable cellHow to break long words after n chars (long genomic sequences)Allowing values to bypass tabular column alignmentLine-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
Why doesn't the Earth's acceleration towards the Moon accumulate to push the Earth off its orbit?
Can a wire having a 610-670 THz (frequency of blue light) AC frequency supply, generate blue light?
Ticket sales for Queen at the Live Aid
Is floating in space similar to falling under gravity?
Why do they consider the Ori false gods?
What does it mean when you think without speaking?
Tic-Tac-Toe for the terminal
Is there any use case for the bottom type as a function parameter type?
Transform the partial differential equation with new independent variables
How can I prevent interns from being expendable?
Inverter Power draw from 12V battery
Yandex Programming Contest: Alarms
How could Catholicism have incorporated witchcraft into its dogma?
shutdown at specific date
What is the 中 in ダウンロード中?
Looking after a wayward brother in mother's will
What is the difference between nullifying your vote and not going to vote at all?
What is a subpixel in Super Mario Bros, and how does it relate to wall clipping?
Preserving culinary oils
Is this story about US tax office reasonable?
I think I may have violated academic integrity last year - what should I do?
If a massive object like Jupiter flew past the Earth how close would it need to come to pull people off of the surface?
How feasible is the Delta-Glider?
How to capture more stars?
Break long word (not long text!) in longtable cell
How to break long words after n chars (long genomic sequences)Allowing values to bypass tabular column alignmentLine-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
beginlongtable
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
add a comment |
How to break VERY long word in latex? For example:
begincenter
beginlongtable
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
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
beginlongtable
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
How to break VERY long word in latex? For example:
begincenter
beginlongtable
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
edited May 16 at 3:38
Georgy Farniev
asked May 15 at 3:01
Georgy FarnievGeorgy Farniev
234
234
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
beginlongtable
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 :))
– The old 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"?
– The old JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– The old 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
);
);
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
292k32402789
292k32402789
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
beginlongtable
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 :))
– The old 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"?
– The old JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– The old JouleV
May 15 at 5:23
|
show 4 more comments
One can do manual breaking.
documentclassarticle
usepackagelongtable
begindocument
beginlongtable
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 :))
– The old 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"?
– The old JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– The old JouleV
May 15 at 5:23
|
show 4 more comments
One can do manual breaking.
documentclassarticle
usepackagelongtable
begindocument
beginlongtable
hline
1 & 2 & 3 \ hline
111111111111111111111111111111111111111111111-11111111111111 & 2 & 3 \ hline
endlongtable
enddocument
One can do manual breaking.
documentclassarticle
usepackagelongtable
begindocument
beginlongtable
hline
1 & 2 & 3 \ hline
111111111111111111111111111111111111111111111-11111111111111 & 2 & 3 \ hline
endlongtable
enddocument
edited May 15 at 3:17
answered May 15 at 3:06
The old JouleVThe old JouleV
19.5k33175
19.5k33175
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 :))
– The old 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"?
– The old JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– The old 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 :))
– The old 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"?
– The old JouleV
May 15 at 3:21
1
@GeorgyFarniev Alright no problem
– The old 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 :))– The old 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 :))– The old 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"?– The old 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"?– The old JouleV
May 15 at 3:21
1
1
@GeorgyFarniev Alright no problem
– The old JouleV
May 15 at 5:23
@GeorgyFarniev Alright no problem
– The old JouleV
May 15 at 5:23
|
show 4 more comments
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