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
0answers
43 views

In a LaTeX project (how) can I use more than one documentclass?

I know that this question is not new but the existing answers I found didn't work out for me. Right now I have a document with document class scrbook which is the master document for my thesis. ...
0
votes
0answers
18 views

Change color scheme in tccv

I am working with the document class tccv. How can I change the default color scheme? I tried it with \usepackage{colorx} and then the \definecolor command: \definecolor{foregound}{HTML}{303030} \...
2
votes
2answers
56 views

Overriding commands

How can I partially re-implement an existing command in Latex? I have a \documentclass with: \ProvidesClass{myclass}[My sample class] \LoadClass{article} When someone uses \subsection{}, I really ...
2
votes
0answers
35 views

`! Dimension too large` error using `kik-android` template

I am using this template (kik-android.cls, now whatsapp.cls): Showcase of beautiful typography done in TeX & friends as a guide to write a document using pdflatex mode. Since I am on pdflatex I ...
1
vote
1answer
14 views

Environment exmp undefined. \begin{exmp}! in aims document class

How can I make examples to be labeled and cited (Like theorems and lemmas) in a aims document class? I used \usepackage{amsthm} \newtheorem{example}{Example} but was not working.
0
votes
0answers
24 views

Can a document class be installed locally inside a file?

I have 2 documents each in a different document class. Can I somehow add one file to the other preserving the formatting? Is there a way to locally install inside one of the documents the .cls and ...
0
votes
1answer
20 views

Section symbol showing up in section headings and toc

I jumped in to editing a book document class and we want to now remove the section symbols from the toc and the section titles. I cannot figure out why they are there in the first place. Regardless, ...
0
votes
0answers
18 views

Bibliographic entry generates errors after changing class to wlscirep

I unfortunately have to migrate a document to the wlscirep class, and started seeing the errors pasted below. To get rid of them I had to eliminate the citation for this reference: @article{...
1
vote
0answers
13 views

Uppercase Greek letters are forced to be italic in svjour3 class [duplicate]

I'm using the svjour3 class to write journal article in Springer. But I found there is one weird feature: The math are forced to be italic. For example, with code \RequirePackage{fix-cm} \...
1
vote
1answer
29 views

Change the dependency of \maketitle command

I am trying to develop a class file for my department. I want to add two dependencies to the \maketitle command. As we have \title & \author as compulsory commands for \maketitle, I want \...
1
vote
1answer
29 views

How to automatically produce a separate title page?

Sometimes (in my field) a journal requires an anonymised version of the manuscript and a separate title page to be submitted. Other journals sometimes require other subsets of the overall document to ...
0
votes
0answers
33 views

How to use TexShop to run a template “neptune”?

How to use, for example, TexShop to run a template like "neptune" with a \usepackage[5.5]{neptune-els-dtd}? I fail to compile this file successfully, I think I need to install some "neptune" macro or ...
2
votes
1answer
46 views

Proper way to switch paper size?

Related question: Changing a4paper to letterpaper I used to type all my LaTeX in letter size. Example: \documentclass{article} \begin{document} asdf \end{document} However, we switched ...
0
votes
1answer
24 views

Macro for configuring directory locations

I'm trying to understand how class files work. In the example I am working with, it is from awesome-cv template file. In the .cls file there is a part where a macro is defined for setting directory ...
0
votes
0answers
17 views

{IEEEtran} to jpconf

I used this \documentclass[12pt,a4paper,onecolumn]{IEEEtran} to prepare the document. However I need to convert into \documentclass[a4paper]{jpconf}. How do I do this? How do I change the title and ...
0
votes
1answer
26 views

Redundant definitions involving ASL class and the mathtools package

The following minimal (non-)working example illustrates a clash between the Association of Symbolic Logic class file asl.cls (link here) and mathtools package (both somewhat derived from AMS LaTeX): \...
0
votes
0answers
23 views

New document class not added correctly

I'm pretty new to Latex and Lyx I'm having an issue while adding a new document class. Having the .cls file, I followed the steps like in here: https://www.paulkiddie.com/2010/02/adding-custom-class-...
1
vote
1answer
39 views

How can I replicate a google docs default document?

I want to replicate this google docs format. Those who have a degree in latex programming please please please please please please please please please please please please please please help me. ...
1
vote
1answer
42 views

“missing \begin{document}” and “something's wrong — perhaps a missing \item” [closed]

I am using the overleaf template https://www.overleaf.com/latex/templates/sample-policy-memo-for-cornell-info-1200/kybzqhsxjgjk and received some errors after making some modifications to it. I have ...
4
votes
2answers
110 views

How can I use \if \then \else with \@ifclassloaded{}

I wrote a package that uses the \@ifclassloaded{} command to handle the document class, like, \RequirePackage{pgffor} \makeatletter% \@ifclassloaded{book} {% <code block> } \makeatother% \...
0
votes
0answers
91 views

How to replicate my google docs format into latex?

I have a document in google docs that I was hoping to replicate in latex including font size and border-spacing. I looked through the templates but could only find one template on overleaf called ...
2
votes
1answer
51 views

How to set paper size in LaTeX outside of documentclass

I am looking at How to use A4 instead of letterpaper? and wondering how I can create a custom documentclass like \documentclass{foo}, and then have another function like \foosetsize{a4paper} right ...
2
votes
0answers
72 views

Open source document classes similar to Cam. Ser. Stat. & Prob. Math. journal style?

I quite like the style file used in the Cambridge Series in Statistical and Probabilistic Mathematics. There are some key features of this style: Times New Roman used throughout; tailored ...
1
vote
0answers
20 views

Is there a way to add TOC to sig-alternate? [closed]

Is there any possible way to add toc to sig-alternate? Otherwise i would need to rework my whole documentary. Sig-alternate is a type of acm document, like article
1
vote
0answers
49 views

Converting a Pandoc LaTeX template to a Documentclass

This may be an inappropriate question to ask in a dedicated TeX/LaTeX forum, but I'm not sure where else to post it. Are there any guidelines (or tools) for converting a Pandoc LaTeX template into a ...
1
vote
0answers
36 views

Table and figure numbering are wrong [duplicate]

I am using the following code: \documentclass[10pt,onecolumn,twoside,draftcls]{article} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb,amsfonts} \usepackage{amsbsy} \usepackage{placeins} \let\...
0
votes
2answers
42 views

