{include} is about the \include command which makes LaTeX process the content of a given file, add page breaks before and after and open a new auxiliary file for the given file.

learn more… | top users | synonyms

0
votes
1answer
19 views

How to Include external word document between the lyx document

I am writing my thesis, have to include a word file consists of 5 to 6 pages between the LyX document. Kindly help me by telling how can I include an external file in LyX document.
2
votes
1answer
20 views

Vertical center aligning pictures and minipages using subfig

I am trying to place 3 sub numbered picture beside 3 unnumbered table and have each picture center aligned with one of the tables. For this I am using the subfig package and minipages to put the ...
5
votes
2answers
39 views

Truncate compilation of an “input” file

When writing mathematical results, I often jot down several quasi-proofs before deciding on the actual structure. Nevertheless, I like to keep these alternative sketches as a reference in case I ...
2
votes
1answer
35 views

macro for typesetting and adding a line to another document

I am writing a lengthy document and breaking it into chapters. I would like to use something like \include in my main.tex, and that typesetting of each chapter would typeset the main.tex with an ...
1
vote
1answer
25 views

Including an existing asymptote picture in a LaTeX document

I have a project laid out like this: a parent folder, a subfolder named Main where the parts for my projects as well as the macros used throughout are, and another Figures subfolder containing my ...
1
vote
0answers
36 views

\include{} and bibtex

I can't make \include{} and BibTeX work together for some reasons. The bibliography is displayed but not the references. They all appear with ?. What is wrong with me? Here is my code : ...
1
vote
1answer
73 views

pdf_tex files and \import: PDF file not found

I am currently working on my PhD thesis, and I am having trouble including a pdf_tex and pdf file created using Inkscape. I am using TeXStudio and PDFLaTeX. The relevant files are: ...
9
votes
1answer
255 views

\includegraphics takes the wrong image if no extension is specified

The following code incorrectly displays the image with the letter B in the header of the first page, even though I included the image with the letter A. \documentclass{article} ...
4
votes
1answer
71 views

Does LaTeX support including a specific part of an \input, like a specific environment and ignoring everything else? [duplicate]

Can LaTeX natively include only specific expressions from an input file (ignoring the rest)? I am not sure how to best word my question. Below is an example of what I'd like to do. Situation For ...
0
votes
1answer
51 views

Listings moredelim / morestring options doesn't work with included file

I don't know how to fix the double quote character (’"’) with the listings package when the code is in a separated file. Listing get this as the beginning of a string but it is not. Many thanks to ...
0
votes
1answer
42 views

Forcing a single column, full width table

I am writing multiple documents like paper.tex, report.tex, book.tex etc. They all have different formats like single/double column, landscape/portrait etc. All these (wrapper like) document tex ...
0
votes
0answers
28 views

Weird first page with cryptic content [duplicate]

TeXworks 0.4.5 r.1280 (MiKTeX 2.9) portable typesetting with pdfLaTeX Hi all, I have a weird problem with my latex document. Everything was fine so far until today a new page appears before my ...
2
votes
0answers
33 views

Trace errors when using \include

I'm writting my thesis and decided to divide my main .tex file into different files containing the chapters using \include. However, when I compile my main file the error logs don't take me to the ...
0
votes
1answer
22 views

Nested inputs with unwanted pagebreak

Let's say I have a document for which all sections and subsections are separate .tex-files. As I cannot nest \include, I'm using \input. \documentclass[a4paper,11pt,titlepage]{article} \title{...} ...
1
vote
1answer
50 views

How to adjust float options of Tikz picture

I am trying to include several Tikz figures drawn in R, below eachother in a Latex file. It keeps including the figures at the top of new pages. Is there an easy way to make this work? The simple ...
2
votes
1answer
63 views

Include section of existing drawing in a new Asymptote file

Experts, I have created a drawing using Asymptote. Now I would like to include a specific section of this drawing in a new .asy-File to make it larger and add some additional lines. Is there a smart ...
7
votes
2answers
110 views

Insert a tex file pdf inside another tex file dynamically

