You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Writerside/topics/Run-configuration-settings.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -92,9 +92,10 @@ _Since b0.6.6_
92
92
93
93
See [https://tectonic-typesetting.github.io/en-US/](https://tectonic-typesetting.github.io/en-US/) for installation and more info.
94
94
Tectonic has the advantage that it downloads packages automatically, compiles just as much times as needed and handles BibTeX, but it often only works for not too complicated LaTeX documents.
95
-
96
95
It also has automatic compilation using `tectonic -X watch`.
97
96
97
+
There is some basic support for a `Tectonic.toml` file, including inspection support (missing imports, for example) for multiple inputs in the toml file (Tectonic 0.15.1 or later).
98
+
98
99
The documentation can be found at [https://tectonic-typesetting.github.io/book/latest/](https://tectonic-typesetting.github.io/book/latest/)
@@ -231,15 +232,22 @@ enum class LatexCompiler(private val displayName: String, val executableName: St
231
232
moduleRoot:VirtualFile?,
232
233
moduleRoots:Array<VirtualFile>
233
234
): MutableList<String> {
234
-
// The available command line arguments can be found at https://github.com/tectonic-typesetting/tectonic/blob/d7a8497c90deb08b5e5792a11d6e8b082f53bbb7/src/bin/tectonic.rs#L158
235
235
val command =mutableListOf(runConfig.compilerPath ?: executableName)
236
236
237
-
command.add("--synctex")
237
+
// The available command line arguments can be found at https://github.com/tectonic-typesetting/tectonic/blob/d7a8497c90deb08b5e5792a11d6e8b082f53bbb7/src/bin/tectonic.rs#L158
238
+
// The V2 CLI uses a toml file and should not have arguments
239
+
if (runConfig.mainFile?.hasTectonicTomlFile() !=true) {
// Actually, according to https://tectonic-typesetting.github.io/book/latest/v2cli/build.html?highlight=tectonic.toml#remarks Tectonic.toml files can appear in any parent directory, but we only search in the project for now
59
+
val tomlFiles = findTectonicTomlFiles(project)
60
+
val filesets = tomlFiles.mapNotNull { tomlFile ->
61
+
val data =TomlMapper().readValue(File(tomlFile.path), Map::class.java)
62
+
val outputList = data.getOrDefault("output", null) as?List<*> ?:return@mapNotNull null
63
+
val inputs = (outputList.firstOrNull() as?Map<*, *>)?.getOrDefault("inputs", null) as?List<*> ?:return@mapNotNull null
64
+
// Inputs can be either a map "inline" -> String or file name
65
+
// Actually it can also be just a single file name, but then we don't need all this gymnastics
0 commit comments