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
-1
votes
0answers
38 views

Argument of \@tempa has an extra }. \maketitle [closed]

I have a latex source file of a thesis. After updating Miktex, the file is not working and it gives an error that Argument of @tempa has an extra }. \maketitle. How to solve this issue.
0
votes
0answers
33 views

Set different numbering for sections & subsections

So I have been working on my masters thesis and used a template I found. Now my prof told me that I may not use chapters in this thesis which lead to me reworking the structure. So I switched around: ...
1
vote
1answer
25 views

Problem writing to file through \directlua in a memoir class document

Below is a minimal example of some code where the memoir class seems to collide with Lua code, executed within a \directlua command, that writes to an external file. Can anyone help me figure out the ...
0
votes
1answer
42 views

How to use input in newcommand?

I want to implement an insert text wrapped in some additional tags using the \input command. But I get LaTeX Error: There's no line here to end.. How to do it properly? Here is my minimal reproducible ...
0
votes
0answers
24 views

Defining new environment in a class with a process in exam class

I'm trying to edit the exam class to include a new environment called versions, it should be similar to the questions environment; i.e., if you type \begin{versions} \version : : : \version : : : \...
0
votes
1answer
80 views

personal letters with koma-script [closed]

KOMA-Script provides the scrlttr2 and scrletter classes, which, in contrast to the standard class letter, has the flexible design common to other KOMA-Script classes. One observation about letter is ...
0
votes
0answers
27 views

Use a downloaded .cls class to write an article with Overleaf

I want to write an article using a specific .cls class that the editor of the journal requires. I am using Overleaf to write my article, so I would like to know how can I create the document using the ...
0
votes
0answers
42 views

Is there a way of creating a design in LaTeX the same way CSS allows you to style a HTML page?

As you probably know, CSS isn't only there to make text red or to tell the browser you don't want your links to be underlined: CSS is an incredibly powerful designing tool that allows you to shift and ...
1
vote
0answers
33 views

Use babel's `main` key in global options

In one of my templates, I need to load babel in the .cls file, as some functionalities in the .cls file depend on babel. I would, however, like to keep the flexibility for the user to set whatever ...
7
votes
3answers
188 views

A mode to produce a document in one language or the other

He is my issue: I need to keep many documents (CV, research statement, research projects, list of abstracts, etc.) updated and ready to be sent for applications, sometimes in quite a rush. However, ...
0
votes
0answers
38 views

Using revtex4-2 with the biblatex package

I am struggling with LaTeX on Overleaf. I am trying to produce a bibliography and I can, however, only if I select the article class. If I switch to RevTex4-1, it still produces the output I want, but ...
0
votes
0answers
33 views

Strange !Extra \endgroup error

I believe similar issues have been raised after a recent update before, but I couldn't find anything that fixes my issue, so I'm posting it here. I'm trying to run the Review of Finance Latex template ...
1
vote
1answer
28 views

How to display the correct choice in red color in exam class?

\documentclass{exam} \printanswers \begin{document} \begin{questions} \question Sample Question 1 \begin{choices} \choice Option1 \choice Option2 \choice Option3 \...
0
votes
1answer
51 views

Having Multiple Bibliographies using AIP document class in Overleaf