Definitions for sections, subsections and subsubsections (+chapter?)

I want to change the commands of the article/ book class and want to know how sections, especially in the article class but also in the book class, are defined. I think it is something like this?: \...
3
votes
1answer
44 views

StopEventually behaves differently in LtxDoc and L3Doc

I was going through two of my own *.dtx files and noticed that the content between \StopEventually and \Finale would be hidden or displayed based on the document class and not on the setting of \...
1
vote
0answers
24 views

why my document class is not applied? [closed]

I'm so desperated, i'm writing the thesis and i can't configure the document-class. I'm naive of latex, so if you need more file, comment and i will provide. This is my document class, and the only ...
1
vote
1answer
38 views

How to use a beamer template style in a standard article document

I'm trying to create a report which has some more 'modern' (less academic) styling approaches. Some of the templates that I think could be suitable are created for Beamer. I'm wondering if it's ...
0
votes
1answer
30 views

How to generate an outline for a document?

I am writing a debate case class in latex and I have environments set up so the user can easily declare a contention and subpoint. For example, if the user had: Contention 1: My solution is better ...
4
votes
1answer
57 views

Can I use different font sizes in the title of my document?

I am using a poster template I found here to base my poster on. I want to use small caps in my title, but the font used, cmbright, does not support this. So I thought I could fake it by doing ...
2
votes
1answer
34 views

Greek-letter enumerate in .cls file

