Questions tagged [formatting]

{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

Generated Table Format Issue [duplicate]

I wrote a simple code to generate a simple table. Here is my code: \documentclass[a4paper,11pt,english]{report} \usepackage{nicematrix} \begin{document} \begin{table} \begin{NiceTabular}{| p{0.2\...
0
votes
1answer
42 views

In Texworks, while the texts were aligned for the first couple of pages, it suddenly is no longer justified in alignment, and indention is not working

Edit: When I try the paragraph in a new texfile without the front page, it is perfectly aligned. So it seems the problem could be in my cover page. I am adding the code and the error messages below- \...
0
votes
0answers
17 views

Format acronyms individually without being listed as a symbol in style=long

I am using the glossary package (long style; glossarystle(listhypergroup)) and would like to format some of the entries like \newacronym{abc}{\textsc{ABC}}{Alpha Beta Curious} It generally works, ...
0
votes
1answer
17 views

Formatting examples: newtheorem

I am using the \newtheorem command for several things: theorems, lemmas, propositions,... But also examples. By default, \newtheorem writes everything in italics. I want everything in italics but the ...
0
votes
2answers
69 views

Rescaling tables

I want to rescale this table because I want it to fit in one page but for some reason it won't and it gives me errors. I tried using \scalebox{0.5} that I used for another table but it doesn't work. ...
0
votes
0answers
31 views

How do I create a chapter name for only an instance

So I have this chapter name for which I have as standard: Chapter 1 Chapter 2 Chapter 3 But I want to have a completely different chapter name which would be called: Category And it would be co-...
5
votes
2answers
65 views

Order of Entries in Index

I am working on an index of first lines for a poetry book and would like the punctuation of the lines NOT to affect the order in which they appear in the index. For example: Now entries appear in the ...
0
votes
1answer
16 views

How to start dissertation abstract on the same line as the Abstract label

The dissertation guidelines at my University requires me to have the abstract starting on the same line as the abstract label. This is the abstract definition given in the class file which I am using. ...
0
votes
1answer
15 views

Excluding header rows from column declaration insertion using the array package

I am using the <{decl.} option provided by the array package in order to append a currency symbol to each value in a specific column, in a custom longtable environment. I can't however figure out ...
0
votes
0answers
26 views

How do you runin text without changing the formatting of the numbers

So I have this command here which is used for formatting subsubsections: \renewcommand{\thesubsubsection}{\thesubsection.\alph{subsubsection}} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \...
0
votes
1answer
35 views

Hide all highlights

TLDR: How to automatically hide all hl elements in the PDF? I have a latex document where I use the soul package to include highlighted text in my pdf, e.g. \hl{test}. These are only meant for me and ...
0
votes
1answer
23 views

Text before in a page, after in a new page

I noticed that, without changing nothing, the same text migrated from a page to a new page. How come and how can I fix this problem? I didn't provide an example because I'm not able to reproduce the ...
0
votes
1answer
26 views

How do you fit flowchart and two tables into one page [duplicate]

So I have this flowchart and two tables and I needed it to fit in one page. How do I do it? Here's the code: \documentclass[12pt,twoside, a4paper]{report} \usepackage[utf8]{vietnam} \usepackage{...
1
vote
1answer
45 views

How do I balance the text with the flowchart

So I have this normal text that is bordering 2 elements: section and the flowchart. The text unfortunately is close to the flowchart but I don't want that. The thing that I want is for the text to be ...
1
vote
0answers
20 views

How to format numbering of sections/subsections in titles and TOC in Beamer

I have some questions regarding formatting and numbering in Beamer. I have changed the section numbers to double digits, which looks something like this: 01 Section 1 01.01 Subsection 1 of section 1 ...
3
votes
2answers
126 views

Why is my itemize line spacing so huge?

My other itemize doesn't have this problem so why does this have it? Here's the code: \documentclass[12pt,twoside, a4paper]{report} \usepackage[utf8]{vietnam} \usepackage{mathptmx} \usepackage[margin=...
1
vote
1answer
29 views

customizing chapter heading by adding box and text

I have a custom chapter heading working fine but I want to add a box and a text to it. It looks like this right now Here is the code I used \definecolor{myblue}{RGB}{0,82,155} \titleformat{\chapter}[...
0
votes
2answers
51 views

How do I add text in a flowchart without a border and how do I move my chart to the right and un-attach my top text with the chart?

Greetings so like the title I have this code and I want you to help me with these problems: \documentclass[12pt,twoside, a4paper]{report} \usepackage[utf8]{vietnam} \usepackage{tgtermes} \usepackage{...
1
vote
1answer
36 views

Sign and Arrow alignment

I'm trying to get the arrow and the right hand side of both these equations to align horizontally with the 'n's and + sign. I tried rewriting the chemfig molecules, though that only helped align the '...
0
votes
1answer
44 views

Moderntimeline in moderncv: how to show months correctly and add second timeline?

I am trying to create my resume using moderncv and Moderntimeline. Based on answer I added new function to have months on a timeline: \documentclass[12pt, a4paper, sans]{moderncv} \moderncvstyle{...
0
votes
0answers
43 views

large gaps between text

i get big white gaps between text, sometimes between text and figures. i have the float package for figure placement using [H]. I cant seem to find what is causing the issue. i attached a link to my ...
0
votes
2answers
27 views

Splitting on two rows equation enclosed in square brackets inside align environment

I've the following equation: \begin{align} \left[ 1 - \frac{m \, t}{\sigma \, \sqrt{n}} + \frac{1}{2} \frac{m^2 \, t^2}{\sigma^2 \, n} + \frac{m \, t}{\sigma \, \sqrt{n}} - \frac{m^2 \, t^2}{\sigma^2 ...
0
votes
1answer
66 views

Formatting hanging indents(?) for list of figures, report class, with other detailed formatting for front matter, chapters, etc

I am creating a template for use in Report document class with pdfLaTeX compiler in Overleaf. The template specifications are specific for the agency, so there are a lot of specifications. The minimum ...
6
votes
4answers
147 views

Problems with formatting multicolumn tables

I am having problems in centering the text in a table using multicolumn. This is the table I have created: \begin{table}[H]\centering \setlength\extrarowheight{3pt} \begin{tabular}{|c|c|c|c|c|} \hline ...
0
votes
1answer
37 views

Unaligned dots in Table Of Contents

I have this code: \documentclass[11pt]{article} \usepackage[titles]{tocloft} \usepackage[title,titletoc]{appendix} \usepackage{titletoc} \usepackage{parskip} \usepackage{titlesec} \renewcommand{\...
1
vote
2answers
44 views

Creating a table with merged cells in RevTex 4.2 template

I'm trying to create a table that looks like this: I'm using the RevTex 4.2 Template. I've been reading this thread but am a beginner with Latex and am not sure how to modify it to make the table I ...
0
votes
0answers
18 views

Figures not staying at the origin place [duplicate]

I am sharing the link to my project so it is better understood. I tried everything from using [h] to [htp] to [h!] and all kinds of variations but it is just not working. if anyone has a clue how I ...
3
votes
2answers
48 views

Adjusting table

I have already coded the table but I need to adjust it to stay inside the format. \usepackage{booktabs} \usepackage{fouriernc} \begin{document} \begin{table} [h] \centering \begin{tabular}{l c c c ...
3
votes
2answers
55 views

MetaPost: does btex ... etex support any LaTeX command?

I am running a MetaPost sample as follows: beginfig(1); label.(btex the \emph{sum} is $\sum\limits_{n=1}^{+\infty}a_n$ etex, (3cm, 3cm)); endfig; end; by mpost main.mp. In the log there is a message !...
1
vote
1answer
50 views

Help with Formatting + Lots of Errors

I was typing up a small document of a few equations, and it was really messy trying to get what I wanted. I tried cleaning it up using the gather environment, but I don't know how to properly use it ...
0
votes
1answer
38 views

How can I write with proper alignment in latex?

I was trying to write a CV on latex. The format looks like the below picture I've tried doing that using the following code: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \...
3
votes
2answers
86 views

Figures with caption inside tabularray (tblr) tables

I am trying to add captions for figures inside a table but am unable to do so. I have looked into this solution but having flexible X columns is not working as described. The current output looks ...
0
votes
1answer
68 views

Designing a custom section title frame with a cut in the top border for text input

I've largely been borrowing the headers (and everything else) as defined in course .sty files. I've definitely been confused as to how to make the following: It is a frame but has an (optional) gap ...
1
vote
1answer
33 views

How do I split \nameref text across two rows, within a single table column?

I have the following table \documentclass{article} \usepackage[english]{babel} \usepackage{amsmath,amsthm,amssymb} \usepackage{amsfonts} \usepackage[a4paper,layout=a4paper, bindingoffset=4cm,...
4
votes
4answers
206 views

Automatically filling in accents/diacritics for characters in LaTeX

There are a number of times when I'm writing LaTeX documents when I need to write a character with an accent or diacritic in it. For instance, the "ô" needed to write "L'Hôpital" (...
0
votes
1answer
43 views

Reference Style of a Template and Change This Style?

I have found a template for a paper (https://academic.oup.com/comjnl/pages/Manuscript_Preparation_Submission; scroll to: Latex 2E And The COMJNL.CLS File), but I am having problems compiling my *.bib ...
1
vote
1answer
24 views

Formatting appendices in TOC, report class, with other detailed formatting for chapters, etc

I am creating a template for use in Report document class with pdfLaTeX compiler in Overleaf. My last hiccup is getting the TOC for the appendices to look a specific way. I have a lot of specific ...
1
vote
1answer
153 views

Why does the inclusion of \hyperref cause rendering problems in MWE

% %------------------------------------------------------------------------------------ % \documentclass[english,11pt]{book} %---------------------------------------------------------------------------...
1
vote
2answers
31 views

Report class formatting TOC. newbie questions

I am creating a template for use in Report document class with pdfLaTeX compiler in Overleaf. There are a lot of formatting details, but I think I have them all minimally reproduced in the code below. ...
2
votes
2answers
73 views

Creating an index for birthdays

I feel like I should be able to figure this out but after poking around for hours at a time over several months, I'm at a loss. Essentially I want to do something like the following: \documentclass{...
0
votes
1answer
16 views

Formatting font, spacing for references title page header (natbib, report document class)

I am creating a template for use in Report document class with pdfLaTeX compiler in Overleaf. I have been able to format the chapter headers, section headers, etc. I am having trouble formatting the ...
1
vote
0answers
28 views

Global table formatting, thin and think hlines, apply to all tables

How can I define a table formatting style that will automatically be used throughout my document? For example, I understand that I can use the caption package to specify caption formatting used ...
1
vote
1answer
21 views

Can I place a pdf on the same page as my Sections Title?

When i use \includepdf to get documents into my chapters, it always opens on a new page. Can i use a command, so that it's displayed directly under the sections name? I tried this: \section*{pdf-file} ...
3
votes
1answer
43 views

How can add the next objects to format the page of the document?

I see some layout in a book that I liked, and I'm trying to make something that looks like it, but I'm unaware of how it should be done. Layout intended (these are two pages separated) First page 2....
0
votes
0answers
37 views

Question source - Fomatting

My code: \documentclass[11pt,letterpaper]{article} \usepackage[lmargin=0.75in,rmargin=0.75in,tmargin=0.75in,bmargin=0.5in]{geometry} \everymath{\displaystyle} % ------------------- % Packages % -----...
1
vote
1answer
49 views

Scientific paper : one page on 2 columns, the following contains 3 tables and text but impossible to come back to 2 columns mode after these 3 tables

I have a Latex scientific paper where on one page, everyting is normal with 2 columns of equations. The following page contains 3 tables and at the bottom some space to put again some text in 2 ...
1
vote
1answer
20 views

Wrapped text around figure being formated into a new column (using TexStudio)

I'm just learning LaTeX, and I am having a problem with wrapping an image. When I use the try to use wrapfigure in TexStudio, I get a second column generated in my document, with the wrapped text ...
0
votes
1answer
34 views

horizontal margins

My code: \documentclass[a4paper,12pt]{article} \usepackage[portuguese]{babel} \usepackage{natbib} \usepackage{url} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \...
0
votes
1answer
35 views

Margin in question answers homework

How can I remove the margin on the answers page (answers to proposed questions) so they all line up? My code: \documentclass[12pt,a4paper,twocolumn]{article} \usepackage{blindtext} \usepackage{...
0
votes
1answer
46 views

How to put a string at the bottom of the page? If I use \vfill it doesn't work quite right

I need to have a text at a very bottom of the page, but when I use \vfill the text goes a line or two above the bottom margin. I guess it has something to do with \maketitle. I use it, so that the ...

1
2 3 4 5
96