Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
26 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
10 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
31 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
56 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
82 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
64 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
135 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
31 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
51 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
199 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
143 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
54 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
124 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
49 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
42 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
92 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
61 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
151 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
136 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 ...
0
votes
0answers
155 views

Plotting a color map of a corresponding matrix

I asked this question before but unfortunately got no amswer. I have a 40x40 matrix of elements and would like to plot a colormap out of it in LaTeX. I used matlab2tikz but the resulting color map ...
2
votes
1answer
97 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
491 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
60 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
582 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
45 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
155 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
348 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
40 views

import Regression tables

I have two questions regarding importing regression tables: I always got the error "Not in outer par mode. \begin{table}[htbp]" How can I make a page break after some lines? because now it cuts off ...
0
votes
0answers
70 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
108 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
90 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
74 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
486 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
32 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
426 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
76 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 ...
4
votes
2answers
814 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
132 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
57 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
246 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
162 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
135 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
480 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 ...
0
votes
1answer
248 views

How to [import packages] or [define commands] into chapter files?

I'd like to organize a thesis-like document with ut-thesis package such that there is a main .tex file as the following: \documentclass{ut-thesis} \degree{X} \department{X} \gradyear{X} \author{X} \...
3
votes
1answer
83 views

Missing spaces when importing parts of other file

This question is a follow up and based on this question (using an altered MWE from this answer) Situation I am importing several parts of a file into another one (a summary-excerpt). This is done ...
0
votes
1answer
80 views

Citations for imported parts don't follow unsrtnat

I have the following problem with unsrtnat not following the order of appearance in the document (sort of): The document is split in several sub-documents. In the main part, a usual .bib file is ...
0
votes
0answers
61 views

How to avoid name conflicts (different directories) using the `import` package

I want to provide some structure for my thesis source files. I decided to use nested directories. Every directory contains main.tex index file to be imported by a file in the parent directory. From ...
2
votes
2answers
120 views

How to input independent content into Latex doc?

I have a document like: \documentclass{article} \begin{document} \begin{itemize} \item First \item Second \item Third \end{itemize} \end{document} which I want to fill ...