flap
flap copied to clipboard
Flattening LaTeX projects
To avoid compiling svgs during externalization, I have the following directive in my preamble: ```tex \tikzset{external/optimize command away={\includesvg}{1}} ``` That confuses `flap`, which says `ValueError: Unexpected END_GROUP '}' in file...
Hello, I use the following snippet as part of my manuscript: ```tex % Overleaf has an outdated inkscape version, try to work around it: % Inspired from https://tex.stackexchange.com/a/650621 \def\overleafStripPrefix#1>{} \def\isoverleaf{FF\fi...
Simple reproducer: ```tex \ifdefined\tikzexternalrealjob{} % This could be any conditional \else \makeindex \fi ``` Backtrace ``` FLaP 0.6.0 Traceback (most recent call last): File "/home/mcantan/.local/bin/flap", line 8, in sys.exit(main()) File...
I have the following file structure ``` main.tex image |___screenshot.png |___screenshot_not_the_one_I_want.png ``` And the content of main.tex is ``` \documentclass{article} \begin{document} \includegraphics[width=\textwidth]{image/screenshot} \end{document} ``` When I run `flap main.tex merge`,...
Below is the whole log: ```shell Traceback (most recent call last): File "/Users/shin/miniconda3/envs/latex_env/bin/flap", line 8, in sys.exit(main()) File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/click/core.py", line 782,...
I am using flap to flatten a fairly standard journal file. When I run the command `flap source.tex out.tex` I get the following error: ``` File "/home/shaunak/anaconda/envs/Python3x/lib/python3.6/site-packages/flap/latex/parser.py", line 153, in...
OS: Win10 Pro 64 bit FLaP version: 0.5.0 I used a normal TeXlive 2018 installation and then installed flap and click (both via pip). The Source-Code of main.tex and lit.bib...
``` 15:12 $ flap tex/main.tex compressed -v FLaP 0.5.0 File Line Column LaTeX Command ------------------------------------------------------------------------------- main.tex 6 1 \input{misc/header.tex} main.tex 13 1 \input{content/abstract.tex} main.tex 14 1 \input{misc/frontmatter.tex} main.tex 15 1...
See initial comments from [Issue 15](https://github.com/fchauvel/flap/issues/15#issuecomment-244601982) about how FLaP fails when an input directive is used within a user-defined command.
From @gro1729, [Issue 22](https://github.com/fchauvel/flap/issues/22#issuecomment-271934997): > I have to use Fonts of my company. Thus I have to compile with xetex or luatex. A Font-Declaration is defined by: ````latex \setmainfont[ Path...