So I found a code for making a Greek-letter enumerate environment, which works totally fine in a normal LaTeX file but not in my .cls file. When I try to import my class (let's call it myclass for ...
2
votes
0answers
302 views

How to make pandoc use a custom class

I want to use the ModernCV template with pandoc. I have a custom .cls file, various .sty files and one .tex file that makes use of the custom class. I can convert the .tex file with pdflatex without ...
1
vote
0answers
57 views

Is there a LaTeX document type appropriate for a multi-page, multi-section checklist?

I am a beginner to TeX and LaTeX. (Though I have used Softcover a little bit, which uses LaTeX under the hood and accepts some LaTeX commands, and I am very experienced with multiple flavors of ...
1
vote
0answers
28 views

new class using author blocks

I have created a simple .cls file in this example. I want to use authblk using the blocks mode. \NeedsTeXFormat{LaTeX2e} \ProvidesClass{testclass}[2019/10/18 Test class] \LoadClass[onecolumn]{...
3
votes
3answers
432 views

Writing juridical documents with Latex

I would like to start building some juridical documents with LaTeX but the ecosystem is too big and I don't know where to start from! If someone could enlighten me, I would like to build documents ...
0
votes
0answers
46 views

What is the keyword used to write a synopsis in LaTeX?

I am writing the synopsis of my project. I don't know whether synopsis keyword exist or not: \documentclass[12pt]{synopsis}
2
votes
1answer
177 views

WileyNJD-v2.cls is not printing the exact math equation I typed

\documentclass[AMA,STIX1COL]{WileyNJD-v2} \begin{document} \begin{equation} \dot{x}=\tilde{x}+\hat{x} \end{equation} \end{document} gives me the following pdf view Is anyone experiencing ...
2
votes
1answer
36 views

Default font sizes do not work with new paper size option

I wonder why the default font sizes won't work in the following modified class file. \RequirePackage{filecontents} \begin{filecontents}{example.cls} \ProvidesClass{example} \NeedsTeXFormat{LaTeX2e}[...
0
votes
1answer
64 views

Understanding and rearranging table in Awesome CV

I am using Awesome-CV right now and want to adjust one of the section codes to a different format. Currently the format has the date on the left, with the position and description next, and then the ...
1
vote
1answer
61 views

How do I use `ifpackageloaded` inside a `cls` file?

I am writing a class that makes some changes in its commands according to the packages that are loaded in the main tex file. However, when is use \@ifpackageloaded for that purpose, it only performs ...
0
votes
3answers
99 views

\input{\<variable>} yields “Undefined Control Sequence”

I am creating a class that I want to use for creating my own worksheets. As such, I want each course that I teach to have its own information file, stored in the file , which, in the assignment, I can ...
1
vote
1answer
39 views

.cls files, indexed in an ls-R File, are not found by pdflatex (macOS, MacTeX)

I want to use a set of custom latex classes, so I copied the whole directory to ~/texmf and execute mktexlsr ~/texmf. Afterwards, the index file ~/texmf/ls-R is created and the respective .cls files ...
0
votes
0answers
175 views

Beamer theme .sty not found [duplicate]

I want to use this beamer theme in offline Miktex software. But when I run the whole file it shows that ! LaTeX Error: File `beamerthemeAir.sty' not found How can I solve this problem ? How can I ...
3
votes
1answer
128 views

Custom university thesis .cls and minitoc compatibility

I suspect that the custom university thesis class which is linked to below might include something prohibiting implementation of a basic minitoc call. The .cls can be found here The code made ...
1
vote
0answers
85 views

What is the best class for writing a PhD thesis? [closed]

What would you say: book, memoir, classicthesis...? I want to read as much as I can on the class documentation before I start writing, so I avoid problems in the future, when I should be focussing on ...
2
votes
1answer
58 views

How to make the label to move into middle of graph

1 How to make the whole diagram alight to my words in my page? I am using \documentclass[12pt,oneside]{book} How to make the graph label in the center? I had change from south east to east, but not ...
0
votes
0answers
81 views

RevText and Overleaf - Could Not Recognise Document Class [duplicate]

I am using the RevTex 4.2 template from Overleaf, found here. https://www.overleaf.com/latex/templates/revtex-4-dot-2-template-and-sample/yydsrzvrqrzs When I try and do a Word Count, I get an error ...
1
vote
0answers
23 views

How can I suppress any bibliography commands a documentclass uses?

Is there any command I can put in my preamble that will suppress any bibliography specific commands/environments a documentclass has? I want to use the cite package and avoid having to define my ...

1 2 3 4 5 18