Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [import]

{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.

2
votes
2answers
40 views

Curiosity: why an externalized document builds faster and in a single pass?

It could be just me being enthusiastic about completing the externalization of a sizable book into the separate chapters by way of using import package, but I get a distinct impression that the ...
0
votes
0answers
23 views

Extracting information from multiple LaTeX (Beamer) documents

I have a number of slides prepared using LaTeX Beamer. They all belong to the same lecture series. Now, I would like to dynamically generate a Table of Content based on those multiple slides. The ...
0
votes
0answers
23 views

Running into performance issues when working with a multi-chapter book

I am typesetting a 600+ page document on 6.125"x9" paper and running into two performance issues: TexStudio is becoming increasingly slow with its code-completion; and compilation is taking a very ...
0
votes
1answer
44 views

Does the \import command slow down typesetting compared to \input?

Using the \import command (instead of the \input command) in order to be able to use relative paths is in some situations very convenient for me. However, it seems that, in particular for large ...
1
vote
1answer
33 views

How to import figure from subfolder to tex file in another sub folder

I would need to know how to import figure from Figures subfolder to tex file in Chapters subfolder. Project tree is following: /Project/main.tex /Project/Figures/picture.pdf /Project/Chapters/...
3
votes
2answers
45 views

Directory for importing minted snippets

Is there a way to tell minted to import the snippets from a certain directory? I'm looking for something similar to the way \graphicspath{{img/}} works for images. Right now, all the files I need to ...
1
vote
1answer
53 views

AUCTeX/RefTeX with import package in emacs, known problem from 2013 but is there a fix now?

I realized this issue with import in AUCTeX/RefTeX mode today which was also mentioned in the below thread from some years ago: AUCTeX/RefTeX, the `import` package and cross reference RefTeX ...
0
votes
0answers
37 views

\subimport is to \input or \include as what is to \RequirePackage?

As the title says, when writing a class or a package, is there a way to "\RequirePackage" using a path relative to "where the .cls or .sty file itself is", not "where the main .tex file is", just as ...
0
votes
0answers
55 views

Lyx error while importing Tex files

Hi I'm trying to import my tex file to lyx, and it says the following: I don't think the source of the problem is the latex file --- for the same error would occur even when I try to import a latex ...
0
votes
0answers
34 views

Modular projects: Compile parent and child documents using separate custom classes

I would like to compile a main.tex parent document using a custom class as well as child documents using different custom classes. I would like compilation of the parent document to automatically ...
0
votes
1answer
57 views

pdf_tex not found

I am writing my PhD in Polish. I use pdf_tex files for inserting images. This is the file which is working fine \documentclass[oneside, 12pt]{book} \usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, ...
1
vote
1answer
214 views

How to insert Excel figures into LaTeX

How to insert excel figures to LaTeX, I tried the following method but figure resolution too bad: Step 1. Copy and paste the graph. Copy/paste your Excel graph to Visio. Be sure that it is pasted as ...
1
vote
2answers
115 views

Importing CSV as Long Table Not Working

I tried implementing the solution found here with multiple columns, but it is not working for me. It is just replicating the third column three times. What am I doing wrong? I know I wouldn't need a ...
3
votes
2answers
158 views

Combine with import

The following program gives erors, which means that it doesn't work. I haven't not found what the problem is. If you can find the problem or work the following program, please write the new program ...
0
votes
2answers
34 views

Identify and import a “curly precneq” from a package

I would like to use the following symbol (from this answer, see the "Symbola" in the picture): Ideally, I would like to have a command which make it appear without loading a package which may ...
1
vote
2answers
54 views

Let tex search a file inside a folder?

As mentioned in my last question i have problems with \input command and relative paths which getting wrong. I also tried the import-package but don't get this to work. Till now I just have two ...
2
votes
1answer
228 views

Setting axis limits (xmin, xmax, ymin, ymax) from external .dat file

I am importing the data for my plot from a .dat file produced in matlab. I would also like to set axis limits from a .dat file. Is there a way to set xmin, xmax, ymin and ymax from a table in a .dat ...
1
vote
0answers
181 views

Best strategy to import and annotate CAD-drawings in Tikz

I would like to import CAD-drawings into TikZ to add some annotations/arrows/... . My CAD-software is able to export drawings as DWG/DXF and PDF. I could of course import the drawing as a picture ...
2
votes
1answer
56 views

import citations into large document

I am writing a thesis. I want to have chapters as separate files that are compiled into one large (TotalCompile.tex) document. My main file looks like: \documentclass[12pt,openright, twoside]{report}...
0
votes
1answer
150 views

Why does the Calc->SVG->Inkscape->PDF_Tex create a latex input file that has the text in latex in the wrong positions?

After looking through numerous questions and guides, I tried these two versions, but both end up placing all the text on top of each other in the top left corner of the image. I selected the option ...
0
votes
0answers
56 views

Defining directory containing .tex files for use with \includefrom

I want pdfLaTeX to know the folder in which all my auxiliary .tex files are located. I use the \input{} command for some files such as the preamble, and for this command I have found a solution in ...
2
votes
2answers
43 views

lstinputlisting environment in equation- and math environment?

I am trying to semi-automatically import multiple parameters/variables from an excel (via .txt) file into both equation environments and $$ = math environments in (share)latex. It is semi-...
0
votes
0answers
107 views

Import all PDF files of one directory

I do have one directory with roundabout 30 PDF pages, which I would like to import in one file together using LaTeX. Some of them are horizontal, some are vertical and they do have different sizes as ...
4
votes
3answers
71 views

Importing from .tex file to JabRef

I don't want to individually create entries in JabRef because I already have my bibliography present in my .tex file. It currently looks like this in the .tex file: \begin{document} \maketitle \...
2
votes
1answer
174 views

Organizing preamble while using glossaries package

I am currently trying to make a dictionary in LaTeX (using iOS textmaker), and have been using the \usepackage{glossaries}. The issue I am having is that I have to define my entries in the preamble ...
1
vote
1answer
146 views

Show a full outline with subfolders in TeXnicCenter?

I have a question regarding the structure of a project in TeXnicCenter. I am currently writing my thesis and created a project with a main document main.tex. Each chapter is a tex subfile that I link ...
2
votes
1answer
101 views

Adding latex to existing pdf document?

I would like to import a pdf document and add additional code on top of the image (the pdf). I can write over figures by the overpic package. The problem is that I would like my compiled latex file to ...
0
votes
0answers
540 views

Import file from another folder

Hi I need to import a file.tex (I cannot move it from this folder) file from a different folder of the main file. is it possible? how i should do?
2
votes
0answers
65 views

Importing mathematical calculations processed by an external file

I usually work with software called Wolfram Mathematica. With this software I perform mathematical calculations and get their results. I usually do the following: Button Right Click -> Copy As -&...
2
votes
2answers
659 views

Include variables from source file to template

I need to automate reports programmatically by using a template. The template contains the standard textes and structure. When a report should be generated, there are a few values to be included in ...
1
vote
0answers
46 views

Regarding use of Import package [closed]

I have created total 6 files. My first file is the main file with preamble and document body. So this one I am considering as main file. Rest of the 5 files are just my five chapters with no preamble ...
0
votes
1answer
196 views

Is there any way to import Large matrices to LaTeX?

I'm sometimes dealing with matrices up till 20*20 - Is there a way to import these into LaTeX rather than manually typing them via the \begin{matrix} command? The matrices are usually constructed in ...
0
votes
1answer
394 views

Pythontex - Unable to import .py files

I am using pythontex to execute python code in latex. Since I have a large python code, I am trying to import the code using pycode ("\pyc{import code}"). The latex and python codes compile fine, but ...
0
votes
0answers
71 views

Wouldn't it be easier to import all packages, put them in .sty file and don't think about them any more?

Latex is very old and I believe that only importing the needed packages was important back then. Nowadays, does it make sense to do dozens of tiny imports? Why not just import all and then don't worry ...
3
votes
2answers
110 views

Compiling file places a bunch of commas before the title

I am working on a big project with many subfiles that I wanted to incorporate into one main file. For that, I used the standalone package, to be able to check the individual files for errors, if any ...
0
votes
1answer
114 views

\input and \import not working within macro

I'm trying to include PDF+LaTeX figures exported from Inkscape in my document. Both .pdf_tex and .pdf files are inside the same path, nested within the project root. These two pieces of code work ...
1
vote
0answers
77 views

Improving JabRef workflow under windows

I actually want to achieve exactly this: Improving a workflow for importing BibTeX citations, but with windows. And I am not sure how to make it work with the explanantion given, can anybody help or ...
1
vote
1answer
558 views

Importing .tex file in LaTeX

I am working on an econometric thesis, and I need to import my stata regression output to LaTeX. I have saved the results as a .tex file on my desktop, but the \include or \import commands don't seem ...
0
votes
0answers
33 views

Importing images and math mode text

I want to include to my document a pdf image (generated by e.g. Adobe Illustrator). Is there a way to include math mode text? Idealy there I would like a library that would convert text in pdf $a^2+b^...
0
votes
0answers
27 views

Error in loading ROOT output graph in LaTex file

I was trying to insert the graph created using ROOT in my LaTex file as per this webpage . It tells to save the ROOT output graph in tex and then embed it in the LaTex File. But when I am trying to ...
1
vote
2answers
444 views

Using Geogebra to export geometries

I made a drawing using Geogebra as shown in the figure below: And I export a TEX file from it: \documentclass[0pt]{article} \usepackage{pgf,tikz} \usepackage{mathrsfs} \usetikzlibrary{arrows} \...
2
votes
1answer
79 views

Which TeX editors can jump to \import source directly?

Which of the TeX editors have the possibility to make jump by clicking to source file some_source_tex_file.tex in \import{some-dir}{some_source_tex_file.tex} in view for editing? Bigest thank you for ...
1
vote
1answer
119 views

Converting blog (blogger/blogspot) backup to latex?

It would save me quite a bit of work if I could find a way to convert the blogspot backup of my blog to Latex. Easy web searches aren't showing me much. the backup file starts with an xml declaration ...
5
votes
2answers
925 views

importing select lines from external txt file?

is there a package that allows one to import a selection of lines from an external .txt file? I know minted has a command that can be customized this way: \inputminted[firstline=3,lastline=5]{c}{...
1
vote
0answers
144 views

Nested directories, import and includegraphics

I am currently experiencing a problem using quite nested directories. So I have the following folder and file structure: /root /images /other_folder The root folder contains my header.tex and ...
0
votes
1answer
59 views

removing redundant lines of text from a series of imported files

I am looking to remove redundant items from a series of imported files. I am using a specific sentence numbering system which is also shown. The first photo shows the output of the code below, while ...
1
vote
0answers
266 views

Can I import Excel Sheet to select cell and use it as text block?

I would like to write text blocks in excel and then import this excel sheet into latex to be available there in a variable with a (multi)-list-like structure. The idea is then to select certain ...
3
votes
0answers
176 views

Using \subimport inside \newcommand

I am using the command \subimport and I am very happy with it. However, it doesn't seem to work when I use it inside a \newcommand environment. My file structure is as follows: ./main.tex ./Macros/...
0
votes
0answers
145 views

Problem: child document compiles parent document (standalone/import)

I'm using the standalone and import packages to build a big document from separate files. In fact I have the code given in this post: How to check if my child document is being loaded by parent ...
6
votes
1answer
563 views

Adjust decimals on table from csv

My problem is that I'm importing some data from a csv and generating a table. The table is good, but I need the numbers with 4 decimals. I've generated the table with this code (probably it is not ...