ddocs.latex.clean¶
Remove LaTeX build artifacts (.aux, .log, .bbl, ...) from a directory. Backs the
ddocs clean command; independent of the Markdown-to-LaTeX conversion.
ddocs.latex.clean ¶
Remove LaTeX build artifacts (.aux, .log, .bbl, ...) from a directory.
Backs the ddocs clean command. This is independent of the Markdown-to-LaTeX
conversion -- it only deletes the throwaway files a LaTeX/BibTeX run leaves behind.
clean_latex_build_files ¶
clean_latex_build_files(directory: Path, pattern: str = '**/*') -> int
Clean LaTeX build artifacts from a directory.
Removes common LaTeX build files generated by pdflatex, bibtex, and related tools: - .aux, .log, .bbl, .blg, .toc, .lof, .lot files - .fdb_latexmk, .fls, .synctex.gz files - .out, .nav, .snm, .vrb files (for beamer/presentation) - .idx, .ilg, .ind files (for index generation)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
directory
|
Path
|
Directory to clean |
required |
pattern
|
str
|
Glob pattern for subdirectories to include (default: "*/" for recursive) |
'**/*'
|
Returns:
| Type | Description |
|---|---|
int
|
Number of files removed |
Source code in src\ddocs\latex\clean.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |
clean_latex_cli ¶
clean_latex_cli(args: Namespace) -> int
CLI interface for cleaning LaTeX build files.
Source code in src\ddocs\latex\clean.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |