The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
30 views

SASweave and Sweave.sty

I recently installed SASweave on a linux machine (RHEL 6 to be exact) for a group of developers, but they currently must copy a file called SasWeave.sty to their current project directory in order for ...
1
vote
0answers
158 views

Compiling tex file using pdflatex and cmd - strange behavior

I'm have a really strange problem here. I have a tex file which I compile to a pdf file using the pdflatex.exe which comes with MikTeX. The Problem is now that it seems a problem when the tex-file ...
1
vote
0answers
63 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} ...
0
votes
0answers
63 views

How to deal with/escape whitespace in file path for bibtex?

I am passing a file path to bibtex via the command \bibliography{/Users/MyName/Dropbox/Bibliography Both/bibo} However, with that whitespace in place (that one's silly just for demo purposes), ...
6
votes
2answers
52 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} ...
1
vote
1answer
24 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 ...
0
votes
0answers
62 views

LyX: automatically create backup directory?

I can setup LyX to put backup files into a subdirectory of the current directory by going to Tools > Preferences > Paths and setting "Backup directory" to .backup. However, it then complains if the ...
7
votes
5answers
301 views

Read number from file

I have a file called _runs.ini. Depending on its content, the document is compiled differently. I tried to read the content and executed a \ifthenelse-command without success. Here's my MWE: ...
12
votes
1answer
424 views

Is it possible to compile hidden files?

(This question may make sense only in Linux.) I have the following simple file called .main.tex. Note that it is a "hidden" file because of its name. \documentclass[]{article} \begin{document} ...
2
votes
0answers
62 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
127 views

Warning about writing .cls files in texpad [closed]

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
64 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
122 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
248 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. ...
12
votes
3answers
358 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
58 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
223 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 ...
5
votes
1answer
657 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
340 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
1k 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
49 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
247 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
788 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
94 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
990 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
136 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
257 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
108 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
366 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
155 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
142 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
543 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
578 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
293 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.
6
votes
1answer
3k 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 ...
7
votes
1answer
1k 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
379 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
4k 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 ...
10
votes
1answer
4k 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
1k 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
564 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 ...
6
votes
2answers
734 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
416 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 ...
10
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
538 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?
13
votes
1answer
357 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
514 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
360 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 ...