Overful hbox (How to make the sentence in a table into 2 line?)How to get multiple multirows in a table?Paragraph column in tabular working only in the first columnHow to make table with caption appearing on listoftables without begintable environment?how to make a line between two rows in table? (when no space between strings)Make table use page widthiosart2c table* will make next table caption overflow into second column“There´s no line here to end” after trying to make a tableHow to make the horizontal line of the table shorter?How to put a table with caption inside a “mdframed” theorem example style boxAdding vertical lines in table
May a hotel provide accommodation for fewer people than booked?
UX writing: When to use "we"?
Oath of redemption: Does Emmissary of Peace reflect damage taken from Aura of the Guardian?
Could flaps be raised upward to serve as spoilers / lift dumpers?
"DDoouubbllee ssppeeaakk!!"
Why should I use a big powerstone instead of smaller ones?
Overful hbox (How to make the sentence in a table into 2 line?)
What is the significance of $(logname)?
Is the EU really banning "toxic propellants" in 2020? How is that going to work?
How is Sword Coast North governed?
Why did the United States not resort to nuclear weapons in Vietnam?
Python π = 1 + (1/2) + (1/3) + (1/4) - (1/5) + (1/6) + (1/7) + (1/8) + (1/9) - (1/10) ...1748 Euler
How to gracefully excuse yourself from a meeting due to emergencies such as a restroom break?
How to let cacti grow even if no player is near?
Are some indefinite integrals impossible to compute or just don't exist?
When did J.K. Rowling decide to make Harry and Ginny a couple?
What is my clock telling me to do?
Password management for kids - what's a good way to start?
Is it really a problem to declare that a visitor to the UK is my "girlfriend", in terms of her successfully getting a Standard Visitor visa?
What Marvel character has this 'W' symbol?
What is the most 'environmentally friendly' way to learn to fly?
How to derive trigonometric Cartesian equation from parametric
How to structure presentation to avoid getting questions that will be answered later in the presentation?
Can I say "Gesundheit" if someone is coughing?
Overful hbox (How to make the sentence in a table into 2 line?)
How to get multiple multirows in a table?Paragraph column in tabular working only in the first columnHow to make table with caption appearing on listoftables without begintable environment?how to make a line between two rows in table? (when no space between strings)Make table use page widthiosart2c table* will make next table caption overflow into second column“There´s no line here to end” after trying to make a tableHow to make the horizontal line of the table shorter?How to put a table with caption inside a “mdframed” theorem example style boxAdding vertical lines in table
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
begintable[h!]
centering
begintabularc
1 & 2 & 3 & 4jkjhkjkhjhkjkjkjl & 5fsdsadsadasdsadsadasdsadsa & 6dasdsadasdasdasdasdsadasdsa \
hline
1 & 2 & 3 \
1 & 2 & 3 \
endtabular
captiontes
labeltab:my_label
endtable
Output:

How to make it "5fsdsadsadasdsadsadasdsadsa" into 2 line?
For example:
5fsdsadsadasd
sadsadasdsadsa
tables boxes
New contributor
user193541 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
begintable[h!]
centering
begintabularc
1 & 2 & 3 & 4jkjhkjkhjhkjkjkjl & 5fsdsadsadasdsadsadasdsadsa & 6dasdsadasdasdasdasdsadasdsa \
hline
1 & 2 & 3 \
1 & 2 & 3 \
endtabular
captiontes
labeltab:my_label
endtable
Output:

How to make it "5fsdsadsadasdsadsadasdsadsa" into 2 line?
For example:
5fsdsadsadasd
sadsadasdsadsa
tables boxes
New contributor
user193541 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
You can usep<width>column type for last three columns. It will works fine with natural words (which eventually can be hyphenated).
– Zarko
7 hours ago
3
you should supply a proper test file, you have given no indication of the required page width, also5fsdsadsadasdsadsadasdsadsanot being a real word, which means that it will not hyphenate and so automatic line breaking is harder, is your real text natural language text?
– David Carlisle
7 hours ago
@DavidCarlisle Thanks. I am not sure how to check my page width. I used a template for it. And yes, 5fsdsadsadasdsadsadasdsadsa can be a real word, just an example
– user193541
3 hours ago
@user193541 then it is a bad example as breaking5fsdsadsadasdsadsadasdsadsaautomatically is far harder than breaking natural language text, so both examples that have have are probably not suitable for natural language. You could have posted a complete document just useingarticleas both answers have done
– David Carlisle
3 hours ago
add a comment |
begintable[h!]
centering
begintabularc
1 & 2 & 3 & 4jkjhkjkhjhkjkjkjl & 5fsdsadsadasdsadsadasdsadsa & 6dasdsadasdasdasdasdsadasdsa \
hline
1 & 2 & 3 \
1 & 2 & 3 \
endtabular
captiontes
labeltab:my_label
endtable
Output:

