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

Big } outside math mode

How to make something like this outside math mode? A sample goes here: \documentclass{article} \begin{document} $$\left.\begin{aligned} \text{inclusive} \\ \text{opposite} \\ \text{causal} \\ \...
2
votes
1answer
15 views

Fixing alignment for the first and the last row in a table where numbers are alighed by the decimal point

I'm trying to align the first and the last row in a table, where the rest of the data is numerical and is aligned by a decimal digit. I found a hack to go around this problem, but looking for a nicer ...
0
votes
0answers
8 views

Sections in text neither numbered nor formatted but correct in TOC

I have a latex template from my department which doesn't display my sections and subsections properly. They appear correctly in the TOC but in the text, they are neither numbered nor bold nor ...
0
votes
0answers
21 views

How to adapt the model “The Legrand Orange Book”?

In the template The Legrand Orange Book, LaTeX Template, how to decrease the space for the image at the beginning of each chapter, if possible until extinguishing it, and without leaving the space, so ...
1
vote
1answer
19 views

Align equation to left in nested list

I want the equation to align left in this specific scenario(i.e. a nested enumerate) and dont want to change the environment setting for the whole article. How do i proceed? Below is my code and ...
0
votes
1answer
37 views

Multiplication and division with counters while also formatting

See the code that follows. The user gives some pairs of numbers. Each time they happen also to be displayed. Finally they are added up in a specific way. \documentclass{article} %\def\Result... \...
0
votes
0answers
24 views

Formatting complex table of contents

I have to do this table of contents : Sorry for the terrible picture, I hope it is understandable. Here is a few explanations : The toc has two columns. But toc's title ("TABLE ANALYTIQUE") and ...
1
vote
1answer
16 views

Title formatting with titlesec

