Questions tagged [document-classes]

{document-classes} is for questions relating to the document class of the TeX file. This sets up various document-wide formatting elements.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views
+50

Best way to build a custom class

I am customizing a class based on beamer. In your opinion, what is the best way to define options? \NeedsTeXFormat{LaTeX2e} \ProvidesClass{myclass}[2019/03/25 myclass] \DeclareOption*{\...
user avatar
2 votes
1 answer
56 views

What documentclass to use for publications not meant to be printed

I'm looking for a documentclass or a setup where the paper size (like A4) and "page breaks" aren't part of the output. How do I end up with one long pdf, with no page distraction?
user avatar
  • 21
0 votes
0 answers
32 views

How to create a class that changes the word "Theorem" according to some chosen language as input?

I'm having some problems on creating a class that changes the word "Definition" in \begin{definition} according to a chosen language. For simplicity I will consider only the English language ...
user avatar
  • 269
0 votes
1 answer
69 views

Elegant way of creating a document class that changes between styles back and forth

I would like to create a book class, say class.cls, such that It automatically acquires some style depending on the location of the code inside the main document. Something like one style for each: \...
user avatar
  • 269
0 votes
0 answers
13 views

installing labbook template or package with chronological + experiment indices

So I have started the research for my Masters thesis and I would like to keep an electronic lab book in LaTex. I am using texlive and tex studio for writing. I have discovered a labbook package on ...
user avatar
  • 1
0 votes
1 answer
63 views
+100

`widetext` doesn't play nicely with the `osa-article` documentclass; are there alternatives?

I'm writing a manuscript for publication in one of Optica's journals, so I'm required to use the osa-article documentclass. I have a very long equation which can't be broken up into several lines. I'...
user avatar
  • 182
0 votes
0 answers
31 views

Converting an overleaf text into Latex [duplicate]

I have written a paper in Overleaf. I can't convert it into a LaTeX file. Is there any special way to do that. For example the document class is \documentclass[graybox]{svmult} but in LaTeX it has not ...
user avatar
  • 3
0 votes
1 answer
46 views

Underfull \vbox (badness 10000) warnings in Book with no floats or math, just simple headings (Part and Chapter) and text

So I have this relatively simple-coded book document. When I try to compile it, I get a lot of Underfull \vbox (badness 10000) has occurred while \output is active warnings (though there's only one ...
user avatar
0 votes
1 answer
23 views

Title page not showing up in subfile{} when included in main.tex

I am compiling a different documents of article class type and I am using a main tex file of report class to compile it into one pdf file. I used subfile{} to do so but the \maketitle{} page in ...
user avatar
-2 votes
1 answer
49 views

What is the meanging of "\expandafter\PDR@getfileinfo\reserved@a\relax? ? \relax\relax"

Needing help of explainning the meaning of the following code for me, the code is in the file "PostDocRep.cls" that begins with \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{...
user avatar
1 vote
2 answers
29 views

Biblatex-chicago: Missing dots and commas in author names

I'm helping my professor format the citations of one of her papers. The desired format should be in a chicago style, and here is an example: It seems that "biblatex-chicago" package can ...
user avatar
  • 11
0 votes
1 answer
22 views

Classes for the ISO 01.140.30 Documents in administration, commerce and industry family

Are there any classes that implement the requirements of ISO 6422, ISO 8439, or similar national (doesn't matter which or whose) or international standards for commercial and administrative paperwork?
user avatar
1 vote
1 answer
44 views

cleveref conflicts with polyglossia when required in a class

When I run the following MWE (with xelatex): % File myclass.cls \NeedsTeXFormat{LaTeX2e} \ProvidesClass{myclass} \LoadClass[12pt]{article} \RequirePackage{polyglossia} \RequirePackage{cleveref} % ...
user avatar
0 votes
0 answers
22 views

How can I get the given result but with \documentclass{article} instead of \documentclass{report}?

Using this code with \documentclass{report} \documentclass{report} \usepackage{appendix} \begin{document} \appendix \chapter{title of this section } \label{sect:app} \...
user avatar
  • 137
0 votes
1 answer
61 views

cls Variable Fallback

Since I am not experienced with writing cls so it may be a very simple question and is a duplicate but I cannot use the exact word to express it. Here is what I want to achieve in this cls: There ...
user avatar
0 votes
1 answer
26 views

book class: suppress page number on even blank page [duplicate]

Using a simple \documentclass{book}, all new chapters start on odd pages. Now if the previous chapter also ends on an odd page, the next even page will be blank but nevertheless gets page number ...
user avatar
0 votes
1 answer
31 views

fleqn option for custom class (based off of KOMA)

In the MWE below, I have a class called test.cls which loads scrartcl with the fleqn option. In main.tex, I load this class, however, the fleqn option seems to be lost--unless I pass fleqn--which I ...
user avatar
0 votes
0 answers
36 views

Should I use low- or high-level commands for programming classes/packages?

To fix ideas, consider the following example. I can define the command \def\linefill{\kernel@ifnextchar[{\@@linefill}{\@linefill}} \def\@linefill{\@@linefill[1ex]} \def\@@linefill[#1]{% \...
user avatar
0 votes
0 answers
22 views

Citation and begin document problems

I'm having a problem with my latex code: it gives me an error with undefined control sequence and this package can't be used in cooperation. Also, the citations (I use \textcite with authoryear style) ...
user avatar
  • 1
2 votes
2 answers
69 views

What license (if any) should I choose for this document class?

About 10 years ago, I inherited a not-officially-licensed document class for Ph.D, plus a sample skeletal thesis. theses in my alma mater's CS department. I've been maintaining and improving it on ...
user avatar
  • 11.3k
0 votes
0 answers
39 views

Reduce the vertical space between the title and the main body

I am using this template: and I want to reduce the space between the "Abstract" as a title and the main body of the abstract as shown in the screenshot included. The abstract is included ...
user avatar
0 votes
1 answer
39 views

Define options similar to \title, \author and \date

I'm creating my own class based on article and I would like to add a parameter subtitle which users of my class can set similar to title, author and date, e.g., \documentclass{myclass} \title{My title}...
user avatar
  • 318
1 vote
0 answers
28 views

Changing default line spacing in Latex document [duplicate]

How do I change (increase) the line spacing in the entire Latex document? I'm guessing it's an option on the documentclass but I couldn't find a reference.
user avatar
  • 125
2 votes
1 answer
93 views

How to create a Japanese slideshow in 縦書き (vertical writing direction)?

I'm using LuaTeX with the luatexja package to typeset Japanese. However, the vertical writing feature is provided in document classes (such as ltjtarticle), not available by just calling the package. ...
user avatar
0 votes
0 answers
34 views

Placing equations and sentences at specific coordinates

would like to create a document. On each page of the document, I would like to have three things: a) a few math equations (and a few short sentences) at very specific locations and with a specific ...
user avatar
0 votes
0 answers
13 views

Adding a second title in frontiersSCNS

In my paper, I would like to add a second title (slightly smaller font) underneath the title that states the main finding. I use the following class: \documentclass[utf8]{frontiersSCNS} If I use: \...
user avatar
  • 317
7 votes
1 answer
333 views

General advices to create a LaTeX class

I have some time working with LaTeX, so I decided to create my own LaTeX class to simplify my preamble and, by the way, learn something I haven't done yet. To get started I looked for some guides as: ...
user avatar
  • 133
0 votes
1 answer
127 views

How to change the email footnote symbols to math symbols in the APS revtex?

How to change the email footnote symbol shown below "*" to some other math symbols, such as the symbol with subscript "b$_1$", "b$_2$", "c$_3$", "a$_4$&...
user avatar
  • 2,159
0 votes
0 answers
41 views

Create a LaTeX document for purely math, supporting \\ or \newline

I'm creating a LaTeX document in Overleaf purely as a cheat sheet and notepad for math I often use. Unfortunately, I don't know what sort of documentclass I would use, or if one even exists. I ...
user avatar
0 votes
1 answer
43 views

Customized class options doesn't work

I'm trying to declare a new option poly in my .cls file. \NeedsTeXFormat{LaTeX2e} \ProvidesClass{classname} \ClassInfo{JH}{Copyright (c), 2022.} % \DeclareOption{poly}{% \PassOptionsToClass{french,...
user avatar
  • 693
4 votes
0 answers
43 views

Microtype package v 3.0a with documentclass `book` in \maketitle: bug [duplicate]

I found a bug when I use microtype package v 3.0a with documentclass book in \maketitle macro. % !TeX program = pdflatex % !TeX encoding = utf8 \documentclass{book} \usepackage{microtype} \title{My ...
user avatar
  • 4,932
1 vote
1 answer
18 views

Making a cropped paragraph-sized document

I see ways to make a standalone equation, like here, but I want to have a little bit more than that. I want to make something like \begin{document} Blah blah blah. \begin{equation*} F(V, ...
user avatar
0 votes
0 answers
35 views

Why doesn't Latex put figures in sensible places? [duplicate]

I've always been told to trust the decisions of the person who coded the documentclass, when it comes to typesetting. Questions about what emphasized text should look like or whether a paragraph ...
user avatar
0 votes
0 answers
27 views

Align Showing Decimals

taking a shot at writing my own document class right now. But my align is showing up like this: instead of how it is usually looks, with just a (1) and not (1.1). Below is a test class where there's ...
user avatar
  • 1
1 vote
2 answers
47 views

Horizontal Tabbing Justification within Res Document Class

Consider the code \documentclass{res} \setlength{\textheight}{9.5in} % increase text height to fit on 1-page \newlength{\imagewidth}\setlength{\imagewidth}{4em} \usepackage{graphicx} \usepackage{...
user avatar
  • 4,775
0 votes
0 answers
27 views

Twoside problem with long toc

I'm having a problem with my Table of Contents. I have many chapters so that the toc has a length of two sides and therefore a page break in between. I have declared the following document class: \...
user avatar
  • 11
0 votes
1 answer
43 views

How to remove spaces between the items of table of contents?

I have compiled the following document. My attempt is as follows: \documentclass[oneside, 11pt]{article} \usepackage[utf8x]{inputenc} \usepackage[english]{babel} \usepackage{amsmath} \usepackage{...
user avatar
3 votes
1 answer
103 views

Error when typing accented letters in author field

The following code \documentclass[twocolumn]{autart} \begin{document} \begin{frontmatter} \author[MyCity]{Mar\'{c}us}\ead{myemail@gmail.com}, \address[MyCity]{My University, My ...
user avatar
2 votes
1 answer
144 views

Children book/picture book template

I got inspired by the book "Newtonian Physics for Babies" and other books by Chris Ferrie. So I wanted to gift a children book to someone in my family. The book will be a first encounter ...
user avatar
  • 516
3 votes
0 answers
49 views

Can I use a package (passing it options) in a class definition which can also be used (with \usepackage, more options) in a document?

I'm writing a document class for my faculty. Most users will be relatively casual, non-expert with LaTeX and I want to cause them minimal fuss and work when using the class. In service of this, I ...
user avatar
0 votes
2 answers
42 views

\refcite does not produce hyperlink and does not work in figure caption (World Scientific documentclass)

I'm using the ws-procs961x669 documentclass by World Scientific. I'm having two problems with the command "\refcite{}" that is meant to be used when explicitly referring to a reference to ...
user avatar
1 vote
0 answers
53 views

Latex class: how to change line space, font, font size, margin

I have a document class that I am using for writing my thesis. Here is the documentclass in this link. I also have a paper that is written using the document class IEEEtran. I can compile my latex and ...
user avatar
  • 11
0 votes
1 answer
84 views

Novel class error compiling (LuaTeX, and XeTex)

Edited question I’d like to write a document with the novel class, which is installed on my distribution. Because it seems I can’t make my own minimal working example, I took it from the official web ...
user avatar
  • 119
0 votes
1 answer
91 views

How to install new packages in texlive?

I am pretty new to latex and texlive. I want to install the novel class from this CTAN repository, but I can’t figure it out. when I try installing it with the tlmgr command such as tlmgr install /...
user avatar
  • 119
0 votes
0 answers
20 views

Custom class makes hyperlink boxes re-appear

When creating a custom class, hyperlink boxes appear. main.tex %\documentclass[hidelinks]{scrartcl} %%% link box hidden, good \documentclass{myclass} %%% link box appears, bad!!! \...
user avatar
0 votes
0 answers
37 views

what is the difference between Article and Report documentclass [duplicate]

** Please explain the difference between article and report documentclass in LaTex** This question was asked in my exam for 10 marks so I want to know answer
user avatar
0 votes
1 answer
103 views

! Undefined control sequence. \@urlcolor with custom documentclass

I am trying to debug a custom documentclass that I need to use, in which the hyperref package (\href command) doesn't work. This is my document: \documentclass{article} \usepackage{hyperref} \begin{...
user avatar
1 vote
0 answers
52 views

What is a class in LaTeX? [duplicate]

Kindly throw light on what classes are. I have come across them. But I don't understand what they are.
user avatar
0 votes
0 answers
25 views

How to edit part of the class file for the abstract?

\def\eabstract{ \ifx\@korean\@@@@undefined@@@@ \pagenumbering{roman} \setcounter{page}{1} \fi \addcontentsline{toc}{chapter}{\fontsize{12}{1pt}\selectfont \ifx\@korean\@@@@undefined@@@@...
user avatar
0 votes
0 answers
116 views

LaTeX Error: Two \documentclass or \documentstyle commands -- Only one of either

I am using RStudio to work with RMarkdown files to generate PDFs. In test.Rmd, I have: --- title: "Test" author: "John Doe" # date: "Jan. 17, 2018" output: ...
user avatar

1
2 3 4 5
21