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

Trouble with clip and labels in pgfplot

I would like to add zero to the origin of the axes. I tried with clip = false and \node[anchor=east] (zero) at (axis cs:0,0) {0}; but with disastrous results. This is my graph: \documentclass[tikz]{...
user avatar
0 votes
1 answer
27 views

How to Produce a Sequence of Numbered Statements Outside of Math Mode and Without Augmenting Equation Counter?

I would like to reproduce the following without using the general equation counter and without using math mode. How can I do this?
user avatar
  • 239
0 votes
0 answers
14 views

Adjust line height locally [duplicate]

I was trying to create a custom 'part', So, to do that I have written the following code, \newcommand\partino[2] {\phantomsection\addcontentsline{toc}{chapter}{{#2}}\thispagestyle{empty} {\...
user avatar
  • 629
-1 votes
0 answers
34 views

How I can do the list as bullet?

\CVSubheading {TEACHING ASSISTANT }{Fall'2018 -Summer 2021} {Tulane University }{New Orleans, LA} \CVItemListStart \CVItem{Metal Additive Manufacturing/3-D Printing(AFSD, FSAM)} \...
user avatar
2 votes
1 answer
46 views

Defining a table template for a document

I am trying to create a document which automatically updates certain values according to an output from a python code. From this python code, it produces a latex table, which looks pretty basic. ...
user avatar
0 votes
0 answers
19 views

How do you localize chapters, sections, table of contents, dates in Vietnamese?

I need help with this so if you could help that would be great, btw I'm using XeLatex.
user avatar
  • 83
0 votes
0 answers
33 views

What is the standard formatting for figures being in the left margin? (Or column?)

I've noticed that a lot of math textbooks have a small right margin and a large left margin, so that they can put figures, along with captions and notes in the left margin. I'm wondering what the ...
user avatar
0 votes
2 answers
30 views

Handling with customlegend style

How can I do so the size of the customlegend box adapts to its content? \documentclass[12pt]{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \usepgfplotslibrary{...
user avatar
0 votes
0 answers
35 views

How to make regular text cursive? [duplicate]

I would like to make my latex document written in cursive. Is this possible?
user avatar
10 votes
2 answers
584 views

Math: overwrite \int command

I wish I could override the \ int command, so that each integral is rendered this way. Yes, I know the command to display it this way is \int\displaylimits_a^b, but I would like to overwrite the ...
user avatar
0 votes
0 answers
19 views

Exam Class - A problem with vertical spacing in question environment [duplicate]

I am working on an exam template, and I cannot get the vertical spacing to look how I want it unless I use an ugly trick. Here is a MWE: \RequirePackage{amssymb, amsfonts, amsmath, latexsym, verbatim, ...
user avatar
0 votes
2 answers
35 views

Alignment of a 2-line title in the TOC in scrbook

I have checked several other questions addressing similar issues as this one, but I am still not able to tweak my document the way I want. I have this 2-line chapter title: which looks awful in the ...
user avatar
0 votes
0 answers
20 views

How to add Articles into an Article-based dissertation

I am writing my dissertation, and recently the university allowed Article-based dissertations instead of classical monographs. So I took this option! I have the main document where I have a Chap 1: ...
user avatar
1 vote
1 answer
24 views

Remove the dot from the figure caption and in the text [closed]

For Figures, I'm getting the following for the caption: Figure 1.: Caption In the text, I get the following: See Figure 1. for blah blah blah I'm fine with the colon in the caption, but I want to ...
user avatar
1 vote
0 answers
26 views

Is there a way to display annotations/commentaries alongside original text?

I have a text composed of source material and commentary or annotations on the source material. I want a way to display both the source material and the annotations/commentaries side-by-side in a book....
user avatar
-3 votes
0 answers
59 views

Convert LaTeX to MS word without losing the format (or changing ) of position of text, figures and tables [duplicate]

Converting latex document to MS word
user avatar
0 votes
0 answers
19 views

Bullet Point Alignment for \cvsection

How do I align bullet points 3, 4, and 5 to be aligned on the left next to bullet points 1, 2, and 3 like the image below? \cvsection{Education} %------------------------------------------------------...
user avatar
  • 1
4 votes
3 answers
339 views

How to declutter your main.tex

Is there a way to declutter your LaTeX project? Errors built up, but it is hard to find out which packages are unnecessary / clashing packages. Especially if you are working with a template and are ...
user avatar
-1 votes
1 answer
34 views

How to change individual columns’ widths of a multicol inside a minipage, all inside of multicol?

I have an outer multicol, then mini pages inside the columns. Inside my minipage, I have multicols. But how to change the width of the inside multicols in each minipage (ie, independent of all other ...
user avatar
  • 57
0 votes
0 answers
19 views

Proper placing figures, tables and text

I have the following page: I can't correctly set the spacing between the table (red pencil on screen), pictures and text. The layout of this page is: table - little of text - new section - little of ...
user avatar
  • 83
2 votes
1 answer
60 views

What is the correct way to use `\\` or `\newline`?

I want to end a line without ending the paragraph. Using\\ or \newline gives me the the result I want, but also creates the 'Underfull \hbox (badness 10000)' warning. Using an empty line causes the ...
user avatar
2 votes
0 answers
25 views

How to center all chapters in koma-script [duplicate]

Following what I tried \documentclass{scrreport} \setkomafont{chapter}{\bfseries\centering} \begin{document} \chapter{CHAP1} \end{document}
user avatar
1 vote
2 answers
64 views

How can I put the left table outside of the margin just like in the photo?

I tried with this. It's similar, but it's not outside of the margin. \begin{minipage}[c]{0.5\textwidth} \begin{tabular}{c} Departamento de Ciencias Básicas \\ Facultad de Ingeniería\\ I \, ...
user avatar
0 votes
0 answers
25 views

How to Produce a Continuous Emdash with Pdflatex Using Texttt

I would like to know how one might extend the answer given in How to Produce an Unbroken Emdash with Texttt ---which requires fontspec; and thus, either lualatex or xelatex---that is applicable when ...
user avatar
0 votes
1 answer
28 views

Set itemize default settings in preamble [duplicate]

If I want itemize always in this format \begin{itemize} \setlength{\parskip}{3pt} \setlength{\itemsep}{0pt plus 1pt} \item ... \end{itemize} How could I do? ...
user avatar
0 votes
2 answers
39 views

Write the result (a fraction) of a calculation with sagetex

I made this code to add two random fractions, and calculate the result with sage, but I don't know how to make the result appear with the form \displaystyle\dfrac{}{} \begin{sagesilent} output = r&...
user avatar
  • 153
2 votes
1 answer
160 views

What document class produces this classic format style?

I am curious to know what document class produces the following style in the title and in the section area. Here are some examples: The placement of the title in addition to the author's name (and ...
user avatar
1 vote
1 answer
37 views

How can I link symbols over a mathematical expression in LaTeX?

I would like to typeset this image with a LaTeX expression : In this expression, we have a sequence of characters (a greek tau I guess, \vee sign, \lnot, \in sign, \square), and, most importantly, it ...
user avatar
1 vote
1 answer
24 views

make siunitx the decimal points alignment starts from the 3rd row of the table

I got a table has two rows as titles at the top of it, and numbers in the rest cells, so I've checked the document of the siunitx, It says something abt multicolumn but its kinda different from what ...
user avatar
  • 13
0 votes
2 answers
30 views

how do I get an equation to look like this? \begin{cases} doesnt seem to do exactly

In a paper I'm reading, theres this equation which I'm trying to copy into my notes, but cant quite see how to format it like such? I can do: S_{i}^{(l_k)}=\left\{ [f_j^{(l_k)};v_{j}^{(l_k)}-p_i]^T \...
user avatar
  • 137
0 votes
0 answers
24 views

changing geometry without using newgeometry

I'm using a template which I don't exactly know how it works. In the document I to create a space for notes on the side of all the document, so I used \geometry{outer=200pt, marginparsep=20pt, ...
user avatar
0 votes
0 answers
16 views

Dashed line on lstlisting page break

After looking at Horizontal dashed line on page break in listings environment (adding dashed line in pagebreak during listing) I couldn't manage to add the intended frame and at the same time having ...
user avatar
1 vote
1 answer
25 views

How to customize bibliography label?

I would like to completely manually customize the label of my bibliography. I wasn't able to find a satisfactory answer after some searching on the web and here. I want to make a command such that, if ...
user avatar
0 votes
1 answer
36 views

Glossaries and wrong margins right

I've copied & pasted the glossary of a friend of mine for my thesis. I have to admit that I don't understand a thing of what's happening in that section. All I know is that the right margin of the ...
user avatar
  • 3
0 votes
0 answers
18 views

Figure caption running into text

I am using the extbook class based on the book class to write an a5paper-sized book. At some figures, the caption of the figure runs into the main text or is oddly close to it (see examples). I have ...
user avatar
  • 253
0 votes
0 answers
15 views

Page Alignment Issue on Second Page, and Additional Questions

I am new to LaTeX, and could use some help. I am currently using the following preamble in my document. \documentclass{memoir} \usepackage[T1]{fontenc} \usepackage{kpfonts} \usepackage{amsthm} \...
user avatar
0 votes
0 answers
24 views

Add Chapter text with label in the table of contents

I am using report as document class. For a table of content, default is like in the first picture. I want to add Chapter in front of each chapter heading like in the second picture. I can't figure ...
user avatar
0 votes
0 answers
62 views

How to force cell dimensions in a tblr from tabularray

\documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}{ hlines, vlines, rows={15mm}, columns={15mm}, } a & bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb bbb \\ ...
user avatar
  • 469
2 votes
1 answer
45 views

\blockquote outputting unpredictably

I am writing a thesis in Overleaf in which I am using a lot of quotations. To output these nicely I decided to use the \blockquote command from \usepackage{csquotes} as follows: {\footnotesize\...
user avatar
  • 23
1 vote
2 answers
71 views

Format long equation in Array

I have a 3 X 1 array that is too long. I have used the multline command to write it but it is not easily readable. Please, is there a better way to write this equation? Thank you for your help. Code ...
user avatar
  • 69
1 vote
1 answer
43 views

Coloring defined submolecule

What is the right way to color a submolecule defined by \definesubmol? MWE \documentclass[12pt]{article} \usepackage{float} \usepackage{chemfig} \usepackage{chemmacros} \chemsetup{ modules ...
user avatar
0 votes
2 answers
41 views

How can I apply the same formatting command to the bibliography heading as for all other section headings?

I have been given a template that applies the same formatting command to all sections. I now added a bibliography and want the title of it to be formatted the same way. What is the simplest way to ...
user avatar
  • 4,696
0 votes
0 answers
22 views

lstlisting color formatting constructor of a class (C++ style code)

I'm trying to color format the constructor of a class, so that the color of the class name, which has the same name as the class function (constructor) is different to the color of the class function (...
user avatar
  • 1
0 votes
1 answer
61 views

How to place the subscript below and above the box

I wanted to put the subscript below and above the box (shown in image), similar to how it happens for \sum. \displaystyle is not applicable. How can I make it placed there? Here is my definition of ...
user avatar
  • 3
0 votes
0 answers
35 views

Aligning explanation with equations

I'm currently trying to write a solutions manual. In order to make it look a lot more neater I'm trying to organise the solutions into columns in a box (using mdframed with multicols). Here's what I'...
user avatar
1 vote
1 answer
33 views

Facing trouble while Fitting entries in table in math mode

I'm facing trouble with the table format, as the entries in the table do not fit which makes the table weird, I'm using a two-column document with the below-mentioned example, kindly help me out here. ...
user avatar
  • 350
0 votes
1 answer
29 views

How do I stack two or more figures on top of each other?

I am trying to get two figures to stack on top of each other. How can I do that? My code looks like this. \documentclass{article} \usepackage{graphicx} \usepackage{caption} \begin{...
user avatar
1 vote
3 answers
58 views

Weird word breaks in table

The first table has these strange white spaces between the words and I really just do not understand how to get rid of them. I've used \raggedright, \sloppy and \usepackage[none]{hyphenat} but the ...
user avatar
  • 11
0 votes
0 answers
36 views

Adding bibliography after appendix in Latex

I'm new to LaTeX and was working on my thesis. Indexing is not working properly, I tried a lot of solutions but none of them worked. The major challenge is that I'm not getting the bibliography in the ...
user avatar
0 votes
1 answer
49 views

Rotated text in table cell refused to center, and ignores line break

This is my first question on this site, and I'm also still a newbie with LaTeX and its plethora of packages. I'm trying to recreate this table: I found this old post and tried to recreate it with the ...
user avatar

1
2 3 4 5
100