{"id":14980674,"url":"https://github.com/zuplyx/latex-homework-class","last_synced_at":"2025-10-02T20:31:57.029Z","repository":{"id":197180980,"uuid":"260234415","full_name":"Zuplyx/latex-homework-class","owner":"Zuplyx","description":"A class for homework assignments written in LaTeX.","archived":false,"fork":true,"pushed_at":"2020-11-18T14:54:27.000Z","size":2742,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-09-28T04:41:24.813Z","etag":null,"topics":["comp-sci","german","homework-template","latex-class","latex-template","node-graphs"],"latest_commit_sha":null,"homepage":null,"language":"TeX","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jez/latex-homework-class","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zuplyx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-04-30T14:29:27.000Z","updated_at":"2023-04-06T02:19:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Zuplyx/latex-homework-class","commit_stats":null,"previous_names":["zuplyx/latex-homework-class"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zuplyx%2Flatex-homework-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zuplyx%2Flatex-homework-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zuplyx%2Flatex-homework-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zuplyx%2Flatex-homework-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zuplyx","download_url":"https://codeload.github.com/Zuplyx/latex-homework-class/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235043590,"owners_count":18927006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comp-sci","german","homework-template","latex-class","latex-template","node-graphs"],"created_at":"2024-09-24T14:02:15.201Z","updated_at":"2025-10-02T20:31:56.677Z","avatar_url":"https://github.com/Zuplyx.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaTeX Homework Class\n\n## What\nThis is a LaTeX document class. That means you use it with `\\documentclass{homework}` at the top of the document. It provides a document layout and some helper commands that make working with questions easy. This version has been adapted to be used in German and extended by the tikz library for the creation of node graphs.\n\n## Installation\nCertainly the easiest way to start using this template is to copy the .cls file to your computer in the same directory as your LaTeX project directory.\n\nA better way to install this template is to fork this repository and then clone that fork to a particular folder on your computer:\n\n```\ngit clone https://github.com/\u003cyour-username\u003e/latex-hw-template\n```\n\nThen, whenever you need to use the template, you can copy the template to wherever you need it. Also, if there are ever any updates, you can simply run\n\n```\ngit pull\n```\n\nto update the template.\n\n### Preferred Installation\n\nThe best way to install this file is to [follow the instructions here][install], keeping in mind that you're trying to install a `.cls` file instead of three `.sty` files.\n\n[install]: https://github.com/jez/latex-solarized#installation\n\n### Use TeXstudio autocompletion\n\nTo enable autocompletion for commands from this class, copy [homework.cwl](homework.cwl) to TeXstudio's [cwl directory](https://sourceforge.net/p/texstudio/wiki/Frequently%20Asked%20Questions/#where-are-cwl-files-stored).\n\n## Usage\n\nSee the [homework.tex](homework.tex) file for an exhaustive list of usage examples. There are also comments explaining features for which there are no examples given.\n\nThe result is the following:\n\n![Screenshot](screenshot.png)\n\nThe class file also has a bunch of helper `\\usepackage`s that you might want to take a look at in [homework.cls](homework.cls).\n\nFor your convenience, the file [template.tex](template.tex) is a nearly-empty\nLaTeX file that contains the bare essentials to get started using the homework\nclass.\n\n### `\\question`\n\nTo start a question, just type `\\question`. It will add the text \"Question #\" with a line underneath to the document. If you'd like to change \"Question\" to something else, use\n\n```tex\n\\renewcommand{\\questiontype}{Whatever You Want}\n```\n\nSimilarly, if you ever need to skip numbers, you can do\n\n```tex\n\\setcounter{questionCounter}{\u003ctarget number - 1\u003e}\n```\n\nSo, to skip to the 10th question, `\u003ctarget number - 1\u003e` = 9.\n\nSee [homework.tex](homework.tex) for more.\n\n### `\\question*`\n\nSome classes like to give their homework questions fancy names. If this is the case, you can use `\\question*{The Question's Name}` to make a named question.\n\nSee [homework.tex](homework.tex) for more.\n\n### Question Parts\n\nAnother common thing on homework assignments is to have multi-part questions. To deal with these, use the form\n\n```tex\n\\begin{alphaparts}\n  \\questionpart\n    This will be part (a).\n  \\questionpart\n    This will be part (b).\n\\end{alphaparts}\n```\nor\n```tex\n\\begin{arabicparts}\n  \\questionpart\n    This will be part x.1.\n  \\questionpart\n    This will be part x.2.\n\\end{arabicparts}\n```\n\nSee [homework.tex](homework.tex) for more.\n\n### Induction Proofs\n\nIn math classes, induction proofs come up a lot, and they almost always have the same form: base case, induction hypothesis, and induction step.\n\n```tex\n\\begin{induction}\n  \\basecase\n    This is my fancy base case.\n  \\indhyp\n    Assume some claim.\n  \\indstep\n    Finish off the proof\n\\end{induction}\n```\n\n### Node graph creation\n\nCertain classes require the creation of node graphs, therefore this class has been extended to include `tikz`. For an example on how to use it to create node graphs, see [homework.tex](homework.tex) or this [tutorial](https://www.javatpoint.com/latex-node-graphs-using-tikz). Additional information about `tikz` can be found in its [manual](http://mirror.physik-pool.tu-berlin.de/pub/CTAN/graphics/pgf/base/doc/pgfmanual.pdf).\n\n### Anonymous Submissions\n\nCertain classes prefer to disassociate names from questions for a more fair\ngrade assessment. To have your name placed only on a separate title page,\ninclude the `anonymous` option in the `\\documentclass` line:\n\n```latex\n\\documentclass[11pt,anonymous]{homework}\n```\n\nFor truly anonymous submissions, make sure you remove all personally identifying\ninformation from your preamble.\n\n### One question per page\n\nIf you'd like each question to begin on a new page, include the `newpage`\noption:\n\n```latex\n\\documentclass[11pt,newpage]{homework}\n```\n\n### Spacious margins\n\nTo enhance the readability of your documents, you can add the `largemargins`\noption to your documents. This fits less content on a single page, but makes it\nmuch more comfortable for your eyes to scan across the lines.\n\n```latex\n\\documentclass[11pt,largemargins]\n```\n\nThis is the default in the template and the example file. Remove this option to\nhave your text fill more space on the page.\n\n## License\nMIT License, see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuplyx%2Flatex-homework-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuplyx%2Flatex-homework-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuplyx%2Flatex-homework-class/lists"}