# newclude does not include file content

I am trying to include chapters in a document without page breaks and found the newclude package can do this using \include*, however, when I try to implement it, instead of inputing the file, I just get text.

I have something like this...

\input{Layout.tex}  %Here I have some layout stuff for page numbering and such
\input{Macros.tex}  %Here I have the \usepackage{newclude} command
\begin{document}
\input{TitlePage.tex}

\chapter{Introduction}
\include*{1-Introduction}

\end{document}


The output is fine through the title page, but the Introduction has the chapter at the top with Introduction and the text is 1-Introduction. I'm not sure what I'm doing incorrectly with this file.

The above compiles fine using the normal \include command without the newclude package.

-

## migrated from stackoverflow.comApr 25 '13 at 20:07

This question came from our site for professional and enthusiast programmers.

why not simply use \input rather than a non standard include mechanism if you do not want to force page breaks, on the other hand in most classes \chapter forces a page break anyway so the forced break from include is not a problem. – David Carlisle Apr 25 '13 at 20:11
– Werner Apr 25 '13 at 20:52
I forgot to mention, I am trying to do a bibliography after every chapter, including only the entries for that chapter, then a large bibliography at the end including everything. Using \input makes the entire bibliography appear at the end of every chapter. – user2318493 Apr 25 '13 at 22:25

If the text "1-Introduction" is on a new page, then I think you have forgotten to load the package newclude. The original LaTeX definition does not know a star form of \include. Then

\include*{1-Introduction}


does the same as:

\include{*}
1-Introduction


The star becomes the file name argument for \include, likely the file *.tex does not exist. This is written to the terminal/.log file:

No file *.tex.


\include calls its \clearpage and then the text "{1-Introduction}" is set. The curly braces are not used as argument and are executed as simple group (with no purpose/effect here).

## Summary

The package newclude should be loaded:

\usepackage{newclude}


to get its star form of \include.

-
You were correct, somehow the "newclude" package wasn't getting loaded. But now I have a different problem. The page break is gone, but now the entire bibliography is at the end of every chapter (and without numbers), so I'm back where I started when using "\input" – user2318493 May 3 '13 at 18:27
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9276649355888367, "perplexity": 1900.984893437056}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-26/segments/1466783391519.0/warc/CC-MAIN-20160624154951-00091-ip-10-164-35-72.ec2.internal.warc.gz"}