input and include for a thesisWhen 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

Biological Blimps: Propulsion

On a tidally locked planet, would time be quantized?

Freedom of speech and where it applies

Did arcade monitors have same pixel aspect ratio as TV sets?

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

If a character has darkvision, can they see through an area of nonmagical darkness filled with lightly obscuring gas?

How did Rebekah know that Esau was planning to kill his brother in Genesis 27:42?

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

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

Has any country ever had 2 former presidents in jail simultaneously?

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

Delivering sarcasm

Yosemite Fire Rings - What to Expect?

250 Floor Tower

Problem with TransformedDistribution

Can I sign legal documents with a smiley face?

Aragorn's "guise" in the Orthanc Stone

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

Multiplicative persistence

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

New brakes for 90s road bike

If magnesium reacts with oxygen to produce magnesium oxide only on the application of heat, then why isn't it categorised as an endothermic reaction?

How can "mimic phobia" be cured or prevented?

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



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 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
    19 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
    19 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 29 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
    19 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
    19 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
19 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
19 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

            How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

            152 Atala Notae | Nexus externi | Tabula navigationis"Discovery Circumstances: Numbered Minor Planets"2000152Small-Body Database

            Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"