Questions tagged [extract]
The extract tag has no usage guidance.
37
questions
0
votes
0
answers
12
views
Only printing content in a given environment
I have a text with some parts framed with mdframed and I want to show only these parts (my question is basically the opposite of this question). Using the package extract you can create a new file ...
0
votes
1
answer
52
views
Extract some sections from a external tex?
I have a large source tex, structured by sections, and I need to extract a lot of them to a new file. The goal is doing the same as the function \input, but only with some selected sections, not the ...
1
vote
2
answers
64
views
Extract text part from inside a definition/command
The xstring package allows for
\documentclass{article}
\usepackage{xstring}
\newcommand{\aftersometext}[1]{\IfBeginWith{#1}{some text}{\StrBehind{#1}{some text}}{}}
\begin{document}
\def\inputtext{...
1
vote
2
answers
90
views
Preserving Cross-references links in an extracted PDF
When I write my lectures, I write them in one document such as this mwe
% document name : main.tex
\documentclass{scrbook}
\usepackage{etoc}
\newcommand{\chaptertoc}[1][Contenu du chapitre]{%
%\...
1
vote
0
answers
35
views
How to extract only the body of a tex file, removing the preamble? [duplicate]
I want to extract only the body of a tex file (say, mwe.tex), and reuse that body as a child file of another tex file by \input. To do so, I have to remove the preamble and \begin{document} and \end{...
0
votes
0
answers
39
views
Extracting specifc items from enumerate to a new tex file
I have created a book using LaTeX in the below given format
\documentclass[ 11pt]{book}
\usepackage{multicol}
\usepackage{tikz}
\begin{document}
\chapter{Chapter}
\begin{multicols}{2}
\begin{...
2
votes
1
answer
83
views
How to extract specific and delimited parts in .tex file for Flashcards?
I am new to LaTeX. I want to create study guides/books for preparation of my maths exams. But I need to create Flashcards as well (in Anki etc.).
So what I want is to be able to extract from my long ...
3
votes
1
answer
165
views
"extract" package causes unfinished group
I've noticed errors like this when using the extract package:
(\end occurred inside a group at level 1)
### semi simple group (level 1) entered at line 5 (\begingroup)
This seems to happen even with ...
2
votes
0
answers
74
views
Alternative Text for Copy and Paste / Machine Reading
I'm trying to have the best of both worlds and use a nifty 2-column latex resume template (altacv), while also creating something that parses nicely via CTRL+A, CTRL+C, CTRL+V or when fed into an ...
0
votes
1
answer
86
views
Genealogytree export to SVG file [duplicate]
I have a simple family tree defined in Latex and package genealogytree:
\documentclass{article}
\usepackage[all]{genealogytree}
\begin{document}
\begin{tikzpicture}
\genealogytree[template=formal ...
0
votes
2
answers
399
views
Get `\tau` from libertine font
Extracting a single symbol from a certain font looks really sophisticated and it seems like each font is needed its own approach.
Now I would like to extract the single \tau from \usepackage{...
0
votes
1
answer
546
views
Import 'u' and 'v' from txfonts
Unfortunately, I am not so good at extracting single characters from the other fonts, so I would like to ask for some help.
I need to import 'u' and 'v', that are used in math mode, from txfonts
I ...
2
votes
1
answer
678
views
Calculate percentage of quotes in a latex document?
I need to figure out how many percent of the text in my latex document which consists of quotes (in block quotes, particularly). I have wrapped all quotes in the block quotes command:
\begin{quote}
\...
2
votes
2
answers
412
views
extract package and macros that use extract environments
I have a number of (long) documents from which I want to extract all of the tikzpicture environments into a separate file.
The extract package seems the right place to start, but there's a problem: ...
0
votes
0
answers
256
views
Translate English TeX to Chinese precisely
This is essentially the question of how to locate changeable text content in the TeX file. Does LaTeX have certain rule to separate the commands and text? By the way, can these text be classified into ...
0
votes
1
answer
149
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 ...
2
votes
2
answers
2k
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
0
answers
84
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, ...
1
vote
1
answer
405
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,...
0
votes
0
answers
49
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 ...
1
vote
1
answer
83
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?
...
6
votes
3
answers
323
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 ...
2
votes
1
answer
155
views
Extracting theorems into images
Is it possible to automatically export all theorems to single files, say PNG or other image formats?
19
votes
3
answers
5k
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 ...
3
votes
2
answers
320
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 ...
1
vote
0
answers
144
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 ...
2
votes
1
answer
296
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, ...
6
votes
0
answers
3k
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
7
votes
1
answer
4k
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)....
3
votes
1
answer
317
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 ...
3
votes
1
answer
1k
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 ...
6
votes
1
answer
460
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 ...
0
votes
1
answer
165
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 ...
2
votes
2
answers
281
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 ...
4
votes
0
answers
121
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
3
answers
551
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 ...
1
vote
1
answer
653
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 ...