input and include for a thesisWhen should I use input vs. include?Does LaTeX have to reprocess included files...

Pre-modern battle - command it, or fight in it?

A social experiment. What is the worst that can happen?

Is there any references on the tensor product of presentable (1-)categories?

Is it improper etiquette to ask your opponent what his/her rating is before the game?

Does the Location of Line-Dash-Wedge Notations Matter?

How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?

L1 and Ln cache: when are they written?

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

What is the evidence for the "tyranny of the majority problem" in a direct democracy context?

Creepy dinosaur pc game identification

Non-trope happy ending?

What is Cash Advance APR?

If infinitesimal transformations commute why dont the generators of the Lorentz group commute?

Is aluminum electrical wire used on aircraft?

What percentage of fillings performed today are done with mercury amalgam?

Closed-form expression for certain product

Why should universal income be universal?

What should you do when eye contact makes your subordinate uncomfortable?

How do I color the graph in datavisualization?

Why electric field inside a cavity of a non-conducting sphere not zero?

2.8 Why are collections grayed out? How can I open them?

Why did the EU agree to delay the Brexit deadline?

How can "mimic phobia" be cured or prevented?

What is this called? Old film camera viewer?



input and include for a thesis


When should I use input vs. include?Does LaTeX have to reprocess included files that haven't changed?Skipping sections when compiling (without include)Problem include-ing multiple .tex filesNo citations/bibliography processed/produced when using includeBlank pages after include in LaTeX report classvref and input commandFile name autocompletion in include for large latex projectsWhat to input and what to include in a very large document?Usage of include (graphics, section's and only)How to compile input files separately from the main file













0















I'm writing a thesis but not modular style. I simply write everything in one big document and want to change it. But there is a problem.



For sections must not I start with begin{document} again? Otherwise, it can't be compiled, but if I do it, for this time my document will have lots of begin command.



What can I do to continue with one document?










share|improve this question




















  • 3





    Could you please make a sentence of your title ? What you want is not exactly explicit. What do your mean by modular style and there is a problem ?

    – BambOo
    Apr 29 '18 at 19:01













  • @Sebastiano Each time you make such an unnecessary edit to an old question you push a contemporary question off the front page and bereave it from its well deserved attention. It will be your fault if an user does not get an answer.

    – samcarter
    1 min ago
















0















I'm writing a thesis but not modular style. I simply write everything in one big document and want to change it. But there is a problem.



For sections must not I start with begin{document} again? Otherwise, it can't be compiled, but if I do it, for this time my document will have lots of begin command.



What can I do to continue with one document?










share|improve this question




















  • 3





    Could you please make a sentence of your title ? What you want is not exactly explicit. What do your mean by modular style and there is a problem ?

    – BambOo
    Apr 29 '18 at 19:01













  • @Sebastiano Each time you make such an unnecessary edit to an old question you push a contemporary question off the front page and bereave it from its well deserved attention. It will be your fault if an user does not get an answer.

    – samcarter
    1 min ago














0












0








0








I'm writing a thesis but not modular style. I simply write everything in one big document and want to change it. But there is a problem.



For sections must not I start with begin{document} again? Otherwise, it can't be compiled, but if I do it, for this time my document will have lots of begin command.



What can I do to continue with one document?










share|improve this question
















I'm writing a thesis but not modular style. I simply write everything in one big document and want to change it. But there is a problem.



For sections must not I start with begin{document} again? Otherwise, it can't be compiled, but if I do it, for this time my document will have lots of begin command.



What can I do to continue with one document?







input include






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 11 mins ago









Sebastiano

11.1k42164




11.1k42164










asked Apr 29 '18 at 18:13









ömer koçhanömer koçhan

1416




1416








  • 3





    Could you please make a sentence of your title ? What you want is not exactly explicit. What do your mean by modular style and there is a problem ?

    – BambOo
    Apr 29 '18 at 19:01













  • @Sebastiano Each time you make such an unnecessary edit to an old question you push a contemporary question off the front page and bereave it from its well deserved attention. It will be your fault if an user does not get an answer.

    – samcarter
    1 min ago














  • 3





    Could you please make a sentence of your title ? What you want is not exactly explicit. What do your mean by modular style and there is a problem ?

    – BambOo
    Apr 29 '18 at 19:01













  • @Sebastiano Each time you make such an unnecessary edit to an old question you push a contemporary question off the front page and bereave it from its well deserved attention. It will be your fault if an user does not get an answer.

    – samcarter
    1 min ago








3




3





Could you please make a sentence of your title ? What you want is not exactly explicit. What do your mean by modular style and there is a problem ?

– BambOo
Apr 29 '18 at 19:01







Could you please make a sentence of your title ? What you want is not exactly explicit. What do your mean by modular style and there is a problem ?

– BambOo
Apr 29 '18 at 19:01















@Sebastiano Each time you make such an unnecessary edit to an old question you push a contemporary question off the front page and bereave it from its well deserved attention. It will be your fault if an user does not get an answer.

– samcarter
1 min ago





