diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/biblatex-morenames/documentation/generate-crossref-graphs.py')
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-morenames/documentation/generate-crossref-graphs.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-morenames/documentation/generate-crossref-graphs.py b/Master/texmf-dist/doc/latex/biblatex-morenames/documentation/generate-crossref-graphs.py index a6e2d8c0808..9cf8bd87311 100644 --- a/Master/texmf-dist/doc/latex/biblatex-morenames/documentation/generate-crossref-graphs.py +++ b/Master/texmf-dist/doc/latex/biblatex-morenames/documentation/generate-crossref-graphs.py @@ -9,9 +9,15 @@ import os +# specific preamble for some file +specific_preamble = { + "example-bookineditor-BookineditorFromEditor":"\\toggletrue{BookineditorFromEditor}\n" +} + #List all the files on the current directory directory_files = os.listdir(".") + #Loop on them, and for the .bib file, generate the .tex, .dot and .pdf file for file_name in directory_files: basename, ext = os.path.splitext(file_name) @@ -22,8 +28,12 @@ for file_name in directory_files: # write the .tex file content tex_file_name = basename + ".tex" tex_file_content = "\documentclass{article}\n\ - \\usepackage[bibstyle=morenames]{biblatex}\n\ - \\bibliography{" + file_name + "}\n\ + \\usepackage[bibstyle=morenames]{biblatex}\n" + + if basename in specific_preamble: + tex_file_content = tex_file_content + specific_preamble[basename] + + tex_file_content = tex_file_content + "\\bibliography{" + file_name + "}\n\ \\begin{document}\n\ \\nocite{*}\n\ \end{document}" |