-
Started using TeXiFy a few days ago after about 10 years with TesXstudio. Looks like you have done a great project! When compiling code listings with minted.sty I observe the Pygments [file].pyg being written to auxil folder in IntelliJ IDEA Ultimate. However, by default TeXiFy seems to require compiling the .pyg file to the src folder before final compilation to the out folder so exits after a "Could not find file" notice. My search-fu didn't discover a solution. Is there a setting to set the folder for .pyg pre-processing? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
I just want to point out that if minted does not support using an However, as essentially TeXiFy is one big workaround for LaTeX problems anyway, there are of course plenty of solutions :)
A full example would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Thanks for reply. A, hopefuly helpful, assistive philosophical comment from a systems architect with 50+ experience in digital development... when dealing with child projects that rely on parent project packages, it is NEVER the parent that's at fault, it is a misunderstanding. Minted.sty package has successfully been around a long time! ;) If a long-term user of Latex IDE's like me is considering moving to a new product it has a lot of goodness, but always some wrinkles for a while. I accept it may be my misunderstanding, being new to product. :) But... Example output...
Compile log extract command...
Compile log extract exception...
Compile process... However, this log file output may be of concern...
It seems the instruction prior to pygmentise instructions has sets a folder path that is then not returned to project root. This made me think there should be some project setting. For the avoidance of doubt, I set the relevant output folder in Thanks for link to auxilliary folder. David Carlyle is always right! He's a Latex core author and co-writer of the Latex book. :) I notice other developers have had issues: http://joonro.github.io/blog/posts/org-mode-outputdir-minted-latex-export/ FWIW, if I copy the .pyg file from auxil to src then recompile, it works. HTH... :) |
Beta Was this translation helpful? Give feedback.
-
To help me work out a solution, do you have Texify settings for code formatting you can share from the university? |
Beta Was this translation helpful? Give feedback.
-
Okay, question resolved by setting Latex minted.sty path, for example \usepackage[outputdir=../auxil]{minted}. Minted.sty relies on Python Pygments package, and it's intermediate-stage auxilliary output file during compile. The process: load Latex packages, begin compiling, compile code fragments with Minted package into an intermediate compile file .pyg<...>, collect the file during PDF output, complete PDF output processing. If the intermediate .pyg<...> is not in the expected folder a PDF output exception will occur. Compiling code with Latex minted.sty package conforms to a normal folder structure. Default TeXiFy plugin settings does not--- it conforms to IntelliJ IDEA Ultimate default structures, which it is inevitably bound to comply with but can be altered in IDEA settings. Accordingly, when TeXiFy IDEA plugin compiles it seeks a .pyg<...> file in the wrong place. By default, here is the compiled structure for the simple MWE below... Using Latex MWE...
It produces exception...
That is correct. The .pyg<...> file should NOT be searched for under \src folder, it is in \auxil folder. By changing the output folder with the correct file path when loading minted.sty, the compile process will seek the .pyg<...> file in the correct place... For the avoidance of doubt, I have not experienced this problem in Latex IDEs like TexStudio over the last 10 years. One can understand how it occurs in modern/framework approaches to development that rely on rigid file hierarchies. Although wasting significant time (to me) on this "default configuration" issue I am so far impressed by TeXiFy plugin within an IntelliJ IDEA environmnet. If Latex writers become aware of it I recognise that products like TeXstudio may have had their day. Thanks for assistance! HTH... |
Beta Was this translation helpful? Give feedback.
Okay, question resolved by setting Latex minted.sty path, for example \usepackage[outputdir=../auxil]{minted}.
Minted.sty relies on Python Pygments package, and it's intermediate-stage auxilliary output file during compile. The process: load Latex packages, begin compiling, compile code fragments with Minted package into an intermediate compile file .pyg<...>, collect the file during PDF output, complete PDF output processing. If the intermediate .pyg<...> is not in the expected folder a PDF output exception will occur.
Compiling code with Latex minted.sty package conforms to a normal folder structure. Default TeXiFy plugin settings does not--- it conforms to IntelliJ IDEA Ultimate defaul…