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
2answers
42 views

Is there any way to tell the compiler, inside the main file body, how to find the class?

I would like to use a class that belongs not found in my MiKTeX database. I know I might as well pick up this class and put it in some directory inside the base and update MiKTeX, but I do not want to ...
1
vote
1answer
34 views

Text alignment on curriculum using the Tccv document class

Hello I am trying to modify the Two-column CV template which uses the tccv document class. Specifically I want to modify the formatting in the Work experience section which looks like this per ...
5
votes
0answers
54 views

nicematrix \ddots has different performances in different documentclass

When I use \documentclass{article}, just like (no problem) \documentclass{article} \usepackage{nicematrix} \NiceMatrixOptions{transparent,nullify-dots} \newcommand{\underbracedmatrix}[2]{% \left(...
0
votes
0answers
48 views

Modifying content of existing headers

I am using a document class that sets up some headers (using fancyhdr), and I would like to modify (not overwrite) these headers. For example: The document class creates a right-side header saying "...
1
vote
1answer
28 views

pdflatex error: Missing \begin{document}

I have a settings.tex file that looks like this: \documentclass{letterpaper, 12pt, amsart} \usepackage{ifthen} \usepackage{amsmath} \usepackage{amsthm} \usepackage{tikz} And I file test.tex that ...
0
votes
0answers
39 views

How to create your own class for a very specific usage?

I have created my resume in Latex and honestly, I like it a lot. I was thinking of making a template and publish it somewhere so that people can use it. But it's rather complicated and it would be ...
0
votes
0answers
62 views

Choosing a base class

I started writing my own book class and I'm not sure wheter I should use book or scrbook as my base class. (I'm going to load one of these classes, I'm not going to start writing one from scratch or ...
0
votes
2answers
24 views

What class file should I be looking for, for 2 column preprint physics style?

I need something that gives me the following functionality: 2 column journal style natbib or other automatic parsing of .bib file with hyperlinks numbered bibliography items and citations, i.e. ...
2
votes
1answer
25 views

How to get the font size parameter passed to the main standard classes?

For complex length manipulation (see here), I would need to get the font size that was passed as an option to the document class: \documentclass[12pt]{article} \newlength{\mainfontsize} \setlength{\...
0
votes
0answers
34 views

Using variables in custom class

I am working on a custom document class for my faculty. When creating the frontpage I want to have some custom variables. Such as title, author, supervisors etc. I was able to do it in a single ...
0
votes
0answers
12 views

Run time error or preview error survey IEEE paper

i received such message when i run my file the file pic is attached please help me all update are installed below is the link: https://i.stack.imgur.com/ixhFK.png
0
votes
0answers
34 views

Trouble changing font size - using documentclass article

Writing a paper, trouble with fonts. The font seems small to me - so I have tried a) changing it from 10 to 12 or 14 (see below), and b) trying to use extra larger font size (also below). I'm focusing ...
1
vote
0answers
27 views

“I can't write on file …” when installing class from a .ins file [duplicate]

I'm trying to install the elsarticle class manually on MiKTeX 2.9 (Windows) from the .ins file. However, when I type latex .\elsarticle.ins, I get the following: This is pdfTeX, Version 3.14159265-2....
0
votes
0answers
36 views

Installing new classes into TeXstudio

I'm about to be a first-year graduate student and was asked to write a first draft of a calculus one midterm. I have always used TeXstudio for homework and research papers I have written and they ...
0
votes
1answer
32 views

How to change the document class to tikz stand alone?

How to change the document class \documentclass[english]{IEEEtran} to \documentclass[tikz,border=3.14mm]{standalone}. And I still can get the same output figure. \documentclass{ieeeaccess} ...
0
votes
0answers
24 views

Create a template for thesis report with custom fonts

I want to write my thesis report using latex. I want to create a template for this so anybody in my class can use this easily. I these font sizes 11 [Chapter Body] 12 14 16 [Chapter Title] 18 What ...
0
votes
0answers
34 views

`.cls` and `.sty` files merging to create an appendix

I have a .tex file, actually it is from a certain layout of my university, and it comes with a .cls file of its own. And now I have to create an appendix section contains only some Matlab codes. I ...
1
vote
0answers
22 views

What is the recommended class for making Q&A document? [closed]

I want to make a help guide for Game Theory students where the document contains question and answer. For example- 1.What is a unique Nash equilibrium? A Nash Equilibrium is a set of strategies ...
1
vote
1answer
65 views

How to fix vertical spacing issues in a CV template?

I am using this template for a CV. However, for some reason I am getting incomplete sections over the two pages, for example: How can I make section 4 appear in the other side of the page (top of the ...
1
vote
1answer
26 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
45 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
64 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
27 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
67 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
68 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
17 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
203 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
46 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
62 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
119 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
57 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
121 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
61 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
147 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
40 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
52 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
74 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
140 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
58 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
71 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
116 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
87 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
151 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
53 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
359 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
41 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
36 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
94 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
201 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 ...