Pre-build script support #11894
              
  
  Closed
              
          
                  
                    
                      jparisu
                    
                  
                
                  started this conversation in
                Feature Requests
              
            Replies: 1 comment 1 reply
-
| You mean pre and post render scripts? And profiles? 
 What exactly is not covered by those features? Note that if you want to handle LaTeX compilation yourself, then ask for that by setting  | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I would like to make some complex variations over my project depending on the profile used to render. So far it is supported to make something visible or not, but I would like to do more "intelligent" stuff like changing some words or reorder things.
Let's say, for example, I would to add the word
TOPto every chapter title when I use profile "top".In formats that render to
.htmlthis could be handled by customizing a.jsfile. But when rendering a document to.pdfthis kind of behavior is not possible to replicate inside quarto (outside quarto I can always create a over-script that make the modifications over the source files and call render).Also, these changes could be also applied to the intermediate
.texfiles auto-generated, instead of the source ones.Describe the solution you'd like
Introduce a new hook, such as
before-buildorafter-latex, that allows users to specify scripts or commands to be executed before starting the process, or immediately after the LaTeX file is generated and before the final build process commences. This hook would enable users to perform tasks like custom LaTeX modifications, additional formatting, or integration with other tools.Beta Was this translation helpful? Give feedback.
All reactions