Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
0answers
10 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
38 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
28 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
42 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
65 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
33 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
36 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
38 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
58 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
38 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
33 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
44 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
28 views

Translate the text 5mm downward

I have written a B5 LaTeX document using the following commands: \documentclass[b5paper,11pt,openright]{book} What I want to do is to move all the text 5mm downward so that the topmargin is 5mm ...
-1
votes
0answers
136 views

Latex cover letter template

I have a CV using \documentclass{resume} in LaTeX, and I want a cover letter to match it. There seems to be a shortage of cover letter templates on the web, and the ones I did find were formatted more ...
-1
votes
0answers
35 views

Help format 17*24cm

I am writing my thesis. The desired format is 17cm x 24cm. \documentclass[11pt, oneside]{Thesis} % Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn \usepackage[ paperwidth=17cm, ...
0
votes
0answers
42 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
57 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
58 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
50 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
73 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
96 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
46 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
143 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
30 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
27 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
82 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
96 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
58 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
56 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
64 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
19 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
40 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
0answers
39 views

File not found error with beamer [duplicate]

\documentclass[notes=show, Spanish]{beamer} \usepackage{graphicx} \usetheme{Singapore} %\usetheme{CambridgeUS} \begin{document} \begin{enumerate} \item hai \end{enumerate} \end{document} The error is ...
0
votes
1answer
30 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
31 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
101 views

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

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
46 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
92 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
36 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
188 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
50 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
201 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
39 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
174 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
33 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 ...
2
votes
1answer
66 views

How to set section titles centered, bold and underlined?

I'm editing a custom documentclass .cls file and would like to set section titles centered, bold and underlined. \def\section{% \@startsection{section}{1}{\z@} {\baselineskip}{\baselineskip} {\...
1
vote
0answers
136 views

creating a special template for multiple-choice quiz [closed]

Does any one know how I can obtain (access) a format, template, macro or a special documentclass in which I have a template for creating some pages of a multiple-choice quiz same as I read this, but ...