table, tabular in next line because it is too weid horizontally

Multi tool use
up vote
0
down vote
favorite
This is what I want!
But my code doesn't work, it appears like this
documentclass{article}
usepackage[margin=1in]{geometry}
usepackage[spanish,es-tabla]{babel} % espanol
decimalpoint
usepackage[utf8]{inputenc}
usepackage{graphicx} % graficos
usepackage{amsmath}
usepackage{listings}
usepackage{tikz} %era para hacer los grafos pero no investigué mucho asi que lo hice con word
usetikzlibrary{arrows}
%Header an Footer Stuff
usepackage{fancyhdr}
pagestyle{fancy}
fancyhead{}
fancyfoot{}
fancyfoot[R]{ thepage }
%Hyperlink
usepackage{varioref}
usepackage{hyperref}
usepackage{cleveref}
hypersetup{colorlinks=false}
hypersetup{pdfborder={0 0 0}}
begin{document}
begin{table}[htbp]
caption{Valores optimos Ejercicio 2}
begin{tabular}{| l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l |}
hline
$x_{ij}$ & 1-2 & 1-3 & 1-5 & 2-3 & 2-4 & 2-8 & 3-4 & 3-5 & 4-7 & 4-8 & 5-6 & 5-9\
hline
Valor & 30 & 15 & 14 & 7 & 7 & 16 & 12 & 10 & 7 & 12\
hline
end{tabular}hspace{0pt}%
begin{tabular}{l l | l | l | l | l | l | l | l |}
hline
2-4 & 2-8 & 3-4 & 3-5 & 4-7 & 4-8 & 5-6 & 5-9\
hline
1111 & 8 & 5 & 11 & 12 & 28 & 19 & 0\
hline
end{tabular}hspace{0pt}%
label{tab:vo-ej2}
end{table}
end{document}
tables
New contributor
EmiliOrtega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
|
show 2 more comments
up vote
0
down vote
favorite
This is what I want!
But my code doesn't work, it appears like this
documentclass{article}
usepackage[margin=1in]{geometry}
usepackage[spanish,es-tabla]{babel} % espanol
decimalpoint
usepackage[utf8]{inputenc}
usepackage{graphicx} % graficos
usepackage{amsmath}
usepackage{listings}
usepackage{tikz} %era para hacer los grafos pero no investigué mucho asi que lo hice con word
usetikzlibrary{arrows}
%Header an Footer Stuff
usepackage{fancyhdr}
pagestyle{fancy}
fancyhead{}
fancyfoot{}
fancyfoot[R]{ thepage }
%Hyperlink
usepackage{varioref}
usepackage{hyperref}
usepackage{cleveref}
hypersetup{colorlinks=false}
hypersetup{pdfborder={0 0 0}}
begin{document}
begin{table}[htbp]
caption{Valores optimos Ejercicio 2}
begin{tabular}{| l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l |}
hline
$x_{ij}$ & 1-2 & 1-3 & 1-5 & 2-3 & 2-4 & 2-8 & 3-4 & 3-5 & 4-7 & 4-8 & 5-6 & 5-9\
hline
Valor & 30 & 15 & 14 & 7 & 7 & 16 & 12 & 10 & 7 & 12\
hline
end{tabular}hspace{0pt}%
begin{tabular}{l l | l | l | l | l | l | l | l |}
hline
2-4 & 2-8 & 3-4 & 3-5 & 4-7 & 4-8 & 5-6 & 5-9\
hline
1111 & 8 & 5 & 11 & 12 & 28 & 19 & 0\
hline
end{tabular}hspace{0pt}%
label{tab:vo-ej2}
end{table}
end{document}
tables
New contributor
EmiliOrtega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
your second code fragment with... code
is not useful for anyone debugging your issue, please edit it so that it generates the output that you show,
– David Carlisle
12 hours ago
however you are only allowing a line break in one place and you have used geometry package to change the page width, so you appear to need to break at a different column.
– David Carlisle
12 hours ago
remove thosehspace{0pt}%
s amd do a line break instead. The table will be set as in your first example then.
– LaRiFaRi
12 hours ago
how do I add a line break ? @LaRiFaRi
– EmiliOrtega
11 hours ago
@DavidCarlisle I didn't added my code bc it's way long and I just have trouble with that piece of code that I added
– EmiliOrtega
11 hours ago
|
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This is what I want!
But my code doesn't work, it appears like this
documentclass{article}
usepackage[margin=1in]{geometry}
usepackage[spanish,es-tabla]{babel} % espanol
decimalpoint
usepackage[utf8]{inputenc}
usepackage{graphicx} % graficos
usepackage{amsmath}
usepackage{listings}
usepackage{tikz} %era para hacer los grafos pero no investigué mucho asi que lo hice con word
usetikzlibrary{arrows}
%Header an Footer Stuff
usepackage{fancyhdr}
pagestyle{fancy}
fancyhead{}
fancyfoot{}
fancyfoot[R]{ thepage }
%Hyperlink
usepackage{varioref}
usepackage{hyperref}
usepackage{cleveref}
hypersetup{colorlinks=false}
hypersetup{pdfborder={0 0 0}}
begin{document}
begin{table}[htbp]
caption{Valores optimos Ejercicio 2}
begin{tabular}{| l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l |}
hline
$x_{ij}$ & 1-2 & 1-3 & 1-5 & 2-3 & 2-4 & 2-8 & 3-4 & 3-5 & 4-7 & 4-8 & 5-6 & 5-9\
hline
Valor & 30 & 15 & 14 & 7 & 7 & 16 & 12 & 10 & 7 & 12\
hline
end{tabular}hspace{0pt}%
begin{tabular}{l l | l | l | l | l | l | l | l |}
hline
2-4 & 2-8 & 3-4 & 3-5 & 4-7 & 4-8 & 5-6 & 5-9\
hline
1111 & 8 & 5 & 11 & 12 & 28 & 19 & 0\
hline
end{tabular}hspace{0pt}%
label{tab:vo-ej2}
end{table}
end{document}
tables
New contributor
EmiliOrtega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
This is what I want!
But my code doesn't work, it appears like this
documentclass{article}
usepackage[margin=1in]{geometry}
usepackage[spanish,es-tabla]{babel} % espanol
decimalpoint
usepackage[utf8]{inputenc}
usepackage{graphicx} % graficos
usepackage{amsmath}
usepackage{listings}
usepackage{tikz} %era para hacer los grafos pero no investigué mucho asi que lo hice con word
usetikzlibrary{arrows}
%Header an Footer Stuff
usepackage{fancyhdr}
pagestyle{fancy}
fancyhead{}
fancyfoot{}
fancyfoot[R]{ thepage }
%Hyperlink
usepackage{varioref}
usepackage{hyperref}
usepackage{cleveref}
hypersetup{colorlinks=false}
hypersetup{pdfborder={0 0 0}}
begin{document}
begin{table}[htbp]
caption{Valores optimos Ejercicio 2}
begin{tabular}{| l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l | l |}
hline
$x_{ij}$ & 1-2 & 1-3 & 1-5 & 2-3 & 2-4 & 2-8 & 3-4 & 3-5 & 4-7 & 4-8 & 5-6 & 5-9\
hline
Valor & 30 & 15 & 14 & 7 & 7 & 16 & 12 & 10 & 7 & 12\
hline
end{tabular}hspace{0pt}%
begin{tabular}{l l | l | l | l | l | l | l | l |}
hline
2-4 & 2-8 & 3-4 & 3-5 & 4-7 & 4-8 & 5-6 & 5-9\
hline
1111 & 8 & 5 & 11 & 12 & 28 & 19 & 0\
hline
end{tabular}hspace{0pt}%
label{tab:vo-ej2}
end{table}
end{document}
tables
tables
New contributor
EmiliOrtega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
EmiliOrtega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 7 hours ago
New contributor
EmiliOrtega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 13 hours ago
EmiliOrtega
62
62
New contributor
EmiliOrtega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
EmiliOrtega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
EmiliOrtega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
your second code fragment with... code
is not useful for anyone debugging your issue, please edit it so that it generates the output that you show,
– David Carlisle
12 hours ago
however you are only allowing a line break in one place and you have used geometry package to change the page width, so you appear to need to break at a different column.
– David Carlisle
12 hours ago
remove thosehspace{0pt}%
s amd do a line break instead. The table will be set as in your first example then.
– LaRiFaRi
12 hours ago
how do I add a line break ? @LaRiFaRi
– EmiliOrtega
11 hours ago
@DavidCarlisle I didn't added my code bc it's way long and I just have trouble with that piece of code that I added
– EmiliOrtega
11 hours ago
|
show 2 more comments
your second code fragment with... code
is not useful for anyone debugging your issue, please edit it so that it generates the output that you show,
– David Carlisle
12 hours ago
however you are only allowing a line break in one place and you have used geometry package to change the page width, so you appear to need to break at a different column.
– David Carlisle
12 hours ago
remove thosehspace{0pt}%
s amd do a line break instead. The table will be set as in your first example then.
– LaRiFaRi
12 hours ago
how do I add a line break ? @LaRiFaRi
– EmiliOrtega
11 hours ago
@DavidCarlisle I didn't added my code bc it's way long and I just have trouble with that piece of code that I added
– EmiliOrtega
11 hours ago
your second code fragment with
... code
is not useful for anyone debugging your issue, please edit it so that it generates the output that you show,– David Carlisle
12 hours ago
your second code fragment with
... code
is not useful for anyone debugging your issue, please edit it so that it generates the output that you show,– David Carlisle
12 hours ago
however you are only allowing a line break in one place and you have used geometry package to change the page width, so you appear to need to break at a different column.
– David Carlisle
12 hours ago
however you are only allowing a line break in one place and you have used geometry package to change the page width, so you appear to need to break at a different column.
– David Carlisle
12 hours ago
remove those
hspace{0pt}%
s amd do a line break instead. The table will be set as in your first example then.– LaRiFaRi
12 hours ago
remove those
hspace{0pt}%
s amd do a line break instead. The table will be set as in your first example then.– LaRiFaRi
12 hours ago
how do I add a line break ? @LaRiFaRi
– EmiliOrtega
11 hours ago
how do I add a line break ? @LaRiFaRi
– EmiliOrtega
11 hours ago
@DavidCarlisle I didn't added my code bc it's way long and I just have trouble with that piece of code that I added
– EmiliOrtega
11 hours ago
@DavidCarlisle I didn't added my code bc it's way long and I just have trouble with that piece of code that I added
– EmiliOrtega
11 hours ago
|
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
1
down vote
If you want that someone reads and understands your table, you might want to redesign it. What do you think about:
documentclass{article}
usepackage[margin=1in]{geometry}
usepackage[spanish]{babel}
usepackage{booktabs}
usepackage{siunitx}
usepackage{caption}
usepackage{lmodern}
usepackage[utf8]{inputenc}
begin{document}
begin{table}
centering
caption{Valores óptimos Ejercicio 2}label{tab:voed}
begin{tabular}{c S[table-format=2.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
1-2 & 30 \
1-3 & 15 \
1-5 & 14 \
$vdots$ & {$vdots$} \
4-8 & 12 \
bottomrule
end{tabular}qquad
begin{tabular}{c S[table-format=4.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
5-6 & \
5-9 & \
2-4 & 1111 \
$vdots$ & {$vdots$} \
5-9 & 0 \
bottomrule
end{tabular}
end{table}
end{document}
@LaRiFRi {c S[table-format=4.0]} those commands belong to ssiunitx ? what does c and S do ? I figured that table-format is to define how large horizontally is my table but I don't get the other ones.. I'm new using latex haha thanks in advance
– EmiliOrtega
11 hours ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
If you want that someone reads and understands your table, you might want to redesign it. What do you think about:
documentclass{article}
usepackage[margin=1in]{geometry}
usepackage[spanish]{babel}
usepackage{booktabs}
usepackage{siunitx}
usepackage{caption}
usepackage{lmodern}
usepackage[utf8]{inputenc}
begin{document}
begin{table}
centering
caption{Valores óptimos Ejercicio 2}label{tab:voed}
begin{tabular}{c S[table-format=2.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
1-2 & 30 \
1-3 & 15 \
1-5 & 14 \
$vdots$ & {$vdots$} \
4-8 & 12 \
bottomrule
end{tabular}qquad
begin{tabular}{c S[table-format=4.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
5-6 & \
5-9 & \
2-4 & 1111 \
$vdots$ & {$vdots$} \
5-9 & 0 \
bottomrule
end{tabular}
end{table}
end{document}
@LaRiFRi {c S[table-format=4.0]} those commands belong to ssiunitx ? what does c and S do ? I figured that table-format is to define how large horizontally is my table but I don't get the other ones.. I'm new using latex haha thanks in advance
– EmiliOrtega
11 hours ago
add a comment |
up vote
1
down vote
If you want that someone reads and understands your table, you might want to redesign it. What do you think about:
documentclass{article}
usepackage[margin=1in]{geometry}
usepackage[spanish]{babel}
usepackage{booktabs}
usepackage{siunitx}
usepackage{caption}
usepackage{lmodern}
usepackage[utf8]{inputenc}
begin{document}
begin{table}
centering
caption{Valores óptimos Ejercicio 2}label{tab:voed}
begin{tabular}{c S[table-format=2.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
1-2 & 30 \
1-3 & 15 \
1-5 & 14 \
$vdots$ & {$vdots$} \
4-8 & 12 \
bottomrule
end{tabular}qquad
begin{tabular}{c S[table-format=4.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
5-6 & \
5-9 & \
2-4 & 1111 \
$vdots$ & {$vdots$} \
5-9 & 0 \
bottomrule
end{tabular}
end{table}
end{document}
@LaRiFRi {c S[table-format=4.0]} those commands belong to ssiunitx ? what does c and S do ? I figured that table-format is to define how large horizontally is my table but I don't get the other ones.. I'm new using latex haha thanks in advance
– EmiliOrtega
11 hours ago
add a comment |
up vote
1
down vote
up vote
1
down vote
If you want that someone reads and understands your table, you might want to redesign it. What do you think about:
documentclass{article}
usepackage[margin=1in]{geometry}
usepackage[spanish]{babel}
usepackage{booktabs}
usepackage{siunitx}
usepackage{caption}
usepackage{lmodern}
usepackage[utf8]{inputenc}
begin{document}
begin{table}
centering
caption{Valores óptimos Ejercicio 2}label{tab:voed}
begin{tabular}{c S[table-format=2.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
1-2 & 30 \
1-3 & 15 \
1-5 & 14 \
$vdots$ & {$vdots$} \
4-8 & 12 \
bottomrule
end{tabular}qquad
begin{tabular}{c S[table-format=4.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
5-6 & \
5-9 & \
2-4 & 1111 \
$vdots$ & {$vdots$} \
5-9 & 0 \
bottomrule
end{tabular}
end{table}
end{document}
If you want that someone reads and understands your table, you might want to redesign it. What do you think about:
documentclass{article}
usepackage[margin=1in]{geometry}
usepackage[spanish]{babel}
usepackage{booktabs}
usepackage{siunitx}
usepackage{caption}
usepackage{lmodern}
usepackage[utf8]{inputenc}
begin{document}
begin{table}
centering
caption{Valores óptimos Ejercicio 2}label{tab:voed}
begin{tabular}{c S[table-format=2.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
1-2 & 30 \
1-3 & 15 \
1-5 & 14 \
$vdots$ & {$vdots$} \
4-8 & 12 \
bottomrule
end{tabular}qquad
begin{tabular}{c S[table-format=4.0]}
toprule
$x_{ij}$ & {Valor} \
midrule
5-6 & \
5-9 & \
2-4 & 1111 \
$vdots$ & {$vdots$} \
5-9 & 0 \
bottomrule
end{tabular}
end{table}
end{document}
answered 12 hours ago
LaRiFaRi
35.5k244120
35.5k244120
@LaRiFRi {c S[table-format=4.0]} those commands belong to ssiunitx ? what does c and S do ? I figured that table-format is to define how large horizontally is my table but I don't get the other ones.. I'm new using latex haha thanks in advance
– EmiliOrtega
11 hours ago
add a comment |
@LaRiFRi {c S[table-format=4.0]} those commands belong to ssiunitx ? what does c and S do ? I figured that table-format is to define how large horizontally is my table but I don't get the other ones.. I'm new using latex haha thanks in advance
– EmiliOrtega
11 hours ago
@LaRiFRi {c S[table-format=4.0]} those commands belong to ssiunitx ? what does c and S do ? I figured that table-format is to define how large horizontally is my table but I don't get the other ones.. I'm new using latex haha thanks in advance
– EmiliOrtega
11 hours ago
@LaRiFRi {c S[table-format=4.0]} those commands belong to ssiunitx ? what does c and S do ? I figured that table-format is to define how large horizontally is my table but I don't get the other ones.. I'm new using latex haha thanks in advance
– EmiliOrtega
11 hours ago
add a comment |
EmiliOrtega is a new contributor. Be nice, and check out our Code of Conduct.
EmiliOrtega is a new contributor. Be nice, and check out our Code of Conduct.
EmiliOrtega is a new contributor. Be nice, and check out our Code of Conduct.
EmiliOrtega 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%2f461848%2ftable-tabular-in-next-line-because-it-is-too-weid-horizontally%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
R7bVdEM9aQ8wQEOHez6J 7cgm,B87zT7vEzOWYDEe1 pcKGifGK 0xAjq,y ysZctIYWKMSgnT4u1nJ70i,eIQasDH
your second code fragment with
... code
is not useful for anyone debugging your issue, please edit it so that it generates the output that you show,– David Carlisle
12 hours ago
however you are only allowing a line break in one place and you have used geometry package to change the page width, so you appear to need to break at a different column.
– David Carlisle
12 hours ago
remove those
hspace{0pt}%
s amd do a line break instead. The table will be set as in your first example then.– LaRiFaRi
12 hours ago
how do I add a line break ? @LaRiFaRi
– EmiliOrtega
11 hours ago
@DavidCarlisle I didn't added my code bc it's way long and I just have trouble with that piece of code that I added
– EmiliOrtega
11 hours ago