The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
18 views

Find files in subdirectories to use with \input

Is there a way to have TeX find all files ending on .tex in subdirectories of a certain directory to be used as \input? In my document I would like to include a large number of files from a ...
1
vote
0answers
27 views

How I recover the tex file when computer locks? [closed]

I was doing a report in latex, which had saved in a folder on Macbooks and suddenly he blocked and had to force output. When I started the computer the tex file had disappeared! I do not know what to ...
0
votes
0answers
80 views

How to upload a PDF file on share LaTeX, an online LaTeX editor?

I am using share LaTeX, an online editor, to complete my project report. I want to know how to upload a PDF file. I want code for it.
1
vote
1answer
65 views

Read a text file by delimiter not by line break

I would like to populate a table, which I created in my LaTeX document, using iterating over cells of a text file. In order to read the text file I use this code. \newread\data \openin\data = data ...
1
vote
3answers
822 views

What's Happening With My Path After Upgrade to El Capitan?

I've tried everything I could find (within good reason) regarding how I should proceed in making my TeX files compile again and nothing works. After hunting it down in the computer, I have found that ...
0
votes
0answers
64 views

XeLaTeX --shell-escape loses operating system commands output

A serious problem has been nagging me since I installed TeX Live 2015 in my computer with Xubuntu 15.04. It all started with this question. From time to time, whenever I use XeLaTeX to typeset ...
3
votes
1answer
59 views

How avoid “\T1\ss ” as output from \immediate\write and get ß?

\usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[ansinew]{inputenc} ... \newwrite\outfile \immediate\openout\outfile=\jobname.txt % aßbc is a replacement for a long german text-block, ...
4
votes
3answers
352 views

LuaLaTeX : write latex “commands” to file

I made a randomly chosen quiz machine using LuaLaTeX and beamer for audience part that produce a pdf containning one frame per question, one slide per second to show the count down: it make a pdf with ...
1
vote
0answers
99 views

File keeps reverting to previous version

To prevent all of my files from having a lot of \usepackage{...}'s and such in the top of the document, I've made my own .sty file. I've placed the file in the /Program Files ...
20
votes
2answers
31k views

Install LaTeX on Mac OS X El Capitan (10.11) [closed]

How do I install MacTex or another LaTeX distribution? Even after installation, LaTeX commands like latex, pdftex or lualatex are not found, and /usr/texbin/ doesn't exist. Even worse, commands ...
2
votes
0answers
67 views

Slow compilation without sudo [closed]

With any *.tex file, even with almost empty template, tex, latex, pdflatex commands takes ages to compile it. strace shows excessive amount of stat calls to all the files in my home directory, which ...
0
votes
0answers
41 views

\graphicpath and FAT system [duplicate]

Well, for some reason that I will try to find out later, my TeX Live under Linux doesn't work anymore and I had to go through windows emulated system. The file I work with include a \graphicspath ...
1
vote
1answer
57 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
163 views

Compiling tex file using pdflatex and cmd - strange behavior [duplicate]

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 ...
2
votes
0answers
101 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
222 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
65 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
29 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 ...
7
votes
5answers
366 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: ...
14
votes
1answer
509 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
121 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
208 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
98 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
181 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
335 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
542 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
64 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
290 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 ...
6
votes
1answer
1k 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
464 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
2k 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
50 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
288 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
1k 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
109 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
1k 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
161 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
274 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
114 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
455 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
165 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
166 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
748 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
675 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
342 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.
7
votes
1answer
4k 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 ...
9
votes
2answers
2k 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
399 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 ...
10
votes
1answer
7k 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 ...