TeXStudio can't make more than one new environment [closed]
When I try to make more than one new environment, TeXStudio seems to always only recognize the one that is created first and ignores the following ones. My preamble right now is:
documentclass[12pt]{article}
usepackage{amsmath, amsfonts, amssymb, amsthm}
usepackage[margin=1in]{geometry}
usepackage{lastpage, fancyhdr, parskip}
pagestyle{fancy}
setlength{parskip}{0.8ex}
newenvironment{problem}[1]{
bigbreak
begin{trivlist}
item[hskip labelsep {textbf{Problem #1.}}]
end{trivlist}
}
newenvironment{solution}[1]{
begin{trivlist}
item[hskip labelsep {textbf{Solution #1.}}]
end{trivlist}
}
Then when I try to use begin{}, problem will show up in the list but solution won't. Why is this happening?
Edit: If I use begin{solution}, the environment itself does work correctly, but my issue is that 'solution' does not show up in the list of environments.
environments texstudio preamble
closed as off-topic by Raaja, Sigur, Zarko, egreg, marmot Mar 6 at 1:35
- This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
When I try to make more than one new environment, TeXStudio seems to always only recognize the one that is created first and ignores the following ones. My preamble right now is:
documentclass[12pt]{article}
usepackage{amsmath, amsfonts, amssymb, amsthm}
usepackage[margin=1in]{geometry}
usepackage{lastpage, fancyhdr, parskip}
pagestyle{fancy}
setlength{parskip}{0.8ex}
newenvironment{problem}[1]{
bigbreak
begin{trivlist}
item[hskip labelsep {textbf{Problem #1.}}]
end{trivlist}
}
newenvironment{solution}[1]{
begin{trivlist}
item[hskip labelsep {textbf{Solution #1.}}]
end{trivlist}
}
Then when I try to use begin{}, problem will show up in the list but solution won't. Why is this happening?
Edit: If I use begin{solution}, the environment itself does work correctly, but my issue is that 'solution' does not show up in the list of environments.
environments texstudio preamble
closed as off-topic by Raaja, Sigur, Zarko, egreg, marmot Mar 6 at 1:35
- This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
1
you are missing the final argument of bothnewenvironment
declarations defining the end code. (that error is unrelated to texstudio)
– David Carlisle
Mar 5 at 22:13
Ah, you're right. Thank you.
– user182858
Mar 5 at 22:16
4
I'm voting to close this question as off-topic because it is solved via comments.
– Raaja
Mar 5 at 22:27
add a comment |
When I try to make more than one new environment, TeXStudio seems to always only recognize the one that is created first and ignores the following ones. My preamble right now is:
documentclass[12pt]{article}
usepackage{amsmath, amsfonts, amssymb, amsthm}
usepackage[margin=1in]{geometry}
usepackage{lastpage, fancyhdr, parskip}
pagestyle{fancy}
setlength{parskip}{0.8ex}
newenvironment{problem}[1]{
bigbreak
begin{trivlist}
item[hskip labelsep {textbf{Problem #1.}}]
end{trivlist}
}
newenvironment{solution}[1]{
begin{trivlist}
item[hskip labelsep {textbf{Solution #1.}}]
end{trivlist}
}
Then when I try to use begin{}, problem will show up in the list but solution won't. Why is this happening?
Edit: If I use begin{solution}, the environment itself does work correctly, but my issue is that 'solution' does not show up in the list of environments.
environments texstudio preamble
When I try to make more than one new environment, TeXStudio seems to always only recognize the one that is created first and ignores the following ones. My preamble right now is:
documentclass[12pt]{article}
usepackage{amsmath, amsfonts, amssymb, amsthm}
usepackage[margin=1in]{geometry}
usepackage{lastpage, fancyhdr, parskip}
pagestyle{fancy}
setlength{parskip}{0.8ex}
newenvironment{problem}[1]{
bigbreak
begin{trivlist}
item[hskip labelsep {textbf{Problem #1.}}]
end{trivlist}
}
newenvironment{solution}[1]{
begin{trivlist}
item[hskip labelsep {textbf{Solution #1.}}]
end{trivlist}
}
Then when I try to use begin{}, problem will show up in the list but solution won't. Why is this happening?
Edit: If I use begin{solution}, the environment itself does work correctly, but my issue is that 'solution' does not show up in the list of environments.
environments texstudio preamble
environments texstudio preamble
edited Mar 5 at 22:13
user182858
asked Mar 5 at 22:10
user182858user182858
11
11
closed as off-topic by Raaja, Sigur, Zarko, egreg, marmot Mar 6 at 1:35
- This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by Raaja, Sigur, Zarko, egreg, marmot Mar 6 at 1:35
- This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
1
you are missing the final argument of bothnewenvironment
declarations defining the end code. (that error is unrelated to texstudio)
– David Carlisle
Mar 5 at 22:13
Ah, you're right. Thank you.
– user182858
Mar 5 at 22:16
4
I'm voting to close this question as off-topic because it is solved via comments.
– Raaja
Mar 5 at 22:27
add a comment |
1
you are missing the final argument of bothnewenvironment
declarations defining the end code. (that error is unrelated to texstudio)
– David Carlisle
Mar 5 at 22:13
Ah, you're right. Thank you.
– user182858
Mar 5 at 22:16
4
I'm voting to close this question as off-topic because it is solved via comments.
– Raaja
Mar 5 at 22:27
1
1
you are missing the final argument of both
newenvironment
declarations defining the end code. (that error is unrelated to texstudio)– David Carlisle
Mar 5 at 22:13
you are missing the final argument of both
newenvironment
declarations defining the end code. (that error is unrelated to texstudio)– David Carlisle
Mar 5 at 22:13
Ah, you're right. Thank you.
– user182858
Mar 5 at 22:16
Ah, you're right. Thank you.
– user182858
Mar 5 at 22:16
4
4
I'm voting to close this question as off-topic because it is solved via comments.
– Raaja
Mar 5 at 22:27
I'm voting to close this question as off-topic because it is solved via comments.
– Raaja
Mar 5 at 22:27
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
you are missing the final argument of both
newenvironment
declarations defining the end code. (that error is unrelated to texstudio)– David Carlisle
Mar 5 at 22:13
Ah, you're right. Thank you.
– user182858
Mar 5 at 22:16
4
I'm voting to close this question as off-topic because it is solved via comments.
– Raaja
Mar 5 at 22:27