Questions tagged [extract]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19
votes
3answers
3k views

How is a mathematical formula represented in PDF?

If I compile a .tex file to a PDF, how will the PDF encode a mathematical formula like f.ex. the integral below? Is it a bitmap? Or how else is it encoded? And how can I extract the formula from a PDF ...
5
votes
1answer
1k views

How to design LaTeX form with user input for data extraction?

Assume you have the following form in PDF ouput/equivalent in Fig. 1. I am thinking how to design the LaTeX form well enough for good data extraction (and eventually seeding into PostgreSQL database)....
5
votes
1answer
78 views

Is it possible to extract a cell value from a tabular array?

In a documentation application, where the version history of the document is listed in a tabular environment, I'd like to be able to silently extract the value of the last version number supplied, to ...
5
votes
0answers
92 views

How can I produce s separate PDFs for each one of my floats, when their code isn't self-contained

I've written this document (say it's an article) with a bunch of float - figures and tables. Some of them are just \includegraphics, so the figure essentially exists outside as well inside the ...
4
votes
0answers
1k views

Extract equations from a pdf that is compiled using Latex [closed]

Is there a way to extract math equations and figures from a pdf file that was compiled using Latex. Thank you so much
4
votes
0answers
78 views

extract package: stop extraction at specific point

I use the extract package to extract an outline from my main document. I don't want anything of the appendix included in the outline, so I'm searching for any way to set the active option to inactive ...
3
votes
2answers
79 views

Mark/select pages for later extraction

I have a working, fairly complex setup to create a large-ish document (> 200 pages). I would like to create a "preview" of selected parts of the document. There are numerous questions about how to cut ...
3
votes
3answers
472 views

How to extract a series of text not in an environment, but with defined commands enclosing them

Under Windows 8, I am using R and the knitr package in RStudio with an .Rnw script. My regex skills are passable, but only in R. My document has about thirty pages with a different text section at ...
3
votes
1answer
272 views

using regex to extract two values (send to macro variables) of unique multiple occurences

I read several key values from a document with bible passages written in spanish like this 1 Corintios 2:4-5; Mateo 15:1-10;Salmos 118:16 I want to extract the citations in each reference (could be ...
2
votes
1answer
82 views

Extracting elements from a tex file

I would like to extract the contents of various latex commands, e.g. section chapter caption sidenote, etc from a .tex file. These elements would eventually end up in a CSV file chapter, chapter 1 ...
2
votes
1answer
138 views

Combine extract and tcolorbox

I was formatting my class notes and used \tcolorboxenvironment from the tcolorbox package with proof from amsmath for a new formatting for my proofs. This is the code \documentclass[12pt, a4paper, ...
2
votes
1answer
137 views

Accumulate contents of an environment

I'd like to extract and duplicate the contents of several rather arbitrary environments and repeat them at the end of my document. The extract package doesn't work for me because the environment ...
2
votes
1answer
66 views

Extracting theorems into images

Is it possible to automatically export all theorems to single files, say PNG or other image formats?
2
votes
0answers
46 views

Is there a way to create a database and extract data from it through a command?

I have looked up packages such as datatool, but I am not quite sure if they would be able to perform this function. The basic idea is that I would like to have a database similar to a bibtex file, ...
2
votes
0answers
76 views

Extract all graphs from a presentation to external file

I often use the extract package to automatically generate an external file with all the url of a Beamer presentation using \begin{extract}...\end{extract} outside frames and it works well. However my ...
1
vote
1answer
39 views

extract two 2 A5 pages from 1 A4 page

I have a pdf with 14 A4 (Landscape) pages, each of which consists of 2 A5 (Portrait) pages. I need to print this for an old lady whose sight is somewhat impaired. So I need to enlarge the text so that,...
1
vote
1answer
30 views

Strange error of compilation with beamer, extract and \hyperref package

I noticed a strange error of compilation. After multiple tests, I noticed url and \href{}{} from hyperref package systematically generated the following error main.tex, line 31 Runaway argument? ...
1
vote
1answer
240 views

Extract Package question: Not present \Sectionformat statement is extracted

I use the solution shown here (thanks to Mike Renfro!) to extract a synopsis from my LaTeX documents. Sadly I am struggling with the output of the headings. Basically the problem is that the extract ...
1
vote
0answers
62 views

Automatically extracting files from archive before compilation

I've got a LaTeX project in a Git repository which is being worked on using both TeX Live (Linux) and MiKTeX (Windows). The project has a very large number of \includegraphics[...]{...} statements for ...
1
vote
1answer
538 views

Statistical Analysis of bibtex file: Extract fields from bibtex or convert to e.g. csv?

OS: macOS, Sierra I want to analyse a large (5000 entries) bibtex file in R statistically to look at the years published, Journals, Authors, ... There is an R package for reading bibtex files, but ...
0
votes
1answer
109 views

Prevent recursive extraction with the `extract` package

I am trying out the extract package to save parts of my document that I later want to repeat as a summary at the end. I am hitting a recursion problem: If I include the output of the extraction in ...
0
votes
1answer
42 views

Illegal parameter number

This answer describes a neat way to parse and extract a latex file. It works perfectly on my laptop and desktop (both ubuntu 18.04). However, when I run the commands in a docker container, I get the ...
0
votes
0answers
28 views

Extract a table-float from a TeX-typeset PDF?

I have this article which was near-certainly created with LaTeX. One of its floats is a table, and I would like to extract it from the PDF, i.e. obtain a PDF with just that figure (excluding the ...