Questions tagged [catchfile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
21 views

Force catchfilebetweentags to fail upon missing tag

When moving code around different files during refactoring it would be nice if catchfilebetweentags could raise a compilation error when the target tag does not exist. At the moment it silently ...
1
vote
1answer
49 views

Is catchfilebetweentags compatible with endfloat?

I am using catchfilebetweentags to add figures to a document as described here. I get an error when additionally using the endfloat package. Here is an example: Main file: \documentclass[11pt]{...
2
votes
1answer
73 views

Catchfilebetweentags not working

According to the description of catchfilebetweentags package command \ExecuteMetaData*[<file>]{tag} should do the same job as \ExecuteMetaData[<file>]{tag} but also ,,uncomment'' comment ...
1
vote
1answer
26 views

Problem inserting data in table using multiple files with catchfile

I have multiple data from different files that I want to use in the body of tabular environment. I saw a solution here, but the method only works for one such file only. If the following was done \...
0
votes
0answers
28 views

Write text only if Execute Metadata is not empty

I use the catchfilebetweentags package to get specific content from a common .tex file. MWE for the file where all content is stored (called master.tex): \documentclass[]{article} \usepackage{...
4
votes
2answers
145 views

TikZ: colors stored in matrix with coordinates inferred

I'd like to use data stored in an external CSV file to fill nodes inside a tikzpicture matrix. If my data is stored as x/y/z, I can write the following loop (put together from this and this): \...
2
votes
0answers
53 views

Read out text file until first empty line is found [closed]

Im currently writing a manual for a package and wanted to include parts of a Matlab file. I was able to display the whole file with the listings package but my goal is to only display the first part ...
1
vote
1answer
42 views

Excluded `\marginpar{}` imported into another file fails to compile

This is another follow up question based on this (using an altered MWE from this answer) Situation I am importing several parts of a file into another one (a summary-excerpt). This is done using the ...
6
votes
1answer
170 views

Conflict between catchfilebetweentags and a kind of arrow from xypic: argument of \next@ has an extra }

I'm using the solution from https://tex.stackexchange.com/a/4952/1403 to input a part of file.tex into another file. But I'm getting this error: at the line \ExecuteMetaData[file.tex]{tag}. Here's ...
3
votes
1answer
91 views

Missing spaces when importing parts of other file

This question is a follow up and based on this question (using an altered MWE from this answer) Situation I am importing several parts of a file into another one (a summary-excerpt). This is done ...
2
votes
1answer
395 views

Compile error with catchfilebetweentags

I tried to test the package catchfilebetweentags with the following minimal example, but get a compile error. What's wrong here and how to fix it? Contents of catch_main.tex \documentclass{article}% ...
0
votes
0answers
65 views

.tex file with catchfilebetweentags macros expanded

I have a .tex file, say original.tex, where I have imported snippets from several other files using the \catchfilebetweentags command. For archiving, I wish to produce a version of original.tex that ...
3
votes
1answer
66 views

Result of Catchfile doesn't work inside a tikzpicture environment [duplicate]

This is a follow-up to this question. I am trying to get points to be graphed using data from an external file. The vertical coordinates are countries, and the horizontal ones are years. For this to ...
3
votes
1answer
95 views

Figure problem with catchfilebetweentags

This question is a follow up and based on this answer by touhami Situation I would like to create an excerpt from a script that I have TeX'ed as a compendium of the most important statements (...
3
votes
1answer
122 views

Import several parts of file at once

As a follow up to this Question Situation I would like to create an excerpt from a script that I have TeX'ed as a compendium of the most important statements (theorems & definitions). I seek to ...
3
votes
1answer
545 views

“\input only part of a file” and keep numbering

I would like to create an excerpt from a script that I have TeX'ed as a compendium of the most important statements (theorems & definitions). The question \input only part of a file has an ...
6
votes
1answer
1k views

XeLaTeX and ifplatform/catchfile (loaded by “minted”): Errors on compilation [closed]

FOR THE RECORD I was unable to test any of the solutions provided, as I changed my main system last year. After that, no more problems arose. I suspect the old system had problems with the hard drive....
1
vote
0answers
118 views

Is there a way to input part of a file that includes sagetex?

I am trying to build a sort of jumbling program for Tex Files. Specifically I want to randomly order problems on quizzes/exams that are generated. I have gotten most of the work done, but I am left ...
4
votes
1answer
121 views

catchfilebetweentags error with multicol

I am using the catchfilebetweentags library to store equations in an external file and then import them into my document. This is useful when you need to use the same equation in multiple documents. ...
4
votes
0answers
112 views

How to import multiple fragments of file labled with the same label?

I want to make include of labled part of file. I need something like catchfilebetweentags but with the support of multiple usage of the same lable. Catchfilebetweentags include just the first ...
10
votes
2answers
262 views

Workaround to make catchbetweenfiletags work with lualatex

I recently discovered that a basic example of the package catchbetweenfiletags doesn't work with lualatex (while it works with pdflatex). What follows is the MWE. Do you know if there is workaround ...
0
votes
1answer
514 views

Replacing placeholder text in LaTeX \input file

I am using the Dia graphics editor and exporting my diagrams to TikZ code. I am trying to address Dia's inability to easily typeset formulas e.t.c. by using LaTeX for this part. Unfortunately that ...
3
votes
1answer
100 views

catchfilebetweentags bug with \verb command

With example \RequirePackage{filecontents} \begin{filecontents*}{main.tex} %<*example> \verb|This is an example| %</example> \end{filecontents*} \documentclass{article} \usepackage{...
4
votes
1answer
150 views

Make catchfile work with pgffor's foreach

Consider the following MWE, extracted from my solution to this question: \begin{filecontents*}{demolist1.dat} 1,2,3 \end{filecontents*} \begin{filecontents*}{demolist2.dat} {1,0,2},{0,3},{1,1} \end{...
2
votes
1answer
238 views

Specifying a letter class \address from an external file using catchfile package

I'm working with the letter class, and have created a custom .cls file in which most formatting of a letter is taken care off. From a .tex file used to produce the letter (or call, as I may have ...
7
votes
2answers
681 views

Why does \ExecuteMetaData break my paragraphs?

I have a lot of content to assemble in several different ways and would like to use excerpts from one file in another. I have specified: \usepackage{catchfilebetweentags} I then have an external ...
7
votes
1answer
729 views

Formatting code fragments extracted from file with minted

I would like to use the catchfilebetweentags package to grab code snippets from a source file and use minted to highlight them. Imagine I have the following in program.scala: //<a def ...
6
votes
2answers
416 views

How can I use `catchfile` package to gobble first characters on a line

When using the fancyvrb environment Verbatim, you can gobble the first n characters of each line before printing it out. I'd like to be able to do something similar, but not via verbatim. In the ...