How to make it "5fsdsadsadasdsadsadasdsadsa" into 2 line?
For example:
5fsdsadsadasd
sadsadasdsadsa
tables boxes
New contributor
user193541 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
begintable[h!]
centering
begintabularc
1 & 2 & 3 & 4jkjhkjkhjhkjkjkjl & 5fsdsadsadasdsadsadasdsadsa & 6dasdsadasdasdasdasdsadasdsa \
hline
1 & 2 & 3 \
1 & 2 & 3 \
endtabular
captiontes
labeltab:my_label
endtable
Output:

How to make it "5fsdsadsadasdsadsadasdsadsa" into 2 line?
For example:
5fsdsadsadasd
sadsadasdsadsa
tables boxes
tables boxes
New contributor
user193541 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user193541 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 8 hours ago
moewe
103k11 gold badges129 silver badges388 bronze badges
103k11 gold badges129 silver badges388 bronze badges
New contributor
user193541 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 8 hours ago
user193541user193541
555 bronze badges
555 bronze badges
New contributor
user193541 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user193541 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
You can usep<width>column type for last three columns. It will works fine with natural words (which eventually can be hyphenated).
– Zarko
7 hours ago
3
you should supply a proper test file, you have given no indication of the required page width, also5fsdsadsadasdsadsadasdsadsanot being a real word, which means that it will not hyphenate and so automatic line breaking is harder, is your real text natural language text?
– David Carlisle
7 hours ago
@DavidCarlisle Thanks. I am not sure how to check my page width. I used a template for it. And yes, 5fsdsadsadasdsadsadasdsadsa can be a real word, just an example
– user193541
3 hours ago
@user193541 then it is a bad example as breaking5fsdsadsadasdsadsadasdsadsaautomatically is far harder than breaking natural language text, so both examples that have have are probably not suitable for natural language. You could have posted a complete document just useingarticleas both answers have done
– David Carlisle
3 hours ago
add a comment |
2
You can usep<width>column type for last three columns. It will works fine with natural words (which eventually can be hyphenated).
– Zarko
7 hours ago
3
you should supply a proper test file, you have given no indication of the required page width, also5fsdsadsadasdsadsadasdsadsanot being a real word, which means that it will not hyphenate and so automatic line breaking is harder, is your real text natural language text?
– David Carlisle
7 hours ago
@DavidCarlisle Thanks. I am not sure how to check my page width. I used a template for it. And yes, 5fsdsadsadasdsadsadasdsadsa can be a real word, just an example
– user193541
3 hours ago
@user193541 then it is a bad example as breaking5fsdsadsadasdsadsadasdsadsaautomatically is far harder than breaking natural language text, so both examples that have have are probably not suitable for natural language. You could have posted a complete document just useingarticleas both answers have done
– David Carlisle
3 hours ago
2
2
You can use
p<width> column type for last three columns. It will works fine with natural words (which eventually can be hyphenated).– Zarko
7 hours ago
You can use
p<width> column type for last three columns. It will works fine with natural words (which eventually can be hyphenated).– Zarko
7 hours ago
3
3
you should supply a proper test file, you have given no indication of the required page width, also
5fsdsadsadasdsadsadasdsadsa not being a real word, which means that it will not hyphenate and so automatic line breaking is harder, is your real text natural language text?– David Carlisle
7 hours ago
you should supply a proper test file, you have given no indication of the required page width, also
5fsdsadsadasdsadsadasdsadsa not being a real word, which means that it will not hyphenate and so automatic line breaking is harder, is your real text natural language text?– David Carlisle
7 hours ago
@DavidCarlisle Thanks. I am not sure how to check my page width. I used a template for it. And yes, 5fsdsadsadasdsadsadasdsadsa can be a real word, just an example
– user193541
3 hours ago
@DavidCarlisle Thanks. I am not sure how to check my page width. I used a template for it. And yes, 5fsdsadsadasdsadsadasdsadsa can be a real word, just an example
– user193541
3 hours ago
@user193541 then it is a bad example as breaking
5fsdsadsadasdsadsadasdsadsa automatically is far harder than breaking natural language text, so both examples that have have are probably not suitable for natural language. You could have posted a complete document just useing article as both answers have done– David Carlisle
3 hours ago
@user193541 then it is a bad example as breaking
5fsdsadsadasdsadsadasdsadsa automatically is far harder than breaking natural language text, so both examples that have have are probably not suitable for natural language. You could have posted a complete document just useing article as both answers have done– David Carlisle
3 hours ago
add a comment |
2 Answers
2
active
oldest
votes
You haven't indicated how wide columns 4, 5, and 6 are supposed to be. Hence, I'll assume they're supposed to be equally wide. I will further assume that the overall width of the tabular material should be textwidth, i.e., as wide as the text block. The code below employs a tabularx environment and three columns of type X.
Since there is no obvious way -- to me at least... -- to decide where the strings "5fsdsadsadasdsadsadasdsadsa" and "6dasdsadasdasdasdasdsadasdsa" should be split, I'll use the seqsplit macro to force line breaks to occur whenever the strings reach the widths of the respective cells.

