{import} is about the use of the import package or using the \input, \import, or \include commands for including text and code from other files.

learn more… | top users | synonyms

0
votes
0answers
13 views

Multiple chapters in knitr

I'm using knitr and RStudio and I can't seem to combine multiple chapters into a single file. The code below works great, but it only includes the first .rnw-document. What's the syntax for a vector ...
1
vote
1answer
953 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: phd_thesis_all/...
1
vote
0answers
20 views

Error when importing plain Latex file in LyX

I have been using Lyx for two to three years and never encountered this problem: a. saved file edited with LyX as plain Latex; b. try to import it with Lyx as plain Latex c. get following message: "an ...
1
vote
0answers
36 views

import cvs file with special characters as table in latex

I am trying to import a cvs file with special characters to my latex file using scvsimple however, I am getting some errors. I tried many suggestions from the forum and net but non worked for me. ...
4
votes
2answers
90 views

Why font missing message shows up when using standalone and import packages only?

Took me long time to find the cause of this one. From some bizzar reason, when I use standlone package, the font changes in the lstlisting of my Matlab code due to Latex not finding some fonts. I am ...
0
votes
1answer
45 views

How do I enter full_path and path_extension using the import package in Windows?

How do I enter full_path and path_extension using the import package? I am using Windows and want to point to c:\tex\proj\pic\alpha having proj as the directory hosting the tex file (I would like to ...
1
vote
2answers
6k views

Importing a .png file into .tex file

I've been trying to input a graph into my .tex file, but it won't work. I've put the .png file in the same folder as the .tex file and a part of my code looks like: \documentclass[16pt, a4paper]{...
2
votes
0answers
29 views

How to insert a Tableau sheet into a TeX document? [closed]

I have an interactive chart in Tableau. Is it possible to import this into a LaTeX document?
2
votes
1answer
38 views

Getting user defined constants into the preamble

I think this is a problem of expandable content, a concept I haven't quite got the hang of yet... Lets say I have a preamble or cls file that is trying to configure hyperref. If I have manually setup ...
0
votes
0answers
22 views

Combining package standalone with chapterfolder or import

I've been trying to use standalone to compile tikz figures for my thesis. At the same time, I've been using chapterfolder to neatly organize my files into various folders. However, I cannot get \...
1
vote
0answers
11 views

Current file relative paths and pgfplotstableread

For my latex documents I employ a structure like this: pictures doc1 doc2 ... To allow quick editing my picture folder contains a testfile. While I successfully use the import package to allow my ...
1
vote
1answer
13 views

Importing large dataset with many macros and large table to LyX?

I want to import a large dataset to Lyx below, I currently compile it in Textmate. What is the most convenient way to import all macros and the table to LyX only for this document?
2
votes
1answer
24 views

Figure problem with catchfilebetweentags

This question is a follow up and based on this answer by touhami Situation I would like to create an excerpt from a script that I have TeX'ed as a compendium of the most important statements (...
0
votes
0answers
25 views

Pythontex environment from .py file

I was going to ask a question regarding importing the python native code that goes inside a pythontex environment. I wanted to do something like this (which does not work): \begin{pythontexcustomcode}...
0
votes
0answers
28 views

\subimport and \includegraphics compatibility issue

I am trying to \subimport a content.tex document into a larger thesis.tex document. All works well with importing text and tikz files, but I am getting the following error when trying to import \...
1
vote
0answers
39 views

Creating datasheets with values imported from an excel-file

I need some help with getting values out of excel using perl. I found on this forum some information about it, but it is not working: \documentclass{book} \usepackage{perltex} \perlnewcommand{\...
3
votes
1answer
56 views

Import several parts of file at once

As a follow up to this Question Situation I would like to create an excerpt from a script that I have TeX'ed as a compendium of the most important statements (theorems & definitions). I seek ...
1
vote
2answers
728 views

Custom separator for CSV import via csvsimple

I have successfully used csvsimple to import .csv files. But I would like to have commas as number separators, so I modified the .csv file to use semicolons as separators and as csvsimple manual says, ...
2
votes
0answers
44 views

superscripts and footnotemarks break in nested \import with realscripts

I managed to produce strange interference between nested \import and superscripts, made accessible for LuaTeX by realscripts.sty. My document organisation depends on the comfortable, path-agnostic ...
5
votes
2answers
41 views

Import specific text file contents (to monkey macro's)

I have some metadata that I want to import from a (program generated) text file to several fields that are updated regularly. I have two possible situations for the text file: One file with n lines ...
2
votes
1answer
42 views

Displaying counts and tables based on external files

I've got a complex report that I'm trying to generate, and I'm at a loss on how best to get it working. Let me say that using CSV files is not an option, for starters. I have a number of files named ...
1
vote
1answer
72 views

Independent Chapters and Unique References

I am trying to setup a report structure so that each author can work on their chapter on their own and once all chapters are finished I can put all together. For this to work well I need each chapter ...
1
vote
0answers
66 views

How do I import/link values from, e.g. MATLAB or a simple txt-file?

I'm writing a rather long report where I'm discussing results from a numerical calculation done via MATLAB. I would like to import the results into a tabular environment. The results are them selves ...
1
vote
1answer
44 views

Input command arguments from file

I created some new commands that take arguments. Several of my commands take the same (lengthy) arguments. Because of this I put those arguments in a separate file. But I seem unable to input or ...
5
votes
2answers
815 views

Matplotlib PGF images in subdirectory

I have a two-dimensional image plotted by Matplotlib using the PGF backend. It is stored in the figures subdirectory (since I have a lot of images and don't want to clutter up the main folder). As an ...
2
votes
1answer
52 views

Importing accents and wide accents

I know how to import a single symbol from a different font (How can I use a symbol provided by a package without changing the entire mathematics font?), but it is possible to import an accent? For ...
1
vote
0answers
28 views

Import an HTML table into LaTeX [duplicate]

How can I import an HTML table into LaTeX? I have many files imported, so I can't convert each file to LaTeX.
3
votes
1answer
194 views

lualatex does not work with import/subimport when used in standalone setup

Using TL 2015. I have this setup main.tex folderA/a.tex a.png and using standalone to combine both documents. The file a.tex has an includesgraphics{a.png} where the file a.png is in the ...
3
votes
0answers
215 views

import a long tab delimited data file with first row as the header

Here's a very simple task that I don't seem to be able to get the format right. In short, I am trying to import and format a long tab-delimited txt file, with the first row as the header. I tried the ...
20
votes
3answers
31k views

Importing csv file into latex as a table

I am using the \csvautotabular function to import data from a csv file. It has worked beautifully; however, I only want to import certain columns from the file. How can I exclude certain columns? ...
1
vote
0answers
18 views

Package pdftex.def Error: File `images/p1-eps-converted-to.pdf' not found [duplicate]

I am using a Mac Machine with the following LaTeX Softwares: MacTEX: as the main LaTeX kernel TexStudio: as the LaTeX editor http://texstudio.sourceforge.net/ In part of the document I have ...
0
votes
1answer
192 views

Appendix will not work at all, please help.

I would like to include an appendix (just one appendix) in my thesis, following the bibliography. I am using book class, and have each chapter in a separate file. When I try to add an appendix, the ...
0
votes
0answers
42 views

Input/import trouble

I've been trying to import tex-tables produced by Stata into a new document, but I keep getting an error that the imported file can't be found, even when I copy/paste the file path directly. My code ...
0
votes
2answers
82 views

Error while Inserting a pdf file in latex [closed]

this the code i have written for including pdf in latex code. \usepackage[final]{pdfpages} \usepackage{fancybox} \usepackage{lipsum}% dumy text \usepackage[dvips]{graphics} \usepackage{times} \...
4
votes
1answer
91 views

Recursively import sub-document at arbitrary level

Consider the following subimportlevel macro: packages.tex \usepackage{import} \usepackage{coseoul} \newcommand{\subimportlevel}[3]{ \setcounter{currentlevel}{#3} \subimport*{#1}{#2} \setcounter{...
10
votes
3answers
19k views

Using \import correctly

I've got a main-file which includes the preamble. I then use \import to put together all chapters of my final document. When saving the main-file in another directory than the chapter-files I get the ...
2
votes
1answer
74 views

Problem add to pdf image file in directory

MWE, \documentclass[a4paper,12pt]{book} \usepackage[turkish]{babel} \usepackage{graphicx} \usepackage{import} \graphicspath{ {ABC/} } \newcommand{\circuit}[1]{ \begin{center} \subimport{ABC/}{#1}...
1
vote
1answer
141 views

How to import a txt full of symbols into LaTeX

I have a txt file that I want to import it into LaTeX. How can I import the txt file without changing its format? In particular, the txt doc has a lot of symbols (it is the output of other programs), ...
5
votes
2answers
1k views

subimport and includeonly

Say I have a document structured as follows. main.tex + ch1 - ch.tex - s1.tex - s2.tex + ch2 - ch.tex - s1.tex - s2.tex Here, *.tex are LaTeX ...
2
votes
2answers
80 views

reftex: include from `tex/`

In order to keep doc dir clean, I keep a master file in the top level of the doc, and other files in folders: . ├── bib │ └── refs.bib ├── img │ ├── img1.png │ └── img2.png ├── tex │ ├── ...
1
vote
1answer
100 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: ...
2
votes
0answers
106 views

How to use import package to keep relative path references in subfiles and at the same time use svg?

I have the following directory structure: main.tex chapter/ chapter1.tex img/ image.svg This is the content of main.tex: \documentclass{report} \usepackage{svg} \begin{document} \...
0
votes
0answers
245 views

manage chapters from separate files

This question is for writing a book/thesis, where chapters are saved in different .tex files. Currently, I use packages standalone and import. In the main TeX file, I use \import to fetch the ...
2
votes
2answers
876 views

using mathematica plots in LaTeX

I would like to use plots created with Mathematica inside my LaTeX environment. Is it possible to plot the Mathematica code completely inside the LaTeX environment? If it is not possible, does anyone ...
2
votes
0answers
142 views

Importing data from a Latex table cell into a calendar

Ok, I'm very close to what I want but I need the help of the collective... How can I tweak the termcal so that it matches the lesson number to the lecture counter and prints the lesson name in a ...
4
votes
1answer
126 views

Importing single symbols in the sense of “How does the assignment work?”

I looked at Importing a Single Symbol From a Different Font and Handwritten R-like-kay. As a result, I downloaded the STIX package and looked up the highly welcome curly k \kay and found it to have ...
18
votes
2answers
3k views

What is the 2014 status on converting Word and MathType to LaTeX

Why have I started a new question? I have studied as many pages here as I can on answers to this question and none have really satisfactory answers. I want to start a new discussion on this problem. ...
0
votes
1answer
571 views

Dynamic Courtesy Receipt PDF Generator For PHP

The title needs a bit of help, but I'm wondering if it's possible to dynamically create a beautiful customized receipt for purchases from my website using LaTeX, where LaTeX gets its data from my ...
9
votes
5answers
4k views

Getting data dynamically into LaTeX from a spreadsheet

Is it possible to access to data from spreadsheets (i.e. excel spreadsheets) and include them dynamically into a LaTeX document? We need to compile each month a lot of factsheets and therefore want ...
0
votes
0answers
183 views

Minitoc and import: how to specify location of mtc file?

In the project im working in, the structure is as follows . ├── a │   └── main.tex ├── b │ └── main.tex ├── main.tex The root main file is \documentclass{book} \usepackage[utf8]{inputenc} \...