Missing $ inserted in a table
I'm getting this error:
! Missing $ inserted.
<inserted text>
$
l.557 & V_
n le 1 kV & 1 kV le V_n le 69 kV & 6...
? ! Missing $ inserted.
<inserted text>
$
l.557 & V_n le 1 kV &
1 kV le V_n le 69 kV & 6...
?
And this is my table, can anyone help me where should i put the $? Latex is already doing it by itself (i guess), but i really want to know whats wrong here.
begin{table}[h!]
caption{Valores de referência para as distorções harmônicas totais de tensão.}
begin{center}
label{limites_distorcao}
begin{tabular}{|c|c|c|c|}
hline
multirow{2}{*}{Indicador} & multicolumn{3}{c|}{Tensão Nominal do Barramento} \ cline{2-4}
& V_n le 1 kV & 1 kV le V_n le 69 kV & 69 kV le V_n le 230 kV \ hline
$DHTvI_i$ & 7,5% & 6% & 4% \ hline
$DHTv3_i$ & 6,5% & 5% & 3% \ hline
end{tabular}
end{center}
end{table}
missing
add a comment |
I'm getting this error:
! Missing $ inserted.
<inserted text>
$
l.557 & V_
n le 1 kV & 1 kV le V_n le 69 kV & 6...
? ! Missing $ inserted.
<inserted text>
$
l.557 & V_n le 1 kV &
1 kV le V_n le 69 kV & 6...
?
And this is my table, can anyone help me where should i put the $? Latex is already doing it by itself (i guess), but i really want to know whats wrong here.
begin{table}[h!]
caption{Valores de referência para as distorções harmônicas totais de tensão.}
begin{center}
label{limites_distorcao}
begin{tabular}{|c|c|c|c|}
hline
multirow{2}{*}{Indicador} & multicolumn{3}{c|}{Tensão Nominal do Barramento} \ cline{2-4}
& V_n le 1 kV & 1 kV le V_n le 69 kV & 69 kV le V_n le 230 kV \ hline
$DHTvI_i$ & 7,5% & 6% & 4% \ hline
$DHTv3_i$ & 6,5% & 5% & 3% \ hline
end{tabular}
end{center}
end{table}
missing
2
V_n le 1 kV
should be in math mode
– David Carlisle
Jan 7 at 12:00
2
$V_n$
and$le$
-> Math mode. Please read an introduction to LaTeX.
– Johannes_B
Jan 7 at 12:01
add a comment |
I'm getting this error:
! Missing $ inserted.
<inserted text>
$
l.557 & V_
n le 1 kV & 1 kV le V_n le 69 kV & 6...
? ! Missing $ inserted.
<inserted text>
$
l.557 & V_n le 1 kV &
1 kV le V_n le 69 kV & 6...
?
And this is my table, can anyone help me where should i put the $? Latex is already doing it by itself (i guess), but i really want to know whats wrong here.
begin{table}[h!]
caption{Valores de referência para as distorções harmônicas totais de tensão.}
begin{center}
label{limites_distorcao}
begin{tabular}{|c|c|c|c|}
hline
multirow{2}{*}{Indicador} & multicolumn{3}{c|}{Tensão Nominal do Barramento} \ cline{2-4}
& V_n le 1 kV & 1 kV le V_n le 69 kV & 69 kV le V_n le 230 kV \ hline
$DHTvI_i$ & 7,5% & 6% & 4% \ hline
$DHTv3_i$ & 6,5% & 5% & 3% \ hline
end{tabular}
end{center}
end{table}
missing
I'm getting this error:
! Missing $ inserted.
<inserted text>
$
l.557 & V_
n le 1 kV & 1 kV le V_n le 69 kV & 6...
? ! Missing $ inserted.
<inserted text>
$
l.557 & V_n le 1 kV &
1 kV le V_n le 69 kV & 6...
?
And this is my table, can anyone help me where should i put the $? Latex is already doing it by itself (i guess), but i really want to know whats wrong here.
begin{table}[h!]
caption{Valores de referência para as distorções harmônicas totais de tensão.}
begin{center}
label{limites_distorcao}
begin{tabular}{|c|c|c|c|}
hline
multirow{2}{*}{Indicador} & multicolumn{3}{c|}{Tensão Nominal do Barramento} \ cline{2-4}
& V_n le 1 kV & 1 kV le V_n le 69 kV & 69 kV le V_n le 230 kV \ hline
$DHTvI_i$ & 7,5% & 6% & 4% \ hline
$DHTv3_i$ & 6,5% & 5% & 3% \ hline
end{tabular}
end{center}
end{table}
missing
missing
asked Jan 7 at 11:59
Murilo Araujo SouzaMurilo Araujo Souza
133
133
2
V_n le 1 kV
should be in math mode
– David Carlisle
Jan 7 at 12:00
2
$V_n$
and$le$
-> Math mode. Please read an introduction to LaTeX.
– Johannes_B
Jan 7 at 12:01
add a comment |
2
V_n le 1 kV
should be in math mode
– David Carlisle
Jan 7 at 12:00
2
$V_n$
and$le$
-> Math mode. Please read an introduction to LaTeX.
– Johannes_B
Jan 7 at 12:01
2
2
V_n le 1 kV
should be in math mode– David Carlisle
Jan 7 at 12:00
V_n le 1 kV
should be in math mode– David Carlisle
Jan 7 at 12:00
2
2
$V_n$
and $le$
-> Math mode. Please read an introduction to LaTeX.– Johannes_B
Jan 7 at 12:01
$V_n$
and $le$
-> Math mode. Please read an introduction to LaTeX.– Johannes_B
Jan 7 at 12:01
add a comment |
1 Answer
1
active
oldest
votes
You are missing the dollar signs for the math code V_n
and le
which causes the error (as already stated by other users in the comments). Inside a tabular
every cell is an own box and you need to enable math mode for each one.
In addition to that you have some other issues in your code:
- Don't use the
center
environment but thecentering
command. The former adds unwanted vertical space and is for text paragraphs only. See Should I use center or centering for figures and tables? for further details. - For the physical units and percent values I recommend the great
siunitx
package - Try to avoid vertical rules in your table and try to use the
booktab
package. Less rules in the table make it look better. - The use of
{table}[h!]
is one of the most frequent beginner issue as they don't understand the use of floats (In short: they should float!). If you want a table at a certain position in the text then thetable
environment is not a good choice (yes, confusing!). See Force figure placement in text and maybe also How to influence the position of float environments like figure and table in LaTeX? for more information.
Here a version of your code with the improvements added:
documentclass{article}
usepackage{blindtext}% for example text here only
usepackage{multirow}
usepackage{caption} % proper table caption distance
usepackage{booktabs} % book quality table lines
usepackage{siunitx} % format SI units
sisetup{output-decimal-marker = {,}} % use comma as decimal marker
begin{document}
blindtext
begin{table}[h!]
caption{Valores de referência para as distorções harmônicas totais de tensão.}
centering % don't use {center} environment, which is for text paragraphs only and add unwanted vertical space before and after
label{limites_distorcao}
begin{tabular}{cccc}
toprule
multirow{2}{*}{Indicador} & multicolumn{3}{c}{Tensão Nominal do Barramento} \[.25ex]
& $V_n le SI{1}{kilovolt} $ & $ SI{1}{kilovolt} le V_n le SI{69}{kilovolt} $ & $ SI{69}{kilovolt} le V_n le SI{230}{kilovolt} $\ midrule
$DHTvI_i$ & SI{7,5}{%} & SI{6}{%} & SI{4}{%} \
$DHTv3_i$ & SI{6,5}{%} & SI{5}{%} & SI{3}{%} \
bottomrule
end{tabular}
end{table}
blindtext
end{document}
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%2f468943%2fmissing-inserted-in-a-table%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are missing the dollar signs for the math code V_n
and le
which causes the error (as already stated by other users in the comments). Inside a tabular
every cell is an own box and you need to enable math mode for each one.
In addition to that you have some other issues in your code:
- Don't use the
center
environment but thecentering
command. The former adds unwanted vertical space and is for text paragraphs only. See Should I use center or centering for figures and tables? for further details. - For the physical units and percent values I recommend the great
siunitx
package - Try to avoid vertical rules in your table and try to use the
booktab
package. Less rules in the table make it look better. - The use of
{table}[h!]
is one of the most frequent beginner issue as they don't understand the use of floats (In short: they should float!). If you want a table at a certain position in the text then thetable
environment is not a good choice (yes, confusing!). See Force figure placement in text and maybe also How to influence the position of float environments like figure and table in LaTeX? for more information.
Here a version of your code with the improvements added:
documentclass{article}
usepackage{blindtext}% for example text here only
usepackage{multirow}
usepackage{caption} % proper table caption distance
usepackage{booktabs} % book quality table lines
usepackage{siunitx} % format SI units
sisetup{output-decimal-marker = {,}} % use comma as decimal marker
begin{document}
blindtext
begin{table}[h!]
caption{Valores de referência para as distorções harmônicas totais de tensão.}
centering % don't use {center} environment, which is for text paragraphs only and add unwanted vertical space before and after
label{limites_distorcao}
begin{tabular}{cccc}
toprule
multirow{2}{*}{Indicador} & multicolumn{3}{c}{Tensão Nominal do Barramento} \[.25ex]
& $V_n le SI{1}{kilovolt} $ & $ SI{1}{kilovolt} le V_n le SI{69}{kilovolt} $ & $ SI{69}{kilovolt} le V_n le SI{230}{kilovolt} $\ midrule
$DHTvI_i$ & SI{7,5}{%} & SI{6}{%} & SI{4}{%} \
$DHTv3_i$ & SI{6,5}{%} & SI{5}{%} & SI{3}{%} \
bottomrule
end{tabular}
end{table}
blindtext
end{document}
add a comment |
You are missing the dollar signs for the math code V_n
and le
which causes the error (as already stated by other users in the comments). Inside a tabular
every cell is an own box and you need to enable math mode for each one.
In addition to that you have some other issues in your code:
- Don't use the
center
environment but thecentering
command. The former adds unwanted vertical space and is for text paragraphs only. See Should I use center or centering for figures and tables? for further details. - For the physical units and percent values I recommend the great
siunitx
package - Try to avoid vertical rules in your table and try to use the
booktab
package. Less rules in the table make it look better. - The use of
{table}[h!]
is one of the most frequent beginner issue as they don't understand the use of floats (In short: they should float!). If you want a table at a certain position in the text then thetable
environment is not a good choice (yes, confusing!). See Force figure placement in text and maybe also How to influence the position of float environments like figure and table in LaTeX? for more information.
Here a version of your code with the improvements added:
documentclass{article}
usepackage{blindtext}% for example text here only
usepackage{multirow}
usepackage{caption} % proper table caption distance
usepackage{booktabs} % book quality table lines
usepackage{siunitx} % format SI units
sisetup{output-decimal-marker = {,}} % use comma as decimal marker
begin{document}
blindtext
begin{table}[h!]
caption{Valores de referência para as distorções harmônicas totais de tensão.}
centering % don't use {center} environment, which is for text paragraphs only and add unwanted vertical space before and after
label{limites_distorcao}
begin{tabular}{cccc}
toprule
multirow{2}{*}{Indicador} & multicolumn{3}{c}{Tensão Nominal do Barramento} \[.25ex]
& $V_n le SI{1}{kilovolt} $ & $ SI{1}{kilovolt} le V_n le SI{69}{kilovolt} $ & $ SI{69}{kilovolt} le V_n le SI{230}{kilovolt} $\ midrule
$DHTvI_i$ & SI{7,5}{%} & SI{6}{%} & SI{4}{%} \
$DHTv3_i$ & SI{6,5}{%} & SI{5}{%} & SI{3}{%} \
bottomrule
end{tabular}
end{table}
blindtext
end{document}
add a comment |
You are missing the dollar signs for the math code V_n
and le
which causes the error (as already stated by other users in the comments). Inside a tabular
every cell is an own box and you need to enable math mode for each one.
In addition to that you have some other issues in your code:
- Don't use the
center
environment but thecentering
command. The former adds unwanted vertical space and is for text paragraphs only. See Should I use center or centering for figures and tables? for further details. - For the physical units and percent values I recommend the great
siunitx
package - Try to avoid vertical rules in your table and try to use the
booktab
package. Less rules in the table make it look better. - The use of
{table}[h!]
is one of the most frequent beginner issue as they don't understand the use of floats (In short: they should float!). If you want a table at a certain position in the text then thetable
environment is not a good choice (yes, confusing!). See Force figure placement in text and maybe also How to influence the position of float environments like figure and table in LaTeX? for more information.
Here a version of your code with the improvements added:
documentclass{article}
usepackage{blindtext}% for example text here only
usepackage{multirow}
usepackage{caption} % proper table caption distance
usepackage{booktabs} % book quality table lines
usepackage{siunitx} % format SI units
sisetup{output-decimal-marker = {,}} % use comma as decimal marker
begin{document}
blindtext
begin{table}[h!]
caption{Valores de referência para as distorções harmônicas totais de tensão.}
centering % don't use {center} environment, which is for text paragraphs only and add unwanted vertical space before and after
label{limites_distorcao}
begin{tabular}{cccc}
toprule
multirow{2}{*}{Indicador} & multicolumn{3}{c}{Tensão Nominal do Barramento} \[.25ex]
& $V_n le SI{1}{kilovolt} $ & $ SI{1}{kilovolt} le V_n le SI{69}{kilovolt} $ & $ SI{69}{kilovolt} le V_n le SI{230}{kilovolt} $\ midrule
$DHTvI_i$ & SI{7,5}{%} & SI{6}{%} & SI{4}{%} \
$DHTv3_i$ & SI{6,5}{%} & SI{5}{%} & SI{3}{%} \
bottomrule
end{tabular}
end{table}
blindtext
end{document}
You are missing the dollar signs for the math code V_n
and le
which causes the error (as already stated by other users in the comments). Inside a tabular
every cell is an own box and you need to enable math mode for each one.
In addition to that you have some other issues in your code:
- Don't use the
center
environment but thecentering
command. The former adds unwanted vertical space and is for text paragraphs only. See Should I use center or centering for figures and tables? for further details. - For the physical units and percent values I recommend the great
siunitx
package - Try to avoid vertical rules in your table and try to use the
booktab
package. Less rules in the table make it look better. - The use of
{table}[h!]
is one of the most frequent beginner issue as they don't understand the use of floats (In short: they should float!). If you want a table at a certain position in the text then thetable
environment is not a good choice (yes, confusing!). See Force figure placement in text and maybe also How to influence the position of float environments like figure and table in LaTeX? for more information.
Here a version of your code with the improvements added:
documentclass{article}
usepackage{blindtext}% for example text here only
usepackage{multirow}
usepackage{caption} % proper table caption distance
usepackage{booktabs} % book quality table lines
usepackage{siunitx} % format SI units
sisetup{output-decimal-marker = {,}} % use comma as decimal marker
begin{document}
blindtext
begin{table}[h!]
caption{Valores de referência para as distorções harmônicas totais de tensão.}
centering % don't use {center} environment, which is for text paragraphs only and add unwanted vertical space before and after
label{limites_distorcao}
begin{tabular}{cccc}
toprule
multirow{2}{*}{Indicador} & multicolumn{3}{c}{Tensão Nominal do Barramento} \[.25ex]
& $V_n le SI{1}{kilovolt} $ & $ SI{1}{kilovolt} le V_n le SI{69}{kilovolt} $ & $ SI{69}{kilovolt} le V_n le SI{230}{kilovolt} $\ midrule
$DHTvI_i$ & SI{7,5}{%} & SI{6}{%} & SI{4}{%} \
$DHTv3_i$ & SI{6,5}{%} & SI{5}{%} & SI{3}{%} \
bottomrule
end{tabular}
end{table}
blindtext
end{document}
answered Jan 8 at 20:17
Martin Scharrer♦Martin Scharrer
199k45634818
199k45634818
add a comment |
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%2f468943%2fmissing-inserted-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
2
V_n le 1 kV
should be in math mode– David Carlisle
Jan 7 at 12:00
2
$V_n$
and$le$
-> Math mode. Please read an introduction to LaTeX.– Johannes_B
Jan 7 at 12:01