documentclassarticle
usepackagetabularx,seqsplit
begindocument
begintable[h!]
setlengthextrarowheight2pt % for a ever so slightly more open "look"
begintabularxtextwidth
hline
1 & 2 & 3 &
seqsplit4jkjhkjkhjhkjkjkjl &
seqsplit5fsdsadsadasdsadsadasdsadsa &
seqsplit6dasdsadasdasdasdasdsadasdsa \
hline
1 & 2 & 3 & & & \
1 & 2 & 3 & & & \
hline
endtabularx
captiontes
labeltab:my_label
endtable
enddocument
Thanks, work very well.
– user193541
3 hours ago
Can you explain what "setlengthextrarowheight2pt " means? Is this mean 2 line?
– user193541
3 hours ago
@user193541 -extrarowheightis a length parameter that governs much extra vertical whitespace is inserted at the top of each row; its default value is0pt. Try is out an atabularenvironment -- first with the value set at its default, then with a value of2pt. I think you'll notice the difference right away.
– Mico
3 hours ago
Thanks. However, the words is combine without a spacing in the orginal words. Meaning let say 'seqsplitTesting 1 testing 2 Testing 3l'. It will become 'Testing1testing2Testing3' and not 'Testing 1 testing 2 Testing 3'
– user193541
2 hours ago
@user193541 - Don’t useseqsplitif there’s no need for it.
– Mico
2 hours ago
|
show 1 more comment

documentclassarticle
begindocument
begintable[htp]% h on its own is asking for trouble
centering
begintabularc
1 & 2 & 3 & 4jkjhkjkhjhkjkjkjl &
begintabular@c@5fsdsadsadasd\sadsadasdsadsaendtabular &
begintabular@c@6dasdsadasdasd\asdasdsadasdsaendtabular \
hline
1 & 2 & 3 \
1 & 2 & 3 \
endtabular
captiontes
labeltab:my_label
endtable
enddocument
add a comment |
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
);
);
user193541 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%2f502573%2foverful-hbox-how-to-make-the-sentence-in-a-table-into-2-line%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
You haven't indicated how wide columns 4, 5, and 6 are supposed to be. Hence, I'll assume they're supposed to be equally wide. I will further assume that the overall width of the tabular material should be textwidth, i.e., as wide as the text block. The code below employs a tabularx environment and three columns of type X.
Since there is no obvious way -- to me at least... -- to decide where the strings "5fsdsadsadasdsadsadasdsadsa" and "6dasdsadasdasdasdasdsadasdsa" should be split, I'll use the seqsplit macro to force line breaks to occur whenever the strings reach the widths of the respective cells.

