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
0 votes
1 answer
28 views

Indenting text from '\enumerate'

I am trying to write a document that has the same question in two places. So, I've written that question down in a seperate tex file, and used the \input command in both places to copy the question. ...
user avatar
0 votes
0 answers
17 views

Using the Import Package to import an 'autonomous' tex file

I am currently updating my CV for some applications. The CV is made via the moderncv package. Now I made some tex files for the applications and would like to import the CV tex to an application file ...
user avatar
  • 123
0 votes
1 answer
64 views

Bulk-Export Macros in TeXstudio

I have a collection of macros that I use. I want to export them, then import them on another computer. I'm looking for some way to bulk-export my macros. There are two highly-related questions, but ...
user avatar
  • 1,147
1 vote
1 answer
28 views

Bibliography imported from main and subfiles

I have a bib file that I need several subfiles to have access to. Currently the file structure is: project main.tex Bib.bib Chapters Chapter1 Chapter1.tex I can ...
user avatar
  • 115
4 votes
1 answer
77 views

Including articles as appendix in dissertation

For my dissertation, I need to include my published articles as an appendix. My articles are standalone LaTeX projects with their own preamble, template to adhere to the style guide for the publisher, ...
user avatar
  • 153
0 votes
1 answer
59 views

Inserting beamer slides from different projects

so basically I have a main thesis beamer project written in "Metropolis". Since, in the past months I have made a detailed presentation of a thesis chapter using beamer, I would like to ...
user avatar
0 votes
1 answer
45 views

Problem when run imported files in TexStudio

I use TexStudio with a nested structure, in other words I have many files in many folders to help keep things tidy. The problem happens when I have to import another document. \documentclass[...
user avatar
0 votes
0 answers
23 views

Collective book / odt template to latex

I have to create a collective book for a lab, humanities field, where authors don't use latex. I found some ideas to insert in a same chapter names of authors appearing in the table of contents, an ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
  • 1,023
0 votes
0 answers
16 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} \...
user avatar
  • 1,023
1 vote
3 answers
104 views

import package and graphicspath do not work together

Hi I tried to use the import command from the import package to not conflict with the relative paths in the imported file. However, this doesn't seem to work with \graphicspaths. Here the structure of ...
user avatar
0 votes
0 answers
51 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{...
user avatar
  • 1
0 votes
0 answers
28 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 ...
user avatar
  • 491
0 votes
0 answers
25 views

Managing a big project with independent parts, each with its own preamble

I'm currently taking part in a math workshop and I was asked to create a booklet from topics for research proposed by fellows. Each lecturer sends me a tex-file with his own preamble, which I then add ...
1 vote
0 answers
233 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?
user avatar
1 vote
1 answer
75 views

Importing value from txt-file to tikz

I want to import a value form an txt-File and use it in tikz. But for some reason this is not working (line 25). I was not able to find a workaround like the \protect-command which works for \caption ...
user avatar
  • 13
1 vote
1 answer
80 views

How to import text files to populate the right places in LaTeX template

I developed a LaTeX template for my work in recipe development. I work on multiple, new, recipe ideas weekly, and the task of picking through the template to change titles, image file names, ...
user avatar
  • 11
2 votes
2 answers
161 views

Figure appearing as ?? on Overleaf

I've followed tutorials online such as https://latex-tutorial.com/tutorials/figures/ and https://www.overleaf.com/learn/latex/How_to_Write_a_Thesis_in_LaTeX_(Part_3):_Figures,_Subfigures_and_Tables#...
user avatar
2 votes
0 answers
27 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] ...
user avatar
1 vote
2 answers
124 views

Importing \bigplus and \bigtimes from mathabx package

Similar to my question here: I want to import \bigplus and \bigtimes from the mathabx package but not use the whole package as it alters the look of \int, \partial etc. There are a lot of solutions ...
user avatar
  • 75
1 vote
1 answer
193 views

Multi-file latex project, with a title page in hebrew

I have a large LaTeX project (my thesis) with a main TeX file (main.tex) and many subfiles contained in their own sub-directory. All are interrelated with the subfiles package. Now I want to add a ...
user avatar
  • 298
0 votes
1 answer
196 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, ...
user avatar
1 vote
0 answers
34 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[...
user avatar
  • 165
0 votes
0 answers
36 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?
user avatar
1 vote
3 answers
404 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 ...
user avatar
  • 1,372
1 vote
0 answers
418 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: ...
user avatar
  • 259
0 votes
2 answers
110 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 ...
user avatar
1 vote
0 answers
1k 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 ...
user avatar
  • 11
0 votes
0 answers
44 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/...
user avatar
0 votes
0 answers
24 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 ...
user avatar
  • 1,215
0 votes
1 answer
383 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-...
user avatar
  • 1,215
4 votes
3 answers
139 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 ...
user avatar
  • 75
0 votes
0 answers
100 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 ...
user avatar
1 vote
1 answer
55 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 ...
user avatar
0 votes
1 answer
135 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 | ├──...
user avatar
  • 1
0 votes
1 answer
287 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.
user avatar
  • 101
1 vote
0 answers
64 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} ...
user avatar
2 votes
2 answers
188 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.
user avatar
3 votes
0 answers
156 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{...
user avatar
0 votes
1 answer
137 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 ...
user avatar
0 votes
1 answer
77 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 ...
user avatar
  • 345
0 votes
2 answers
52 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 ...
user avatar
2 votes
1 answer
256 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 ...
user avatar
0 votes
0 answers
332 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 ...
user avatar
  • 125
5 votes
2 answers
1k 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 \...
user avatar
  • 683
1 vote
1 answer
165 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, ...
user avatar
1 vote
0 answers
137 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 ...
user avatar
0 votes
0 answers
28 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/...
user avatar
  • 11.4k
1 vote
1 answer
138 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: \...
user avatar
0 votes
0 answers
100 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 ...
user avatar
  • 111

1
2 3 4 5