latex-homework-class

A class for homework assignments written in LaTeX.
授权协议 MIT License
开发语言
所属分类 企业应用、 LaTeX排版系统
软件类型 开源软件
地区 不详
投 递 者 贲永思
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

LaTeX Homework Class

What

This 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.

Installation

Certainly 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.

A better way to install this template is to fork this repository and then clone that fork to a particular folder on your computer:

git clone https://github.com/<your-username>/latex-hw-template

Then, 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

git pull

to update the template.

Preferred Installation

The best way to install this file is to follow the instructions here, keeping in mind that you're trying to install a .cls file instead of three .sty files.

Usage

See the homework.tex file for an exhaustive list of usage examples. There are also comments explaining features for which there are no examples given.

The result is the following:

The class file also has a bunch of helper \usepackages that you might want to take a look at in homework.cls.

For your convenience, the file template.tex is a nearly-emptyLaTeX file that contains the bare essentials to get started using the homeworkclass.

\question

To 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

\renewcommand{\questiontype}{Whatever You Want}

Similarly, if you ever need to skip numbers, you can do

\setcounter{questionCounter}{<target number - 1>}

So, to skip to the 10th question, <target number - 1> = 9.

See homework.tex for more.

\question*

Some 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.

See homework.tex for more.

Question Parts

Another common thing on homework assignments is to have multi-part questions. To deal with these, use the form

\begin{alphaparts}
  \questionpart
    This will be part (a).
  \questionpart
    This will be part (b).
\end{alphaparts}

or

\begin{arabicparts}
  \questionpart
    This will be part x.1.
  \questionpart
    This will be part x.2.
\end{arabicparts}

See homework.tex for more.

Induction Proofs

In math classes, induction proofs come up a lot, and they almost always have the same form: base case, induction hypothesis, and induction step.

\begin{induction}
  \basecase
    This is my fancy base case.
  \indhyp
    Assume some claim.
  \indstep
    Finish off the proof
\end{induction}

Anonymous Submissions

Certain classes prefer to disassociate names from questions for a more fairgrade assessment. To have your name placed only on a separate title page,include the anonymous option in the \documentclass line:

\documentclass[11pt,anonymous]{homework}

For truly anonymous submissions, make sure you remove all personally identifyinginformation from your preamble.

One question per page

If you'd like each question to begin on a new page, include the newpageoption:

\documentclass[11pt,newpage]{homework}

Spacious margins

To enhance the readability of your documents, you can add the largemarginsoption to your documents. This fits less content on a single page, but makes itmuch more comfortable for your eyes to scan across the lines.

\documentclass[11pt,largemargins]

This is the default in the template and the example file. Remove this option tohave your text fill more space on the page.

License

MIT License, see LICENSE.

  • \documentclass[UTF8]{article} \usepackage{tikz} \usepackage{CTEX} \usepackage{amssymb} \usepackage{amsmath} \usepackage{xcolor} \begin{document} \title{Algorithm homework 2} \author{****\\ 21617019} \

  • lizeyujack homework templet %-- coding: UTF-8 -- \documentclass[12pt,oneside,geqno]{article} \addtolength{\textheight}{120pt} \oddsidemargin=-10pt \topmargin=-.5in \textwidth=6.5in \pagestyle{empty}

  • 首先是 test_latex.tex: \documentclass{article} \author{ Hu Boqiang\thanks{Email:huboqiang@gmail.com}\\ Biodynamic Imagine Center\\ Peking University, Beijing 100871, China.} \title{MCMC method in C

 相关资料
  • latex-homework-template The LaTeX file that I use as the base for all my homeworks in university. You should follow me on Twitter. Features Here are just a few features of this homework template. Titl

  • 部署 LaTeX 安装 texlive-core 新建 a.tex 文件,内容如下: \documentclass[11pt,a4paper]{article} %加入了一些针对XeTeX的改进并且加入了 \XeTeX 命令来输入漂亮的XeTeX logo \usepackage{xltxtra} %启用一些LaTeX中的功能 \usepackage{xunicode} %%%% fontspe

  • LaTeX(LATEX,音译“拉泰赫”)是一种基于TeX的排版系统。 LaTeX通过CTAN服务器发布,或作为TeX用户组(TUG)或第三方提供的许多易于安装和可用的TeX发布版本的一部分。如果您遇到问题,请访问帮助部分。 LaTeX本身并不是一个独立的排版程序,而是运行在Donald E. Knuth的TeX排版系统之上的文档准备软件。TeX发行版通常会将工作中的TeX系统所需的所有部件捆绑在一

  • Vim + LaTeX snippets setup How I'm able to take notes in mathematics lectures using LaTeX and Vim Vim configuration Copy tex.snippets to ~/.vim/UltiSnips/ and assuming you're using Vim Plug, add the f

  • latex-action GitHub Action to compile LaTeX documents. This actions runs on docker using a maximal TeXLive environment installed. Inputs root_file The root LaTeX file to be compiled. This input is req

  • PDF 下载: 放映版 阅读版 Copyright (C) 2018–2021 by Xiangdong Zeng.