Tag Info

Hot answers tagged

18

I guess I have to plead guilty to creating the memoir class. Before doing that I had been involved in creating class files for ISO (the International Standards Organisation) and they kept on changing their requirements. In the end, for them, I tried to create a flexible class file that wouldn't need revamping every few months. I had written a number of ...


15

I think there are two very different kind of class files: general purpose class files like memoir and KOMA, which strive to create a uniform interface to most aspects of document formatting, and specialized class files for particular document types. Peter Wilson has already addressed the first type in his answer. But there is another kind of class which is ...


10

You can set the paper size manually using geometry \documentclass{article} \usepackage[paperwidth=21cm,paperheight=500cm,margin=1in]{geometry} \usepackage{lipsum} \begin{document} \lipsum[1-150] \end{document} But 500cm is not infinite. You can use standalone class as suggested by touhami so that height is adjusted automatically. ...


8

I think the answer depends what you are using LaTeX for. Creating "generic-format" documents using some common user-defined macros is one thing. Creating a set of documents all with the same fully-defined, customized, "print-ready" format is another. For one-time use, I don't think there is much practical difference. The functionality is the same either ...


7

A class is pretty useful to setup environments where certain functionality is essential. This is also meant in a conservative fashion that you don't want external tools affecting the result. From the beamer example mentioned earlier, certain packages don't work with beamer because their assumptions about itemization etc. environments is altered. Or in the ...


5

book, report and article are all generated from the same source (classes.dtx) and the differences that you mention are essentially the only differences there are. If they were no such differences then essentially there would only be one standard class. By design, article omits the \chapter level, to make it slightly easier to combine articles into a report ...


4

The default templates for the article document class commonly introduce the following: \documentclass[]{article} %opening \title{} \author{} \begin{document} \maketitle \begin{abstract} \end{abstract} \section{} \end{document} The \maketitle command introduces the title, author, date components. If you do not want to have this structure you could ...


4

Like this? \documentclass{article} \usepackage{lipsum} \usepackage[paperwidth=6in, paperheight=9in, margin=1in]{geometry} \begin{document} \lipsum \end{document}


3

Like this may be: \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{sectsty} \allsectionsfont{\normalfont\sffamily\Large} \usepackage{lipsum} \title{\color{DarkBlue}\sffamily\Huge Hypothesis Testing in \\ Linear Regression Models} \author{} \date{} \begin{document} \maketitle \section{Introduction} \lipsum \end{document}


3

I would avoid the complication of shell escape etc, and just put \newcommand{\EMAIL}{cccc@sss.com} into mysettings.sty and then just use \usepackage{mysettings} in both documents.


2

Here's a starting point. On the first run, this produces an .idx file but, obviously, your script would do that. The file is just for the MWE. So your script should produce a file \jobname.idx where \jobname will be the name of the .tex file without the extension e.g. if the file is greatindex.tex then your script will produce \greatindex.idx. (Best make a ...


2

Best option: Recommended Your first option should be to install the package which is part of TeX Live itself. If you installed TeX Live from upstream (recommended), you should already have it if you installed a full distribution. If not, you can use tlmgr to install it. If you installed TeX Live through your distro's package manager (e.g. apt or yum or ...


2

Download the latest release of the sdaps bundle; This tar ball should include a tex folder that hosts the TeX-related content (class file): There is also a Git repository. Place sdaps.cls where TeX can see it. See Where do I place my own .sty or .cls files, to make them available to all my .tex files? Compile with \documentclass{sdaps} For more ...


1

The OP decided to resolve this problem via defining \newenvironment{solution}{\begin{proof}[Solution]}{\end{proof}} See also the comments under the question


1

From the comments, consider using the coseoul package. This provides commands for headings of the form \levelstay, \leveldown and \levelup and a package option initlevel for the initial level, e.g. chapter or section.


1

here is a solution (you need to work as it is article i.e. don't use \chapter command) Edit: Sorry I did not see Gonzalo Medina's answer to this Macro for promoting sections to chapters \documentclass{article} %\documentclass{report} \ifx\chapter\undefined \else \let\subsubsection\subsection \let\subsection\section \let\section\chapter ...



Only top voted, non community-wiki answers of a minimum length are eligible