Questions tagged [external-files]
{external-files} is about external files included in a document, e.g., pictures via \includegraphics, or parts of a document via \input or \include. For questions about files automatically generated by LaTeX (.aux, .log, .out, .toc, ...) use {auxiliary-files}.
660
questions
0
votes
1
answer
255
views
Including monochrome TIFF [duplicate]
I have a monochrome TIFF (hand-drawn ornament) which I want to include in my book, but I want in not black-and-white, but pantone-and-white — the book will be printed in two colors.
What should be my ...
5
votes
1
answer
417
views
precompile molecules for faster compilation
I have something like one hundred of chemfig-drawn molecules in a single file, that I consider a sort of database. Compiling this file takes approximately five minutes. I'm going to write a report of ...
3
votes
0
answers
227
views
Setting Folder for Data pgfplots in LyX [duplicate]
I'm trying to get a figure in my LaTeX document, but I struggle to set the search-path
I use
\addplot[blue] table {invcum.dat};
from the example, however it keeps saying
! Package pgfplots Error: ...
2
votes
1
answer
281
views
Automated plotting with \input inside \addplot
I'm trying to draw some figures with externally generated data. I'd like to draw a simple line inside a tikzpicture using pgfplots like so:
\documentclass{article}
\usepackage{pgfplots}
\begin{...
24
votes
4
answers
3k
views
Best practices for publishing computer code with LaTeX?
I work a lot with MATLAB, and I want to enable the reader of my paper to easily reproduce my computations. I also want the pdf document to be self-contained, i.e., no hyperlinks to a webpage on which ...
1
vote
1
answer
513
views
Problem with subimport command in LyX
I have the following structure (folders in italics)
master.lyx
parts
mst
mstCh1.lyx
preamble
packages.tex
preamble.tex
p1
p1Intro.lyx
Each lyx file ...
2
votes
0
answers
541
views
pgfplotstable: typset csv with 2 or more header lines (eg. name, unit, comment)
I am exporting from Origin and get a Data.csv like this:
Short_Name1; Short_Name2
Long_Name1; Long_Name2
Unit1; Unit2
Comment1; Comment2
1,1; 2,0
3,5; 4,3
When I try to ...
3
votes
3
answers
4k
views
Add version number to document from file
I have been going crazy looking for a solution. Essentially, I need to add the version number of the document somewhere on the title page. What I want to do is have a file such as version.tex which ...
0
votes
3
answers
5k
views
How do I add/upload pictures into my Overleaf document?
How do I get pictures into my LaTeX paper I did on line in Overleaf? It says I need to make a new file? I have the pics in a folder as JPG but how do I upload them into the paper?
3
votes
1
answer
698
views
Write a value near a coordinate in a plot
I want to do it from a file, rather from inside the document like I do it now:
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
\begin{document}
\begin{tikzpicture}
\...
3
votes
2
answers
878
views
Rotating a table in a .tex file
I have a .tex file and I am trying to rotate it. I won't post the whole thing, but it's a table file:
\begin{table}[htbp]\centering
\begin{tabular}{l*{8}{c}}
%insert content here
\end{tabular}
\end{...
6
votes
1
answer
356
views
Why does LuaLaTeX's \IfFileExists fail where XeLaTeX succeeds?
I have a series of files that I've been compiling with XeLaTeX. I recently attempted to compile with LuaLaTex and it made a royal mess of things. I traced the issue to the use of \IfFileExists in one ...
2
votes
1
answer
156
views
How to have Kile interpret TeX code when file extension is not .tex?
To produce my figures, I often use Inkscape with its export in Pdf+LaTeX feature. It allows to create a PDF associated with a TeX file which contains the text. Such TeX files have the specific ...
6
votes
2
answers
870
views
How to get LaTeX to expand at the correct position?
I have a latex document which in the main part lists a number of "tasks" (for students to solve); to each task belongs a "script", however, all scripts are supposed to be printed in an appendix at the ...
0
votes
0
answers
233
views
Tex File naming convention [duplicate]
Is it possible to number tex files? I'm avoiding it now but, I would like to order a list of files (chapters in a book) so that each chapter is easy to find. Will this cause a problem? I have in mind:
...
0
votes
0
answers
207
views
inputenc -w- \scantokens \expandafter
Sorry to bother everyone again - this is a followup question to my earlier question:
Can openout handle a filename with spaces?
(I suppose I can combine this with the earlier question, but this ...
7
votes
1
answer
753
views
How do I make an attached non-pdf file display like a link?
I'm embedding an external file in my pdf with \usepackage{attachfile2} and \textattachfile[color=1 1 1]{description}{file.txt}. How can I make the text look the same as it would if I had used the ...
2
votes
1
answer
240
views
grffile package not working with includepdf when the command is in a "newcommand"
I'm able to include file names with spaces when I use the includepdf alone but when it's included into a newcommand , I cant seem to make it work.
\documentclass{article}
\usepackage{grffile}
\...
4
votes
0
answers
357
views
Can LaTeX automatically search directories and \include discovered files?
I have a master document that has a lot of entries like the following:
\include{entries/20141212-some-article/entry}
\include{entries/20141215-another-article/entry}
\include{entries/20141225-...
3
votes
0
answers
4k
views
Externalize Tikz figures with pdflatex [closed]
I want to externalize all figures I have created with Tikz in my document.
When I use the following code using TexShop 3.5 under OS X Yosemite 10.10.2,
\documentclass{article}
\usepackage{tikz}
\...
1
vote
2
answers
265
views
Converting a number into a character and then using it in a filename
I am trying to create a loop that will print out a list of image files. All of these image files have a filename like this: fa-x.jpg (where x is a character from a - h).
I've made a loop, but the ...
2
votes
1
answer
602
views
How to write authors of an article to the file?
I have a macro \writetitletofile which is write title of the article to the .dat file. How can I do the same with authors of an article. It should be noted that list of authors create with authblk ...
2
votes
2
answers
467
views
Applying log on a column read from file
I'm trying to plot some data from a file and I want to apply the natural log on the values from one column.
MWE:
\documentclass[a4paper,12pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1....
3
votes
0
answers
392
views
Include file with prefixed labels
Say I \include A.tex and B.tex in main.tex. Say A.tex has something labeled in it, \label{a}. Then I can just reference this in B.tex as \ref{a} without any problem. I don't want to be able to do this:...
1
vote
0
answers
90
views
How to load input file with given starting string but unknown end?
In the directory of my latex source there are input files: input_01.tex, input_02.tex, etc. It is very easy to load them with a for cycle. But how to load them if their names are: input_01_noteone.tex,...
4
votes
1
answer
5k
views
How do I define and use a directory name inside latex for media inclusion?
In Mac OSX, using latex, I have a long class file that includes various macros containing commands of the sort
\includegraphics[#5]{/Users/myname/Desktop/book/images/#2.eps}
\includemovie[#4]{/Users/...
7
votes
2
answers
583
views
Macro expanding to a file's contents?
How can I define a macro so that it expands to a file's contents?
5
votes
1
answer
1k
views
How to force stop on missing input file?
I noticed that if I mistakenly \include a file that does not exist, such as when mistyping the name of the file, the compilation continues with no error, no warning, and just a message 'No file ...
7
votes
2
answers
234
views
How to 'robustly' use file contents in command arguments?
I have the following code which sets up a XeLaTeX document (to be run with --enable-write18) and defines two commands, \showme and \prRaise:
\documentclass[a4paper,oneside]{memoir}
\usepackage{...
1
vote
0
answers
2k
views
LaTeX Figures in Scientific Workplace
I'm trying to use Scientific Workplace to compile a document that was written in LaTeX.
Everything is fine but the figures.
In the LaTeX file I wrote
\documentclass[10pt,a4paper]{article}
\...
8
votes
1
answer
552
views
htlatex requires graphic file extensions "jpg" while other latex variants don't. What to do?
I am trying to make a book that is published in both print and ebook format, and I would like one source for the book that works in both media. When I compile the following with xelatex it works.
\...
3
votes
1
answer
330
views
Tikz: clipping path from external file
I would like to use the data of an external file as the clipping path with Tikz. Something in the line of:
\documentclass[10pt,tikz]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\...
7
votes
1
answer
1k
views
Using .toc external files
I've a two volume book and I want to put both table of contents in both books. How can I do that? My idea was to use the .toc files, but I don't know how to use external .toc file. Any help. Thanks in ...
2
votes
1
answer
259
views
The code of figures at the end of file, indeed
This question is connected with How to put figures at the end of pdf file. As one can see from @cfr's and mine comments, I hoped, that it was a question, how to put a code of figures, wich are lying ...
0
votes
1
answer
890
views
Generate only aux file for external files
I use an external document by both \input-ting it and cross-referecing labels. It looks a bit like this:
\zexternaldocument*{external}
In picture \ref{external-link}, you see ...
\input{external}
...
0
votes
1
answer
46
views
Copying one file to another, while "expanding" some variables.
The use case is that I have a template LaTeX file, which I would like to be copied several times while replacing variables in it to some other variables.
Here is an example of how such a template ...
1
vote
0
answers
62
views
how to have an easily transferable LaTeX environment? [duplicate]
I've installed a number of sty TeX packages in my machine (under /usr/share/texmf/tex/latex/). I also have a number of LaTeX documents (tex files) in a github repository which I would like to be able ...
0
votes
0
answers
33
views
Serious trouble inserting image in MacTex [duplicate]
So I was using the online editor Writelatex and inserting images there is pretty straightforward. However, it's quite slow so I began to use MacTex.
I'm using the \usepackage{graphicx} but I guess ...
3
votes
1
answer
817
views
Hide \multicolumn's
I place the same table multiple times in my main document. For that, the content of the table is placed in a file called model-values.tex. On every \input, I alter the part of the table to be ...
1
vote
0
answers
309
views
File Inheritance Structure Possible?
Is it possible to make a kind of inheritance while working with big projects in LaTeX?
I think of a tree like inheritance where each child (which are tex-files) inherits the packages and commands of ...
2
votes
1
answer
577
views
LaTeX document containing csv data with empty fields
I am writing a form letter in latex. The addresses come from an external data source. The problem is that empty fields occur (quite frequently, actually) in the data source (see below). Therefore, ...
10
votes
2
answers
346
views
Reading in a conf file as a property list
I'm not worried about supporting sections, although a bounty would be given for doing so :)
Here's what I have so far, but it produces strange output for #2:
\begin{filecontents}{test}
\Property ...
1
vote
0
answers
1k
views
Tikz Externalize [closed]
I'm having some issues with externalising my tikz images.
I'm using the following preambel with -shell-escape enabled using lualatex:
\documentclass[print]{adelaide-mecheng-thesis}
% for splitting ...
4
votes
2
answers
182
views
Add content from an external file to the input tokens for parsing
I have a possibly very long sequence of tokens which is parsed by a macro. I would like to be able to read parts of this sequence from external files, if this is possible.
I made up an MWE for this ...
5
votes
0
answers
83
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}{}
\...
2
votes
0
answers
32
views
LaTeX; Refer in one document-class to chapters in another document-class [duplicate]
I want to include an article (with documentclass: IEEEtran) into a report (with another, company specific, documentclass). I want to refer in the article (myarticle.pdf) to the ten appendices of the ...
3
votes
2
answers
644
views
octopus-graph tikz/pgfplots
EDIT:I found a solution. See below.
i'm trying to get something like this:
I have small dots and big dots, and some small dots are connected to one big dot. I can "plot" all points with pgfplots:
\...
3
votes
4
answers
4k
views
pdflatex.EXE: Not enough room in an internal buffer
I've got a (hopefully) trivial problem. I have a python script that is generating the a .tex file for over 600 figures. The code automatically groups figures in up to 4 subplots depending on some ...
6
votes
2
answers
1k
views
Read integers from external data file to document programming code in LaTeX
I am attempting to document my MATLAB programming code in LaTeX. For
this, I use the mcode package, which defines the MATLAB lstlisting
environment. With the commands
\newcommand{\mfileMain}{main.m}...
18
votes
4
answers
4k
views
Get number of pages of external PDF
Is there a possibility to get the total number of pages of an external PDF file within a LaTeX document?
Assuming that there exists a PDF file test.pdf with 8 pages in the same directory my LaTeX ...