IguanaTex icon indicating copy to clipboard operation
IguanaTex copied to clipboard

Workflow suggestion: edit LaTeX file somewhere else (Load file)

Open Splines opened this issue 7 months ago • 8 comments

I am aware that there is the Open in external editor command. However, consider the following workflow I'd like to use:

  • I have an already-existing LaTeX project somewhere with custom definitions and a long preamble included in the main.tex file.
  • I create a main.pptx.tex file next to the main.tex file where I remove all the \input{} commands to my sections and stuff like tableofcontents. In the end, I might have something like the following left. Note that the \input{preamble} refers to the file preamble.tex file residing next to the main.tex file.
\documentclass{article}
\input{preamble}
\input{defs}
\input{prettify-math}
\pagestyle{empty}
\begin{document}

Let $\epsilon > 0$.

\end{document}

  • My preferred workflow would be to have this main.pptx.tex file as default file path in IguanaTex (also see issue #66). Ideally, I wouldn't even have to click on Load File. Instead, I could just have one shortcut, to read this files content and insert it as shape in PowerPoint. This way, I could quickly paste parts of my already existing LaTeX project into this main.pptx.tex file and use all the packages already defined in the preamble.

Challenges/Wishes

  • [ ] Loading a file would also have to instruct the LaTeX compiler where the base directory is, such that relative imports such as \input{preamble} are correctly resolved.
  • [ ] Use the same file path to main.pptx.tex as default when generating (see issue #66).
  • [ ] Don't require users to click on Load File.

Splines avatar Jul 13 '24 15:07 Splines