I am finalizing a document for an AIP journal on overleaf, so I am using the aip documentclass. \documentclass[% aip, % jmp, % bmf, % sd, % rsi, amsmath,amssymb, %preprint,% reprint,% %author-year,%...
1
vote
0answers
176 views

revtex4.2 on miktex breaks (Missing \begin{document})

TeX experts. Below is a MWE of an error I see during compilation, which I think is associated with revtex: \documentclass{revtex4-2} \pdfoutput=1 \begin{document} \title{the title} \author{the ...
1
vote
1answer
49 views

Add to macro in a class file

I am trying to make a command much like \author works in the article class (I did not understand how this was implemented in article.cls). The function must take two arguments and expand the \...
2
votes
1answer
77 views

Changes from TeXlive 2017 -> 2020: kvoptions issue

I changed recently to another computer and made a new TeXLive installation (2020). The old machine is running with TeXLive2017 (shame on me). Now I run into trouble compiling some of my documents (...
1
vote
3answers
57 views

What is twoside used for in printing?

I wonder the detailed usage of the documentclass option twoside. I learned from somewhere that it is used for some kind of printing, especially for printing books. However, it does not provide more ...
0
votes
0answers
28 views

Using commands from different document class

I am creating a document with class: \documentclass[11pt,a4paper]{altacv} I want to use a command \cvdoubleitem which is available in class moderncv. How to achieve this? Tested methods I explored ...
0
votes
0answers
17 views

If one is using a *.cls that requires a graphic file, where should the auxiliary files be so that it works?

I am using the *.cls files from the "Frontiers in *" Scientific Journals. They have their own classes and templates and examples. I put the *cls files in my texmf directory and did the ...
1
vote
0answers
23 views

Overleaf incompatible with journal's document class? [closed]

I'm trying to format a journal article for publication. The journal has their own latex document class JASA and I just cannot get my .bib file to register in that document class on Overleaf: \...
1
vote
0answers
78 views

Is JASA documentclass not working?

I have the following "minimal example" which is not working: %%%%%%%%%%%%%%%% \documentclass[preprint]{JASA} \begin{document} \title{My Title} \author{My Name} \begin{abstract} ...
0
votes
0answers
30 views

How to include a *.tex file in another one when each use their own classes

I have two *.tex files (let say main.tex and subtex.tex). I want to include the "subtex" in the main file. The accepted answer to this question might work but the problem is that the "...
0
votes
0answers
95 views

How to remove line numbers from my paper?

I am using the template of MDPI https://www.mdpi.com/data/MDPI_template.zip?v=20201020 I wonder how can I remove line numbers next to each line? % LaTeX support: latex@mdpi.com % In case you need ...
0
votes
1answer
22 views

Article problem for rsl.cls

I want to submit an article for Review of Symbolic Logic, and have problems with a failure of pagebreak on the first to second page as illustrated in the following pdf-file Opostow - notice the bold ...
0
votes
0answers
17 views

Can my custom class alter the default beamer aspect ratio?

I'm writing lots of beamer slides mostly using a non-default aspect ratio. Rather than start most documents with \documentclass[aspectratio=149]{beamer} I'd like to write a custom class mybeamer.cls. ...
0
votes
0answers
47 views

Versioned dependencies

I created my own class and style files and have them in my $HOME/texmf/tex/latex/local/ directory. They form the basis for all my documents. The problem is, these style files are changing often, as I ...
0
votes
0answers
13 views

MWE of ReviewofSymbolicLogic.cls tex and bib-files?

I want to submit to Review of Symbolic Logic and want to comply with their request for using the RSL Latex class file. But I do not succeed and, as far as I can see there is conflicting information or ...
0
votes
1answer
49 views

Error using mcode for importing Matlab code into LaTeX

I want to import import matlab code into my latex document: Consider the following code: \documentclass[bibliography=totoc,toc=sectionentrywithdots,DIV=10, parskip=half, 12pt, captions=...
0
votes
1answer
51 views

Can one suspend a document class option for even/uneven pages?

As the flashcards documentclass allows use the option grid to make the grid of flashcards visible globally, i.e. on the frontside as well as the backside, I was wondering whether it is possible to ...
5
votes
1answer
132 views

Dark Mode: white characters on the black paper

Is there a function command to change the black characters on the white paper to the white characters on the black paper for the whole document? I am using the \documentclass[article]. I am asking in ...
1
vote
1answer
36 views

Why cannot transfer the documentclass[article] to documentclass[letter]?

I'm a freshman to use latex. I don't know why cannot transfer the documentclass[article] to documentclass[letter]? Here is the error information: LaTeX Warning: Unused global option(s): [10pt]. (....
0
votes
0answers
40 views

Is there any package or document class for a 79.50 ± 0.50 (W) mm x dia 83.00 mm paper roll (thermal printer)?

I would like to use latex to print out receipts with a thermal printer (~80mm width paper roll). I searched for an existing package, tutorial etc. but couldn't find anything. If there is anything like ...
1
vote
1answer
37 views

Images are loaded in draft mode

I'm trying to load draft mode as an option for my class. Overfull lines are highlighted, but unfortunately images are loaded normally (not just as frame). Can someone please tell me why? Class file: \...
0
votes
0answers
32 views

How to debug character set difference with document class change?

I'm trying to use an agda package to compile to latex, and am getting the below error when I make a seemingly insignificant change to the literate agda file (see https://agda.readthedocs.io/en/v2.6.1....
0
votes
0answers
24 views

\href links are broken with Adobe Reader

I encountered a problem lately that I can't find a reason for. I wrote a command "infopage" which is placed in my .cls-File and does look like the following: \newcommand{\infopage}[2]{% \...
0
votes
0answers
23 views

KDP class for latex and wrong margins

I am using latex with the KDP class to format my pdf. The layout is overall very satisfying but the margins don't seem right. For example, on odd pages, the margin on the right side is wider than that ...
0
votes
0answers
22 views

How can I include content from a class file?

I have a header (with a logo image) that should be included in every document that uses my document class. The nature of the header is visually complicated, but pretty simple from a code perspective ...
0
votes
1answer
204 views

(Urgent) Remove “Abstract” title and content from document

I need help trying to remove abstract and all the content that is included in my document. Can anyone help me please immediately? What I am posting is the wlscirep and the main.tex. wlscirep % % An ...
2
votes
1answer
80 views

bookshelf documentclass causes error: Command '\SILmfont' already defined!

I'm using Peter Flynn's bookshelf document class to produce a pdf "bookshelf", consisting of graphic representations of book spines with titles from my .bib file. I followed the docs, and ...
0
votes
1answer
140 views

Errors using Awesome-CV template; Not sure why .cls isn't working

I keep getting errors when typesetting the awesome-cv template regarding things I don't recall changing at all. I assumed it was a package error thing although I just recently downloaded the latest ...
0
votes
1answer
37 views

Splitted-pages LaTeX format

Do you remember the book titled "Diary of a bad year" written by John Maxwell Coetzee (a Nobel laureated writer)? If you do not. This book has a special format where each page is ...
0
votes
1answer
45 views

Make inline questions that are later printed again as flashcards

I am working on a handout in the tufte-book document class but wanted to make flashcards inline that are both printed within the text in one format (front and back side-by-side to show what you are ...
0
votes
0answers
31 views

Adding a calendar to the appendix

I am writing a report in Latex and would like to append a calendar in the appendix. I found this calendar and it looks really nice, but I have no clue how I could append it to an existing Latex ...
0
votes
0answers
16 views

write paper with svjour3 document class [duplicate]

I use svjour3 documentclass to write my paper, I can not put all author names in one line, how can I correct it? My code is below. \documentclass{svjour3} \smartqed \journalname{Earth Science ...
0
votes
1answer
25 views

How to use \title variable inside a class?

I try to define a class by myself and I want to put title to top-center of page but when I use it like \chead{\textcolor{blue}{\textbf{ {\fontfamily{phv} \selectfont \@title}}}} it does not print ...
2
votes
1answer
88 views

Tikz: Different positioning behavior when using scrbook or book

when embedding my tikz images into different types of document-classes, I experience some very annoying differences. I have provided the following MWE: \documentclass[ ]{book} %]{scrbook} ...
0
votes
1answer
50 views

Using hyperref with base classes

I am using the package hyperref in combination with custom base classes and I have problems understanding the error messages: Undefined control sequence. <recently read> \Hy@colorlink and ...
3
votes
1answer
45 views

tikz standalone vs article: fix to limit output to just the figure needed

I need to convert a latex output to an SVG extending to just a figure. \documentclass{standalone} %\documentclass{article} %\pagestyle{empty} \usepackage{nicematrix,tikz} \begin{document} $\begin{...
1
vote
1answer
45 views

Table captions expanding over both columns in a single-column table

I'm using the 2-column IET template and am running into a problem with tables. Namely, the captions of the tables extend over both columns even when the table itself is single-column. I've set up a ...

1
2 3 4 5
20