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
3answers
63 views

I get “already defined” error when using `amsthm` package with `\import`

I use \import command to modulize my chapters. I also use amsthm package to define my own theorem environment. When I try to compile the main (root) file, I get the following errors: Command \thm ...
1
vote
0answers
44 views

Can't include SVG image in LuaLaTex (MikTeX)

I have problems including an .svg image into my document (I'm using MikTeX on Windows 10). I found relevant Q&As here and I think I know which steps I need to take in order to import svg images: ...
0
votes
0answers
31 views

Nested Latex Configuration with \import and \includegraph

I have been very busy to solve this issue by myself then I thought I wasted my time a lot to solve this problem (still couldn't solve it..). It should have a simple solution but I think I stuck with ...
0
votes
2answers
36 views

LaTeX Import Command Error while Nesting

I am facing this issue while I am trying to use \import command from latex. I have nested document which is compiling on GitLab pipeline. My configuration uses sub-modules also. Please see the error ...
0
votes
0answers
39 views

How to install “import” package in VSCode for LaTeX

I'm sorry if this is a dumb question, but I have VSCode with Latex-workshop extension installed. I had made some changes in my system, because of which I lost the "import" Latex packages I ...
0
votes
0answers
41 views

Command for including all .tex files from a folder into the current file [duplicate]

What command can I write in main.tex as shorthand for "include all .tex files from a given folder". So I don't have to write a lot of \include{} commands for each file like \include{sections/...
0
votes
0answers
21 views

Problem writing aux file in relative referenced directory [duplicate]

In the question Problem writing aux file asked about the problems I encountered due to an update of my MiKTeX distribution, but didn't take the time (at that moment) to create a MWE, so it didn't ...
0
votes
1answer
198 views

Problem writing aux file

Upon the risk of being down voted as no MWE is present, but at the moment just trying to get some pointers. I updated my MiKTeX installation to the newest available version at the moment (MiKTeX-...
3
votes
3answers
49 views

\medtriangleup etc from fdsymbol package

I would like to import the equilateral triangle symbols \medtriangleup, \medtriangleright, \medtriangleleft, \medtriangledown from the fdsymbol package, without it screwing up \nabla and changing it ...
0
votes
0answers
58 views

\import separate file into main tex. document in TexStudio

I have a main.tex document that I'm trying to import a separate .tex document of a different class. I can't figure out how to use the \import command, more specifically how I'm supposed to write the ...
1
vote
1answer
27 views

Are there any packages to import bibxml into (la)tex?

While I was able to find several packages to export bibtex to bibxml, and even the whole latex stuff to xml/mathml, I could not find anything in the opposite direction. Of course it would be great to ...
0
votes
1answer
50 views

Restructuring multiple files with inputs and macros in it

i have a multifile document, that is weirdly structured and i want to improve the structure. the hierarchy looks like this: dir0 ├──header.tex ├──dir1 | ├──main1.tex | └──img1.png ├──dir2 | ├──...
0
votes
1answer
75 views

Importing python code into texstudio

I've got some python code that I wrote and I wonder how can import the code from file.py or file.txt into texstudio instead of copying all my code again.
1
vote
0answers
42 views

Use file with non-ascii letters in filename in \inputminted

I want to import some code into a LaTeX-File. The problem is, that in the path some special caracters appear. This still works fine: \inputminted[autogobble,breaklines]{java}{C:/Path/to/my/File.java} ...
2
votes
2answers
161 views

How do I use Computer Modern product symbol together with txfonts package?

I use the package txfonts but I don't like this symbol I would like to use Computer Modern symbol for the product symbol.
3
votes
0answers
80 views

Compilation of a book takes a lot of time

I'm finalizing a probability book, in an english version. I give its general architecture, in the file Main.tex: \documentclass[12pt]{book} \usepackage{ProbaModBE} \includeonly{Stat-Data} \begin{...
0
votes
1answer
51 views

Unwanted behaviour of \subimport*

I use the package import to import several files for writing a book in the following manner: I put every chapter in its own folder, where I put a file for course and a file for exercises with ...
0
votes
1answer
32 views

Large document multifile structure with pgf and data subfolders using import

My project file structure is: C:\USERS\NAME\MULTIFILE_MWE │ main.tex │ ├───pgf │ data.csv │ pgftikz_fig.tex │ └───sections section_import.tex My requirements are: main.tex ...
0
votes
2answers
38 views

How do I merge a tex file with the main one?

So the simplified problem is : I have a directory called Main inside which there is my main.tex file. Then there is another folder called Supplement in which there are another file file1.tex and a ...
0
votes
0answers
31 views

Table of Contents only shows appendix

I am trying to make a table of contents, but it only shows abstract, acknowledgements, abbreviations and symbols from the appendix. The main file and one of the 6 chapter files is given below. Also, ...
2
votes
1answer
154 views

import package shows wrong error message for missing file

When I use the the package import and the specified file in the command is missing, I get a wrong error message on my linux setup indicating that another file, that is present, is missing. But on ...
0
votes
0answers
116 views

How can I include Databricks notebook cell output (HTML) in my LaTex report?

I have the following output cell in an Databricks notebook (here as picture): I would like to include this output in my LaTex report including the scroll bar. This should work through exporting the ...
0
votes
0answers
15 views

Include template files in up folder

I want to use the same template for multiple courses. Now my course is structured as: Course Name/ |-- lecture1.tex |-- lecture2.tex `-- template/ `-- template_layout_lecture.tex and I include ...
5
votes
2answers
539 views

Problem with packages subfiles and import.sty after using TexLive Utility for updating

Everything worked fine before using TexLive for updating my packages three days ago. Now it is not possible anymore to use the package subfiles Here are the MWE The minimum Preamble.tex file \...
1
vote
1answer
102 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
78 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
26 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/...
1
vote
1answer
50 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
63 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
49 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
57 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
94 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
41 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. ...
3
votes
1answer
248 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 ...
1
vote
0answers
58 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
58 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
107 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
279 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
64 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
1answer
155 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
54 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
58 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
2k 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
74 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
99 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
46 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
27 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
58 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
86 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
431 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
2 3 4 5