Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support running code before compiling the main file #3471

Merged
merged 5 commits into from
Mar 6, 2024

Conversation

PHPirates
Copy link
Collaborator

@PHPirates PHPirates commented Feb 28, 2024

Fix #3040

Summary of additions and changes

  • Allow running LaTeX before running the main file. There are certainly nicer ways to do this but I want to save that for the new run config

How to test this pull request

\documentclass{article}
\usepackage{etoolbox}

\providecommand{\waarde}{true}
\newbool{binair}
\setbool{binair}{\waarde}

\begin{document}
    \ifbool{binair}{waar}{onwaar}
\end{document}

then put \newcommand{\waarde}{false} in run config

  • Updated the documentation, or no update necessary
  • Test on Windows
  • Fix latexmk
  • re-add 'compiler arguments' label

@PHPirates PHPirates enabled auto-merge March 6, 2024 07:21
@PHPirates PHPirates merged commit c5a6244 into master Mar 6, 2024
11 checks passed
@PHPirates PHPirates deleted the command-as-main-file branch March 6, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom LaTeX commands / defintions for pre-insertion to the file
1 participant