Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
15 views

Query beamer document class option aspectratio in a .sty file

I am writing my own latex beamer style. I want to use different background graphics depending on the aspect ratio chosen in the documentclass in the main file, like \documentclass[12pt, aspectratio=...
0
votes
1answer
41 views

Need to close paragraph with `\par` to change spacing

I have defined a simple class \NeedsTeXFormat{LaTeX2e} \ProvidesClass{mycustom}[2019/03/06 My custom class] \LoadClass{article} \RequirePackage{setspace} \newcommand{\summary}{ \begingroup \...
2
votes
1answer
61 views

Issue with section text assuming same color as body text

I am trying to understand a behavior where section headers assume the color of the first word in the section. Here is my MWE: \documentclass{minimal} \usepackage{xcolor} \makeatletter \...
0
votes
0answers
19 views

How to define the document class parameters?

I am using this document class for a chapter: \documentclass[runningheads,a4chapter]{llncs} How can I define a class so I has the following features: A4 page with 1 inch (or, 2.54 cm) margin on ...
1
vote
2answers
44 views

Use of graphicspath in class

I am using my own class MyReportClass to write a report. I have taken inspiration from this answer to redefine the \includegraphics command inside the class in order to use the example-image-a in case ...
1
vote
3answers
49 views

Declaring option a4paper in \documentclass produces different margins than declaring it in \geometry

I have seen a similar question at a4paper, where should I declare it? In document class or geometry? and the selected answer there implies that there is no difference in whether we use \documentclass[...
1
vote
0answers
14 views

How to format LabelString in Lyx .module file?

MWE Style Brief_Name Category Pleading LatexType Command Align Left Margin Dynamic LabelType Static ...
1
vote
2answers
83 views

Where can I download cuparticle.cls file

When I compile my document. LaTex shows the error: File, 'cuparticle.cls' not found. Where can I find this file. The file is for Cambridge University Press. Actually, the Journal is Forum of ...
0
votes
1answer
35 views

Hacking ASME conference template for SB3C conference

The SB3C abstract format follows the ASME conference format rather closely, but the SB3C does not have a LaTeX template. I am trying to modify the ASME latex class to meet the specifications of the ...
1
vote
1answer
49 views

Class design: Import variables defined in main.tex to customize form output?

I have created a class that does the standard things: declares and processes options, loads a base class (article), loads other packages, defines variables, defines a custom fancy header and footer, ...
1
vote
0answers
66 views

Why is the title of a 'report' set in smaller font than the chapter headings?

I'm writing a document using the report class. I'm noticing the chapter headings look pretty big (and bold), while the main title is much smaller - perhaps 60% the x-height or so. A(n almost) minimal ...
0
votes
1answer
58 views

How can I use ieeeconf.cls file in root.tex in TexStudio?

I've been trying to use the ieeeconf.cls file with the root.tex file, but I just can't get that work. I import like this: \documentclass[letterpaper, 10 pt, conference]{ieeeconf} but I get the ...
1
vote
1answer
46 views

Edit latex class setting

I'm currently using the tufte-book class. I want to change the chapter style from [display] to [hang]. But when I found the tufte-common.def file, I could not edit it, any suggestion on how I should ...
0
votes
0answers
61 views

Document margins with a4paper: documentclass vs. geometry

Using pdflatex, I would like to set an A4 article. I believed (from this answer) that it did not matter whether I use \documentclass[a4paper]{article} or \documentclass{article} \usepackage[...
2
votes
1answer
59 views

.dtx calling command from class

I am writing a .dtx file and want to call a command from my class; however, the .dtx file requires ltxdoc as its class. How can I demonstrate the output of a command from my class within the .dtx file?...
0
votes
0answers
73 views

The counterpart of “adjustwidth” as “adjustheight”

Is there a counterpart/similar function like "adjustwidth" to width, as the "adjustheight" to height? What I hope to see is something like shifting a whole table upward above the top margin, since ...
0
votes
0answers
37 views

Execute command \AtEndDocument in a custom class

I am studying Count number of figures, tables and citations in report class. I am writing a custom class that would have this implementation built in. I would like to move the commands \AtEndDocument ...
3
votes
0answers
47 views

Document Class (or Alternative Solution) for Documenting Programming Code

Different from writing a report or thesis involving code, I have the goal of producing a transcription of a C++ solution involving many projects with many .h and .cpp files. Furthermore, this document ...
0
votes
0answers
52 views

How does MastersDoctoralThesis template know the language setting?

We're trying to change the MastersDoctoralThesis template to use Hungarian, which is magyar in babel. When running the mwe: \documentclass[magyar]{MastersDoctoralThesis} \begin{document} \...
0
votes
1answer
84 views

TexLive (Ubuntu): Installing a new class

I have a class file I have put in my local texmf directory (.texmf/tex/latex/classdir) and run sudo texhash but I am still getting a build error saying that my class file cannot be found. I have gone ...
2
votes
3answers
57 views

Conditional Execution of a Command based on used Documentclass

I use KOMA-Script-classes almost exclusively and because i don't like, that it always prints several elements of the table of contents in bold letters, i have included \addtokomafont{chapterentry}{\...
1
vote
1answer
65 views

Optimizing a document to contain the least amount of white space/most amount of text

I am currently composing a cheat sheet for an exam using latex base. A lot of space on the page is wasted. Can anyone give me some tips about how to reduce the amount of white space? I suspect that ...
0
votes
1answer
79 views

Changing Section heading in latex template

I would like to change the section and subsection heading in my latex template. The current heading is in bold, but it also has to be indented and numbered. I do not know how to change it in the class ...
3
votes
1answer
75 views

How do I create a Lyx layout or document class to handle a different margin for the first page?

I just finished formatting a paper to meet IEEE CDC 18 format requirements: first page has 74pt top margin, 54pt all other margins. Second page and beyond use 54pt margins all around. Note that the "...
2
votes
3answers
118 views

Enumerated list with repeated numbers with an asterisk

I'm trying to obtain: 1. text text text 2. text text text 2*. text text text 3. text text text 4. text text text 4*. text text text I've seen something similar done with: \newcommand{\myitem}{\...
0
votes
0answers
50 views

pdf output of book documentclass

I am getting slightly confused with the pdf output of the book document class. I am writing the textbook for my Discrete Math course and I chose to use the book class with the default options. I ...
1
vote
0answers
281 views

Can't load a .cls file in TexStudio -Texlive 2018 [closed]

I'm working in Windows 10 using TexStudio on TexLive 2018 distro. I'm writing my bachelor final thesis and I need to use a document class defined by my academic department. I have a .cls file named "...
0
votes
1answer
34 views

Change the name of document elements like 'Figure' or 'Abstract' twice

This is a bit of a continued question looking at here I am using the memoir package which implemented the abstact package directly. As I use polygesia instead of babel, to rename the predefined name ...
0
votes
1answer
32 views

Memoir: Margins vs Marginsandblock

I am using Memoir and try to setting up the pagelayout but it don't matter how often I read section 2.4.2 I don't really get what is the difference between using \setlrmargins{spine}{edge}{ratio} ...
1
vote
1answer
89 views

How to call this or what package is this (picture in post)

I recently saw a picture of someone in an older post. Does anyone know what package this is or how to call it? I mean the 'Chapter-Beginning', the One over the Chaptername.
0
votes
1answer
150 views

Cannot find package stata.sty [duplicate]

I am using the command texdoc on stata to generate LaTex code. However, whenever I try running the code using pdfLaTex on TexWorks, I get an error saying that the package stata.sty could not be found ...
1
vote
1answer
80 views

Is it possible to set the draft mode of a document AFTER \documentclass

I am using a precompiled preamble with the \documentclass inside. However, I sometimes want to change the document to 'draftmode'. Recompile the preamble everytime I am doing this is not so ...
1
vote
1answer
80 views

How to nest multiple documentclass

I would like to create a running diary of documentclass 1 that constitutes multiple instances of documentclass 2, where preferred documentclass 2 is 'minutes'. I am aware of subfiles, but don't know ...
0
votes
0answers
67 views

How to replace a standard environment in LyX by the environment defined in a user document class?

I am writing a thesis in LyX 2.2 using a document class provided by the university. In this class, the commands to start a chapter and a section is defined as \Chapter{} and \Section{}, respectively, ...
15
votes
3answers
1k views

Why are the standard document classes not being developed further?

I don't know whether this question has a clear answer, but I was unable to find anything about this on Google, so here goes. Despite the emergence of "rich" document classes like KOMA-Script or ...
1
vote
0answers
20 views

Is it possible to create a memo “environment” after my title page, in an article class? [duplicate]

I'm writing a report right now (in an article class, I know.. But I didn't want to have a Chapter as my top level of organization), and the report guidelines specify a memorandum/letter of submittal ...
0
votes
1answer
59 views

ACM document format vertical space

It is my first time writing a document using the ACM class (sig-alternate). However, I am encountering a big vertical space on the first column of my first page, that shifted 5-6 lines of my ...
3
votes
1answer
56 views

Tikz-Picture: Insert pure tikz-code via \input[file_with_tikzcode.tex] or use \input combined with standalone package?

I am wondering if there is any kind of difference mentiones in the approaches above? Situation1: I have my main.tex with just normal text. When drawing a picture, I create another .tex file with just ...
0
votes
1answer
32 views

dirtree clashes with dtx-file

The following error occurs when I try to generate my documentation of a dtx file. ! Use of \next doesn't match its definition. <argument> .1 \meta {Catalog’s ID}\DTcomment {This ...
0
votes
0answers
32 views

Resize right margin in bibliography; problem with hausarbeit-jura.cls

I noticed a problem with the hausarbeit-jura.cls. For some reason there is a huge margin on the right side of the bibliography that leaves the bibliography weirdly small. I can't figure out though, ...
1
vote
0answers
147 views

Class Springer-SVJour Error: No valid journal specified in option list [closed]

I am trying to submit an article to the EPJ plus but I got the following error: LaTeX Warning: File `leer.eps' already exists on the system. Not generating it from this source. (c:/TeXLive/texmf-...
1
vote
1answer
48 views

Can you help me fix broken latex class file?

So I am nearing the end of my PhD and need to start writing my dissertation. My university (University of Connecticut) has certain guidelines for the format of the document but does not have an ...
0
votes
1answer
103 views

Paper size for books & custom class

I noticed that some books written in TeX have a smaller page size than the usual articles. Specifically, I'm looking at the Language Science Press template, which seems to use a smaller page size. My ...
1
vote
1answer
37 views

Change indent of section* in cls file

I am using a custom latex class (https://github.com/quantum-journal/quantum-journal/blob/master/quantumarticle.cls). Using this class, the titles of unnumbered sections are indented slightly. However, ...
1
vote
0answers
271 views

Install custom document class under (Windows) MiKTeX [closed]

I'm trying to create my own document class based on memoir. But right now I can't even seem to add it to the right spot. I put it in the user install path detailed here: https://miktex.org/kb/texmf-...
1
vote
1answer
54 views

Creating a conditional style theme

Another tex user has helped me get to the following solution to switch between my colour styles: \newcommand{\jackclass@definetheme}[2]{\@namedef{jack@theme@#1}{#2}} \newcommand{\usetheme}[1]{\@...
5
votes
1answer
250 views

Subfiles failing with custom class

I'm writing a document using the AASTeX template, and would like to use the subfiles package to manage the sections. I'm following the ShareLatex example available here, and have modified it to use ...
2
votes
1answer
48 views

Passing parameters to a class variable

I'm trying to create my own colour theme for my document class. At the moment my solution is to use a class parameter: \DeclareOption{colour-theme-formal}{ \definecolor{soft}{gray}{0.75} \...
1
vote
2answers
238 views

LaTeX - Misplaced alignment tab character &

I am struggling with LaTeX, which is a template by the American Institute of Physics. I work on a document with header: \documentclass{aip-cp} \usepackage[numbers]{natbib} \usepackage{rotating} \...
0
votes
0answers
35 views

Getting “et. al” in self-defined documentclass gNST2e does not work

I am writing a paper for some journal which demands to use their (I think self-defined) documentclass called "gNST2e". As it is the case with the \citet command from natbib, I would like to get the ...