The tag has no wiki summary.

learn more… | top users | synonyms

45
votes
4answers
6k 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?
17
votes
1answer
12k views

How do I import a text file so that it becomes the body text of my LaTeX document?

I want to completely separate formatting and content creation. The articles I will write are all plain prose that requires minimum or zero LaTeX formatting. Also, the text file doesn't have the ...
16
votes
2answers
2k 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. ...
12
votes
2answers
7k 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. ...
10
votes
1answer
1k 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 ...
9
votes
2answers
10k 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 ...
8
votes
2answers
8k 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? ...
8
votes
2answers
490 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: ...
8
votes
1answer
5k 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} ...
8
votes
3answers
2k views

TikZ externalize → pdf → eps → Word import = ☠

I have a series of TikZ figures which I need to include in Word document (conference requiring Word submissions). Allowed format as EPS and TIFF. The figures are obviously vector graphics; they are ...
8
votes
1answer
442 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} ...
8
votes
1answer
2k views

How can I get the actual relative path using \import and \subimport?

I have structured my PDFLaTeX document in folders. Inside them there are .tex files, .PDF figure files. And all works using \import and \subimport commands from the Import package: Main/ |-- ...
7
votes
5answers
625 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 ...
7
votes
3answers
342 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 ...
7
votes
1answer
215 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 ...
7
votes
3answers
319 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 ...
7
votes
2answers
415 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 ...
6
votes
2answers
851 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 ...
6
votes
2answers
256 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? ...
6
votes
1answer
501 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 ...
6
votes
2answers
2k views

How to import a text file (with accent, special chars)

I got some text file (logs) that I want to import I saw this post: How do I import a text file so that it becomes the body text of my LaTeX document? which work, but all the special chars (UTF-8) are ...
6
votes
2answers
150 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 ...
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}{} ...
5
votes
2answers
1k 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. ...
5
votes
1answer
649 views

Replace spaces/tabs in an imported .txt file upon import?

I read the answers to this question: Import a text file into LaTeX document, and am now wondering if it's possible to let TeX replace tabs or spaces in that text-file with & for example if you ...
5
votes
0answers
32 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 ...
4
votes
3answers
402 views

Can i automatically load chapters and sections based on the filesystem?

I was interested in knowing if i can load chapters and sections of my book based on the filesystem. For example: Chapter 1/ Section 1.tex Section 2.tex Section 3.tex Chapter 2/ Section 1.tex ...
4
votes
1answer
198 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 ...
4
votes
2answers
1k 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 ...
4
votes
3answers
10k 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} ...
4
votes
1answer
86 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 ...
4
votes
2answers
435 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*} ...
4
votes
1answer
317 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 ...
4
votes
1answer
421 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 ...
4
votes
0answers
101 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 ...
3
votes
3answers
3k 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 ...
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 ...
3
votes
1answer
2k 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 ...
3
votes
1answer
73 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} ...
3
votes
1answer
153 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 ...
3
votes
2answers
2k 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
387 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 ...
3
votes
1answer
6k 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 ...
3
votes
1answer
55 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 ...
3
votes
1answer
92 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
1answer
133 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" ...
3
votes
1answer
435 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 ...
3
votes
1answer
262 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: ...
3
votes
1answer
71 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 ...
3
votes
1answer
830 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 ...