Problem with maketitle: “there's no line here to end”












6















I'm using MiKTeX 2.9 and i'm new to TeX.



Simplified, I have this code:



newcommand{aone}{Anna}
newcommand{atwo}{Bob}
newcommand{topic}{Tpoic}
subject{University \ Paper}
title{ \topic\ suubtitle}
author{aoneand atwo}
begin{document}
begin{titlepage}
maketitle
end{titlepage}
end{document}


Error:




There's no line here to end. end (at end{titlepage})




Log:




l.7 end{titlepage}




What can be the problem? I have exclude the titlepage, all seems ok.
I have no idea.










share|improve this question




















  • 1





    The first \ in title is the source of the error.

    – jubobs
    Mar 8 '13 at 10:18








  • 2





    Commonly when using maketitle you do not need to enclose it in a titlepage-environment. just writing maktitle should do the trick

    – Martin H
    Mar 8 '13 at 10:25













  • If you want to hack your way into a vertically shifted title, you can put a vskip1em at the beginning of your title instead of a newline \ . (Optionally, replace the 1em part with the amount by which you want the title to be shifted downwards).

    – bencarabelli
    Mar 8 '13 at 10:42













  • Check out this page about titlepage in KOMA script. It's in german but it covers most of your ideas and should also be applicable to other documentclasses (maybe with some minor tweeks).

    – Oliver
    Mar 8 '13 at 11:06











  • please post it as answer, so i can accept. the problem was indeed the "\". Thanks alot

    – MemLeak
    Mar 8 '13 at 11:13
















6















I'm using MiKTeX 2.9 and i'm new to TeX.



Simplified, I have this code:



newcommand{aone}{Anna}
newcommand{atwo}{Bob}
newcommand{topic}{Tpoic}
subject{University \ Paper}
title{ \topic\ suubtitle}
author{aoneand atwo}
begin{document}
begin{titlepage}
maketitle
end{titlepage}
end{document}


Error:




There's no line here to end. end (at end{titlepage})




Log:




l.7 end{titlepage}




What can be the problem? I have exclude the titlepage, all seems ok.
I have no idea.










share|improve this question




















  • 1





    The first \ in title is the source of the error.

    – jubobs
    Mar 8 '13 at 10:18








  • 2





    Commonly when using maketitle you do not need to enclose it in a titlepage-environment. just writing maktitle should do the trick

    – Martin H
    Mar 8 '13 at 10:25













  • If you want to hack your way into a vertically shifted title, you can put a vskip1em at the beginning of your title instead of a newline \ . (Optionally, replace the 1em part with the amount by which you want the title to be shifted downwards).

    – bencarabelli
    Mar 8 '13 at 10:42













  • Check out this page about titlepage in KOMA script. It's in german but it covers most of your ideas and should also be applicable to other documentclasses (maybe with some minor tweeks).

    – Oliver
    Mar 8 '13 at 11:06











  • please post it as answer, so i can accept. the problem was indeed the "\". Thanks alot

    – MemLeak
    Mar 8 '13 at 11:13














6












6








6


1






I'm using MiKTeX 2.9 and i'm new to TeX.



Simplified, I have this code:



newcommand{aone}{Anna}
newcommand{atwo}{Bob}
newcommand{topic}{Tpoic}
subject{University \ Paper}
title{ \topic\ suubtitle}
author{aoneand atwo}
begin{document}
begin{titlepage}
maketitle
end{titlepage}
end{document}


Error:




There's no line here to end. end (at end{titlepage})




Log:




l.7 end{titlepage}




What can be the problem? I have exclude the titlepage, all seems ok.
I have no idea.










share|improve this question
















I'm using MiKTeX 2.9 and i'm new to TeX.



Simplified, I have this code:



newcommand{aone}{Anna}
newcommand{atwo}{Bob}
newcommand{topic}{Tpoic}
subject{University \ Paper}
title{ \topic\ suubtitle}
author{aoneand atwo}
begin{document}
begin{titlepage}
maketitle
end{titlepage}
end{document}


Error:




There's no line here to end. end (at end{titlepage})




Log:




l.7 end{titlepage}




What can be the problem? I have exclude the titlepage, all seems ok.
I have no idea.







errors titles






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 7 '13 at 21:31









doncherry

35.3k23137209




35.3k23137209










asked Mar 8 '13 at 10:01









MemLeakMemLeak

432257




