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.

Filter by
Sorted by
Tagged with
1
vote
1answer
34 views

Import csv file: How can I merge information from different lines?

I am trying to compile a bilingual dictionary from a spreadsheet file that was exported as csv. The file contains columns with the kinds of information that one would expect from a dictionary: lexeme, ...
0
votes
0answers
43 views

Pythontex: imported .py file sync

I've managed to make Pythontex working with Latexmk, the problem is that whenever I make changes to an included python file, it's old state persists in Latex unless I delete the auxiliary files and ...
0
votes
0answers
24 views

Import tex files from a folder with names respecting one simple apattern

Does someone know how to import several files from a folder with names respecting dd-*.text with d one decimal an * any kind of characters like ine teh following piece of code ? \input{laws-of-time/...
0
votes
1answer
22 views

LaTeX: Get Variables out of a cvs row

I want to quickly swap out different values in a tex file - like for a batch print so far I'm using multiple .tex files and swap out the \input examplefile.tex in my header. examplefile.tex: \...
0
votes
0answers
27 views

LyX not importing .tex correctly

this is my first time posting on StackExchange so apologies for any formatting mistakes. I have a raw .tex file from my professor of a set of lecture notes, I'm attempting to combine this with another ...
3
votes
1answer
34 views

How do I extract the definition(s) of a Chinese word from the CC-EDICT dictionary?

I want to create a command in LaTeX, like this: \chinese{炒面} And have it create a footnote with the definition given from the CC-EDICT dictionary. 炒麵 炒面 [chao3 mian4] /stir-fried noodles/"chow mein"...
1
vote
1answer
38 views

XeLaTeX with hyperref, import and standalone

Package stringenc Error: Conversion to encoding `ascii-print' (stringenc) is not supported. How can I avoid the above error when typesetting the parent file of the two below with XeLaTeX? \...
1
vote
1answer
70 views

Import only part of a PDF file's page

Is it possible to only import part of a pdf file? For example if I want to import lines 20 - 25 from page X from a pdf file, is this possible? I am familiar with importing whole documents, or pages ...
0
votes
0answers
28 views

Creating a report with TeX using data from DICOM file

The DICOM standard used in medical imaging contains detailed information about the performed medical diagnostic procedure. There are open-source DICOM toolkits that can handle data from DICOM files. ...
2
votes
1answer
62 views

How to import a tikZ figure which has images as dependencies?

I came up with a tikZ figure, which I have written in a file, lets call it A.tex. This figure uses image files (.jpg, ...), which are included as nodes using \includegraphics. Now obvisously, I'd like ...
0
votes
0answers
13 views

Include a standalone .tex file (which contains two languages) partially (one language or the other)

I am going to collect questions from faculty members written in two languages and combine them in a single main.tex exam file. I have created a sample main.tex file as follows: \documentclass{...
0
votes
0answers
23 views

Importing an eps file into xfig

In this thread, @DavidCarlisle suggests how to import an .eps file into xfig, so that you can then draw on it. He says use the picture tool to create a rectangle, then browse to add the .eps file. ...
0
votes
0answers
25 views

How to input standalone LaTeX documents with nested inputs in subdirectories?

I have two LaTeX documents in a subfolder that use the standalone class and share a preamble. I'd like to import these into a single document in the main folder. It would seem that the import package ...
0
votes
0answers
22 views

Fetching data from a particular cell of spreadsheet using datatool into LaTeX

I have been learning about using datatool and datatooltx to import csv/spreadsheet into texdb and use it for LaTeX and I found how to fetch a particular row of the spreadsheet, but I need to fetch a ...
1
vote
0answers
38 views

Passing parameters to \input{text}

I'd like to create an exam from several .tex files. I'd like the master exam .tex file to include (or input, etc) a file for each question. I'd like each question to list the number of points that ...
0
votes
0answers
34 views

Incompatibility between import and minted?

minted doesn't seem to work with import using \subimport*. Is there a way to fix that because I'm becoming addicted to the package import? Main file \documentclass[12pt,a4paper]{article} \...
1
vote
1answer
56 views

Import CSV to Latex

Have tried all of the prior responses questions but just can not seem to get any of them to work. I have tried all the various csvreader but can't seem to figure it out. I am trying to import the ...
0
votes
0answers
133 views

PythonTeX: importing/printing all the python files of a folder

I'm using Pythontex for my lecture notes. I have a lot of .py files containing classical scripts (simulations of random variable for example), which I use in many files. My aim is thus the following ...
0
votes
1answer
41 views

Relative paths when using import and endfloat packages

I am combining multiple tex files (different papers) that are from different projects. I decided to use the import package. Figures and tables of each file should go at the end of a chapter. Because ...
0
votes
0answers
46 views

Using PyLatex to create importable Tex files

Using PyLaTex, I currently I have to use an editor to strip off the "/usepackage{'foo'}" statements from PyLaTex generated external tex files so that my main.py file can open, read and append each ...
0
votes
1answer
39 views

Exercises imported don't print when i call a collection

I undertook to build a database of my exercises and to store them, i wrote in subfolders. When needed, i called them with xsim package. At the moment, the classification acts as follows : And there ...
0
votes
0answers
18 views

import subimport and bibentry incompatibility

I'm writing my thesis and I want to be able to compile each section individually with the references. I also want to be able to include the full citation of my papers in the first chapter. I've ...
0
votes
0answers
45 views

How to insert a TeX(LaTeX)-formatted block inside a pdf-file, enlarging the page in which this block in inserted?

I have a pdf file with no source code. (Possibly generated from a series of scans with no OCR or some WYSIWYG text processor, or even drawn in Gimp.) Clarification: The pages are not necessary image-...
0
votes
1answer
200 views

How do I import latex files into LyX?

I am new to LyX and trying to import the Latex file: \documentclass{article} \begin{document} This is a Latex document. \end{document} I get the error An error occurred while running tex2lyx2.3-f "...
0
votes
0answers
33 views

Combine graphicspath and import

I would like to use the import package to specify my image location by using the graphicspath command. So instead of \begin{figure}[H] \begin{center} \def\svgwidth{\textwidth} \import{/path/to/...
0
votes
0answers
36 views

Importing “minted”s from a subdirectory to another subdirectory

My hierarchy goes like this: Main Folder SubFolderForCode(1) doc.tex code.py SubFolderForCode(2) doc.tex code.py SubFolderForDoc doc.tex I want to ...
1
vote
2answers
44 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
33 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
25 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
54 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
65 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
151 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
87 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
92 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
41 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
63 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
956 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
360 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
300 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
61 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
76 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
358 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
388 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
90 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
232 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 ...
2
votes
2answers
50 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-...
4
votes
3answers
156 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
264 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
252 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
122 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 ...

1 2 3 4 5