@Sebastiano Each time you make such an unnecessary edit to an old question you push a contemporary question off the front page and bereave it from its well deserved attention. It will be your fault if an user does not get an answer.

– samcarter
1 min ago










2 Answers
2






active

oldest

votes


















2














The difference between input and include is how it's included, there is an old discussion on how to use them.



No, you do begin{document} things only once. Then you use include{chapter3} once per chapter. You can basically cut the chapter text from the big document, place it into chapter3.tex and insert the include statement instead in the main document.



Update: Oh, an continuing scrying into your question: you compile the main document, as before. As the start of the compilation regarded, nothing changes for you that multiple included *.tex files are present.



I also recommend latexmk and git for more easy compilation and management of the source, but that's tangential.






share|improve this answer



















  • 1





    And if OP really wants to compile the subfiles separately, then they'd wan to look into the standalone or subfiles packages.

    – Teepeemm
    Apr 29 '18 at 19:28











  • Teepeemm: Excellent addendum! There are also solutions around latex-preview and overall wonderful AuCTeX, but emacs is not everyones favourite toy.

    – Oleg Lobachev
    Apr 29 '18 at 19:31



















2














You should input your .tex files in this way:



documentclass[options]{theclass}

%preamble

begin{document}
section{section1name}
input{sec1} %the file is sec1.tex

section{section2name}
input{sec2} %the file is sec2.tex
.
.
.
end{document}


So latex will paste the text where you call input{}



If I am not mistaken, include works quite the same but it starts a new page when you call include{}



That would be the best strategy.





If you want just one file, then write the document in this way:



documentclass[options]{theclass}

%preamble

begin{document}
section{section1name}

Write your text as
I am writing
write your text...

section{section2name}

Same way
.
.
.
end{document}


As you can see, both cases have just one begin-end document.



If you want to avoid numbered sections use the starred command