Suppose that both tex1.tex and tex2.tex are two independent tex files in the sense that both compile and generate a pdf file independently. I would like to include the output of tex2.tex in the ...
4
votes
1answer
54 views

Is there any way to read arbitrary part of external tex file?

I am not expert in tex programming, sorry if I am asking a simple question. I need to include an external tex file in a master one but after excluding its preamble and the commands of \begin{document} ...
1
vote
1answer
58 views

Include tikz pictures in main script

I include all my tikz figures with \includestandalone{filename}. I am using \tikzset after \begin{document} in all my tikz figure files but I use \usetikzlibrary in the header (outside of ...
1
vote
1answer
27 views

Use default message if file is missing

There is very simple and fool-proof solution for default actions if included file is missing. It is using \IfFileExists{IncludedFile}% {% routine if file exists }% {% routine if file does not exist ...
0
votes
0answers
52 views

File structure/organization for book

I need to write a short book divided in 3 big chapters and about 40 short sections (for a maximum of a couple of pages each). Dividing the book in 3 files seems very messy, but dividing it into 40 ...
3
votes
0answers
47 views

Including chapter as a separate TeX file [duplicate]

I am trying to include a separate TeX file that will contain the text of a chapter, however when I try to point the main TeX file to the chapter TeX file, there is an error which claims to not be able ...
0
votes
0answers
29 views

Inserting an image and forcing it between paragraphs [duplicate]

I am inserting a Figure named Figure1 inside a document in TexMaker using the code below: \begin{figure} \begin{center} \begin{tabular}{|c|}\hline \ \hspace{10cm}\ \\ \\ ...
0
votes
1answer
70 views

Entire PDF document as appendix

I'm writing a report, where I need to include some large PDF files as the appendix. I tried using this command: \includepdf[pages={1-},scale=0.75]{myfile.pdf}[H] In the pdfpages package, but it ...
2
votes
2answers
166 views

Split thesis chapters into separate files for compilation speed

I am writing a thesis using a template similar to this template. The main file (dissertation.tex) uses \include{} to include each chapter. I have a large chapter (over 60 pages with 70 images) that ...
2
votes
1answer
33 views

Include figure relative to path of package

For my thesis I'm using a given package from my university (titlepage.sty). Inside this package a figure is included VUB_logo. However, I wanted to put the packages I use in a folder named packages ...
1
vote
0answers
58 views

compilation error

for the following code: \documentclass[12pt]{report} \usepackage[utf8]{inputenc} \usepackage{setspace} \usepackage{graphicx} \include{\frontmatter/title} \include{\frontmatter/abstract} ...
2
votes
1answer
71 views

Include PDF without space on the left

I'm trying to include a PDF and then add text to it using overpic: \documentclass[a4paper]{article}% ensure identical page size \usepackage[abs]{overpic} \usepackage{tikz} \usepackage{geometry} ...
5
votes
1answer
58 views

What to \input and what to \include in a very large document?

I have a large notebook (~300 pages and growing at ~50 per month) with: Deep hierarchy (I use parts, chapters, sections, subsections, subsubsections and paragraphs) Document is broken into many ...
3
votes
1answer
59 views

Multiple versions include of a chapter

I would like to include a chapter two times, a short version in the main part and a long version in the appendix. Everything works fine except the labels and references. Is there a way to redefine ...
3
votes
3answers
90 views

Include/input every subfile from a subfolder

Our chemistry teacher gave us a collection of vocabulary cards which include every term we should be able to explain (looking forward for the final exams). Because just having those cards doesn't help ...
4
votes
2answers
58 views

How to provide short path for graphics in included file?

I am creating a research diary using LaTeX that has input files stored in folder A Diary | |+ Diary.tex | |+ January | | | |+ January.tex | | | |+ Figures ...
1
vote
0answers
33 views

Include pdfpages and unwanted scale

When I include a pdf file with the command \includepdf[pages=1]{file} from the package \usepackage[final]{pdfpages}, I obtain a scaled document (in a smaller height). How can I obtain rigorously the ...
3
votes
1answer
145 views

Using latexmk with multiple tex files in the directory

edit solution to compile : latexmk -pdf mainfile.tex I have left this example up as it might contain language used by others unfamiliar with this area :) At the very least it provides a Minimal ...
0
votes
0answers
20 views

How can I include files like biblatex.sty biblatex.def biblatex.cfg etc. in a .tex file? [duplicate]

Hi I'm using LaTeX for documentation in a programming project. On my computer I can create the PDF from my various .tex files, but the build server has some problem, because he doesn't have all files ...
0
votes
0answers
40 views

Including graphics error

I am trying to add an immage to my text with the command: \includegraphics[height=19.8truemm]{kuleuven} But each time I get the error that the file cannot be found. As I have practically no ...
0
votes
1answer
57 views

Chapter not being included

Hello I am trying to write my thesis to include different chapters my master tex document looks like this: \documentclass[11pt a4paper]{report} \usepackage[left=4.0cm, right=1.5cm, top=1.5cm, ...
1
vote
1answer
54 views

How can I use relative paths?

I want to add a table from a separate tex file to my document. I get an error saying the file vr_sets.tex is not found, when I do this in Chapter2/chapter2.tex: \input{tab/vr_sets} This also fails: ...
1
vote
1answer
80 views

Multiple source document with htlatex and tex4ebook

How should I compile a document with chapters on different tex files using tex4ebook? The output of 'tex4ebook main.tex' has valid title page, index, empty chapters and valid bibliography. Structure ...
4
votes
2answers
130 views

Using ranges with pdfpages fails

The documentation says the following: E.g.: pages=- will insert all pages of the document [...] however, when I put \includepdf[pages=-]{foobar.pdf} in my LaTeX doc (compiled w/ xelatex), I get ...
2
votes
1answer
55 views

parameter passing to \addcontentsline

According to this thread Include a file passing a parameter it should be as simple as \def\thetitle{longtitle} \include{text} It actually works pretty well but not for the table of contents. in ...
2
votes
0answers
45 views

Error Extra \else \include after using bibtex for each \include using chapterbib [duplicate]

Thanks first of all for the previous times that I have already found answers to my problems without having to post anything! My problems is as follows: when I compile my main file only after I have ...
0
votes
0answers
20 views

Table of contents inside an included PDF [duplicate]

I've got some problem with LaTeX right now, well to be honest it's not really a problem and I'm not even sure that it is possible but I would like to be able to do it. Basically, here is my LaTeX : ...
1
vote
0answers
46 views

Defining path to file in separate directory in include statement

I have a main document that includes a list of 'include' statements. Could someone please help me with defining the path to the files that need to be included. My directory structure is: Book Title ...
2
votes
2answers
81 views

Include chapters using foreach

I have seperate .tex files in a directory named chapters in the main directory. I would like to include/input those. After some research a solution like the one below could be possible. Unfortunately ...
1
vote
0answers
40 views

`include` (and `input`) with part of a file name

Is it possible to use the \include and \input commands with only part of a file name like it is possible to skip extensions and use relative directories? I.e. \include{Part1} \include{Part2} ...
1
vote
1answer
61 views

troubleshooting about \include

I have probleme with \include as follow \documentclass[12pt]{amsart} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{amssymb,amsmath,epsfig,graphics} \title{Title} \author{My name} ...
0
votes
0answers
39 views

Child Documents have different sectioning levels than Master Document. How can I incorporate?

I have three Lyx documents I would like to insert into a Master Document as Child Documents. However, the child documents begin with a Chapter. I need them to begin with a Subsection in the Master ...
2
votes
1answer
55 views

Includeonly for files in subdirectory

I have a book and I have all my chapters stored in a subdirectory chapters. How do I use \includeonly on those files? My current attempts have not been working. MWE: \documentclass{scrbook} ...
2
votes
1answer
118 views

(TeXShop) Magic comment in a subfile that runs the main file but including only this subfile

Disclaimer: This question is a bit specific to TeXShop because I have to help somebody who's using this editor I don't know as I don't own a Mac. Nevertheless, it could be helpful to others. The aim ...