documentclassarticle
usepackagetabularx,seqsplit
begindocument
begintable[h!]
setlengthextrarowheight2pt % for a ever so slightly more open "look"
begintabularxtextwidth
hline
1 & 2 & 3 &
seqsplit4jkjhkjkhjhkjkjkjl &
seqsplit5fsdsadsadasdsadsadasdsadsa &
seqsplit6dasdsadasdasdasdasdsadasdsa \
hline
1 & 2 & 3 & & & \
1 & 2 & 3 & & & \
hline
endtabularx
captiontes
labeltab:my_label
endtable
enddocument
Thanks, work very well.
– user193541
3 hours ago
Can you explain what "setlengthextrarowheight2pt " means? Is this mean 2 line?
– user193541
3 hours ago
@user193541 -extrarowheightis a length parameter that governs much extra vertical whitespace is inserted at the top of each row; its default value is0pt. Try is out an atabularenvironment -- first with the value set at its default, then with a value of2pt. I think you'll notice the difference right away.
– Mico
3 hours ago
Thanks. However, the words is combine without a spacing in the orginal words. Meaning let say 'seqsplitTesting 1 testing 2 Testing 3l'. It will become 'Testing1testing2Testing3' and not 'Testing 1 testing 2 Testing 3'
– user193541
2 hours ago
@user193541 - Don’t useseqsplitif there’s no need for it.
– Mico
2 hours ago
|
show 1 more comment
You haven't indicated how wide columns 4, 5, and 6 are supposed to be. Hence, I'll assume they're supposed to be equally wide. I will further assume that the overall width of the tabular material should be textwidth, i.e., as wide as the text block. The code below employs a tabularx environment and three columns of type X.
Since there is no obvious way -- to me at least... -- to decide where the strings "5fsdsadsadasdsadsadasdsadsa" and "6dasdsadasdasdasdasdsadasdsa" should be split, I'll use the seqsplit macro to force line breaks to occur whenever the strings reach the widths of the respective cells.

documentclassarticle
usepackagetabularx,seqsplit
begindocument
begintable[h!]
setlengthextrarowheight2pt % for a ever so slightly more open "look"
begintabularxtextwidth
hline
1 & 2 & 3 &
seqsplit4jkjhkjkhjhkjkjkjl &
seqsplit5fsdsadsadasdsadsadasdsadsa &
seqsplit6dasdsadasdasdasdasdsadasdsa \
hline
1 & 2 & 3 & & & \
1 & 2 & 3 & & & \
hline
endtabularx
captiontes
labeltab:my_label
endtable
enddocument
Thanks, work very well.
– user193541
3 hours ago
Can you explain what "setlengthextrarowheight2pt " means? Is this mean 2 line?
– user193541
3 hours ago
@user193541 -extrarowheightis a length parameter that governs much extra vertical whitespace is inserted at the top of each row; its default value is0pt. Try is out an atabularenvironment -- first with the value set at its default, then with a value of2pt. I think you'll notice the difference right away.
– Mico
3 hours ago
Thanks. However, the words is combine without a spacing in the orginal words. Meaning let say 'seqsplitTesting 1 testing 2 Testing 3l'. It will become 'Testing1testing2Testing3' and not 'Testing 1 testing 2 Testing 3'
– user193541
2 hours ago
@user193541 - Don’t useseqsplitif there’s no need for it.
– Mico
2 hours ago
|
show 1 more comment
You haven't indicated how wide columns 4, 5, and 6 are supposed to be. Hence, I'll assume they're supposed to be equally wide. I will further assume that the overall width of the tabular material should be textwidth, i.e., as wide as the text block. The code below employs a tabularx environment and three columns of type X.
Since there is no obvious way -- to me at least... -- to decide where the strings "5fsdsadsadasdsadsadasdsadsa" and "6dasdsadasdasdasdasdsadasdsa" should be split, I'll use the seqsplit macro to force line breaks to occur whenever the strings reach the widths of the respective cells.

