csv-to-latex-book
CSV → Branded LaTeX PDF Book
Turn a practice-test CSV into an expert-quality PDF book: branded title page, table of contents, one chapter per domain, question cards with options, highlighted correct answers, per-option explanations, and an overall explanation for every question.
Workflow
-
Inspect the CSV (
head -3 file.csv). The script expects the Udemy practice-test format:Question, Question Type, Answer Option 1..6, Explanation 1..6, Correct Answers, Overall Explanation, Domain. Column matching is case-insensitive and tolerant of missing option columns. If the CSV uses different column names, rename/map them first with a small Python snippet. -
Determine the theme. If the user named a company or theme, use it. If the user did NOT specify a theme, always ask which theme they want (list a few built-ins and offer custom). Never silently pick one.
- Built-in themes:
nvidia,databricks,google,microsoft,github,oracle,aws,claude,ibm,meta,openai,salesforce,intel,huggingface. - Any other company: use
--theme custom --brand-name "Spotify" --primary 1DB954 --dark 191414 --accent 1ED760with that brand's real colors (look them up if unsure). This is how the skill supports every company, not just the built-ins.
- Built-in themes: