As of May 31, 2023, we have updated our Code of Conduct.

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.

61 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
1 answer
308 views

AUCTeX/RefTeX, the `import` package and cross reference

Today I switched to the import package with the hope that it will simplify the management of the files of my text. It surely did that, but.... It broke RefTex in emacs. Now, I cannot lookup my labels ...
Dror's user avatar
  • 22.2k
3 votes
0 answers
225 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{...
Faouzi Bellalouna's user avatar
3 votes
0 answers
485 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 ...
hannesra's user avatar
3 votes
0 answers
999 views

subimport issues: tikz/addplot

I am using subimport to include .tex chunks from different folders. Everything except my tikz figures seems to work fine. Here is a minimum working example: organization: main.tex > Folder1 >...
gajan's user avatar
  • 31
3 votes
0 answers
96 views

The packages imports and probsoln seem to be incompatible

I want to establish lists of exam questions using probsoln. To keep things neatly arranged I want to keep the lists separated from the exams as I use a dedicated folder for each term and for each ...
Ulrich Hauser-Ehninger's user avatar
3 votes
0 answers
224 views

Citations when importing a .tex file into Lyx

I relatively new to LaTeX and Lyx. I am using the Scrivener -> MMD -> LaTeX workflow. For citations, I used Papers2, as it allows me to insert MMD-style citations into Scrivener. When compiling, the ...
Cumol's user avatar
  • 43
2 votes
0 answers
32 views

Appendices not showing up properly when imported to main.tex

I'm using the standalone package so that I can write parts of my paper separately. My appendices is structured into sections. When I compile appendices.tex it shows up as expected i.e. 1. [title] ...
PestoPotato's user avatar
2 votes
0 answers
105 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 -&...
LCarvalho's user avatar
  • 1,621
2 votes
0 answers
360 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/...
Nigredo's user avatar
  • 21
2 votes
1 answer
811 views

\includefrom with \includeonly

I need \includefrom of the import package to resolve input statements in chapters/intro/intro.tex. But when I combine this with \includeonly, it is not included: \includeonly{chapters/intro/intro} \...
Konrad Höffner's user avatar
2 votes
0 answers
310 views

importing a portion of another tex file

I have several papers that have full preambles including cover pages, package include statements, etc. I am compiling the papers into one long book that has chapters and would like to import that ...
Alex's user avatar
  • 2,031
2 votes
0 answers
171 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 ...
H. Weirauch's user avatar
2 votes
0 answers
348 views

import package does not work with 'latex' but works with 'pdflatex' command, any solution?

I am using the add-on import package of Donald Arseneau to typeset my thesis while allowing each thesis chapter files to be placed in a subfolder. Using this package lets me do it when I typeset my ...
Srinivas's user avatar
1 vote
0 answers
732 views

One Dot vs Two Dots to import file

Sometimes I see one dot (like: \subfile{./chapters/file.tex}) and sometimes two (like: \graphicspath{{figures/}{../figures/}}) while importing a file. Can someone clarify which is used when?
dictatemetokcus's user avatar
1 vote
0 answers
64 views

LaTeX commands in pgfplots legend entries from csv import

I am trying to import data from a csv file, where legend entries are automatically taken from the csv file's header. Those legend entries contain LaTeX math code. % used PGFPlots v1.16 \documentclass[...
Uroc327's user avatar
  • 165
1 vote
0 answers
1k 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: ...
Sim Son's user avatar
  • 269
1 vote
0 answers
3k 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 ...
Anjalib's user avatar
  • 11
1 vote
0 answers
88 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} ...
Cowboy_Patrick's user avatar
1 vote
0 answers
165 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 ...
Fritjof Larsson's user avatar
1 vote
0 answers
81 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. ...
Alexander Frank's user avatar
1 vote
0 answers
374 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 ...
MikeTheTall's user avatar
1 vote
0 answers
269 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 ...
Paul Kim's user avatar
  • 1,068
1 vote
0 answers
32 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 ...
user185870's user avatar
1 vote
0 answers
875 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 ...
Wulle's user avatar
  • 1,042
1 vote
0 answers
109 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 ...
Karhu's user avatar
  • 139
1 vote
0 answers
429 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 ...
Asking Questions's user avatar
1 vote
0 answers
178 views

standalone and import not loading child document when using \ifdefined

I have just updated to latest TL 2016. I found a problem with subimport not loading a child that uses standalone package when the child has \ifdefined\HCode as its first line. Here is MWE. I have ...
Nasser's user avatar
  • 19.6k
1 vote
0 answers
246 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 ...
JPing's user avatar
  • 77
1 vote
0 answers
196 views

\import and \includegraphics with macros: Preserving local path at macro definition time

