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









share|improve this question









New contributor




PlanetRTex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    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






  • 1




    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















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









share|improve this question









New contributor




PlanetRTex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    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






  • 1




    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













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









share|improve this question









New contributor




PlanetRTex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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






share|improve this question









New contributor




PlanetRTex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




PlanetRTex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









gusbrs

5,8442838




5,8442838






New contributor




PlanetRTex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









PlanetRTex

61




61




New contributor




PlanetRTex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





PlanetRTex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






PlanetRTex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    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






  • 1




    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














  • 1




    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






  • 1




    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








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










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.






share|improve this answer























  • +1 I stand duly corrected!
    – gusbrs
    yesterday






  • 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












  • 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













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',
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
});


}
});






PlanetRTex is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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
































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.






share|improve this answer























  • +1 I stand duly corrected!
    – gusbrs
    yesterday






  • 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












  • 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

















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.






share|improve this answer























  • +1 I stand duly corrected!
    – gusbrs
    yesterday






  • 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












  • 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















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.






share|improve this answer














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.







share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday

























answered yesterday









Fran

49.5k6110172




49.5k6110172












  • +1 I stand duly corrected!
    – gusbrs
    yesterday






  • 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












  • 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




















  • +1 I stand duly corrected!
    – gusbrs
    yesterday






  • 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












  • 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


















+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












PlanetRTex is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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.















 


draft saved


draft discarded














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




















































































Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?