Skip to content

Influencing name of pdf file created on compilation #2588

Closed
@TryerGit

Description

@TryerGit

Hello,

Given main.tex, is it possible to create different pdf files (a) a.pdf or (b) b.pdf via vimtex depending on a variable defined in the source code main.tex itself, say like so:

\usepackage{ifthen} 
\newif\ifVersionA 
\VersionAtrue % output should be a.pdf
%\VersionAfalse % output should be b.pdf

Relevant (albeit dated) stackexchange discussion here.

Although the accepted answer there answers the question in the negative, subsequent answers seem to suggest some workarounds that influence the compiler command issued. See for instance this

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions