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

4
votes
0answers
132 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
523 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
120 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
36 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 ...
1
vote
1answer
65 views

DPI for imported bitmaps

I am importing a number of .png files into my document as follows: \usepackage{wrapfig} \begin{wrapfigure}{r}{0.5\textwidth} \centering \vspace{-1.5cm} ...
4
votes
2answers
756 views

Use CSV data in table caption?

I want to use some data, imported with csvsimple, in a table caption. \begin{filecontents*}{data.csv} column1,column2,column3 name1,val1a,val1b name2,val2a,val2b \end{filecontents*} ...
12
votes
3answers
17k views

Importing csv file into latex as a table

I am using the \csvautotabular function to import data from a csv file. It has worked beautifully; however, I only want to import certain columns from the file. How can I exclude certain columns? ...
4
votes
3answers
17k views

Import pdf image into LaTeX file

I am trying to insert some ready image-pdf files to my LaTeX code but failed. My code is \documentclass[a4paper,12pt]{book} \usepackage{graphicx} ...
1
vote
0answers
86 views

Importing in Mass from LaTeX to LyX [closed]

I have tons of tables stored in LaTeX format that I would like to import into LyX. Doing this manually (through file-->import-->latex(plain) ) will take forever and a day. Using tex2latex (text2lyx -f ...
17
votes
2answers
3k views

What is the 2014 status on converting Word and MathType to LaTeX

Why have I started a new question? I have studied as many pages here as I can on answers to this question and none have really satisfactory answers. I want to start a new discussion on this problem. ...
1
vote
0answers
80 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 ...
3
votes
1answer
165 views

Runtime error while importing a poster from .tex to .lyx

I try to import a .tex file (an A0 poster created from baposter template in some older version of MikTex) to Lyx (2.0.6), but the conversion fails with Runtime error tex2lyx "poster.tex" "poster.lyx" ...
0
votes
1answer
689 views

Import code from LaTeXDraw to writeLaTeX

I am new to LaTeX. I am trying to write my master thesis using WriteLaTeX. I wanted to make some figures using LaTeXDraw. However, I want to import the code to my report and not the final picture. How ...
8
votes
1answer
607 views

PythonTeX: importing python files

I'm trying to import a personal python module using python tex, but pythontex doesn't find the module. My attempt: The LaTeX File: % !TEX TS-program = pythontex \documentclass[11pt]{article} ...
5
votes
2answers
2k views

Portable MiKTeX Packages Management

I have already installed MiKTeX 2.9 (Not a portable version) in my computer. I have already had portable MiKTeX 2.9 in my USB. I want to use my portable version. But it lack of some packages. ...
4
votes
1answer
606 views

Matplotlib PGF images in subdirectory

I have a two-dimensional image plotted by Matplotlib using the PGF backend. It is stored in the figures subdirectory (since I have a lot of images and don't want to clutter up the main folder). As an ...
1
vote
1answer
1k views

Geogebra import into latex doesn't work

I created this file : \documentclass[10pt]{article} \usepackage{pstricks-add} \pagestyle{empty} \begin{document} \newrgbcolor{zzttqq}{0.6 0.2 0} ...
3
votes
1answer
245 views

subimport including wrong file

I am trying to learn the import package but I find it extremely unreliable - perhaps I am missing something? One case study I tried is as follows: Created 3 tex files: ./main.tex ./bla.tex ...
5
votes
2answers
511 views

subimport and includeonly

Say I have a document structured as follows. main.tex + ch1 - ch.tex - s1.tex - s2.tex + ch2 - ch.tex - s1.tex - s2.tex Here, *.tex are LaTeX ...
6
votes
2answers
196 views

How to use the import package with folders containing accented (non-English) letters in their names?

To illustrate my problem, suppose that you have the master file main.tex and a chapter called chapter.tex in a subfolder called folder. Both files use UTF8 encoding. Then, the following minimal code ...
2
votes
1answer
374 views

Nested directories - subimport and graphicspath

I'm using the package import for chapters of a document. This makes it possible for me to use relative paths when I call \input. It also adjusts paths when I call \includegraphics. It does not, ...
4
votes
2answers
2k views

Beautifully format text of an external document

I have some formatted long text files looking like this: f=50 k_max=420 Iteration Func-count min f(x) Procedure 0 1 7.07212e-09 1 2 ...
3
votes
1answer
1k views

Importing my TeX Template fails

I am trying to get the TeX template of my university into my LyX where I have written my thesis already before trying this and I am freaking out. The full template can be retrieved from ...
5
votes
1answer
2k views

Including figures relative to the path of the current document?

I am writing a paper simultaneously with my thesis; the paper will be included verbatim in the thesis (or at least, parts of it will). I am looking for a solution that allows me to update my paper ...
2
votes
1answer
165 views

import in \newcommand in my package produces an error

I have written and installed my own package gym.sty. In that package I defined \newcommand{\loadgym}{\import{sagegym}} since I need to execute some commands after \begin{document} for the package ...
6
votes
1answer
616 views

Compile a region in auctex with import package

Consider the three following (see below) files: test.tex is in the main directory, test1.tex is in the subdirectory ./test1/ and test11.tex is in the subsubdirectory ./test1/test11/ (see the directory ...
4
votes
2answers
3k views

Importing LaTeX table code into LyX

I create tables in a spreadsheet program, convert them to LaTeX code and then use an ERT to import into my LyX document. When I paste the LaTeX code the entire thing turns out very ugly looking. The ...
3
votes
2answers
455 views

handling href when importing separate standalone latex documents and assembling them into one document

This is a follow up on the question How to import separate standalone latex documents and assemble into one document I am using the package standalone to assemble many child latex files from ...
8
votes
3answers
522 views

How to import separate standalone latex documents and assemble into one document

I am not asking about \include or \input here. I know all about these. Here is the setup. I'd like to be able to build as standalone one of my HW reports which sits in its own folder. Then I also ...
1
vote
0answers
322 views

Relative paths in a subimport-ed file, when using pdfpages [closed]

Short version: a subimport-ed file has correct relative path when using \includegraphics, but incorrect relative path when using \includepdf. Long version: File a.tex is located in my main a ...
2
votes
1answer
2k views

How do I import a text file into Lyx keeping its formatting?

I apologize in advance if this question has been asked before. I am trying to import a text file, that contains my MySQL output, into the LyX document I'm working on. The text file contains tables ...
2
votes
1answer
695 views

Jabref — entries imported from jstor still marked as incomplete

When I import references from either the jstor website or through jabref front end, they all show up as red (i.e. incomplete). Specifically, "Journal title" is not present in the required field. The ...
3
votes
3answers
5k views

Lyx: can't import LaTex file

I'm trying to import this latex document into Lyx (version 2.0.2 on Ubuntu 12.04), but it fails and won't give any explanation about the error: Lyx: cannot convert file An error occurred while ...
8
votes
2answers
509 views

build dynamic documents from a Textdatabase

I need a dynamic solution to produce questionnaires from a database of questions which gets updated from time to time. I thought of LaTeX for set out the layout but the question is whether LaTeX can ...
3
votes
0answers
94 views

subimport and verbatim packages [closed]

The subimport in the import package does not seem to work with the importing commands in the verbatim package such as VerbatimInput. Is there a workaround or another package that works better? -js
0
votes
0answers
1k views

Clean import of LaTeX into LyX: environment instead of ERT [closed]

I am importing a LaTeX code into LyX. This code has multiple uses of amsmath environments (lemma, theorem etc.). After importing, all theese environments turn into ERT boxes in LyX. I was wondering if ...
0
votes
2answers
1k views

relative paths don't work without absolute path

I'm trying to automate pdftex to generate docs. I'm in some kind of hell where TeX assumes people want to use absolute paths or the working directory. I have the file main.tex. It imports several ...
1
vote
0answers
749 views

Migrating Indesign [closed]

I've been producing a technical book in Lyx. I've decided that for this work, I'ld be better off using Adobe Indesign. it need allot of complex layout/graphical stuff. Like timelines, sidebars, ...
10
votes
1answer
2k views

Usage of \include, \input and \import commands

Hans-Peter E. Kristians answer from Using \import correctly There are three ways to put subfile.tex file into main.tex: \include{⟨filename⟩} \input{⟨filename⟩} \import{⟨path⟩}{⟨filename⟩} It is ...
15
votes
2answers
11k views

How to use the import package?

I've read about the import package and am now trying to use it in my document, but I only run into errors. I have a main file named /ProjectPath/header.tex which loads all packages, etc. ...
3
votes
2answers
2k views

Combining Independent Latex Files

I have loads of latex files in a directory, each having (basically the same) preamble. That is, they use the same packages, the same documentclass, and they each define the same newcommands; there ...
6
votes
2answers
306 views

Import source code from URL

I have code snippets on my github account and I'd like to import the code from them directly into my LaTeX document via something like: \importtext{https://gist.github.com/xxxx} Is this possible? ...
49
votes
4answers
9k views

3-dimensional histogram in pgfplots

I have a simple 3d histogram which I want to import into pgfplots, e.g. using matlab2tikz or by hand. PGFplots does not offer 3d histograms. Is there an easy way to do this?
3
votes
1answer
295 views

Insert TeX code from another Beamer presentation (which uses PGF) into Lyx while composing new Beamer presentation

I'm struggling to insert the TeX code for an older Beamer presentation into one that I'm currently putting together using Lyx. The problem seems to be that Lyx doesn't recognize the package import: ...
6
votes
2answers
995 views

How to import ASCII coordinates to TikZ

I have a long file of Brazil coordinates like: (-3.43,-0.56) -- (-3.44,-0.56) -- (-3.44,-0.55) -- (-3.50,-0.55) -- (-3.52,-0.55) ... and I want to import then into a tikzpicture environment to use ...
3
votes
1answer
3k views

I'm having trouble with \includegraphics I'm using MacTeX

Firstly and fore-mostly I am a complete new comer to the world of LaTeX and so please do bear with me. I will try to be as accurate as I can but if you need any more info please let me know. All I ...
9
votes
3answers
14k views

Using \import correctly

I've got a main-file which includes the preamble. I then use \import to put together all chapters of my final document. When saving the main-file in another directory than the chapter-files I get the ...
1
vote
0answers
141 views

Run a library from a folder? [closed]

I'm struggling to get Tikz to run on my University terminal, for some as of yet unknown reason, and I don't have the permissions to install Tikz. I've emailed the 'computer help people' asking them to ...
1
vote
1answer
301 views

Getting \includeonly functionality with import package

I had problems compiling with the \includeonly \include system since I had images in the document form different subdirectories. For example the main file would be at /Main/MainFile.tex and the ...
3
votes
1answer
7k views

Problem importing .tex file into LyX — ampersands displaying in IEEEeqnarray

I received a .tex file from a user and tried to open this up in Lyx 2.0.2 on Win. After importing it into LyX, the document has ampersand characters everywhere in the equations as though LyX didn't ...