about the use of the [tag:import] package or using the \input or \import commands for including text and code from other files.

learn more… | top users | synonyms

0
votes
2answers
18 views

Error while Inserting a pdf file in latex [on hold]

this the code i have written for including pdf in latex code. \usepackage[final]{pdfpages} \usepackage{fancybox} \usepackage{lipsum}% dumy text \usepackage[dvips]{graphics} \usepackage{times} ...
0
votes
0answers
32 views

Input/import trouble

I've been trying to import tex-tables produced by Stata into a new document, but I keep getting an error that the imported file can't be found, even when I copy/paste the file path directly. My code ...
0
votes
1answer
36 views

Appendix will not work at all, please help.

I would like to include an appendix (just one appendix) in my thesis, following the bibliography. I am using book class, and have each chapter in a separate file. When I try to add an appendix, the ...
4
votes
1answer
61 views

Recursively import sub-document at arbitrary level

Consider the following subimportlevel macro: packages.tex \usepackage{import} \usepackage{coseoul} \newcommand{\subimportlevel}[3]{ \setcounter{currentlevel}{#3} \subimport*{#1}{#2} ...
2
votes
1answer
50 views

Problem add to pdf image file in directory

MWE, \documentclass[a4paper,12pt]{book} \usepackage[turkish]{babel} \usepackage{graphicx} \usepackage{import} \graphicspath{ {ABC/} } \newcommand{\circuit}[1]{ \begin{center} ...
1
vote
1answer
48 views

How can I use relative paths?

I want to add a table from a separate tex file to my document. I get an error saying the file vr_sets.tex is not found, when I do this in Chapter2/chapter2.tex: \input{tab/vr_sets} This also fails: ...
2
votes
2answers
60 views

reftex: include from `tex/`

In order to keep doc dir clean, I keep a master file in the top level of the doc, and other files in folders: . ├── bib │ └── refs.bib ├── img │ ├── img1.png │ └── img2.png ├── tex │ ├── ...
2
votes
0answers
47 views

How to use import package to keep relative path references in subfiles and at the same time use svg?

I have the following directory structure: main.tex chapter/ chapter1.tex img/ image.svg This is the content of main.tex: \documentclass{report} \usepackage{svg} \begin{document} ...
0
votes
0answers
84 views

manage chapters from separate files

This question is for writing a book/thesis, where chapters are saved in different .tex files. Currently, I use packages standalone and import. In the main TeX file, I use \import to fetch the ...
2
votes
2answers
130 views

using mathematica plots in LaTeX

I would like to use plots created with Mathematica inside my LaTeX environment. Is it possible to plot the Mathematica code completely inside the LaTeX environment? If it is not possible, does anyone ...
2
votes
0answers
107 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 ...
3
votes
1answer
82 views

Importing single symbols in the sense of “How does the assignment work?”

I looked at Importing a Single Symbol From a Different Font and Handwritten R-like-kay. As a result, I downloaded the STIX package and looked up the highly welcome curly k \kay and found it to have ...
0
votes
1answer
218 views

Dynamic Courtesy Receipt PDF Generator For PHP

The title needs a bit of help, but I'm wondering if it's possible to dynamically create a beautiful customized receipt for purchases from my website using LaTeX, where LaTeX gets its data from my ...
0
votes
0answers
70 views

Minitoc and import: how to specify location of mtc file?

In the project im working in, the structure is as follows . ├── a │   └── main.tex ├── b │ └── main.tex ├── main.tex The root main file is \documentclass{book} \usepackage[utf8]{inputenc} ...
6
votes
0answers
34 views

Problem with catchfile package [duplicate]

I want to use the catchfile package to import the data of nodes from external file ver.dat as following: \documentclass[tikz]{standalone} \usepackage{catchfile} \CatchFileDef{\myver}{ver.dat}{} ...
0
votes
1answer
103 views

No image in PDF using PDF_Tex

I am using .pdf_tex from InkScape to create figures in my LaTeX file, but when I compile the caption appears with no image above it. Any ideas why? \documentclass{article} \usepackage{geometry} ...
7
votes
1answer
479 views

How can I import matrix data (2d function) from matlab into pgfplots?

This question arised in Spectrum colormap for multiple curves, but since it is of general interest, I add a separate question and my answer here. Suppose you have a matlab figure which needs to be ...
8
votes
5answers
2k views

Getting data dynamically into LaTeX from a spreadsheet

Is it possible to access to data from spreadsheets (i.e. excel spreadsheets) and include them dynamically into a LaTeX document? We need to compile each month a lot of factsheets and therefore want ...
9
votes
2answers
1k views

Importing CSV file as a table in Latex but file too long

I am trying to import a CSV file but the data in the table is too long it goes down till the end of the page and disappears without continuing on the next page. Here's the file: ...
1
vote
1answer
79 views

From LyX to LaTeX and back without losing information

I work in LyX but my colleagues work in LaTeX. If I export from LyX to LaTeX, then send them the tex file, then receive the tex file with their editions and then import it back to LyX, will I have all ...
2
votes
0answers
107 views

Insert pgf with referenced png file from a different folder

I'm trying to insert a pgf file that I made with matplotlib. This file references to a png file (since I inserted a png figure in the plot). When I put the png in the same folder than my tex file, ...
1
vote
0answers
107 views

Insert bibtex file B in bibtex file A

Scenario: I manage citations with JabRef (inside Docear which sadly currently does not support the import of .bib files) and want to easily import citations from Zotero into the Jabref library. I'm ...
3
votes
0answers
52 views

Including fully functional .tex documents [duplicate]

I'm trying to combine four separate .tex documents into one big "book" with each document as a chapter. I use the import package. This is essentially what my main document looks like: ...
1
vote
1answer
86 views

Save wiki page in TEX?

Lot of wiki pages are excellent but there is no way to save it in LaTeX format so that the formula are kept. Even if we can use wiki's "create a book" function to save as pdf. The formula in wiki are ...
3
votes
1answer
102 views

Is it possible to take “sum” from computer modern, “braces” from fourier?

The code is here. Also How can i add underbraces from fourier? \documentclass[11pt,a4paper]{article} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{ucs} \usepackage{amsmath} ...
1
vote
1answer
311 views

Custom separator for CSV import via csvsimple

I have successfully used csvsimple to import .csv files. But I would like to have commas as number separators, so I modified the .csv file to use semicolons as separators and as csvsimple manual says, ...
1
vote
1answer
1k views

Import a template from a zip file

I am trying to use the AIAA template in Texstudio, however I do not know how. I have been using ShareLatex for the past year now and would like to start using Texstudio. So how do I take the ...
1
vote
0answers
111 views

Tex to Lyx Error [closed]

I'm having two .tex files. For some reason one is easily imported into lyx without any problem. On the other hand, when I'm trying to import the second .tex file into lyx I'm getting the following ...
3
votes
1answer
69 views

How to get a file's “date modified” string when including graphics?

I am working on my thesis, and want to have the date corresponding to when each figure was generated included in it's caption. Currently I manually update the caption when I update the figure. I am ...
1
vote
0answers
89 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 ...
6
votes
0answers
40 views

\importonly for only processing a single import?

I am composing a large document, and instead of using include/input, I use the \subimport* command from the import package. This allows me to take care of relatives paths very easily. However, the ...
7
votes
3answers
360 views

dynamically imports tex files

How can I dynamically import a tex file? I essentially have hundreds of .tex files in one folder, all of these files have multiple versions. I can't move them out of this folder. Ex: ver1file1.tex ...
2
votes
1answer
58 views

Import tex graphics to my main tex document

I want to create various plots with tikz package. I don't want to have the code for the plots in my main tex document because it's pretty messy. Is there a way to keep the tex code to different ...
2
votes
0answers
119 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 ...
4
votes
1answer
100 views

How to include Big Draft text as background only for imported document part

I want to include a big "Draft" text on the background in some files imported by the import package in this way: \subimport{}{test.text} How can you include such a big "Draft" text to the ...
3
votes
1answer
117 views

Subimport star breaks listings languages

\subimport*{}{} from the package import seems to break listings languages, but only if listings with a language hasn't been used in the root document: ! Package Listings Error: Couldn't load ...
3
votes
0answers
321 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 ...
3
votes
0answers
38 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 ...
4
votes
1answer
285 views

Book Class: Instructor's Guide [closed]

I am currently an undergraduate student finishing my bachelor's in mathematics. For my Complex Analysis course, my instructor personally chose me to create an Instructor's Guide for the course. The ...
0
votes
0answers
104 views

How to use shell environment variable with import/include/input?

I would like to create a folder in my home directory to store a few files in it that should serve as templates e.g. handout.tex. I begin to write my specific file somewhere in my filesystem. Now I ...
2
votes
1answer
230 views

chapterfolder or import for a thesis with figures in subdirectories

I've been poking around on here trying to work out the best way of keeping my individual chapters and their associated figures in subdirectories. After reading a few threads I've been testing out ...
2
votes
0answers
37 views

How can I import an excel table into latex longtable [duplicate]

I want to import some data from excel which is in table form (raw from that it not formatted) and I want to import into a longtable with the appropriate formatting (if indeed it can be done in one ...
2
votes
2answers
940 views

Importing a .png file into .tex file

I've been trying to input a graph into my .tex file, but it won't work. I've put the .png file in the same folder as the .tex file and a part of my code looks like: \documentclass[16pt, ...
1
vote
0answers
99 views

import latex longtable into lyx with format changing [closed]

I apologize if my question was asked alot previously i am generating my tables from stata into latex then i try to import those tables (longtables) inside a table float in lyx the result is a mess ...
1
vote
2answers
2k views

Importing JPG files into LaTeX [duplicate]

I would like to import JPG file into my document in LaTeX. The code below works but only for EPS files, but I need JPG. How can I fix it? \documentclass{article} \usepackage{graphicx} ...
9
votes
1answer
10k views

“Can be used only in preamble” when using the “import” package

My code, which is actually supposed to work according to import's official readme if I understand it correctly: ./main.tex: \documentclass[a4paper]{article} \usepackage{import} \begin{document} ...
4
votes
0answers
127 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 ...
0
votes
1answer
477 views

Import selected rows without header in pgfplots

Import of selected rows of a data set (without header line) The import should make use of the column numbers instead of row headers. The pgfplots' manual presents the possibility to use the command ...
1
vote
1answer
116 views

How to import a txt full of symbols into LaTeX

I have a txt file that I want to import it into LaTeX. How can I import the txt file without changing its format? In particular, the txt doc has a lot of symbols (it is the output of other programs), ...
2
votes
0answers
35 views

Importing A pdf Image [duplicate]

I have an image saved as a pdf file, and I would like to include this image in one of my latex documents. In the preamble of m document, I included \usepackage{pdfpages}; and here is the formatting I ...