432257








  • 1





    The first \ in title is the source of the error.

    – jubobs
    Mar 8 '13 at 10:18








  • 2





    Commonly when using maketitle you do not need to enclose it in a titlepage-environment. just writing maktitle should do the trick

    – Martin H
    Mar 8 '13 at 10:25













  • If you want to hack your way into a vertically shifted title, you can put a vskip1em at the beginning of your title instead of a newline \ . (Optionally, replace the 1em part with the amount by which you want the title to be shifted downwards).

    – bencarabelli
    Mar 8 '13 at 10:42













  • Check out this page about titlepage in KOMA script. It's in german but it covers most of your ideas and should also be applicable to other documentclasses (maybe with some minor tweeks).

    – Oliver
    Mar 8 '13 at 11:06











  • please post it as answer, so i can accept. the problem was indeed the "\". Thanks alot

    – MemLeak
    Mar 8 '13 at 11:13














  • 1





    The first \ in title is the source of the error.

    – jubobs
    Mar 8 '13 at 10:18








  • 2





    Commonly when using maketitle you do not need to enclose it in a titlepage-environment. just writing maktitle should do the trick

    – Martin H
    Mar 8 '13 at 10:25













  • If you want to hack your way into a vertically shifted title, you can put a vskip1em at the beginning of your title instead of a newline \ . (Optionally, replace the 1em part with the amount by which you want the title to be shifted downwards).

    – bencarabelli
    Mar 8 '13 at 10:42













  • Check out this page about titlepage in KOMA script. It's in german but it covers most of your ideas and should also be applicable to other documentclasses (maybe with some minor tweeks).

    – Oliver
    Mar 8 '13 at 11:06











  • please post it as answer, so i can accept. the problem was indeed the "\". Thanks alot

    – MemLeak
    Mar 8 '13 at 11:13








1




1





The first \ in title is the source of the error.

– jubobs
Mar 8 '13 at 10:18







The first \ in title is the source of the error.

– jubobs
Mar 8 '13 at 10:18






2




2





Commonly when using maketitle you do not need to enclose it in a titlepage-environment. just writing maktitle should do the trick

– Martin H
Mar 8 '13 at 10:25







Commonly when using maketitle you do not need to enclose it in a titlepage-environment. just writing maktitle should do the trick

– Martin H
Mar 8 '13 at 10:25















If you want to hack your way into a vertically shifted title, you can put a vskip1em at the beginning of your title instead of a newline \ . (Optionally, replace the 1em part with the amount by which you want the title to be shifted downwards).

– bencarabelli
Mar 8 '13 at 10:42







If you want to hack your way into a vertically shifted title, you can put a vskip1em at the beginning of your title instead of a newline \ . (Optionally, replace the 1em part with the amount by which you want the title to be shifted downwards).

– bencarabelli
Mar 8 '13 at 10:42















Check out this page about titlepage in KOMA script. It's in german but it covers most of your ideas and should also be applicable to other documentclasses (maybe with some minor tweeks).

– Oliver
Mar 8 '13 at 11:06





Check out this page about titlepage in KOMA script. It's in german but it covers most of your ideas and should also be applicable to other documentclasses (maybe with some minor tweeks).

– Oliver
Mar 8 '13 at 11:06













please post it as answer, so i can accept. the problem was indeed the "\". Thanks alot

– MemLeak
Mar 8 '13 at 11:13





please post it as answer, so i can accept. the problem was indeed the "\". Thanks alot

– MemLeak
Mar 8 '13 at 11:13










2 Answers
2






active

oldest

votes


















3














The first \ in title is the source of the error. Remove it and your code becomes compilable. You should check this out for more insight into how \ is used.



I understand that you used \ in title as an attempt to customise the formatting of the title on the title page. However, it's good practice to do most of the formatting of the title page by either redefining the maketitle command "manually" (the original definition is usually found in the .cls file) or using the titling package.



Final note: as pointed out by @MartinH in his comment, a titlepage environment is already used in the definition of the maketitle command ; therefore, there is no need to enclose maketitle inside another titlepage environment, as you did in your code.



documentclass{scrartcl}
newcommand{aone}{Anna}
newcommand{atwo}{Bob}
newcommand{topic}{Tpoic}
subject{University \ Paper}
title{topic\ suubtitle}
author{aoneand atwo}
begin{document}
maketitle
end{document}


enter image description here