section*{}





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%2f429212%2finput-and-include-for-a-thesis%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









    2














    The difference between input and include is how it's included, there is an old discussion on how to use them.



    No, you do begin{document} things only once. Then you use include{chapter3} once per chapter. You can basically cut the chapter text from the big document, place it into chapter3.tex and insert the include statement instead in the main document.



    Update: Oh, an continuing scrying into your question: you compile the main document, as before. As the start of the compilation regarded, nothing changes for you that multiple included *.tex files are present.



    I also recommend latexmk and git for more easy compilation and management of the source, but that's tangential.






    share|improve this answer



















    • 1





      And if OP really wants to compile the subfiles separately, then they'd wan to look into the standalone or subfiles packages.

      – Teepeemm
      Apr 29 '18 at 19:28











    • Teepeemm: Excellent addendum! There are also solutions around latex-preview and overall wonderful AuCTeX, but emacs is not everyones favourite toy.

      – Oleg Lobachev
      Apr 29 '18 at 19:31
















    2














    The difference between input and include is how it's included, there is an old discussion on how to use them.



    No, you do begin{document} things only once. Then you use include{chapter3} once per chapter. You can basically cut the chapter text from the big document, place it into chapter3.tex and insert the include statement instead in the main document.



    Update: Oh, an continuing scrying into your question: you compile the main document, as before. As the start of the compilation regarded, nothing changes for you that multiple included *.tex files are present.



    I also recommend latexmk and git for more easy compilation and management of the source, but that's tangential.






    share|improve this answer



















    • 1





      And if OP really wants to compile the subfiles separately, then they'd wan to look into the standalone or subfiles packages.

      – Teepeemm
      Apr 29 '18 at 19:28











    • Teepeemm: Excellent addendum! There are also solutions around latex-preview and overall wonderful AuCTeX, but emacs is not everyones favourite toy.

      – Oleg Lobachev
      Apr 29 '18 at 19:31














    2












    2








    2







    The difference between input and include is how it's included, there is an old discussion on how to use them.



    No, you do begin{document} things only once. Then you use include{chapter3} once per chapter. You can basically cut the chapter text from the big document, place it into chapter3.tex and insert the include statement instead in the main document.



    Update: Oh, an continuing scrying into your question: you compile the main document, as before. As the start of the compilation regarded, nothing changes for you that multiple included *.tex files are present.



    I also recommend latexmk and git for more easy compilation and management of the source, but that's tangential.






    share|improve this answer













    The difference between input and include is how it's included, there is an old discussion on how to use them.



    No, you do begin{document} things only once. Then you use include{chapter3} once per chapter. You can basically cut the chapter text from the big document, place it into chapter3.tex and insert the include statement instead in the main document.



    Update: Oh, an continuing scrying into your question: you compile the main document, as before. As the start of the compilation regarded, nothing changes for you that multiple included *.tex files are present.



    I also recommend latexmk and git for more easy compilation and management of the source, but that's tangential.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Apr 29 '18 at 19:02









    Oleg LobachevOleg Lobachev

    5921213




    5921213








    • 1





      And if OP really wants to compile the subfiles separately, then they'd wan to look into the standalone or subfiles packages.

      – Teepeemm
      Apr 29 '18 at 19:28











    • Teepeemm: Excellent addendum! There are also solutions around latex-preview and overall wonderful AuCTeX, but emacs is not everyones favourite toy.

      – Oleg Lobachev
      Apr 29 '18 at 19:31














    • 1





      And if OP really wants to compile the subfiles separately, then they'd wan to look into the standalone or subfiles packages.

      – Teepeemm
      Apr 29 '18 at 19:28











    • Teepeemm: Excellent addendum! There are also solutions around latex-preview and overall wonderful AuCTeX, but emacs is not everyones favourite toy.

      – Oleg Lobachev
      Apr 29 '18 at 19:31








    1




    1





    And if OP really wants to compile the subfiles separately, then they'd wan to look into the standalone or subfiles packages.

    – Teepeemm
    Apr 29 '18 at 19:28





    And if OP really wants to compile the subfiles separately, then they'd wan to look into the standalone or subfiles packages.

    – Teepeemm
    Apr 29 '18 at 19:28













    Teepeemm: Excellent addendum! There are also solutions around latex-preview and overall wonderful AuCTeX, but emacs is not everyones favourite toy.

    – Oleg Lobachev
    Apr 29 '18 at 19:31





    Teepeemm: Excellent addendum! There are also solutions around latex-preview and overall wonderful AuCTeX, but emacs is not everyones favourite toy.

    – Oleg Lobachev
    Apr 29 '18 at 19:31











    2














    You should input your .tex files in this way:



    documentclass[options]{theclass}

    %preamble

    begin{document}
    section{section1name}
    input{sec1} %the file is sec1.tex

    section{section2name}
    input{sec2} %the file is sec2.tex
    .
    .
    .
    end{document}


    So latex will paste the text where you call input{}



    If I am not mistaken, include works quite the same but it starts a new page when you call include{}



    That would be the best strategy.





    If you want just one file, then write the document in this way:



    documentclass[options]{theclass}

    %preamble

    begin{document}
    section{section1name}

    Write your text as
    I am writing
    write your text...

    section{section2name}

    Same way
    .
    .
    .
    end{document}


    As you can see, both cases have just one begin-end document.



    If you want to avoid numbered sections use the starred command



    section*{}





    share|improve this answer






























      2














      You should input your .tex files in this way:



      documentclass[options]{theclass}

      %preamble

      begin{document}
      section{section1name}
      input{sec1} %the file is sec1.tex

      section{section2name}
      input{sec2} %the file is sec2.tex
      .
      .
      .
      end{document}


      So latex will paste the text where you call input{}



      If I am not mistaken, include works quite the same but it starts a new page when you call include{}



      That would be the best strategy.





      If you want just one file, then write the document in this way:



      documentclass[options]{theclass}

      %preamble

      begin{document}
      section{section1name}

      Write your text as
      I am writing
      write your text...

      section{section2name}

      Same way
      .
      .
      .
      end{document}


      As you can see, both cases have just one begin-end document.



      If you want to avoid numbered sections use the starred command



      section*{}





      share|improve this answer




























        2












        2








        2







        You should input your .tex files in this way:



        documentclass[options]{theclass}

        %preamble

        begin{document}
        section{section1name}
        input{sec1} %the file is sec1.tex

        section{section2name}
        input{sec2} %the file is sec2.tex
        .
        .
        .
        end{document}


        So latex will paste the text where you call input{}



        If I am not mistaken, include works quite the same but it starts a new page when you call include{}



        That would be the best strategy.





        If you want just one file, then write the document in this way:



        documentclass[options]{theclass}

        %preamble

        begin{document}
        section{section1name}

        Write your text as
        I am writing
        write your text...

        section{section2name}

        Same way
        .
        .
        .
        end{document}


        As you can see, both cases have just one begin-end document.



        If you want to avoid numbered sections use the starred command



        section*{}





        share|improve this answer















        You should input your .tex files in this way:



        documentclass[options]{theclass}

        %preamble

        begin{document}
        section{section1name}
        input{sec1} %the file is sec1.tex

        section{section2name}
        input{sec2} %the file is sec2.tex
        .
        .
        .
        end{document}


        So latex will paste the text where you call input{}



        If I am not mistaken, include works quite the same but it starts a new page when you call include{}



        That would be the best strategy.





        If you want just one file, then write the document in this way:



        documentclass[options]{theclass}

        %preamble

        begin{document}
        section{section1name}

        Write your text as
        I am writing
        write your text...

        section{section2name}

        Same way
        .
        .
        .
        end{document}


        As you can see, both cases have just one begin-end document.



        If you want to avoid numbered sections use the starred command



        section*{}






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 29 '18 at 19:25

























        answered Apr 29 '18 at 19:04









        santimirandarpsantimirandarp

        1,4353822




        1,4353822






























            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%2f429212%2finput-and-include-for-a-thesis%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

            IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

            Cicindela nigrior Przypisy | Menu nawigacyjneCicindela varians unicolorManual for the Identification of the...

            Glossaries-extra: Adding glossaries package to “Clas­sicTh­e­sis” template by Dr. André Miede v. 4.6 ...