I have been banging my head on this problem for a few days, trying many combinations of \def, \edef, \noexpand, \expandafter, etc. Say I have a module at /tmp/module/ which contains module.tex and ...
user1460044's user avatar
0 votes
0 answers
24 views

I saw answers on excel to LaTex but do not want a latex table... Need to use LaTex in Excel to make .csv with math symbols, subs & supers, etc

I am trying to make a csv file for flashcards that includes latex symbols, the file needs to be in csv format and I was editing it in excel to change the plain text such as d/dx f(x) or x^2 a_n etc to ...
Elaina Jeansonne's user avatar
0 votes
0 answers
22 views

\href links do not work when the pdf is imported into another latex document

I am creating a cover_letter.pdf file using Latex. In the cover letter, I need to create a hyperlink to a website. \href{https://www.some-website.com}{\textbf{My text}} the above command works fine ...
skm's user avatar
  • 930
0 votes
0 answers
22 views

Convert a .tex file to PDF before importing it in the document

How can I compile a .tex file as a PDF before importing it into the document? This is related to my previous question, as it could be a possible solution to that question. However, this question is ...
Vebjorn's user avatar
  • 1,750
0 votes
0 answers
20 views

Contents imported from csv file goes beyond the page below

I want to create a one-word Q&A document. I imported the contents from a .csv file which has 104 rows, the contents go below the page and not to the next page. How do I rectify it? \documentclass[...
Srini Vasan's user avatar
0 votes
0 answers
53 views

Importing a pre-generated index file to Overleaf

I have a problem with the index generated using Overleaf. I am using imaxeidx with no flags other than the title and number of columns. After generating the .idx file I simply use \printindex to print ...
nikpol's user avatar
  • 1
0 votes
0 answers
35 views

How to import \newtheorem{} from an external .tex file to main file?

I have an external .tex file that stores all of my custom commands, and I also wanted that .tex file to include \newtheorem lines. The structure of this input file is of the form: \newcommand{\im}{\...
Grotto Box's user avatar
0 votes
0 answers
897 views

How to open cls files with overleaf ? thanks

I am new to writing a dissertation and I am using overleaf. my professor sent us a cls file called "muthesis" but I don't know how to use overleaf to import the templates into it. i would ...
linda's user avatar
  • 1
0 votes
0 answers
31 views

Import seems to fail with TexStudio after reinstallation. Why?

I reinstalled Texsudio on a new SSD yesterday. After that I only encounter problems, Nothing changed to my actual MikTex installation, which has always been on my boot disk. E.g. when I import my ...
Manuel ManUser's user avatar
0 votes
0 answers
75 views

For my usecase, should I use \input, \import or \include command, subfile package or standalone package

I am writing a manual. The manual has a bunch of versions intended for different audience. Let's say I am writing files A,B1,B2,B3,C1,C2,C3, where B1,B2,B3&C1,C2,C3 are different versions of the ...
jxhyc's user avatar
  • 1,101
0 votes
0 answers
20 views

How to use import pacakge(Error:test.aux not found)import

I tries to run my latex as a project, with each section using a different text file. But I seem unable to let import command do what I want it to do. Here is the MWE: mainfile \documentclass{article} \...
jxhyc's user avatar
  • 1,101
0 votes
0 answers
72 views

Latex adds 'end.tex' to my file names. Why?

I have been using this code without problems and then out of the blue, it started throwing a new error. % Table generated by "H:\do files\weekly_comparison_by_year.do" \begin{table} \begin{...
Paul's user avatar
  • 1
0 votes
0 answers
33 views

Why is the chapter missing when importing with the \import command?

I am writing a report that contains a total of 6 chapters. I use the \import command to import them, but I have the following problem: if I try to import all the chapters, they appear up to the fourth ...
g_don's user avatar
  • 767
0 votes
1 answer
529 views

Combining Latex files with different preambles

I am in the process of writing a Python program that scrapes exam questions in tex files from a website and combines them to create a new paper. The questions are picked by random from a spreadsheet, ...
elosant's user avatar
0 votes
0 answers
65 views

Exporting and importing user's custom commands from Texmaker

I have Texmaker on two different PCs, but only on one of them I defined custom commands in Texmaker. Is there a way to export these commands from one Texmaker and to import them on the other one?
Gennaro Arguzzi's user avatar
0 votes
0 answers
139 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 ...
Christian Flannery's user avatar
0 votes
1 answer
136 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 ...
Sav-econ's user avatar
  • 345
0 votes
0 answers
475 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 ...
DataBach's user avatar
  • 125
0 votes
0 answers
32 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/...
projetmbc's user avatar
  • 12.9k
0 votes
0 answers
175 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 ...
Jacob's user avatar
  • 111
0 votes
0 answers
126 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} \...
projetmbc's user avatar
  • 12.9k
0 votes
0 answers
429 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 ...
jowe_19's user avatar
  • 783