share|improve this answer

































    0














    This is not directly related to the OPs question, but I had a similar issue while invoking a template file to make the cover page of my document.



    If the error is generated on the line that invokes the template file, it probably means that you haven't specified/used all the fields that are specified by the template.



    So when you use the file, the undefined parameters would be blank lines and their associated // line termination characters will generate a no line here to end error.






    share|improve this answer
























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


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f101427%2fproblem-with-maketitle-theres-no-line-here-to-end%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      The first \ in title is the source of the error. Remove it and your code becomes compilable. You should check this out for more insight into how \ is used.



      I understand that you used \ in title as an attempt to customise the formatting of the title on the title page. However, it's good practice to do most of the formatting of the title page by either redefining the maketitle command "manually" (the original definition is usually found in the .cls file) or using the titling package.



      Final note: as pointed out by @MartinH in his comment, a titlepage environment is already used in the definition of the maketitle command ; therefore, there is no need to enclose maketitle inside another titlepage environment, as you did in your code.



      documentclass{scrartcl}
      newcommand{aone}{Anna}
      newcommand{atwo}{Bob}
      newcommand{topic}{Tpoic}
      subject{University \ Paper}
      title{topic\ suubtitle}
      author{aoneand atwo}
      begin{document}
      maketitle
      end{document}


      enter image description here






      share|improve this answer






























        3














        The first \ in title is the source of the error. Remove it and your code becomes compilable. You should check this out for more insight into how \ is used.



        I understand that you used \ in title as an attempt to customise the formatting of the title on the title page. However, it's good practice to do most of the formatting of the title page by either redefining the maketitle command "manually" (the original definition is usually found in the .cls file) or using the titling package.



        Final note: as pointed out by @MartinH in his comment, a titlepage environment is already used in the definition of the maketitle command ; therefore, there is no need to enclose maketitle inside another titlepage environment, as you did in your code.



        documentclass{scrartcl}
        newcommand{aone}{Anna}
        newcommand{atwo}{Bob}
        newcommand{topic}{Tpoic}
        subject{University \ Paper}
        title{topic\ suubtitle}
        author{aoneand atwo}
        begin{document}
        maketitle
        end{document}


        enter image description here






        share|improve this answer




























          3












          3








          3







          The first \ in title is the source of the error. Remove it and your code becomes compilable. You should check this out for more insight into how \ is used.



          I understand that you used \ in title as an attempt to customise the formatting of the title on the title page. However, it's good practice to do most of the formatting of the title page by either redefining the maketitle command "manually" (the original definition is usually found in the .cls file) or using the titling package.



          Final note: as pointed out by @MartinH in his comment, a titlepage environment is already used in the definition of the maketitle command ; therefore, there is no need to enclose maketitle inside another titlepage environment, as you did in your code.



          documentclass{scrartcl}
          newcommand{aone}{Anna}
          newcommand{atwo}{Bob}
          newcommand{topic}{Tpoic}
          subject{University \ Paper}
          title{topic\ suubtitle}
          author{aoneand atwo}
          begin{document}
          maketitle
          end{document}


          enter image description here






          share|improve this answer















          The first \ in title is the source of the error. Remove it and your code becomes compilable. You should check this out for more insight into how \ is used.



          I understand that you used \ in title as an attempt to customise the formatting of the title on the title page. However, it's good practice to do most of the formatting of the title page by either redefining the maketitle command "manually" (the original definition is usually found in the .cls file) or using the titling package.



          Final note: as pointed out by @MartinH in his comment, a titlepage environment is already used in the definition of the maketitle command ; therefore, there is no need to enclose maketitle inside another titlepage environment, as you did in your code.



          documentclass{scrartcl}
          newcommand{aone}{Anna}
          newcommand{atwo}{Bob}
          newcommand{topic}{Tpoic}
          subject{University \ Paper}
          title{topic\ suubtitle}
          author{aoneand atwo}
          begin{document}
          maketitle
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 13 '17 at 12:35









          Community

          1




          1










          answered Apr 7 '13 at 15:30









          jubobsjubobs

          42k17155245




          42k17155245























              0














              This is not directly related to the OPs question, but I had a similar issue while invoking a template file to make the cover page of my document.



              If the error is generated on the line that invokes the template file, it probably means that you haven't specified/used all the fields that are specified by the template.



              So when you use the file, the undefined parameters would be blank lines and their associated // line termination characters will generate a no line here to end error.






              share|improve this answer




























                0














                This is not directly related to the OPs question, but I had a similar issue while invoking a template file to make the cover page of my document.



                If the error is generated on the line that invokes the template file, it probably means that you haven't specified/used all the fields that are specified by the template.



                So when you use the file, the undefined parameters would be blank lines and their associated // line termination characters will generate a no line here to end error.






                share|improve this answer


























                  0












                  0








                  0







                  This is not directly related to the OPs question, but I had a similar issue while invoking a template file to make the cover page of my document.



                  If the error is generated on the line that invokes the template file, it probably means that you haven't specified/used all the fields that are specified by the template.



                  So when you use the file, the undefined parameters would be blank lines and their associated // line termination characters will generate a no line here to end error.






                  share|improve this answer













                  This is not directly related to the OPs question, but I had a similar issue while invoking a template file to make the cover page of my document.



                  If the error is generated on the line that invokes the template file, it probably means that you haven't specified/used all the fields that are specified by the template.



                  So when you use the file, the undefined parameters would be blank lines and their associated // line termination characters will generate a no line here to end error.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 24 at 11:45









                  ijunejaijuneja

                  1569




                  1569






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f101427%2fproblem-with-maketitle-theres-no-line-here-to-end%23new-answer', 'question_page');
                      }
                      );

                      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







                      Popular posts from this blog

                      mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

                      How to change which sound is reproduced for terminal bell?

                      Can I use Tabulator js library in my java Spring + Thymeleaf project?