input and include for a thesisWhen should I use input vs. include?Does LaTeX have to reprocess included files that haven't changed?Special characters in input fileProblem include-ing multiple .tex filesNo citations/bibliography processed/produced when using includeBlank pages after include in LaTeX report classvref and input commandCombining different projects into one (papers into PhD Thesis)File 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)

Is the U.S. Code copyrighted by the Government?

Terse Method to Swap Lowest for Highest?

What if a revenant (monster) gains fire resistance?

The IT department bottlenecks progress. How should I handle this?

How could a planet have erratic days?

What are the purposes of autoencoders?

Open a doc from terminal, but not by its name

How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?

Removing files under particular conditions (number of files, file age)

250 Floor Tower

Rising and falling intonation

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

Is this toilet slogan correct usage of the English language?

Fear of getting stuck on one programming language / technology that is not used in my country

C++ debug of nlohmann json using GDB

Where did Edmond Malone place the Tempest in the chronology of Shakespeare's plays?

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

Strong empirical falsification of quantum mechanics based on vacuum energy density

Biological Blimps: Propulsion

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

Travelling outside the UK without a passport

Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?

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

Can I sign legal documents with a smiley face?



input and include for a thesis


When should I use input vs. include?Does LaTeX have to reprocess included files that haven't changed?Special characters in input fileProblem include-ing multiple .tex filesNo citations/bibliography processed/produced when using includeBlank pages after include in LaTeX report classvref and input commandCombining different projects into one (papers into PhD Thesis)File 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)













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 begindocument 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
    8 mins 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 begindocument 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
    8 mins 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 begindocument 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 begindocument 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 17 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
    8 mins 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
    8 mins 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
8 mins 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
8 mins 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 begindocument things only once. Then you use includechapter3 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

begindocument
sectionsection1name
inputsec1 %the file is sec1.tex

sectionsection2name
inputsec2 %the file is sec2.tex
.
.
.
enddocument


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

begindocument
sectionsection1name

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

sectionsection2name

Same way
.
.
.
enddocument


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 begindocument things only once. Then you use includechapter3 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 begindocument things only once. Then you use includechapter3 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 begindocument things only once. Then you use includechapter3 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 begindocument things only once. Then you use includechapter3 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

    begindocument
    sectionsection1name
    inputsec1 %the file is sec1.tex

    sectionsection2name
    inputsec2 %the file is sec2.tex
    .
    .
    .
    enddocument


    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

    begindocument
    sectionsection1name

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

    sectionsection2name

    Same way
    .
    .
    .
    enddocument


    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

      begindocument
      sectionsection1name
      inputsec1 %the file is sec1.tex

      sectionsection2name
      inputsec2 %the file is sec2.tex
      .
      .
      .
      enddocument


      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

      begindocument
      sectionsection1name

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

      sectionsection2name

      Same way
      .
      .
      .
      enddocument


      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

        begindocument
        sectionsection1name
        inputsec1 %the file is sec1.tex

        sectionsection2name
        inputsec2 %the file is sec2.tex
        .
        .
        .
        enddocument


        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

        begindocument
        sectionsection1name

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

        sectionsection2name

        Same way
        .
        .
        .
        enddocument


        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

        begindocument
        sectionsection1name
        inputsec1 %the file is sec1.tex

        sectionsection2name
        inputsec2 %the file is sec2.tex
        .
        .
        .
        enddocument


        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

        begindocument
        sectionsection1name

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

        sectionsection2name

        Same way
        .
        .
        .
        enddocument


        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

            Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

            Join wedge with single bond in chemfigHow to make only one part of double bond bold with chemfig?Crossing bonds in chemfigjoining atoms in chemfig. Two adjacent molculesHow do I selectively change bond length in chemfig?Ugly bond joints in chemfigchemfig: reaction above arrowUsing the mhchem and chemfig packages in conjunctionBonding to specific element letter using chemfigResonance hybrids in chemfigScale chemfig molecule in beamer with tikzWhy does this chemfig bond with a hook start in the middle of the atom?

            Are small insurances worth itIs insurance worth it if you can afford to replace the item? If not, when is it?Is accident insurance worth it for my kids who play sportsIs insuring property for more than it is worth allowed?At what point does it become worth it to file an insurance claim?Are wage loss insurance programs worth the cost compared to having an emergency fund?When is an event worth insuring against?Is insurance worth it if you can afford to replace the item? If not, when is it?FHA loan just commenced : Any way to get any of the up-front mortgage insurance back?Which types of insurances do I need to buy?Should I carry less renter's insurance if I can self-insure?Mortgage Adviser Signed Me Up For Multiple Home and Life Insurances (UK)Why many travel insurances don't cover country of nationality?