I am trying to format titles using titlesec. Here is what I want to do: \subsubsection: \paragraph: And this is my code: \setcounter{secnumdepth}{4} \renewcommand{\thesubsubsection}{\arabic{...
3
votes
1answer
65 views

Binomial Coefficients in Piecewise Function

is there a way to get binomial coefficients to appear inside a piecewise function? This is the code I am using right now: $$ a(n,3)=% \begin{cases} $ 1 {{k+2}\choose{2}} + 4 {{k+1}\choose{...
1
vote
2answers
23 views

\part formatting

I am trying to change the aspect of \part titles. My goal is to reach this aspect : Here is what I have done so far : \documentclass[12pt,twoside,draft]{book} \usepackage{fancyhdr} \pagestyle{fancy} ...
0
votes
0answers
25 views

Fancyhdr header and footer size and font [duplicate]

I am having a hard time formatting fancyhdr's header and footer. I have tried \small or \fontsize{6}{6}... I can't change it. Here is my code : \documentclass[12pt,twoside,draft]{book} \usepackage{...
2
votes
1answer
29 views

standalone and chemmacros

I am using chemmacros to write REDOX chemical reactions. I tried using "standalone" to create a file the size of the equation, but it didn't work. how to solve this problem? \documentclass[border=...
5
votes
3answers
93 views

How to align text vertically in table

I have designed a table that is looking well except for one part, that is not aligned vertically to the center. I think it has to do with the line separating "Property at 27ºC" from the actual ...
0
votes
1answer
44 views

\section formatting

I am trying to format my \section command in order to get a result like : "Partie" is a piece a text I want to see everytime. Then "1" corresponds to the section number, and "Introduction" to the ...
0
votes
1answer
23 views

Make first sentence appear to the left of the other sentences until Enter is pressed

I would like to make something that looks like this: Where each part of the text is a bit to the right of the first word of the first sentence and the line comes down only after I press "Enter". How ...
0
votes
1answer
13 views

style modification glossaries-extra.sty help

My codes are follows: \documentclass{book} \usepackage[acronym]{glossaries-extra} \newglossaryentry{valid} { name={valid}, description={An argument is valid just in case its premises provide ...
1
vote
1answer
18 views

Incorrect bracket using MnSymbol with fontspec

I am having issues with MnSymbol and fontspec, compiling math with large brackets is incorrect. I am currently compiling with xelatex. I have searched around and found another post (Link) but the ...
3
votes
1answer
30 views

How to get nicematrix diagonal dots in the right place

I'm trying to write a matrix with dots in it using the nicematrix package. I'm struggling to get the dots in the right place. My current best attempt looks like this: The lower triangle of the matrix ...
0
votes
0answers
24 views

How to mark the end of a column

I am writing a report using two columns for the first time. I am wondering if it is possible to keep the page layout as it is (so keep the figure and the same text on the right side as it is right now)...
0
votes
1answer
23 views

Change format for frontmatter and backmatter items in memoir Table of Contents

In a previous question, TKO successfully formatted memoir \frontmatter \chapters (in this case Foreword and Abstract) differently to \mainmatter items in a \tableofcontents: \documentclass{memoir} \...
0
votes
1answer
25 views

Adjusting vertical distance of equation number from equation

While writing down some notes I encountered the following formatting problem that I would like to address As you can see the equation numbering is really near the equation. I would like to make it go ...
1
vote
0answers
25 views

Reproducing P. Aluffi's Definition/Theorem style [duplicate]

Currently reading P. Aluffi's: Algebra: Chapter 0 and I really like the way theorems, definitions, etc. are emphasized by a lower right corner symbol (\rlcorner). For reference I have tried ...
2
votes
2answers
34 views

Formatting: Double hanging indent of an entire paragraph

How would I format the following in LaTeX: My current LaTeX code provides this: (Forgetting the Bolded text for now) My code looks like this: \documentclass [a4paper,12pt]{report} \edef\...
0
votes
1answer
30 views

How do I prevent equation stretching in inline math mode?

This only happens when I have something like $a = b$ in a paragraph. I have used ${a = b}$, and that works fine, but is there something I can add to my preamble so I do not need to add the braces ...
1
vote
1answer
29 views

latex commands (italic and centring ) custom command

I want to ask your assistance in two commands(in latex .tex enviroment) thie first one needs a command which is called redbold, in this command I need form the text red colour and bold style. In the ...
2
votes
1answer
36 views

How to correct the appearance of the captions

I followed a tutorial I saw on this website, but the captions don't look right because they are too long. This is the code I used: \begin{figure}[h] \centering \begin{minipage}{.5\textwidth} \...
0
votes
1answer
16 views

Customizing the counters of theorems, etc

I have a document with Theorems, Definitions, Propositions, etc. In this document, I have a variable; for instance: \def\idChapter{25} I would like all my Theorems, Definitions, Propositions to be ...
0
votes
1answer
45 views

Lengthy subscript and commas formatting nicely [closed]

How do I rewrite this equation nicely in LaTeX? $d \leftarrow \min\{ \min_{\omega \in \Omega} {u^\omega_{c',i^\omega_{c',t'}}}, r_{c',t'}\}.$ There are at least two problems I see: The two ...
0
votes
2answers
53 views

Renewing table of contents distances breaks boldface for page numbers of sections and of titles

It seems like a simple problem but it is not clear how to fix it. Consider this \renewcommand{\thesection}{\arabic{section} ABCXYZ} ... \tableofcontents \section{The title of the section} will ...
0
votes
0answers
38 views

Removing Spaces Between Documents

How can I remove spaces inserted between different documents. \include{project/Chapters/doc1} \include{project/Chapters/doc2} I want these two documents glued together with no spaces. Thank you!
0
votes
2answers
29 views

Hanging indentation of section number to the left of the margin

Do you know how I get this: To look like this:
1
vote
1answer
44 views

How do I place a custom image logo next to my name on resume?

I cloned and am using a developer's resume style (by Cies) written in LaTeX for my own purposes which I'd found on GitHub but I am unsuccessfully trying to make three changes: Add "SOME_TEXT" above ...
1
vote
0answers
22 views

Problem with including .png image in Latex (overleaf): Picture not formated correctly

I have a question regarding the \includegraphics command. I have used it before, also with ".png" pictures and I have not had any problems yet (I am pretty new to Latex though). However, I just tried ...
0
votes
0answers
26 views

How to Force Part Column into a Singe Page?

It currently looks like this: And I wanna force it to the style in Evan’s PDE:
4
votes
3answers
113 views

Elementary Row Operation Labels for Matrices

I would like to label my matrices with row operations. I am aware that this exists, but I am looking specifically for the style below. My current code is as follows: \documentclass{article} \...
0
votes
1answer
13 views

How can I add numbers to my author-year natbib (elsarticle) reference list to confrorm with guide for authors? [duplicate]

I know this question is a duplicate of Reference style issue using the elsarticle template, but that question was closed 4 years ago for lacking details and clarity. Since I need to resubmit within 10 ...
4
votes
1answer
43 views

How to format \ref output as word instead of as number?

I have a requirement in a document of class book with which I'm working that requires all numbers below 10 (0 until 9, but not negative numbers I presume) to be written as a word. So in my document, ...
0
votes
0answers
22 views

Is there a repository of Latex templates where I can find one good for visual-learning?

I'm looking to create a set of VERY VERY NEAT looking notes, for long-term review. Would anyone happen to know of a template that is suitable for a more visual learner (the subject is still math)? ...
1
vote
0answers
30 views

Using specific prefix for “well-known corporate author” in “alpha” style bibliography [duplicate]

Is this possible with LaTeX and plain BibTeX?: I have some "well-known corporate author" articles that look (with some tweaking) in an alpha-style bibliography like this (pdflatex): Both authors are ...
1
vote
2answers
43 views

Varying number of Decimals per column

I have a table \begin{table} \begin{tabular}{rrr} A & B & C \\ 1.00 & 1.10 & 1.11 \\ 10.00 & 10.10 & 10.11 \\ \end{tabular} \end{table} and I would ...
3
votes
2answers
53 views

How to modify fonts in sidenotes?

I want to change how the font of the sidenotes appears. For this I modified \marginfont and I am getting the desired results. In particular, this works well with \marginnote{} and with \sidenote{} ...
0
votes
1answer
34 views

How to shift page number of the section to the left side in TOC?

I would like to shift the page numbers of the section on the left side in the table of contents, as in the following image.
1
vote
2answers
47 views

Nested Enumerations overlap

I am trying to make a “combined” nested enumeration as shown below in this code: \documentclass[12pt]{article} \usepackage{amssymb, graphicx} \usepackage{amsmath} \usepackage{amsthm} \usepackage{...
4
votes
1answer
70 views

Is it possible to replace text which has blank spaces using `literate` of the `listings` package?

Please consider this MWE: \documentclass{article} \usepackage{listings} \usepackage{textcomp} \usepackage{xcolor} \lstset{ columns=flexible, literate= {Public Class}{{Public Class\...
2
votes
1answer
44 views

How to start using the thousands separator in pgfplots for numbers >= 10000 only?

When using a half space (\,) as the thousangs separator it is common to only start using it for numbers larger than 10000. This is reflected, e.g., in the siunitx package: \SI{1000} becomes 1000 \SI{...
1
vote
1answer
33 views

Coloring part of text failed

I want to color the number 2 in my formula in red using the following: \textrm{var}(X) = \frac{(b−a)(b−a+\color{red}{2})}{12} However, what I got is: Can someone show me a fix for that?
0
votes
0answers
39 views

How to appropriately format important text?

I have sentence in my thesis that is arguably the most important sentence of the thesis. I would like to "pop" this sentence out so as to encode its importance. I am thinking a change in font size, ...
7
votes
1answer
161 views

Formatting for a math notation of the form $[a:b]$

I would like to use a notation for ranges of integers $[a:b] = \{ a, a+1, \dots, b-1, b \}$. However, the spacing of $[a:b]$ is often not quite satisfying. The colon : seems to push the glyphs a ...
0
votes
0answers
28 views

Using cleanthesis in Spanish

Cleanthesis is a very nice, modern and stylish latex wrapper for a PhD thesis or similar book-type document. I am using it for the latter, but in Spanish. How should I do to change "chapter", "part" "...
0
votes
1answer
19 views

Multiline copyright message with \IEEEpubid?

I am asked to add a long copyright notice at the center of the bottom of the first page. I tried using \IEEEpubid{copyright notice} for that. But the text does not fit to one line and line breaks \\ ...

1
2 3 4 5
82