documentclassarticle
usepackagetabularx,seqsplit
begindocument
begintable[h!]
setlengthextrarowheight2pt % for a ever so slightly more open "look"
begintabularxtextwidth
hline
1 & 2 & 3 &
seqsplit4jkjhkjkhjhkjkjkjl &
seqsplit5fsdsadsadasdsadsadasdsadsa &
seqsplit6dasdsadasdasdasdasdsadasdsa \
hline
1 & 2 & 3 & & & \
1 & 2 & 3 & & & \
hline
endtabularx
captiontes
labeltab:my_label
endtable
enddocument
You haven't indicated how wide columns 4, 5, and 6 are supposed to be. Hence, I'll assume they're supposed to be equally wide. I will further assume that the overall width of the tabular material should be textwidth, i.e., as wide as the text block. The code below employs a tabularx environment and three columns of type X.
Since there is no obvious way -- to me at least... -- to decide where the strings "5fsdsadsadasdsadsadasdsadsa" and "6dasdsadasdasdasdasdsadasdsa" should be split, I'll use the seqsplit macro to force line breaks to occur whenever the strings reach the widths of the respective cells.

documentclassarticle
usepackagetabularx,seqsplit
begindocument
begintable[h!]
setlengthextrarowheight2pt % for a ever so slightly more open "look"
begintabularxtextwidth
hline
1 & 2 & 3 &
seqsplit4jkjhkjkhjhkjkjkjl &
seqsplit5fsdsadsadasdsadsadasdsadsa &
seqsplit6dasdsadasdasdasdasdsadasdsa \
hline
1 & 2 & 3 & & & \
1 & 2 & 3 & & & \
hline
endtabularx
captiontes
labeltab:my_label
endtable
enddocument
answered 6 hours ago
MicoMico
300k32 gold badges411 silver badges816 bronze badges
300k32 gold badges411 silver badges816 bronze badges
Thanks, work very well.
– user193541
3 hours ago
Can you explain what "setlengthextrarowheight2pt " means? Is this mean 2 line?
– user193541
3 hours ago
@user193541 -extrarowheightis a length parameter that governs much extra vertical whitespace is inserted at the top of each row; its default value is0pt. Try is out an atabularenvironment -- first with the value set at its default, then with a value of2pt. I think you'll notice the difference right away.
– Mico
3 hours ago
Thanks. However, the words is combine without a spacing in the orginal words. Meaning let say 'seqsplitTesting 1 testing 2 Testing 3l'. It will become 'Testing1testing2Testing3' and not 'Testing 1 testing 2 Testing 3'
– user193541
2 hours ago
@user193541 - Don’t useseqsplitif there’s no need for it.
– Mico
2 hours ago
|
show 1 more comment
Thanks, work very well.
– user193541
3 hours ago
Can you explain what "setlengthextrarowheight2pt " means? Is this mean 2 line?
– user193541
3 hours ago
@user193541 -extrarowheightis a length parameter that governs much extra vertical whitespace is inserted at the top of each row; its default value is0pt. Try is out an atabularenvironment -- first with the value set at its default, then with a value of2pt. I think you'll notice the difference right away.
– Mico
3 hours ago
Thanks. However, the words is combine without a spacing in the orginal words. Meaning let say 'seqsplitTesting 1 testing 2 Testing 3l'. It will become 'Testing1testing2Testing3' and not 'Testing 1 testing 2 Testing 3'
– user193541
2 hours ago
@user193541 - Don’t useseqsplitif there’s no need for it.
– Mico
2 hours ago
Thanks, work very well.
– user193541
3 hours ago
Thanks, work very well.
– user193541
3 hours ago
Can you explain what "setlengthextrarowheight2pt " means? Is this mean 2 line?
– user193541
3 hours ago
Can you explain what "setlengthextrarowheight2pt " means? Is this mean 2 line?
– user193541
3 hours ago
@user193541 -
extrarowheight is a length parameter that governs much extra vertical whitespace is inserted at the top of each row; its default value is 0pt. Try is out an a tabular environment -- first with the value set at its default, then with a value of 2pt. I think you'll notice the difference right away.– Mico
3 hours ago
@user193541 -
extrarowheight is a length parameter that governs much extra vertical whitespace is inserted at the top of each row; its default value is 0pt. Try is out an a tabular environment -- first with the value set at its default, then with a value of 2pt. I think you'll notice the difference right away.– Mico
3 hours ago
Thanks. However, the words is combine without a spacing in the orginal words. Meaning let say 'seqsplitTesting 1 testing 2 Testing 3l'. It will become 'Testing1testing2Testing3' and not 'Testing 1 testing 2 Testing 3'
– user193541
2 hours ago
Thanks. However, the words is combine without a spacing in the orginal words. Meaning let say 'seqsplitTesting 1 testing 2 Testing 3l'. It will become 'Testing1testing2Testing3' and not 'Testing 1 testing 2 Testing 3'
– user193541
2 hours ago
@user193541 - Don’t use
seqsplit if there’s no need for it.– Mico
2 hours ago
@user193541 - Don’t use
seqsplit if there’s no need for it.– Mico
2 hours ago
|
show 1 more comment

