-
Notifications
You must be signed in to change notification settings - Fork 26
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
Generate .bib file name from SRS TeX file #388
Comments
I can't find any reference to this bit in the code (ie. no new file being created), but it really should be created at some point. Getting the file name should be easy (the function which takes in our "recipes" should take care of this and pass it along instead of baking it into the back-end). |
@JacquesCarette When time permits, could I please get a quick explanation of what is meant/referenced by @szymczdm's comment "the function which takes in our "recipes" should take care of this and pass it along instead of baking it into the back-end"? I am not finding any mention of recipes or recipe in the code. Does this function already exist and hold the required file name, or is it a concept? Is there and will there continue to be just one bibfile instance per example (NoPCM, HGHC..)? If so the bibfile name can be a generic name for the example? |
@peter-michalski, "recipes" is terminology that we use, but it isn't explicit in the code. When we write code in DSLs to explain how we want to transform the knowledge into some artifact, like a requirements document, we are saying we are writing a "recipe." We are using this as an analogy to a cook book. 😄 Yes, there would be one bibfile instance per example. I think the idea is that the bibfile name would be generated to be a unique name for the particular example. |
Exactly. |
The OP appears to be outdated in the operational sense (it assumes examples are run in the same working directory, but we currently separate them). I also don't have any real issue with this. Further, I believe this is not quite how @BilalM04 Do you think you could look into this ticket and what needs to be done, please? |
From looking at the TeX printer and the generated TeX files, the bib is specified within the main TeX file ( I believe the original issue was because all the example TeX files were generated into the same directory, with the exact same name for the Since now the different examples are separated into their own directories, the issue of the filenames clashing is no longer present. How should we proceed @balacij? |
We might want to make the generation of |
Thank you, @BilalM04 😄 Do you know how much effort it would require to move the bib content to a separate file? It doesn't necessarily need to be named |
How multi-file generation works for mdBook is that at the level of Drasil is still not very friendly with multi-file generation, as from when it's declared in Overall, moving the bib content to a separate file would require considerable effort, as the current mdBook setup addresses the specific issue of extracting all sections into separate files. Rather than pursuing this approach, I believe we should first develop a better design for multi-file generation before proceeding with extracting the bib content. |
Currently, the bib file name is a hard coded string in
Config.hs
and used in two places.When TeX is run, it generates this file in the same directory. Problems arise when multiple TeX files are run after each other because other examples can overwrite this file. Ideally, the file name will be chosen to match that of the TeX file. Right now, there is no easy way of getting the name of the TeX file, to these functions.
The text was updated successfully, but these errors were encountered: