{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.

learn more… | top users | synonyms

3
votes
2answers
337 views

\underbrace and notes in the center environment

Here is a little snippet of my code: \begin{center} $\small \displaystyle \underbrace{(- \frac{1}{2})^0}_{\text{1st term, j = 0}} + \underbrace{(- \frac{1}{2})^1}_{\text{2nd term, j = 1}} + ...
5
votes
1answer
81 views

What are the parameters of Definition environment?

I'm trying to redefine Definition theoremstyle and I'm stuck trying to find a single webpage where I could look up the parameters of that style. I keep finding plain style, but that's not what I want. ...
0
votes
1answer
62 views

How can I format this formula?

I am new to LaTeX. How to write this formula in a proper format as an algorithm? I cannot write this formula in proper format: if (some condition) P=P+(W$i$*((W-P)/W$i$)) end
11
votes
2answers
558 views

Scrartcl 13.999 point 14.4 point but not 14 point?

Can the scrartcl class make a true 14 point type? It will produce 13.999pt, 13.9999pt and 13.99998pt, but 14pt produces 14.4 point type only. Thanks :) ...
1
vote
0answers
11 views

How to tie link formatting to text notthe bounding box in Adobe DC [on hold]

Im new to Adobe DC and having a remarkably silly problem with formatting links. Ive tried to Google this but cant get anything close, so here we are! What I want is to have the formatting for links ...
2
votes
2answers
32 views

List of listings similar to list of figures

After learning on the net I managed to get this type of list of figures : And I want exactly the same with the list of listings, but here is what I get : My code is this one : ...
0
votes
1answer
32 views

Section title with background color and line breaks in KOMA

I want my subsection title to have a colored background with support for line breaks. There are a few questions about spanning that background to the margins - that's not what I want to achieve, ...
11
votes
4answers
3k views

Writing an equation with the units positioned off right

Okay so I have a have a lot of equations in the document I am writing and I am trying to display the units of an equation off to the right. I was wondering how I can achieve this? Right now, all I ...
1
vote
0answers
21 views

formatting printbibliography

I want to make a chapter where all the bibliography is printed by using the command \printbibliography The problem is that I want to give the same format to all the chapters. But when I try to do so I ...
2
votes
1answer
17 views

a boxed equation that should appear at the top of every beamer page

I have a boxed equation: \boxed{E=mc^2} and I want this to appear at the top of every page in beamer at the same height. Is there a more efficient way of doing this, rather than typing it every ...
0
votes
1answer
21 views

How to write in proper format of this code

I want to get the right hand side portion in a format. Here the format. Table[i, j] <-maximum { Table[i-1, j] AND Values[i] + Table[i-1, j – ...
2
votes
2answers
34 views

Change Algorithm caption Label color to blue and bold italics

I wanted to know how to go about changing the algorithm caption label to blue and bold italics. I have so far been able to change the caption name to blue, but I have not been able to change the ...
0
votes
0answers
39 views

How to modifier chapter*?

\documentclass{book} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[charter]{mathdesign} \usepackage{graphicx, calc} ...
3
votes
2answers
62 views

Change format of chapter

How to change format of chapter like this photo, please? \documentclass{book} \usepackage{titlesec} \usepackage[tracking=true]{microtype} \usepackage{lipsum}% juts to generate text for the example ...
0
votes
1answer
18 views

Suppressing large text “Works Cited” in biblatex-mla `\printbibliography`

I'm trying to create an MLA citation page using biblatex-mla. However, the \printbibliography command creates a 16-point (uncertain as to exact size), left-justified, Times header "Works Cited" rather ...
3
votes
1answer
578 views

Conditional formatting, rounding and postprocessing of a column in pgfplotstable

I want to round p-values in a table to two decimals (for example 0.05), have values less than 0.05 in bold font and have values less than 0.01 to come out as '<0.01' in bold font. Like this (the ...
2
votes
3answers
56 views

How to put a colon to the left of a specific set of equations in a set of equation

Following: How to put a colon to the left of a set of equations? Currently I have the following code \begin{equation*} \begin{split} \Omega : \dot x &= \omega(b) \\ p &= \sigma(z)\\ m &= ...
2
votes
1answer
28 views

TOC - Horizontal Alignment

My currente TOC is looking like this: And here is a code sample: \documentclass[]{article} \usepackage[latin1]{inputenc} \usepackage{tocloft} %pacote para editar ToC \usepackage{titlesec} %pacote ...
6
votes
3answers
405 views

Explain formula using beamer

I am preparing a presentation on statistics. I want to include a slide on Bayes' Theorem which says: p(\theta | D) = \frac{p(D|\theta) p(\theta)} {p(D)} I want to explain each term using arrows. ...
1
vote
0answers
46 views

Center just one \section*{}

this is my document format: \documentclass[12pt,a4paper]{article} \usepackage[table]{xcolor} \usepackage{times} \usepackage{amsmath} \usepackage{pdfpages} \usepackage[utf8]{inputenc} ...
82
votes
3answers
21k views

Does it matter if I use \textit or \it, \bfseries or \bf, etc

I typically use \textit{Some italicized text} while some of my colleagues use {\it Some other text} Should I bother changing one or the other, or does it matter? Related: Is there any reason ...
2
votes
2answers
63 views

Spaces between words

I have this piece of code and I'm getting a really weird formatation. \newpage \section{Modelo Relacional} Acidente(\underline{acidenteID}, data, responsavel, custo, $veiculoID \rightarrow ...
0
votes
0answers
34 views

Why isn't the identity matrix upright? [closed]

This isn't directly a LaTeX question, of course, but I don' think there is a better place for me to ask. In ISO 80000-2:2009, variables and running numbers are italicised while mathematically defined ...
1
vote
0answers
36 views

How to stop \begin creating a line break

Basically I've created a math theorem called definition At header of the document, declared as \newtheorem{defi}{Definition}[section] Now i've laid out some text and stuff basically what I have ...
7
votes
2answers
68 views

Fixing overfull \hbox with mdframed containing an equation

When creating a boxed environment with mdframed, I ran into an issue with a line with an equation, that also happens to be the first line of a definition. Is there a way to fix the problem ...
2
votes
2answers
24 views

removing spaces and cleaning table in latex

how to remove the spaces which i think from automatic justification in table \documentclass{article} \usepackage{array} \usepackage{longtable} \begin{document} ...
2
votes
1answer
30 views

Number formatting, addtocounter and calc package

I have been having troubles with the following issue: I am making an invoice template in LaTeX. I use \addtocounter to calculate values like subtotal, tax and total. This works fine, until the value ...
1
vote
0answers
20 views

how can i change header and footer different for even and odd pages and different for front page

how can we change header and footer different for first page and after that from second page we need to apply odd and even pages header and footer. like on front page we want image and name of our ...
3
votes
1answer
52 views

How to format Table of Contents?

I'm relatively new to LaTeX — I haven't really gotten into formatting things too deeply until around a month ago although I've used it for longer — so I don't know how I could format a couple of ...
4
votes
2answers
176 views

Is there a way to set colors of hyperref links and urls differently in headings / sections than in the body?

I know hypersetup from hyperref needs to be added before \begin{document} but after \usepackage{hyperref} and \usepackage{bookmark}. For example, you can inject it like the following to ensure this: ...
0
votes
0answers
24 views

My pages are not the same size on the PDF for my Senior Econ paper

I don't know if a basic working example would help, as I would not be surprised if packages are conflicting or I have a typo or syntax mistake in the 10 page document. And I've no doubt made it much ...
1
vote
0answers
19 views

Merging cells of adjacent Rows

Is it possible to merge rows like we can merge columns in Latex. I want a table like following.
1
vote
0answers
18 views

line breaks and word wraps for unpredictable character strings

I am writing python to parse and process lots n lots of files to build a final report of results from information in the files. I am using python to write the latex file, then converting the latex ...
3
votes
2answers
186 views

Problem using \alert{} in Beamer title with metropolis theme

I'm trying to emphasize some words in the title of a beamer document. Ex : \documentclass{beamer} \usepackage[utf8]{inputenc} \usetheme{Warsaw}%\usetheme{m}%-->problem \usepackage{tikz} ...
1
vote
1answer
20 views

listings - How to format words of a external code file under a condition

I'm using listings to put a external code file in my document. I'm trying to customize its appearance to identify when the first character of a word is a digit and then change the color of this ...
4
votes
2answers
84 views

How do I change my Table of Contents to look like this?

The deadline for my final senior design report is a few weeks away and I'm trying to migrate away from Word (which I used to finish my previous reports) to Latex. I have most of the formatting done, ...
1
vote
1answer
21 views

Cannot include courier into latex beamer listings

I have the following set up for my listings: \documentclass[russian,pdf]{beamer} \mode<presentation>{} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} ...
0
votes
0answers
42 views

Formatting a PDF page

I'm trying to add a pdf page to an appendix and I'm having some trouble. I'd like to shrink the pdf page and place it below the appendix header, but I'm ending up with extra pages. Here's the two ...
1
vote
1answer
23 views

ACM SIG Proceedings: 6 authors total- 3 shared affiliation, also 2 shared affiliation

On the website for the ACM SIG Proceedings Template, there is an example where three authors all share the same affiliation (See number 17). However, my situation is a bit different, I am part of a ...
2
votes
3answers
40 views

Abstract with custom width

I am writing a report in which the page margins have been specified as \usepackage[left=3cm,right=3cm,top=4cm,bottom=3cm]{geometry}. But for one particular section (namely the Abstract), I want the ...
2
votes
1answer
38 views

Revisiting: “Adding an [AuthorYear] block at the beginning of bibliography entries”

I am trying to achieve citations and a bibliography, that look like this: There’s a sentence, where a book of SCOTT (1991) is quoted. Then some text with STRATTON et al. 1981 in it. ...
1
vote
0answers
33 views

What is a better way to link questions and answers on a problem sheet?

I write many problem sheets. The basic structure is thus: \section{Questions} \begin{enumerate} \item Question 1 \item Question 2 \item Question 3 \end{enumerate} ...
1
vote
1answer
26 views

Intext citation in IEEE format [closed]

I am trying to change the citations of my bibliography so that it uses IEEE format for the \cite command. Currently, \cite{...} the generates output like (1) whereas I want it to appear as [1]. ...
2
votes
1answer
33 views

How to hide chapter numbers in TOC with Memoir while keeping numbers at the start of each chapter

I am using memoir and trying to hide chapter numbering in the table of contents ONLY. I wish to keep it in the \mainmatter right now I am using \chapter[Chapter 1]{} to keep the "Chapter 1" text ...
0
votes
1answer
86 views

Adding a text to LaTeX that it shouldn't read [closed]

Hi guys I have to put a tiny code in my appendix for a dissertation that I am doing which looks like this -- -- ----------------------------------------------------------------------------- -- ...
0
votes
1answer
64 views

How to move the abstract to the left column?

My question is similar to this question, however, instead of a picture, I wish to move the abstract section to the left column, using same document class. Can anyone help with this? The document ...
6
votes
1answer
163 views

Newline after Section number / before Section title in KOMA Script

i have to adhere to a style guide which dictates newline after a chapter/section/etc number, i.e. instead of the usual 1.2 Heading its supposed to be 1.2 Heading This has to work for both the ...
2
votes
1answer
21 views

Formatting File Names re' \addchap input

I have a list of \addchap commands, each of which calls a file that is named as e.g. C001 My File.tex. The title contains capitalised words and a single space separating them. When the Main File.tex ...
1
vote
0answers
23 views

LaTeX: Larger spacing in equations by default

I know that I can add spacings in equations using \,, \: and \;. However, by default, there is no spacing between two factors. Do I have to set every spacing manually using the above commands, or is ...
1
vote
3answers
56 views

ltablex caption text formatting issue

I'm using the ltablex package for creating long tables over multiple pages. For my other small tables I use the tabularx package and I noticed a formatting mistake or maybe a bug? The table caption ...