documentclassarticle
begindocument
begintable[htp]% h on its own is asking for trouble
centering
begintabularc
1 & 2 & 3 & 4jkjhkjkhjhkjkjkjl &
begintabular@c@5fsdsadsadasd\sadsadasdsadsaendtabular &
begintabular@c@6dasdsadasdasd\asdasdsadasdsaendtabular \
hline
1 & 2 & 3 \
1 & 2 & 3 \
endtabular
captiontes
labeltab:my_label
endtable
enddocument
add a comment |

documentclassarticle
begindocument
begintable[htp]% h on its own is asking for trouble
centering
begintabularc
1 & 2 & 3 & 4jkjhkjkhjhkjkjkjl &
begintabular@c@5fsdsadsadasd\sadsadasdsadsaendtabular &
begintabular@c@6dasdsadasdasd\asdasdsadasdsaendtabular \
hline
1 & 2 & 3 \
1 & 2 & 3 \
endtabular
captiontes
labeltab:my_label
endtable
enddocument
add a comment |

documentclassarticle
begindocument
begintable[htp]% h on its own is asking for trouble
centering
begintabularc
1 & 2 & 3 & 4jkjhkjkhjhkjkjkjl &
begintabular@c@5fsdsadsadasd\sadsadasdsadsaendtabular &
begintabular@c@6dasdsadasdasd\asdasdsadasdsaendtabular \
hline
1 & 2 & 3 \
1 & 2 & 3 \
endtabular
captiontes
labeltab:my_label
endtable
enddocument

documentclassarticle
begindocument
begintable[htp]% h on its own is asking for trouble
centering
begintabularc
1 & 2 & 3 & 4jkjhkjkhjhkjkjkjl &
begintabular@c@5fsdsadsadasd\sadsadasdsadsaendtabular &
begintabular@c@6dasdsadasdasd\asdasdsadasdsaendtabular \
hline
1 & 2 & 3 \
1 & 2 & 3 \
endtabular
captiontes
labeltab:my_label
endtable
enddocument
answered 6 hours ago
David CarlisleDavid Carlisle
518k44 gold badges1173 silver badges1943 bronze badges
518k44 gold badges1173 silver badges1943 bronze badges
add a comment |
add a comment |
user193541 is a new contributor. Be nice, and check out our Code of Conduct.
user193541 is a new contributor. Be nice, and check out our Code of Conduct.
user193541 is a new contributor. Be nice, and check out our Code of Conduct.
user193541 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%2f502573%2foverful-hbox-how-to-make-the-sentence-in-a-table-into-2-line%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
2
You can use
p<width>column type for last three columns. It will works fine with natural words (which eventually can be hyphenated).– Zarko
7 hours ago
3
you should supply a proper test file, you have given no indication of the required page width, also
5fsdsadsadasdsadsadasdsadsanot being a real word, which means that it will not hyphenate and so automatic line breaking is harder, is your real text natural language text?– David Carlisle
7 hours ago
@DavidCarlisle Thanks. I am not sure how to check my page width. I used a template for it. And yes, 5fsdsadsadasdsadsadasdsadsa can be a real word, just an example
– user193541
3 hours ago
@user193541 then it is a bad example as breaking
5fsdsadsadasdsadsadasdsadsaautomatically is far harder than breaking natural language text, so both examples that have have are probably not suitable for natural language. You could have posted a complete document just useingarticleas both answers have done– David Carlisle
3 hours ago