How could I adjust the text of a column in a table?What commands are there for horizontal spacing?Adjust column width of a tableHow to adjust this table?Adjust the table width to be the column widthHow could I modify the following table?Too long vertical lines in table when declarations must remain on distinct linesHow to adjust table width to 1 column in 2 column documenthow to make table page width and column to automatically adjust to fit textAdjust Text in Table Cell IssueAdjust Table | Landscape Page | Adjust TextHow to adjust table and text flow
Odd PCB Layout for Voltage Regulator
what does "$@" mean inside a find command
German idiomatic equivalents of 能骗就骗 (if you can cheat, then cheat)
Merging two data frames into a new one with unique items marked with 1 or 0
What is the function of const specifier in enum types?
How soon after takeoff can you recline your airplane seat?
Family-wise Type I error OLS regression
Searching for single buildings in QGIS
Why are symbols not written in words?
Did the Shuttle payload bay have illumination?
Russian equivalents of 能骗就骗 (if you can cheat, then cheat)
Why can't i use !(single pattern) in zsh even after i turn on kshglob?
How can I write this expression using summation or double summation?
Available snapshots for main net?
Bootstrap paradox with a time machine in iron
How might boat designs change in order to allow them to be pulled by dragons?
Why will we fail creating a self sustaining off world colony?
Find the closest three-digit hex colour
Polynomial and roots problems
SQL Server Ignoring Instance name when using port number of different instance
What caused the flashes in the video footage of Chernobyl?
What was the ASCII end of medium (EM) character intended to be used for?
Tricky riddle from sister
Which high-degree derivatives play an essential role?
How could I adjust the text of a column in a table?
What commands are there for horizontal spacing?Adjust column width of a tableHow to adjust this table?Adjust the table width to be the column widthHow could I modify the following table?Too long vertical lines in table when declarations must remain on distinct linesHow to adjust table width to 1 column in 2 column documenthow to make table page width and column to automatically adjust to fit textAdjust Text in Table Cell IssueAdjust Table | Landscape Page | Adjust TextHow to adjust table and text flow
first of all I want to thank you for the help that you given to me.
In the table that I made, I would like to adjust the width of the vertical text (shown in the pic.) so that It looks shorter. (Idk how to say in English, I hope you understand).
begintable[ht!]
small
centering
begintabularlllcccccccccccc
textcolor[rgb] .329, .51, .208textbfNombres & textcolor[rgb] .329, .51, .208textbfAp. Paterno & textcolor[rgb] .329, .51, .208textbfAp. Materno & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOrganización, estructura y actividad celular & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfProcesos y funciones vitales & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfBiología humana y salud & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfHerencia y evolución & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOrganismo y ambiente & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOndas & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfMecánica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfEnergía & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfMacrocosmos y microcosmos & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfEstructura Atómica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfQuímica Orgánica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfReacciones Químicas y Estequiometría \
hline
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Vicente Joaquin & textcolor[rgb] .329, .51, .208Chamorro & textcolor[rgb] .329, .51, .208Carrizo & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .20864% & textcolor[rgb] .329, .51, .20860% & textcolor[rgb] .329, .51, .20830% \
textcolor[rgb] .329, .51, .208Vicente & textcolor[rgb] .329, .51, .208Donoso & textcolor[rgb] .329, .51, .208Vergara & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .20860% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2089% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20839% \
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Diego & textcolor[rgb] .329, .51, .208Herrera & textcolor[rgb] .329, .51, .208Mureno & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .20840% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .20836% & textcolor[rgb] .329, .51, .20850% & textcolor[rgb] .329, .51, .20835% \
textcolor[rgb] .329, .51, .208Nicolás & textcolor[rgb] .329, .51, .208Urmeneta & textcolor[rgb] .329, .51, .208Gompertz & textcolor[rgb] .329, .51, .20829% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20814% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20867% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20867% & textcolor[rgb] .329, .51, .20827% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20843% \
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Joaquín & textcolor[rgb] .329, .51, .208Vera & textcolor[rgb] .329, .51, .208Sepúlveda & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .20840% & textcolor[rgb] .329, .51, .20817% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2089% & textcolor[rgb] .329, .51, .20830% & textcolor[rgb] .329, .51, .20830% \
hline
endtabular%
endtable%
tables
add a comment |
first of all I want to thank you for the help that you given to me.
In the table that I made, I would like to adjust the width of the vertical text (shown in the pic.) so that It looks shorter. (Idk how to say in English, I hope you understand).
begintable[ht!]
small
centering
begintabularlllcccccccccccc
textcolor[rgb] .329, .51, .208textbfNombres & textcolor[rgb] .329, .51, .208textbfAp. Paterno & textcolor[rgb] .329, .51, .208textbfAp. Materno & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOrganización, estructura y actividad celular & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfProcesos y funciones vitales & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfBiología humana y salud & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfHerencia y evolución & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOrganismo y ambiente & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOndas & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfMecánica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfEnergía & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfMacrocosmos y microcosmos & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfEstructura Atómica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfQuímica Orgánica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfReacciones Químicas y Estequiometría \
hline
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Vicente Joaquin & textcolor[rgb] .329, .51, .208Chamorro & textcolor[rgb] .329, .51, .208Carrizo & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .20864% & textcolor[rgb] .329, .51, .20860% & textcolor[rgb] .329, .51, .20830% \
textcolor[rgb] .329, .51, .208Vicente & textcolor[rgb] .329, .51, .208Donoso & textcolor[rgb] .329, .51, .208Vergara & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .20860% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2089% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20839% \
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Diego & textcolor[rgb] .329, .51, .208Herrera & textcolor[rgb] .329, .51, .208Mureno & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .20840% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .20836% & textcolor[rgb] .329, .51, .20850% & textcolor[rgb] .329, .51, .20835% \
textcolor[rgb] .329, .51, .208Nicolás & textcolor[rgb] .329, .51, .208Urmeneta & textcolor[rgb] .329, .51, .208Gompertz & textcolor[rgb] .329, .51, .20829% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20814% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20867% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20867% & textcolor[rgb] .329, .51, .20827% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20843% \
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Joaquín & textcolor[rgb] .329, .51, .208Vera & textcolor[rgb] .329, .51, .208Sepúlveda & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .20840% & textcolor[rgb] .329, .51, .20817% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2089% & textcolor[rgb] .329, .51, .20830% & textcolor[rgb] .329, .51, .20830% \
hline
endtabular%
endtable%
tables
1
You can some likeparbox4cmOrganización, estructura y actividad celular
but consider the complete redesign of the table (for instance, transposing row and columns). BTW, you can usecolor
only one time before of the table instead of textcolor in each cell.
– Fran
Jun 24 at 4:11
Thanks, actually parbox is useful, but now, the problem is that the distance between the text and hline is not enough.
– Mijail Littin
Jun 24 at 4:21
1
Add before~
, or hspace1em, or any other horizontal spacer.
– Fran
Jun 24 at 4:32
In addition to what posted in the answers what do you think about to rotate of 45 degrees the vertical headers (having care to use for the last one(s) a shorter text)? BTW when a table is so unbalanced it may be useful also to exchange rows and columns or to split it in more tables
– Hastur
Jun 24 at 14:56
add a comment |
first of all I want to thank you for the help that you given to me.
In the table that I made, I would like to adjust the width of the vertical text (shown in the pic.) so that It looks shorter. (Idk how to say in English, I hope you understand).
begintable[ht!]
small
centering
begintabularlllcccccccccccc
textcolor[rgb] .329, .51, .208textbfNombres & textcolor[rgb] .329, .51, .208textbfAp. Paterno & textcolor[rgb] .329, .51, .208textbfAp. Materno & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOrganización, estructura y actividad celular & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfProcesos y funciones vitales & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfBiología humana y salud & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfHerencia y evolución & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOrganismo y ambiente & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOndas & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfMecánica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfEnergía & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfMacrocosmos y microcosmos & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfEstructura Atómica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfQuímica Orgánica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfReacciones Químicas y Estequiometría \
hline
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Vicente Joaquin & textcolor[rgb] .329, .51, .208Chamorro & textcolor[rgb] .329, .51, .208Carrizo & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .20864% & textcolor[rgb] .329, .51, .20860% & textcolor[rgb] .329, .51, .20830% \
textcolor[rgb] .329, .51, .208Vicente & textcolor[rgb] .329, .51, .208Donoso & textcolor[rgb] .329, .51, .208Vergara & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .20860% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2089% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20839% \
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Diego & textcolor[rgb] .329, .51, .208Herrera & textcolor[rgb] .329, .51, .208Mureno & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .20840% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .20836% & textcolor[rgb] .329, .51, .20850% & textcolor[rgb] .329, .51, .20835% \
textcolor[rgb] .329, .51, .208Nicolás & textcolor[rgb] .329, .51, .208Urmeneta & textcolor[rgb] .329, .51, .208Gompertz & textcolor[rgb] .329, .51, .20829% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20814% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20867% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20867% & textcolor[rgb] .329, .51, .20827% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20843% \
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Joaquín & textcolor[rgb] .329, .51, .208Vera & textcolor[rgb] .329, .51, .208Sepúlveda & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .20840% & textcolor[rgb] .329, .51, .20817% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2089% & textcolor[rgb] .329, .51, .20830% & textcolor[rgb] .329, .51, .20830% \
hline
endtabular%
endtable%
tables
first of all I want to thank you for the help that you given to me.
In the table that I made, I would like to adjust the width of the vertical text (shown in the pic.) so that It looks shorter. (Idk how to say in English, I hope you understand).
begintable[ht!]
small
centering
begintabularlllcccccccccccc
textcolor[rgb] .329, .51, .208textbfNombres & textcolor[rgb] .329, .51, .208textbfAp. Paterno & textcolor[rgb] .329, .51, .208textbfAp. Materno & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOrganización, estructura y actividad celular & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfProcesos y funciones vitales & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfBiología humana y salud & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfHerencia y evolución & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOrganismo y ambiente & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfOndas & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfMecánica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfEnergía & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfMacrocosmos y microcosmos & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfEstructura Atómica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfQuímica Orgánica & rotatebox[origin=lb]90textcolor[rgb] .329, .51, .208textbfReacciones Químicas y Estequiometría \
hline
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Vicente Joaquin & textcolor[rgb] .329, .51, .208Chamorro & textcolor[rgb] .329, .51, .208Carrizo & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .20864% & textcolor[rgb] .329, .51, .20860% & textcolor[rgb] .329, .51, .20830% \
textcolor[rgb] .329, .51, .208Vicente & textcolor[rgb] .329, .51, .208Donoso & textcolor[rgb] .329, .51, .208Vergara & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .20860% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2089% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20839% \
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Diego & textcolor[rgb] .329, .51, .208Herrera & textcolor[rgb] .329, .51, .208Mureno & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20857% & textcolor[rgb] .329, .51, .20840% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .20833% & textcolor[rgb] .329, .51, .20836% & textcolor[rgb] .329, .51, .20850% & textcolor[rgb] .329, .51, .20835% \
textcolor[rgb] .329, .51, .208Nicolás & textcolor[rgb] .329, .51, .208Urmeneta & textcolor[rgb] .329, .51, .208Gompertz & textcolor[rgb] .329, .51, .20829% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20814% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20867% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .20867% & textcolor[rgb] .329, .51, .20827% & textcolor[rgb] .329, .51, .20820% & textcolor[rgb] .329, .51, .20843% \
rowcolor[rgb] .886, .937, .855 textcolor[rgb] .329, .51, .208Joaquín & textcolor[rgb] .329, .51, .208Vera & textcolor[rgb] .329, .51, .208Sepúlveda & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .208100% & textcolor[rgb] .329, .51, .20843% & textcolor[rgb] .329, .51, .20840% & textcolor[rgb] .329, .51, .20817% & textcolor[rgb] .329, .51, .20825% & textcolor[rgb] .329, .51, .2080% & textcolor[rgb] .329, .51, .2089% & textcolor[rgb] .329, .51, .20830% & textcolor[rgb] .329, .51, .20830% \
hline
endtabular%
endtable%
tables
tables
asked Jun 24 at 3:22
Mijail LittinMijail Littin
323 bronze badges
323 bronze badges
1
You can some likeparbox4cmOrganización, estructura y actividad celular
but consider the complete redesign of the table (for instance, transposing row and columns). BTW, you can usecolor
only one time before of the table instead of textcolor in each cell.
– Fran
Jun 24 at 4:11
Thanks, actually parbox is useful, but now, the problem is that the distance between the text and hline is not enough.
– Mijail Littin
Jun 24 at 4:21
1
Add before~
, or hspace1em, or any other horizontal spacer.
– Fran
Jun 24 at 4:32
In addition to what posted in the answers what do you think about to rotate of 45 degrees the vertical headers (having care to use for the last one(s) a shorter text)? BTW when a table is so unbalanced it may be useful also to exchange rows and columns or to split it in more tables
– Hastur
Jun 24 at 14:56
add a comment |
1
You can some likeparbox4cmOrganización, estructura y actividad celular
but consider the complete redesign of the table (for instance, transposing row and columns). BTW, you can usecolor
only one time before of the table instead of textcolor in each cell.
– Fran
Jun 24 at 4:11
Thanks, actually parbox is useful, but now, the problem is that the distance between the text and hline is not enough.
– Mijail Littin
Jun 24 at 4:21
1
Add before~
, or hspace1em, or any other horizontal spacer.
– Fran
Jun 24 at 4:32
In addition to what posted in the answers what do you think about to rotate of 45 degrees the vertical headers (having care to use for the last one(s) a shorter text)? BTW when a table is so unbalanced it may be useful also to exchange rows and columns or to split it in more tables
– Hastur
Jun 24 at 14:56
1
1
You can some like
parbox4cmOrganización, estructura y actividad celular
but consider the complete redesign of the table (for instance, transposing row and columns). BTW, you can use color
only one time before of the table instead of textcolor in each cell.– Fran
Jun 24 at 4:11
You can some like
parbox4cmOrganización, estructura y actividad celular
but consider the complete redesign of the table (for instance, transposing row and columns). BTW, you can use color
only one time before of the table instead of textcolor in each cell.– Fran
Jun 24 at 4:11
Thanks, actually parbox is useful, but now, the problem is that the distance between the text and hline is not enough.
– Mijail Littin
Jun 24 at 4:21
Thanks, actually parbox is useful, but now, the problem is that the distance between the text and hline is not enough.
– Mijail Littin
Jun 24 at 4:21
1
1
Add before
~
, or hspace1em, or any other horizontal spacer.– Fran
Jun 24 at 4:32
Add before
~
, or hspace1em, or any other horizontal spacer.– Fran
Jun 24 at 4:32
In addition to what posted in the answers what do you think about to rotate of 45 degrees the vertical headers (having care to use for the last one(s) a shorter text)? BTW when a table is so unbalanced it may be useful also to exchange rows and columns or to split it in more tables
– Hastur
Jun 24 at 14:56
In addition to what posted in the answers what do you think about to rotate of 45 degrees the vertical headers (having care to use for the last one(s) a shorter text)? BTW when a table is so unbalanced it may be useful also to exchange rows and columns or to split it in more tables
– Hastur
Jun 24 at 14:56
add a comment |
2 Answers
2
active
oldest
votes
- With use of the
makecell
package (for rotating cells in column headers) - Exploit
rowcolors
fromxcolor
package
add~%
to column definitions (`r<% - The width of your table is greater than text width. To fit in text area you have two possibilities:
- further reduce font size (to
scriptsize
) or - rotate tale as suggest @Mico in his nice answer
- further reduce font size (to
documentclass[12pt]article
usepackage[a4paper,margin=2.5cm,showframe]geometry
usepackage[spanish]babel
usepackage[table]xcolor
usepackagerotating
usepackagemakecell % <--- new
renewcommandtheadfontfootnotesizebfseries % <--- new
renewcommandtheadgape % <--- new
newcommandmcrh[1]multicolumn1lrothead#1 % <--- new
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
settowidthrotheadsizetheadfont Organización, estructura % <--- new
color[rgb] .329, .51, .208 % we need just 1 color statement
definecolorrowgreenrgb.886, .937, .855 % <--- new
rowcolors1whiterowgreen % <--- new
begintabularlll *12 r<% % <--- changed
mcrhNombres
& mcrhAp. Paterno
& mcrhAp. Materno
& mcrhOrganización, estructura y actividad celular
& mcrhProcesos y funciones vitales
& mcrhBiología humana y salud
& mcrhHerencia y evolución
& mcrhOrganismo y ambiente
& mcrhOndas
& mcrhMecánica
& mcrhEnergía
& mcrhMacrocosmos y microcosmos
& mcrhEstructura Atómica
& mcrhQuímica Orgánica
& mcrhReacciones Químicas y Estequiometría \
hline
Vicente Joaquin & Chamorro & Carrizo
& 57 & 0 & 100 & 0 & 57 & 20 & 33 & 0 & 100 & 64 & 60 & 30 \
Vicente & Donoso & Vergara
& 43 & 0 & 0 & 0 & 43 & 60 & 0 & 25 & 0 & 9 & 20 & 39 \
Diego & Herrera & Mureno
& 57 & 0 & 100 & 0 & 57 & 40 & 33 & 25 & 33 & 36 & 50 & 35 \
Nicolás & Urmeneta & Gompertz
& 29 & 0 & 0 & 0 & 14 & 0 & 67 & 0 & 67 & 27 & 20 & 43 \
Joaquín & Vera & Sepúlveda
& 100 & 100 & 100 & 100 & 43 & 40 & 17 & 25 & 0 & 9 & 30 & 30 \
hline
endtabular
endsidewaystable
enddocument
add a comment |
Something like this? Note that I've also (a) replaced the multitude of textcolor
statements with a single color
statement and (b) switched the column types of the final 8 columns from c
to r
.
I had to make quite a few guesses about the document class, the main document font size, and the width and height of the textblock in use in your document. If these guesses are wildly wrong, do please let me know.
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[spanish]babel
usepackage[a4paper,margin=2.5cm]geometry
usepackage[table]xcolor
usepackagerotating,ragged2e,array
newcommandmybox[1]parbox[b]4.5cmRaggedRightbfseries #1
newcommandvertbox[1]rotatebox[origin=lb]90~mybox#1
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
color[rgb] .329, .51, .208 % we need just 1 color statement
begintabular lll *12r
bfseries Nombres &
bfseries Ap. Paterno &
bfseries Ap. Materno
& vertboxOrganización, estructura y actividad celular
& vertboxProcesos y funciones vitales
& vertboxBiología humana y salud
& vertboxHerencia y evolución
& vertboxOrganismo y ambiente
& vertboxOndas
& vertboxMecánica
& vertboxEnergía
& vertboxMacrocosmos y microcosmos
& vertboxEstructura Atómica
& vertboxQuímica Orgánica
& vertboxReacciones Químicas y Estequiometría \
hline
rowcolor[rgb] .886, .937, .855
Vicente Joaquin & Chamorro & Carrizo &
57% & 0% & 100% & 0% & 57% & 20% & 33% & 0% & 100% & 64% & 60% & 30% \
Vicente & Donoso & Vergara &
43% & 0% & 0% & 0% & 43% & 60% & 0% & 25% & 0% & 9% & 20% & 39% \
rowcolor[rgb] .886, .937, .855
Diego & Herrera & Mureno &
57% & 0% & 100% & 0% & 57% & 40% & 33% & 25% & 33% & 36% & 50% & 35% \
Nicolás & Urmeneta & Gompertz &
29% & 0% & 0% & 0% & 14% & 0% & 67% & 0% & 67% & 27% & 20% & 43% \
rowcolor[rgb] .886, .937, .855
Joaquín & Vera & Sepúlveda &
100% & 100% & 100% & 100% & 43% & 40% & 17% & 25% & 0% & 9% & 30% & 30% \
hline
endtabular
endsidewaystable
enddocument
Thank you. The multitude of textcolor is because of Excel2Latex package. The table looks much cleaner with your code.Can I replace beginsidewaystable with begintable?
– Mijail Littin
Jun 24 at 5:15
@MijailLittin - You asked, "Can I replacebeginsidewaystable
withbegintable
?" (and replaceendsidewaystable
withendtable
, right?) The short answer is, "you certainly can". The far more difficult issue is, will thetabular
material will fit inside the text block if it is displayed in portrait mode? Assuming you're willing to reduce the relative font size toscriptsize
-- warning: many readers will find the result to be well-nigh unreadable -- and if use 10pt as the main font size, the tabular material could indeed (just) fit in portrait mode.
– Mico
Jun 24 at 12:37
You convert my table into another one so fast, how did you do that? I ask you because I have to fix more tables.
– Mijail Littin
Jun 24 at 18:24
@MijailLittin - First off, I had to make a slew of guesses about your document setup; these guesses may or may not be correct. Only you know. Second, I really made only three significant changes to your code snippet. These changes were (a) to get rid of the dozens oftextcolor
directives and to insert a singlecolor
directive, (b) to switch to landscape format -- the alternative (portrait format) would have required making the text so small as to make it virtually unreadable -- and (c) to implement your request to introduce automatic line breaks in the rotated column headers.
– Mico
Jun 25 at 3:38
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
);
);
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%2f497122%2fhow-could-i-adjust-the-text-of-a-column-in-a-table%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
- With use of the
makecell
package (for rotating cells in column headers) - Exploit
rowcolors
fromxcolor
package
add~%
to column definitions (`r<% - The width of your table is greater than text width. To fit in text area you have two possibilities:
- further reduce font size (to
scriptsize
) or - rotate tale as suggest @Mico in his nice answer
- further reduce font size (to
documentclass[12pt]article
usepackage[a4paper,margin=2.5cm,showframe]geometry
usepackage[spanish]babel
usepackage[table]xcolor
usepackagerotating
usepackagemakecell % <--- new
renewcommandtheadfontfootnotesizebfseries % <--- new
renewcommandtheadgape % <--- new
newcommandmcrh[1]multicolumn1lrothead#1 % <--- new
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
settowidthrotheadsizetheadfont Organización, estructura % <--- new
color[rgb] .329, .51, .208 % we need just 1 color statement
definecolorrowgreenrgb.886, .937, .855 % <--- new
rowcolors1whiterowgreen % <--- new
begintabularlll *12 r<% % <--- changed
mcrhNombres
& mcrhAp. Paterno
& mcrhAp. Materno
& mcrhOrganización, estructura y actividad celular
& mcrhProcesos y funciones vitales
& mcrhBiología humana y salud
& mcrhHerencia y evolución
& mcrhOrganismo y ambiente
& mcrhOndas
& mcrhMecánica
& mcrhEnergía
& mcrhMacrocosmos y microcosmos
& mcrhEstructura Atómica
& mcrhQuímica Orgánica
& mcrhReacciones Químicas y Estequiometría \
hline
Vicente Joaquin & Chamorro & Carrizo
& 57 & 0 & 100 & 0 & 57 & 20 & 33 & 0 & 100 & 64 & 60 & 30 \
Vicente & Donoso & Vergara
& 43 & 0 & 0 & 0 & 43 & 60 & 0 & 25 & 0 & 9 & 20 & 39 \
Diego & Herrera & Mureno
& 57 & 0 & 100 & 0 & 57 & 40 & 33 & 25 & 33 & 36 & 50 & 35 \
Nicolás & Urmeneta & Gompertz
& 29 & 0 & 0 & 0 & 14 & 0 & 67 & 0 & 67 & 27 & 20 & 43 \
Joaquín & Vera & Sepúlveda
& 100 & 100 & 100 & 100 & 43 & 40 & 17 & 25 & 0 & 9 & 30 & 30 \
hline
endtabular
endsidewaystable
enddocument
add a comment |
- With use of the
makecell
package (for rotating cells in column headers) - Exploit
rowcolors
fromxcolor
package
add~%
to column definitions (`r<% - The width of your table is greater than text width. To fit in text area you have two possibilities:
- further reduce font size (to
scriptsize
) or - rotate tale as suggest @Mico in his nice answer
- further reduce font size (to
documentclass[12pt]article
usepackage[a4paper,margin=2.5cm,showframe]geometry
usepackage[spanish]babel
usepackage[table]xcolor
usepackagerotating
usepackagemakecell % <--- new
renewcommandtheadfontfootnotesizebfseries % <--- new
renewcommandtheadgape % <--- new
newcommandmcrh[1]multicolumn1lrothead#1 % <--- new
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
settowidthrotheadsizetheadfont Organización, estructura % <--- new
color[rgb] .329, .51, .208 % we need just 1 color statement
definecolorrowgreenrgb.886, .937, .855 % <--- new
rowcolors1whiterowgreen % <--- new
begintabularlll *12 r<% % <--- changed
mcrhNombres
& mcrhAp. Paterno
& mcrhAp. Materno
& mcrhOrganización, estructura y actividad celular
& mcrhProcesos y funciones vitales
& mcrhBiología humana y salud
& mcrhHerencia y evolución
& mcrhOrganismo y ambiente
& mcrhOndas
& mcrhMecánica
& mcrhEnergía
& mcrhMacrocosmos y microcosmos
& mcrhEstructura Atómica
& mcrhQuímica Orgánica
& mcrhReacciones Químicas y Estequiometría \
hline
Vicente Joaquin & Chamorro & Carrizo
& 57 & 0 & 100 & 0 & 57 & 20 & 33 & 0 & 100 & 64 & 60 & 30 \
Vicente & Donoso & Vergara
& 43 & 0 & 0 & 0 & 43 & 60 & 0 & 25 & 0 & 9 & 20 & 39 \
Diego & Herrera & Mureno
& 57 & 0 & 100 & 0 & 57 & 40 & 33 & 25 & 33 & 36 & 50 & 35 \
Nicolás & Urmeneta & Gompertz
& 29 & 0 & 0 & 0 & 14 & 0 & 67 & 0 & 67 & 27 & 20 & 43 \
Joaquín & Vera & Sepúlveda
& 100 & 100 & 100 & 100 & 43 & 40 & 17 & 25 & 0 & 9 & 30 & 30 \
hline
endtabular
endsidewaystable
enddocument
add a comment |
- With use of the
makecell
package (for rotating cells in column headers) - Exploit
rowcolors
fromxcolor
package
add~%
to column definitions (`r<% - The width of your table is greater than text width. To fit in text area you have two possibilities:
- further reduce font size (to
scriptsize
) or - rotate tale as suggest @Mico in his nice answer
- further reduce font size (to
documentclass[12pt]article
usepackage[a4paper,margin=2.5cm,showframe]geometry
usepackage[spanish]babel
usepackage[table]xcolor
usepackagerotating
usepackagemakecell % <--- new
renewcommandtheadfontfootnotesizebfseries % <--- new
renewcommandtheadgape % <--- new
newcommandmcrh[1]multicolumn1lrothead#1 % <--- new
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
settowidthrotheadsizetheadfont Organización, estructura % <--- new
color[rgb] .329, .51, .208 % we need just 1 color statement
definecolorrowgreenrgb.886, .937, .855 % <--- new
rowcolors1whiterowgreen % <--- new
begintabularlll *12 r<% % <--- changed
mcrhNombres
& mcrhAp. Paterno
& mcrhAp. Materno
& mcrhOrganización, estructura y actividad celular
& mcrhProcesos y funciones vitales
& mcrhBiología humana y salud
& mcrhHerencia y evolución
& mcrhOrganismo y ambiente
& mcrhOndas
& mcrhMecánica
& mcrhEnergía
& mcrhMacrocosmos y microcosmos
& mcrhEstructura Atómica
& mcrhQuímica Orgánica
& mcrhReacciones Químicas y Estequiometría \
hline
Vicente Joaquin & Chamorro & Carrizo
& 57 & 0 & 100 & 0 & 57 & 20 & 33 & 0 & 100 & 64 & 60 & 30 \
Vicente & Donoso & Vergara
& 43 & 0 & 0 & 0 & 43 & 60 & 0 & 25 & 0 & 9 & 20 & 39 \
Diego & Herrera & Mureno
& 57 & 0 & 100 & 0 & 57 & 40 & 33 & 25 & 33 & 36 & 50 & 35 \
Nicolás & Urmeneta & Gompertz
& 29 & 0 & 0 & 0 & 14 & 0 & 67 & 0 & 67 & 27 & 20 & 43 \
Joaquín & Vera & Sepúlveda
& 100 & 100 & 100 & 100 & 43 & 40 & 17 & 25 & 0 & 9 & 30 & 30 \
hline
endtabular
endsidewaystable
enddocument
- With use of the
makecell
package (for rotating cells in column headers) - Exploit
rowcolors
fromxcolor
package
add~%
to column definitions (`r<% - The width of your table is greater than text width. To fit in text area you have two possibilities:
- further reduce font size (to
scriptsize
) or - rotate tale as suggest @Mico in his nice answer
- further reduce font size (to
documentclass[12pt]article
usepackage[a4paper,margin=2.5cm,showframe]geometry
usepackage[spanish]babel
usepackage[table]xcolor
usepackagerotating
usepackagemakecell % <--- new
renewcommandtheadfontfootnotesizebfseries % <--- new
renewcommandtheadgape % <--- new
newcommandmcrh[1]multicolumn1lrothead#1 % <--- new
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
settowidthrotheadsizetheadfont Organización, estructura % <--- new
color[rgb] .329, .51, .208 % we need just 1 color statement
definecolorrowgreenrgb.886, .937, .855 % <--- new
rowcolors1whiterowgreen % <--- new
begintabularlll *12 r<% % <--- changed
mcrhNombres
& mcrhAp. Paterno
& mcrhAp. Materno
& mcrhOrganización, estructura y actividad celular
& mcrhProcesos y funciones vitales
& mcrhBiología humana y salud
& mcrhHerencia y evolución
& mcrhOrganismo y ambiente
& mcrhOndas
& mcrhMecánica
& mcrhEnergía
& mcrhMacrocosmos y microcosmos
& mcrhEstructura Atómica
& mcrhQuímica Orgánica
& mcrhReacciones Químicas y Estequiometría \
hline
Vicente Joaquin & Chamorro & Carrizo
& 57 & 0 & 100 & 0 & 57 & 20 & 33 & 0 & 100 & 64 & 60 & 30 \
Vicente & Donoso & Vergara
& 43 & 0 & 0 & 0 & 43 & 60 & 0 & 25 & 0 & 9 & 20 & 39 \
Diego & Herrera & Mureno
& 57 & 0 & 100 & 0 & 57 & 40 & 33 & 25 & 33 & 36 & 50 & 35 \
Nicolás & Urmeneta & Gompertz
& 29 & 0 & 0 & 0 & 14 & 0 & 67 & 0 & 67 & 27 & 20 & 43 \
Joaquín & Vera & Sepúlveda
& 100 & 100 & 100 & 100 & 43 & 40 & 17 & 25 & 0 & 9 & 30 & 30 \
hline
endtabular
endsidewaystable
enddocument
answered Jun 24 at 6:42
ZarkoZarko
138k8 gold badges75 silver badges185 bronze badges
138k8 gold badges75 silver badges185 bronze badges
add a comment |
add a comment |
Something like this? Note that I've also (a) replaced the multitude of textcolor
statements with a single color
statement and (b) switched the column types of the final 8 columns from c
to r
.
I had to make quite a few guesses about the document class, the main document font size, and the width and height of the textblock in use in your document. If these guesses are wildly wrong, do please let me know.
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[spanish]babel
usepackage[a4paper,margin=2.5cm]geometry
usepackage[table]xcolor
usepackagerotating,ragged2e,array
newcommandmybox[1]parbox[b]4.5cmRaggedRightbfseries #1
newcommandvertbox[1]rotatebox[origin=lb]90~mybox#1
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
color[rgb] .329, .51, .208 % we need just 1 color statement
begintabular lll *12r
bfseries Nombres &
bfseries Ap. Paterno &
bfseries Ap. Materno
& vertboxOrganización, estructura y actividad celular
& vertboxProcesos y funciones vitales
& vertboxBiología humana y salud
& vertboxHerencia y evolución
& vertboxOrganismo y ambiente
& vertboxOndas
& vertboxMecánica
& vertboxEnergía
& vertboxMacrocosmos y microcosmos
& vertboxEstructura Atómica
& vertboxQuímica Orgánica
& vertboxReacciones Químicas y Estequiometría \
hline
rowcolor[rgb] .886, .937, .855
Vicente Joaquin & Chamorro & Carrizo &
57% & 0% & 100% & 0% & 57% & 20% & 33% & 0% & 100% & 64% & 60% & 30% \
Vicente & Donoso & Vergara &
43% & 0% & 0% & 0% & 43% & 60% & 0% & 25% & 0% & 9% & 20% & 39% \
rowcolor[rgb] .886, .937, .855
Diego & Herrera & Mureno &
57% & 0% & 100% & 0% & 57% & 40% & 33% & 25% & 33% & 36% & 50% & 35% \
Nicolás & Urmeneta & Gompertz &
29% & 0% & 0% & 0% & 14% & 0% & 67% & 0% & 67% & 27% & 20% & 43% \
rowcolor[rgb] .886, .937, .855
Joaquín & Vera & Sepúlveda &
100% & 100% & 100% & 100% & 43% & 40% & 17% & 25% & 0% & 9% & 30% & 30% \
hline
endtabular
endsidewaystable
enddocument
Thank you. The multitude of textcolor is because of Excel2Latex package. The table looks much cleaner with your code.Can I replace beginsidewaystable with begintable?
– Mijail Littin
Jun 24 at 5:15
@MijailLittin - You asked, "Can I replacebeginsidewaystable
withbegintable
?" (and replaceendsidewaystable
withendtable
, right?) The short answer is, "you certainly can". The far more difficult issue is, will thetabular
material will fit inside the text block if it is displayed in portrait mode? Assuming you're willing to reduce the relative font size toscriptsize
-- warning: many readers will find the result to be well-nigh unreadable -- and if use 10pt as the main font size, the tabular material could indeed (just) fit in portrait mode.
– Mico
Jun 24 at 12:37
You convert my table into another one so fast, how did you do that? I ask you because I have to fix more tables.
– Mijail Littin
Jun 24 at 18:24
@MijailLittin - First off, I had to make a slew of guesses about your document setup; these guesses may or may not be correct. Only you know. Second, I really made only three significant changes to your code snippet. These changes were (a) to get rid of the dozens oftextcolor
directives and to insert a singlecolor
directive, (b) to switch to landscape format -- the alternative (portrait format) would have required making the text so small as to make it virtually unreadable -- and (c) to implement your request to introduce automatic line breaks in the rotated column headers.
– Mico
Jun 25 at 3:38
add a comment |
Something like this? Note that I've also (a) replaced the multitude of textcolor
statements with a single color
statement and (b) switched the column types of the final 8 columns from c
to r
.
I had to make quite a few guesses about the document class, the main document font size, and the width and height of the textblock in use in your document. If these guesses are wildly wrong, do please let me know.
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[spanish]babel
usepackage[a4paper,margin=2.5cm]geometry
usepackage[table]xcolor
usepackagerotating,ragged2e,array
newcommandmybox[1]parbox[b]4.5cmRaggedRightbfseries #1
newcommandvertbox[1]rotatebox[origin=lb]90~mybox#1
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
color[rgb] .329, .51, .208 % we need just 1 color statement
begintabular lll *12r
bfseries Nombres &
bfseries Ap. Paterno &
bfseries Ap. Materno
& vertboxOrganización, estructura y actividad celular
& vertboxProcesos y funciones vitales
& vertboxBiología humana y salud
& vertboxHerencia y evolución
& vertboxOrganismo y ambiente
& vertboxOndas
& vertboxMecánica
& vertboxEnergía
& vertboxMacrocosmos y microcosmos
& vertboxEstructura Atómica
& vertboxQuímica Orgánica
& vertboxReacciones Químicas y Estequiometría \
hline
rowcolor[rgb] .886, .937, .855
Vicente Joaquin & Chamorro & Carrizo &
57% & 0% & 100% & 0% & 57% & 20% & 33% & 0% & 100% & 64% & 60% & 30% \
Vicente & Donoso & Vergara &
43% & 0% & 0% & 0% & 43% & 60% & 0% & 25% & 0% & 9% & 20% & 39% \
rowcolor[rgb] .886, .937, .855
Diego & Herrera & Mureno &
57% & 0% & 100% & 0% & 57% & 40% & 33% & 25% & 33% & 36% & 50% & 35% \
Nicolás & Urmeneta & Gompertz &
29% & 0% & 0% & 0% & 14% & 0% & 67% & 0% & 67% & 27% & 20% & 43% \
rowcolor[rgb] .886, .937, .855
Joaquín & Vera & Sepúlveda &
100% & 100% & 100% & 100% & 43% & 40% & 17% & 25% & 0% & 9% & 30% & 30% \
hline
endtabular
endsidewaystable
enddocument
Thank you. The multitude of textcolor is because of Excel2Latex package. The table looks much cleaner with your code.Can I replace beginsidewaystable with begintable?
– Mijail Littin
Jun 24 at 5:15
@MijailLittin - You asked, "Can I replacebeginsidewaystable
withbegintable
?" (and replaceendsidewaystable
withendtable
, right?) The short answer is, "you certainly can". The far more difficult issue is, will thetabular
material will fit inside the text block if it is displayed in portrait mode? Assuming you're willing to reduce the relative font size toscriptsize
-- warning: many readers will find the result to be well-nigh unreadable -- and if use 10pt as the main font size, the tabular material could indeed (just) fit in portrait mode.
– Mico
Jun 24 at 12:37
You convert my table into another one so fast, how did you do that? I ask you because I have to fix more tables.
– Mijail Littin
Jun 24 at 18:24
@MijailLittin - First off, I had to make a slew of guesses about your document setup; these guesses may or may not be correct. Only you know. Second, I really made only three significant changes to your code snippet. These changes were (a) to get rid of the dozens oftextcolor
directives and to insert a singlecolor
directive, (b) to switch to landscape format -- the alternative (portrait format) would have required making the text so small as to make it virtually unreadable -- and (c) to implement your request to introduce automatic line breaks in the rotated column headers.
– Mico
Jun 25 at 3:38
add a comment |
Something like this? Note that I've also (a) replaced the multitude of textcolor
statements with a single color
statement and (b) switched the column types of the final 8 columns from c
to r
.
I had to make quite a few guesses about the document class, the main document font size, and the width and height of the textblock in use in your document. If these guesses are wildly wrong, do please let me know.
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[spanish]babel
usepackage[a4paper,margin=2.5cm]geometry
usepackage[table]xcolor
usepackagerotating,ragged2e,array
newcommandmybox[1]parbox[b]4.5cmRaggedRightbfseries #1
newcommandvertbox[1]rotatebox[origin=lb]90~mybox#1
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
color[rgb] .329, .51, .208 % we need just 1 color statement
begintabular lll *12r
bfseries Nombres &
bfseries Ap. Paterno &
bfseries Ap. Materno
& vertboxOrganización, estructura y actividad celular
& vertboxProcesos y funciones vitales
& vertboxBiología humana y salud
& vertboxHerencia y evolución
& vertboxOrganismo y ambiente
& vertboxOndas
& vertboxMecánica
& vertboxEnergía
& vertboxMacrocosmos y microcosmos
& vertboxEstructura Atómica
& vertboxQuímica Orgánica
& vertboxReacciones Químicas y Estequiometría \
hline
rowcolor[rgb] .886, .937, .855
Vicente Joaquin & Chamorro & Carrizo &
57% & 0% & 100% & 0% & 57% & 20% & 33% & 0% & 100% & 64% & 60% & 30% \
Vicente & Donoso & Vergara &
43% & 0% & 0% & 0% & 43% & 60% & 0% & 25% & 0% & 9% & 20% & 39% \
rowcolor[rgb] .886, .937, .855
Diego & Herrera & Mureno &
57% & 0% & 100% & 0% & 57% & 40% & 33% & 25% & 33% & 36% & 50% & 35% \
Nicolás & Urmeneta & Gompertz &
29% & 0% & 0% & 0% & 14% & 0% & 67% & 0% & 67% & 27% & 20% & 43% \
rowcolor[rgb] .886, .937, .855
Joaquín & Vera & Sepúlveda &
100% & 100% & 100% & 100% & 43% & 40% & 17% & 25% & 0% & 9% & 30% & 30% \
hline
endtabular
endsidewaystable
enddocument
Something like this? Note that I've also (a) replaced the multitude of textcolor
statements with a single color
statement and (b) switched the column types of the final 8 columns from c
to r
.
I had to make quite a few guesses about the document class, the main document font size, and the width and height of the textblock in use in your document. If these guesses are wildly wrong, do please let me know.
documentclass[12pt]article
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackage[spanish]babel
usepackage[a4paper,margin=2.5cm]geometry
usepackage[table]xcolor
usepackagerotating,ragged2e,array
newcommandmybox[1]parbox[b]4.5cmRaggedRightbfseries #1
newcommandvertbox[1]rotatebox[origin=lb]90~mybox#1
begindocument
beginsidewaystable
setlengthextrarowheight2pt % for a more open "look"
small
centering
color[rgb] .329, .51, .208 % we need just 1 color statement
begintabular lll *12r
bfseries Nombres &
bfseries Ap. Paterno &
bfseries Ap. Materno
& vertboxOrganización, estructura y actividad celular
& vertboxProcesos y funciones vitales
& vertboxBiología humana y salud
& vertboxHerencia y evolución
& vertboxOrganismo y ambiente
& vertboxOndas
& vertboxMecánica
& vertboxEnergía
& vertboxMacrocosmos y microcosmos
& vertboxEstructura Atómica
& vertboxQuímica Orgánica
& vertboxReacciones Químicas y Estequiometría \
hline
rowcolor[rgb] .886, .937, .855
Vicente Joaquin & Chamorro & Carrizo &
57% & 0% & 100% & 0% & 57% & 20% & 33% & 0% & 100% & 64% & 60% & 30% \
Vicente & Donoso & Vergara &
43% & 0% & 0% & 0% & 43% & 60% & 0% & 25% & 0% & 9% & 20% & 39% \
rowcolor[rgb] .886, .937, .855
Diego & Herrera & Mureno &
57% & 0% & 100% & 0% & 57% & 40% & 33% & 25% & 33% & 36% & 50% & 35% \
Nicolás & Urmeneta & Gompertz &
29% & 0% & 0% & 0% & 14% & 0% & 67% & 0% & 67% & 27% & 20% & 43% \
rowcolor[rgb] .886, .937, .855
Joaquín & Vera & Sepúlveda &
100% & 100% & 100% & 100% & 43% & 40% & 17% & 25% & 0% & 9% & 30% & 30% \
hline
endtabular
endsidewaystable
enddocument
edited Jun 24 at 4:58
answered Jun 24 at 4:41
MicoMico
295k32 gold badges410 silver badges807 bronze badges
295k32 gold badges410 silver badges807 bronze badges
Thank you. The multitude of textcolor is because of Excel2Latex package. The table looks much cleaner with your code.Can I replace beginsidewaystable with begintable?
– Mijail Littin
Jun 24 at 5:15
@MijailLittin - You asked, "Can I replacebeginsidewaystable
withbegintable
?" (and replaceendsidewaystable
withendtable
, right?) The short answer is, "you certainly can". The far more difficult issue is, will thetabular
material will fit inside the text block if it is displayed in portrait mode? Assuming you're willing to reduce the relative font size toscriptsize
-- warning: many readers will find the result to be well-nigh unreadable -- and if use 10pt as the main font size, the tabular material could indeed (just) fit in portrait mode.
– Mico
Jun 24 at 12:37
You convert my table into another one so fast, how did you do that? I ask you because I have to fix more tables.
– Mijail Littin
Jun 24 at 18:24
@MijailLittin - First off, I had to make a slew of guesses about your document setup; these guesses may or may not be correct. Only you know. Second, I really made only three significant changes to your code snippet. These changes were (a) to get rid of the dozens oftextcolor
directives and to insert a singlecolor
directive, (b) to switch to landscape format -- the alternative (portrait format) would have required making the text so small as to make it virtually unreadable -- and (c) to implement your request to introduce automatic line breaks in the rotated column headers.
– Mico
Jun 25 at 3:38
add a comment |
Thank you. The multitude of textcolor is because of Excel2Latex package. The table looks much cleaner with your code.Can I replace beginsidewaystable with begintable?
– Mijail Littin
Jun 24 at 5:15
@MijailLittin - You asked, "Can I replacebeginsidewaystable
withbegintable
?" (and replaceendsidewaystable
withendtable
, right?) The short answer is, "you certainly can". The far more difficult issue is, will thetabular
material will fit inside the text block if it is displayed in portrait mode? Assuming you're willing to reduce the relative font size toscriptsize
-- warning: many readers will find the result to be well-nigh unreadable -- and if use 10pt as the main font size, the tabular material could indeed (just) fit in portrait mode.
– Mico
Jun 24 at 12:37
You convert my table into another one so fast, how did you do that? I ask you because I have to fix more tables.
– Mijail Littin
Jun 24 at 18:24
@MijailLittin - First off, I had to make a slew of guesses about your document setup; these guesses may or may not be correct. Only you know. Second, I really made only three significant changes to your code snippet. These changes were (a) to get rid of the dozens oftextcolor
directives and to insert a singlecolor
directive, (b) to switch to landscape format -- the alternative (portrait format) would have required making the text so small as to make it virtually unreadable -- and (c) to implement your request to introduce automatic line breaks in the rotated column headers.
– Mico
Jun 25 at 3:38
Thank you. The multitude of textcolor is because of Excel2Latex package. The table looks much cleaner with your code.Can I replace beginsidewaystable with begintable?
– Mijail Littin
Jun 24 at 5:15
Thank you. The multitude of textcolor is because of Excel2Latex package. The table looks much cleaner with your code.Can I replace beginsidewaystable with begintable?
– Mijail Littin
Jun 24 at 5:15
@MijailLittin - You asked, "Can I replace
beginsidewaystable
with begintable
?" (and replace endsidewaystable
with endtable
, right?) The short answer is, "you certainly can". The far more difficult issue is, will the tabular
material will fit inside the text block if it is displayed in portrait mode? Assuming you're willing to reduce the relative font size to scriptsize
-- warning: many readers will find the result to be well-nigh unreadable -- and if use 10pt as the main font size, the tabular material could indeed (just) fit in portrait mode.– Mico
Jun 24 at 12:37
@MijailLittin - You asked, "Can I replace
beginsidewaystable
with begintable
?" (and replace endsidewaystable
with endtable
, right?) The short answer is, "you certainly can". The far more difficult issue is, will the tabular
material will fit inside the text block if it is displayed in portrait mode? Assuming you're willing to reduce the relative font size to scriptsize
-- warning: many readers will find the result to be well-nigh unreadable -- and if use 10pt as the main font size, the tabular material could indeed (just) fit in portrait mode.– Mico
Jun 24 at 12:37
You convert my table into another one so fast, how did you do that? I ask you because I have to fix more tables.
– Mijail Littin
Jun 24 at 18:24
You convert my table into another one so fast, how did you do that? I ask you because I have to fix more tables.
– Mijail Littin
Jun 24 at 18:24
@MijailLittin - First off, I had to make a slew of guesses about your document setup; these guesses may or may not be correct. Only you know. Second, I really made only three significant changes to your code snippet. These changes were (a) to get rid of the dozens of
textcolor
directives and to insert a single color
directive, (b) to switch to landscape format -- the alternative (portrait format) would have required making the text so small as to make it virtually unreadable -- and (c) to implement your request to introduce automatic line breaks in the rotated column headers.– Mico
Jun 25 at 3:38
@MijailLittin - First off, I had to make a slew of guesses about your document setup; these guesses may or may not be correct. Only you know. Second, I really made only three significant changes to your code snippet. These changes were (a) to get rid of the dozens of
textcolor
directives and to insert a single color
directive, (b) to switch to landscape format -- the alternative (portrait format) would have required making the text so small as to make it virtually unreadable -- and (c) to implement your request to introduce automatic line breaks in the rotated column headers.– Mico
Jun 25 at 3:38
add a comment |
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%2f497122%2fhow-could-i-adjust-the-text-of-a-column-in-a-table%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
1
You can some like
parbox4cmOrganización, estructura y actividad celular
but consider the complete redesign of the table (for instance, transposing row and columns). BTW, you can usecolor
only one time before of the table instead of textcolor in each cell.– Fran
Jun 24 at 4:11
Thanks, actually parbox is useful, but now, the problem is that the distance between the text and hline is not enough.
– Mijail Littin
Jun 24 at 4:21
1
Add before
~
, or hspace1em, or any other horizontal spacer.– Fran
Jun 24 at 4:32
In addition to what posted in the answers what do you think about to rotate of 45 degrees the vertical headers (having care to use for the last one(s) a shorter text)? BTW when a table is so unbalanced it may be useful also to exchange rows and columns or to split it in more tables
– Hastur
Jun 24 at 14:56