The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
0answers
24 views

Referencing BibTeX file on network drive (UNC)

Hello fellow typesetters. I've messed with bibliographies before, creating a bibliography file for every folder where there were .tex files that needed them. Recently though, I ventured to create a ...
1
vote
0answers
74 views

Warning about writing .cls files in texpad

I'm using texpad to typeset my documents. Everytime texpad compiles a document, a popup warning about denied writing permissions on the .cls file appears. Since I'm new to LaTeX, I do not know how ...
1
vote
0answers
51 views

Command to flush log file

For the tikzDevice, I want to communicate with a LaTeX process by sending input (generated LaTeX code) to its stdin and parsing output that is written using \immediate\write. In some cases I need also ...
3
votes
2answers
82 views

copy file using \write18 that works on both Windows and Unix

I would like to make an exact copy of a file during a TeX run. It is important that the copy be exact, since I am also comparing files and taking action depending on whether they have exactly the same ...
11
votes
1answer
197 views

Patched version of pdftex does not see what kpsewhich sees

I have TeX Live version 2013.30973-7 running on ArchLinux. I want to use a patched version of pdftex to create valid PDF/A-1b documents. I have an issue using the patched version after compilation. ...
10
votes
3answers
242 views

Read strings from file that contains the special character #

I need to read some values from data files as given in the sample code. The problem arises when the files contain # character. Then I get " ! Illegal parameter number in definition of \@xs@call " ...
2
votes
1answer
53 views

Is there a ConTeXt command to print the path of the file in which it is evoked?

I would like to put a URL-link in the output PDF of a ConTeXt file. It should point to the directory in which the ConTeXt file and its output PDF reside. Currently, I am using a shell script in my ...
6
votes
2answers
189 views

Read file without file extension from hidden directory

I'm trying to read some data from a file and use the following approach: \documentclass{minimal} \newcommand{\file}{./.dir/.testFile} \begin{document} \newread\myread \openin\myread=\file\relax \loop ...
4
votes
1answer
438 views

Extract all \note tags from beamer as a simple text file

There is a nice presenter tool I am using called pdfpc. Sadly it does not show notes I put in my latex presentation with \note{}. Is there a way to extract the content of all my \note{} tags to a ...
6
votes
1answer
291 views

LaTeX not finding my local files

I've tried following the advise in other postings here, but nothing is working and I'm now afraid I'm going to break something. I've tried setting: export ...
2
votes
1answer
853 views

How to compile LaTeX out-of-source while using bibtex?

I often use the out-of-source compilation on my LaTeX code to separate the generated files from the source files, thus I can conveniently commit my code to the repository. The command is like this: ...
1
vote
0answers
46 views

Loop to include multiple files [duplicate]

Possible Duplicate: How to iterate through the name of files in a folder I would like to include all the *.tex files from a directory in a document. To avoid me having to add manually the ...
5
votes
0answers
219 views

What are the forbidden characters in file name with XeLaTeX [closed]

I was wondering what are the forbidden characters in file name using XeLaTeX. I know that the forbidden characters for Windows files are \ / ? : * " > < | Also, I have found another character ...
2
votes
1answer
629 views

Escaping backslashes in command line

Issue resolved, please see end of question for details I am passing a file path as a parameter to a tex script, run by pdflatex on Windows. Here's an example of a command: pdflatex ...
0
votes
1answer
76 views

Reach another folder with \input

How do I reach a file in another folder when using \input? E.g. I have my main document frontpage.tex in a folder called main and a file chapter1.tex in a folder chapters. How do I in frontpage.tex ...
1
vote
1answer
677 views

Set a subfolder for \include(only)

Let’s assume a project with a main file main.tex including the chapter with \include. % main.tex \documentclass{book} \includeonly{one} \begin{document} \include{one} \include{two} \end{document} ...
4
votes
1answer
120 views

Essential files to run LaTeX [duplicate]

Possible Duplicate: Portable minimal distribution Which files are essential to run LaTeX? Is possible for example, make a copy of these files and also of the packages used in my document to ...
5
votes
3answers
234 views

How to trim the end of line character for each line read from an external file?

How to trim the end of line character for each line read from an external \jobname.list file below? Note that the real scenario does not use filecontents package to generate the list. I use a batch ...
7
votes
1answer
107 views

Reading an external file failed with dimension related errors

I want to read an external file one line per read and insert each line as an item. I failed to do so because of dimension related errors. How to solve it? \documentclass{article} \def\trimtok i{} ...
6
votes
2answers
302 views

\read: trailing spaces are removed

I'm trying to copy a (binary) file with LaTeX (mostly for the sake of it), but when I read a line, the trailing spaces are removed. The MWE, based on this TeX.SX answer: \edef\infile{infile} ...
9
votes
1answer
150 views

Can TeX detect a newline at the end of the file?

Is TeX able to distinguish beween a file containing, say, the single character a/ byte 97; and a file containing this same character followed by a newline marker (which is system-dependent)? I had a ...
1
vote
1answer
119 views

Filehook, with more included files

Based on my previous questions, I now have the following code (snippet): \usepackage{currfile} \usepackage{filehook} \usepackage{environ} \usepackage{amsmath} \def\Introduction{Introduction} ...
3
votes
2answers
452 views

Disable including of system files [duplicate]

Possible Duplicate: How can I safely compile other people's LaTeX documents? I've got a Linux server that is rendering LaTeX documents, I want to disable the access of LaTeX to system ...
2
votes
2answers
495 views

How to customize Tex/latex commands to perform system calls from shared libraries / dlls

