I'm not able to begin or end{document} in my article on TexStudio
up vote
1
down vote
favorite
This is the MWE of the code I have used (I'm using APA6 package to make an apa formatted document for my research article so have used that as the document class rather than article). When I try to compile, it keeps saying error at begin and end document. I'm using TexStudio on MikTex
documentclass[a4paper, 11pt, man]{apa6}
usepackage[utf8]{inputenc}
usepackage{fancyhdr}
pagestyle{fancy}
usepackage[british]{babel}
usepackage{csquotes}
usepackage[style=apa]{biblatex}
addbibresource{LDHealthResearch.bib}
title
shorttitle
author{name\affiliation and name\affiliation}
begin{document}
Text cite and textcite
printbibliography
end
errors
New contributor
add a comment |
up vote
1
down vote
favorite
This is the MWE of the code I have used (I'm using APA6 package to make an apa formatted document for my research article so have used that as the document class rather than article). When I try to compile, it keeps saying error at begin and end document. I'm using TexStudio on MikTex
documentclass[a4paper, 11pt, man]{apa6}
usepackage[utf8]{inputenc}
usepackage{fancyhdr}
pagestyle{fancy}
usepackage[british]{babel}
usepackage{csquotes}
usepackage[style=apa]{biblatex}
addbibresource{LDHealthResearch.bib}
title
shorttitle
author{name\affiliation and name\affiliation}
begin{document}
Text cite and textcite
printbibliography
end
errors
New contributor
1
Welcome to TeX.SE! In your MWE there is onlyend
, notend{document}
– CarLaTeX
yesterday
Welcome to TeX.SX! For once, you needend{document}
to close your document environment. Second, you probably should havetitle
andshorttitle
afterbegin{document}
.
– gusbrs
yesterday
1
Andcite
andtextcite
need an argument (the bibitem id).
– CarLaTeX
yesterday
Yes, sorry, I did put in end{document} and it still says there are errors. However, It's now building the pdf and inserting authors properly as I added the abstract having used the apa class and switched from apacite to biblatex but has decided not to insert references properly from my bibtex file. But you have solved my original problem (off to find that thread now!) thank you :)
– PlanetRTex
yesterday
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
This is the MWE of the code I have used (I'm using APA6 package to make an apa formatted document for my research article so have used that as the document class rather than article). When I try to compile, it keeps saying error at begin and end document. I'm using TexStudio on MikTex
documentclass[a4paper, 11pt, man]{apa6}
usepackage[utf8]{inputenc}
usepackage{fancyhdr}
pagestyle{fancy}
usepackage[british]{babel}
usepackage{csquotes}
usepackage[style=apa]{biblatex}
addbibresource{LDHealthResearch.bib}
title
shorttitle
author{name\affiliation and name\affiliation}
begin{document}
Text cite and textcite
printbibliography
end
errors
New contributor
This is the MWE of the code I have used (I'm using APA6 package to make an apa formatted document for my research article so have used that as the document class rather than article). When I try to compile, it keeps saying error at begin and end document. I'm using TexStudio on MikTex
documentclass[a4paper, 11pt, man]{apa6}
usepackage[utf8]{inputenc}
usepackage{fancyhdr}
pagestyle{fancy}
usepackage[british]{babel}
usepackage{csquotes}
usepackage[style=apa]{biblatex}
addbibresource{LDHealthResearch.bib}
title
shorttitle
author{name\affiliation and name\affiliation}
begin{document}
Text cite and textcite
printbibliography
end
errors
errors
New contributor
New contributor
edited yesterday
gusbrs
5,8442838
5,8442838
New contributor
asked yesterday
PlanetRTex
61
61
New contributor
New contributor
1
Welcome to TeX.SE! In your MWE there is onlyend
, notend{document}
– CarLaTeX
yesterday
Welcome to TeX.SX! For once, you needend{document}
to close your document environment. Second, you probably should havetitle
andshorttitle
afterbegin{document}
.
– gusbrs
yesterday
1
Andcite
andtextcite
need an argument (the bibitem id).
– CarLaTeX
yesterday
Yes, sorry, I did put in end{document} and it still says there are errors. However, It's now building the pdf and inserting authors properly as I added the abstract having used the apa class and switched from apacite to biblatex but has decided not to insert references properly from my bibtex file. But you have solved my original problem (off to find that thread now!) thank you :)
– PlanetRTex
yesterday
add a comment |
1
Welcome to TeX.SE! In your MWE there is onlyend
, notend{document}
– CarLaTeX
yesterday
Welcome to TeX.SX! For once, you needend{document}
to close your document environment. Second, you probably should havetitle
andshorttitle
afterbegin{document}
.
– gusbrs
yesterday
1
Andcite
andtextcite
need an argument (the bibitem id).
– CarLaTeX
yesterday
Yes, sorry, I did put in end{document} and it still says there are errors. However, It's now building the pdf and inserting authors properly as I added the abstract having used the apa class and switched from apacite to biblatex but has decided not to insert references properly from my bibtex file. But you have solved my original problem (off to find that thread now!) thank you :)
– PlanetRTex
yesterday
1
1
Welcome to TeX.SE! In your MWE there is only
end
, not end{document}
– CarLaTeX
yesterday
Welcome to TeX.SE! In your MWE there is only
end
, not end{document}
– CarLaTeX
yesterday
Welcome to TeX.SX! For once, you need
end{document}
to close your document environment. Second, you probably should have title
and shorttitle
after begin{document}
.– gusbrs
yesterday
Welcome to TeX.SX! For once, you need
end{document}
to close your document environment. Second, you probably should have title
and shorttitle
after begin{document}
.– gusbrs
yesterday
1
1
And
cite
and textcite
need an argument (the bibitem id).– CarLaTeX
yesterday
And
cite
and textcite
need an argument (the bibitem id).– CarLaTeX
yesterday
Yes, sorry, I did put in end{document} and it still says there are errors. However, It's now building the pdf and inserting authors properly as I added the abstract having used the apa class and switched from apacite to biblatex but has decided not to insert references properly from my bibtex file. But you have solved my original problem (off to find that thread now!) thank you :)
– PlanetRTex
yesterday
Yes, sorry, I did put in end{document} and it still says there are errors. However, It's now building the pdf and inserting authors properly as I added the abstract having used the apa class and switched from apacite to biblatex but has decided not to insert references properly from my bibtex file. But you have solved my original problem (off to find that thread now!) thank you :)
– PlanetRTex
yesterday
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
Your code contain several errors, although one of them is not, (as suggested in the comments) place title
and shorttitle
in the preamble.
This is a minimal working (compilable) example:
documentclass{apa6}
usepackage[british]{babel}
usepackage[style=apa]{biblatex}
DeclareLanguageMapping{british}{british-apa}
addbibresource{IEEEexample.bib}
title{A} % very short tile
shorttitle{B} % very short shorttile
threeauthors{C}{D}{F} %three very short author names
threeaffiliations{U. of H}{U. of I}{U. of J.}
abstract{bla bla ...}
begin{document}
maketitle
Text textcite{IEEEexample:article_typical}
printbibliography
end{document}
Note that you cannot use and
as in standard articles, nor mix names and affiliations, nor make the article without abstract. You must use the specific commands of this class to make a minimal working structure. Run texdoc apa6
to discover them. Then add/modify what you need (for example, threeauthors
by twoauthors
) and check that still is compilable.
+1 I stand duly corrected!
– gusbrs
yesterday
1
@gusbrs Thanks. Is not usually explained, buttitle
could be even before of thedocumentclass
. Just remove in my MWE thetitle{A}
and placetitle{Whatever}
in the first line. Anyway, placetitle
andauthor
after begin{document} is always safer as far it is beforemaketitle
. The opposite is not always true (e.g, you cannot placethreeauthors
before the preamble) .
– Fran
yesterday
Fran, of course, I was fooled by the lack of arguments and the non standard class and implicitly assumed those were the class' version ofmaketitle
... On second thought, I should've thought twice. :)
– gusbrs
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Your code contain several errors, although one of them is not, (as suggested in the comments) place title
and shorttitle
in the preamble.
This is a minimal working (compilable) example:
documentclass{apa6}
usepackage[british]{babel}
usepackage[style=apa]{biblatex}
DeclareLanguageMapping{british}{british-apa}
addbibresource{IEEEexample.bib}
title{A} % very short tile
shorttitle{B} % very short shorttile
threeauthors{C}{D}{F} %three very short author names
threeaffiliations{U. of H}{U. of I}{U. of J.}
abstract{bla bla ...}
begin{document}
maketitle
Text textcite{IEEEexample:article_typical}
printbibliography
end{document}
Note that you cannot use and
as in standard articles, nor mix names and affiliations, nor make the article without abstract. You must use the specific commands of this class to make a minimal working structure. Run texdoc apa6
to discover them. Then add/modify what you need (for example, threeauthors
by twoauthors
) and check that still is compilable.
+1 I stand duly corrected!
– gusbrs
yesterday
1
@gusbrs Thanks. Is not usually explained, buttitle
could be even before of thedocumentclass
. Just remove in my MWE thetitle{A}
and placetitle{Whatever}
in the first line. Anyway, placetitle
andauthor
after begin{document} is always safer as far it is beforemaketitle
. The opposite is not always true (e.g, you cannot placethreeauthors
before the preamble) .
– Fran
yesterday
Fran, of course, I was fooled by the lack of arguments and the non standard class and implicitly assumed those were the class' version ofmaketitle
... On second thought, I should've thought twice. :)
– gusbrs
yesterday
add a comment |
up vote
2
down vote
Your code contain several errors, although one of them is not, (as suggested in the comments) place title
and shorttitle
in the preamble.
This is a minimal working (compilable) example:
documentclass{apa6}
usepackage[british]{babel}
usepackage[style=apa]{biblatex}
DeclareLanguageMapping{british}{british-apa}
addbibresource{IEEEexample.bib}
title{A} % very short tile
shorttitle{B} % very short shorttile
threeauthors{C}{D}{F} %three very short author names
threeaffiliations{U. of H}{U. of I}{U. of J.}
abstract{bla bla ...}
begin{document}
maketitle
Text textcite{IEEEexample:article_typical}
printbibliography
end{document}
Note that you cannot use and
as in standard articles, nor mix names and affiliations, nor make the article without abstract. You must use the specific commands of this class to make a minimal working structure. Run texdoc apa6
to discover them. Then add/modify what you need (for example, threeauthors
by twoauthors
) and check that still is compilable.
+1 I stand duly corrected!
– gusbrs
yesterday
1
@gusbrs Thanks. Is not usually explained, buttitle
could be even before of thedocumentclass
. Just remove in my MWE thetitle{A}
and placetitle{Whatever}
in the first line. Anyway, placetitle
andauthor
after begin{document} is always safer as far it is beforemaketitle
. The opposite is not always true (e.g, you cannot placethreeauthors
before the preamble) .
– Fran
yesterday
Fran, of course, I was fooled by the lack of arguments and the non standard class and implicitly assumed those were the class' version ofmaketitle
... On second thought, I should've thought twice. :)
– gusbrs
yesterday
add a comment |
up vote
2
down vote
up vote
2
down vote
Your code contain several errors, although one of them is not, (as suggested in the comments) place title
and shorttitle
in the preamble.
This is a minimal working (compilable) example:
documentclass{apa6}
usepackage[british]{babel}
usepackage[style=apa]{biblatex}
DeclareLanguageMapping{british}{british-apa}
addbibresource{IEEEexample.bib}
title{A} % very short tile
shorttitle{B} % very short shorttile
threeauthors{C}{D}{F} %three very short author names
threeaffiliations{U. of H}{U. of I}{U. of J.}
abstract{bla bla ...}
begin{document}
maketitle
Text textcite{IEEEexample:article_typical}
printbibliography
end{document}
Note that you cannot use and
as in standard articles, nor mix names and affiliations, nor make the article without abstract. You must use the specific commands of this class to make a minimal working structure. Run texdoc apa6
to discover them. Then add/modify what you need (for example, threeauthors
by twoauthors
) and check that still is compilable.
Your code contain several errors, although one of them is not, (as suggested in the comments) place title
and shorttitle
in the preamble.
This is a minimal working (compilable) example:
documentclass{apa6}
usepackage[british]{babel}
usepackage[style=apa]{biblatex}
DeclareLanguageMapping{british}{british-apa}
addbibresource{IEEEexample.bib}
title{A} % very short tile
shorttitle{B} % very short shorttile
threeauthors{C}{D}{F} %three very short author names
threeaffiliations{U. of H}{U. of I}{U. of J.}
abstract{bla bla ...}
begin{document}
maketitle
Text textcite{IEEEexample:article_typical}
printbibliography
end{document}
Note that you cannot use and
as in standard articles, nor mix names and affiliations, nor make the article without abstract. You must use the specific commands of this class to make a minimal working structure. Run texdoc apa6
to discover them. Then add/modify what you need (for example, threeauthors
by twoauthors
) and check that still is compilable.
edited yesterday
answered yesterday
Fran
49.5k6110172
49.5k6110172
+1 I stand duly corrected!
– gusbrs
yesterday
1
@gusbrs Thanks. Is not usually explained, buttitle
could be even before of thedocumentclass
. Just remove in my MWE thetitle{A}
and placetitle{Whatever}
in the first line. Anyway, placetitle
andauthor
after begin{document} is always safer as far it is beforemaketitle
. The opposite is not always true (e.g, you cannot placethreeauthors
before the preamble) .
– Fran
yesterday
Fran, of course, I was fooled by the lack of arguments and the non standard class and implicitly assumed those were the class' version ofmaketitle
... On second thought, I should've thought twice. :)
– gusbrs
yesterday
add a comment |
+1 I stand duly corrected!
– gusbrs
yesterday
1
@gusbrs Thanks. Is not usually explained, buttitle
could be even before of thedocumentclass
. Just remove in my MWE thetitle{A}
and placetitle{Whatever}
in the first line. Anyway, placetitle
andauthor
after begin{document} is always safer as far it is beforemaketitle
. The opposite is not always true (e.g, you cannot placethreeauthors
before the preamble) .
– Fran
yesterday
Fran, of course, I was fooled by the lack of arguments and the non standard class and implicitly assumed those were the class' version ofmaketitle
... On second thought, I should've thought twice. :)
– gusbrs
yesterday
+1 I stand duly corrected!
– gusbrs
yesterday
+1 I stand duly corrected!
– gusbrs
yesterday
1
1
@gusbrs Thanks. Is not usually explained, but
title
could be even before of the documentclass
. Just remove in my MWE the title{A}
and place title{Whatever}
in the first line. Anyway, place title
and author
after begin{document} is always safer as far it is before maketitle
. The opposite is not always true (e.g, you cannot place threeauthors
before the preamble) .– Fran
yesterday
@gusbrs Thanks. Is not usually explained, but
title
could be even before of the documentclass
. Just remove in my MWE the title{A}
and place title{Whatever}
in the first line. Anyway, place title
and author
after begin{document} is always safer as far it is before maketitle
. The opposite is not always true (e.g, you cannot place threeauthors
before the preamble) .– Fran
yesterday
Fran, of course, I was fooled by the lack of arguments and the non standard class and implicitly assumed those were the class' version of
maketitle
... On second thought, I should've thought twice. :)– gusbrs
yesterday
Fran, of course, I was fooled by the lack of arguments and the non standard class and implicitly assumed those were the class' version of
maketitle
... On second thought, I should've thought twice. :)– gusbrs
yesterday
add a comment |
PlanetRTex is a new contributor. Be nice, and check out our Code of Conduct.
PlanetRTex is a new contributor. Be nice, and check out our Code of Conduct.
PlanetRTex is a new contributor. Be nice, and check out our Code of Conduct.
PlanetRTex 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
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459611%2fim-not-able-to-begin-or-enddocument-in-my-article-on-texstudio%23new-answer', 'question_page');
}
);
Post as a guest
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
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
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
1
Welcome to TeX.SE! In your MWE there is only
end
, notend{document}
– CarLaTeX
yesterday
Welcome to TeX.SX! For once, you need
end{document}
to close your document environment. Second, you probably should havetitle
andshorttitle
afterbegin{document}
.– gusbrs
yesterday
1
And
cite
andtextcite
need an argument (the bibitem id).– CarLaTeX
yesterday
Yes, sorry, I did put in end{document} and it still says there are errors. However, It's now building the pdf and inserting authors properly as I added the abstract having used the apa class and switched from apacite to biblatex but has decided not to insert references properly from my bibtex file. But you have solved my original problem (off to find that thread now!) thank you :)
– PlanetRTex
yesterday