Alright - let me make this simple and straight: How can I take advantage of the tex/latex parsing mechanism in a custom c/c++ application that need scripting/parsing support? I see two ways: ...
1
vote
1answer
251 views

Token for full path in Texmaker

I am configuring custom commands in Texmaker, I can use % as a token for the name of the file (minus the extension) but I cannot find an equivalent for the full path.
5
votes
1answer
2k views

Including all files within a directory [duplicate]

Possible Duplicate: How to iterate through the name of files in a folder Using \input{filename}, I can input a file canned "filename.tex". I have a directory containing all of the files I ...
6
votes
1answer
952 views

import input pgfplots with relative paths

The package import makes it posible to \input (and \include) a .tex document which itself \input (or \includegraphics etc.) stuff using relative paths. I was hoping that this also would work with the ...
5
votes
1answer
117 views

Read manuscript in to output

I want to put my source plain TeX file in the output of the same plain TeX file. As I remember coming through a macro, that can put a file's content in to the output, but only \input comes to mind. ...
15
votes
3answers
361 views

Include the file size of the generated pdf

How can I include the (approximate) file size of the generated pdf within a pdflatex document? I envision having to compile it three times: once to create the pdf, a second time to write the size to ...
8
votes
1answer
3k views

Link to file in the parent folder

I have a folder, say C:\example\paper with a bib-file C:\example\1.bib. I also have a tex file C:\example\paper\main.tex where I would like to put a link to 1.bib. I can put the whole path, of ...
9
votes
1answer
3k views

Including a relative path to a class file

I'm trying to set the documentclass type of a certain .tex file to be a class that is in the parent folder. However, I'm not sure how to include the path to the .cls file. I can write ...
12
votes
2answers
838 views

How to avoid automatic .tex extension in filenames?

I am in an mildly unfortunate situation in which, because of the way I prepared the files automatically, I ended up with a file to be attached but also another file with the same name but ending in ...
6
votes
1answer
489 views

What is the LaTeX filename length limit for images?

See Final Update below. I have some images with very long filenames and/or paths, and when I try to include them, my document appears to build fine, but when I try to open the PDF, it says the ...
5
votes
2answers
521 views

skipping the first line of a data file for pgfplotstable

I need to skip the first row of a csv file, which is auto-generated by some magic measurement apparatus. It contains its own filename as the first line. The second line contains the column names (no ...
20
votes
1answer
1k views

How to test if a directory exists

The command \IfFileExists works great to test is a file exists. Is there an equivalent to test if a directory exists? \IfFileExists does not seem to work for directories. \documentclass{article} ...
2
votes
1answer
397 views

TeXnicCenter 2 Alpha 3 deleting my .tex files

I am using TeXnicCenter 2 Alpha 3, and I'm experiencing a weird problem where it seems to be deleting my .tex files occasionally. I'm not sure this is the best place to ask, but I wasn't sure where ...
9
votes
3answers
2k views

Read arbitrary lines from file

Is there an easy way to read arbitrary lines from a file? For example "read line number 12" or "read backwards from last line to first line" or "read lines 1,3,5...".
3
votes
3answers
475 views

Checking if a PDF file is open

How do I check if the PDF file produced by LaTeX is currently opened by an application or not?
11
votes
1answer
297 views

Why does \jobname give asterisks/stars instead of spaces, and how do I fix this?

When I LaTeX a file named test 1.tex with the code \edef\temp{\jobname.txt}\show\temp, I get > \temp=macro: ->test*1.txt. This seems to work fine with LaTeX's internal commands, but if I then ...
5
votes
2answers
480 views

Open a file whose name start with a dot and other strangely named files?

The syntax of TeX's \openout command is rather simple: \openoutN=filename where N is a four-bit number, but what is filename? How do you open a file whose name stars with a dot? More generally, how ...
6
votes
1answer
347 views

Could you give me a working, dangerous LaTeX input file to test the vulnerability of my server?

I have an IIS web server on which I installed Miktex distribution. I host a site that allows users to submit LaTeX input codes. The server then compiles the input using pdflatex.exe to produce a pdf ...
8
votes
2answers
411 views

Checking whether a file is empty?

Well, the obvious way to do that is with \ifeof, but for some reason, I cannot do this right. I wrote \newread\reader \openin\reader=empty \relax \ifeof\reader\message{empty}\else\message{not ...
13
votes
3answers
885 views

How can I open a file in “append” mode?

Could not find anything in the TeXBook, but this could be just me. I guess it is always possible to open the file for reading, copy its content to another file, and then continue writing to that ...
14
votes
4answers
673 views

File copy without expansion

What is the command for file copy? I want to copy the contents of one file into another without any command expansion. The operative system would use copy source target I tried reading the contents ...
18
votes
4answers
4k views

How to iterate through the name of files in a folder

Assume I have many TeX files. For the sake of simplicity, also asssume they are in a single folder or directory. I want to input all files from within my main LaTeX document. Actually I can create a ...
4
votes
2answers
2k views

Cross reference between latex files

I am trying to get a tex file to read certain lines from a different text file. More precisely, in my database file $a.tex$ I have a long list. Now in a different file, I would like to have items with ...
11
votes
5answers
7k views

Graphicspath for MikTeX

Is there a way to specify a \graphicspath that includes all sub-directories? I know I could put all my graphics in a texmf tree, but I'd like to have them in another directory tree. As far as I can ...
13
votes
4answers
3k views

File input and output

Are there any LaTeX packages that can assist with reading and writing to files? I am trying to develop a solution to the following problem: 1) I am producing a long report regularly. Part of the ...