Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
12 views

Listings color context sensitive keywords (Matlab)

In Matlab there's two ways to use end: to end ifs, whiles etc. to refer to the last item in an array/vector (example: v(end) or v(end-1)). I want to use listings to include some matlab code in my ...
0
votes
0answers
12 views

List of Figures / Tables oddness

Recently, after building a document, I noticed the error in the List of Tables which is reproduced in the image below The same thing occurs with the List of Figures, but not with the Table of ...
1
vote
1answer
29 views

How to change fonts while keeping the contents of each page?

How can I change the fonts and possibly margins of a document, while keeping the contents of each page the same? An example is this site(https://econtheory.org), which provides “view” and “print” for ...
6
votes
3answers
175 views

How to align and center standalone amsmath equations?

I had this code produce the following document. I wanted to align a few things. Particularly under the "degree sequence" heading: \documentclass[varwidth,margin=2mm]{standalone} \usepackage{amsmath,...
0
votes
0answers
19 views

Use href without any url style

I have the hyperref package configured to a style I like for the bulk of my document, but there are a couple of places where I want to use the href command to insert a link, but I want it to be styled ...
1
vote
2answers
55 views

Split a long math equation

I get this error: \begin{multline} allowed only in paragraph mode. \documentclass[multi={mymath},border=1pt, convert={outext=.png}]{standalone} \begin{document} \begin{mymath} ...
2
votes
4answers
35 views

How can I align minipages by their absolute top, rather than their uppermost baseline?

I have two minipages side-by-side, and one is of a larger font size than the other – this is to produce a title. However, the baselines of the minipages are aligned, and not the top. I would prefer ...
12
votes
3answers
583 views

Change the color of a single dot in `ddot` symbol

How can we change any of the two dots of the ddots math symbol? I can change both of them: \documentclass{article} \usepackage{xcolor} \begin{document} $\color{red}\ddot{\color{black}x}$ \end{...
1
vote
3answers
27 views

Insert Space Between Adjacent Tables

At the moment, I effectively have one large table containing what should be multiple smaller tables. That is, my formatting needs improvement. Either way, I currently have one table with 9 columns, 3 ...
3
votes
2answers
100 views

Computing letter coordinates (Typesetters Steganography)

Is there a way to find out about the coordinates of letters in a formatted piece of text? Suppose the compiled text has three columns, and the letters are equally spaced. Then what I'm looking for is ...
1
vote
2answers
25 views

How to capitalize section title in body document but not on table of contens

How do I capitalize section title in body document but not in table of contents. I use \renewcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@...
3
votes
2answers
33 views

Can't set \mathindent to 0pt

I am trying to make my equations completely flush to the left, along with the text. Even with \mathindent set to 0pt, there is still an indentation. What am I doing wrong? \documentclass[fleqn]{...
2
votes
1answer
19 views

Problem with output attempting to force itself all onto one page, but it does not fit

It was hard for me to come up with a title for this question. So, for one, my document is starting on the second page. The second issue is that I cannot seem to get everything to appear in my document....
0
votes
0answers
27 views

Special Formatting of Uppercase Title

Style To Replicate I have seen the style used above in multiple LaTeX documents but have not been able to identify how to replicate it. It makes the word all uppercase, with the first letter a little ...
2
votes
1answer
43 views

Formatting curriculum vitae in LaTeX

I am trying to create my curriculum vitae within LaTeX. I have tried working with templates, but that did not lead to the desired result. I have created, in my opinion, a very clean cv within ...
0
votes
1answer
28 views

Removing label date from bibitems (apa style) in Curve CV Overleaf template completely impossible

I'm trying to edit this overleaf template: https://www.overleaf.com/latex/templates/a-customised-curve-cv/mvmbhkwsnmwv In particular I want to completely remove the label date from the bibliography ...
0
votes
0answers
22 views

Formatting section, subsection, subsubsection, paragraph titles and text

Background: I did my master's thesis 18 years ago in LaTeX, but basically haven't touched it since. I am trying to format a xelatex document to look like the following sample: 1 So the short ...
0
votes
0answers
25 views

How to make a only Title page without the main text

I have the following source file: \documentclass[a4paper,man,natbib]{apa6} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \usepackage[...
2
votes
0answers
12 views

Cascading text formating for theatre

I'm currently writing a play with the sides environment. As I'm writing in alexandrine, each line shall consist of exactly 12 feet. When several characters talk, indents are necessary to show I'm not ...
1
vote
1answer
32 views

Changing every usage of a symbol inside an equation

As part of my document, I'm typing something like $A(.....)$ very often. For the benefits of typography, I would much prefer to have typed \mathcal{A}(...) instead, just so it looks a bit more ...
1
vote
1answer
33 views

Linebreaks in formated texts

I need to format my text in bold therefore I have several options for the same result. The main result would look like \textbf{text in bold} which works fine. But as soon as line breaks start to ...
1
vote
0answers
39 views

Footnote numbering format

In my case, the authors' affiliations are labeled with Arabic numbers. I'd like to get footnote labeled with letters. I've tried with the option \renewcommand{\thefootnote}{\alph{footnote}} but ...
2
votes
2answers
113 views

How to typeset a code in LaTeX for the following image

I want to typeset the following image in LaTeX. Is it possible?
0
votes
0answers
80 views

Justifying text

I am completely brand new to using LaTeX and I'm having an issue I currently can't solve. I've been copying in text into the document, however all but one paragraph has justified; and I cant get it to ...
1
vote
1answer
32 views

How to format a subject line with indent?

I'd like a subject like similar to the following but I can't figure out the indentation: Re: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut ...
0
votes
0answers
11 views

LYX help indenting to the right of the equals sign

I am very new to Lyx and cannot figure out how to shift my equation to the right of the equals sign. I have an equation that long and so goes over two lines (using inline formula) and I would like to ...
0
votes
0answers
36 views

Astrophysical notation : typeset HI

What would the best way to typeset HI to designate molecular gas as in the title of this article, with a capital H and a slightly smaller numeral I ? I tried to define \newcommand{\HI}{H {\...
0
votes
0answers
40 views

Left-justify math in display style; can't get std methods to work

I've searched this site and found various methods to left-justify math in display style, including adding fleqn to \documentclass, \setlength{\mathindent}{0pt}, and using & within the align ...
3
votes
3answers
35 views

How can I draw a line around text, but open on one side?

I'd like to do something similar to \boxed{whatever}, but with the box open one side. Something like the following. \documentclass{article} \begin{document} \[ \overline{\underline{abc |}} \] \end{...
0
votes
0answers
18 views

Flush section and subsection title in two-column layout

I'm using a 2-column format for my thesis ({multicols}{2}), and have tweaked several things to get the document to look exactly the way I want to. Those options, I'd rather not change if possible. ...
5
votes
2answers
148 views

Table enclosed in curly brackets

I would like to enclose a table with curly brackets. I photoshopped an example here: The MWE of the table is here, please feel free to add packages etc. ` \documentclass[11pt]{article} \begin{...
0
votes
3answers
49 views

Numbering in Cells

I want to number my cells in a Table in LaTeX. The result should look like this. Does somebody know to to do this?
0
votes
1answer
33 views

How to create tables with space as borders between columns

I can separate columns in my tables with lines by adding a | at the beginning as in \begin{tabular}{ |l|l| }. How do I separate columns with space such that it's aligned as done in the following ...
1
vote
1answer
26 views

Roman numbering in chapters heading

Could someone help me with this problem with my document? Instead of generating the following: % % % % Chapter 1 Title % % % % I would like the following text: % % % % CAPÍTULO I: TITLE % % % ...
0
votes
0answers
16 views

Placement of the equation number in multiline equation

I would like the first number of the equation to appear in the second line without having to make unnatural artifices. The image has been produced using the following code: \documentclass[preview]{...
1
vote
1answer
14 views

Changing Enclosure Line to Italics in Letter

I am using the letter documentclass to write a cover letter, and want to use the encl line. I have the following test case: \documentclass{letter} \signature{First Last} \address{Source address} \...
1
vote
2answers
18 views

Random numbering and spacing of sub-figures in pdf output

The numbering of the sub-figures in my pdf output is kind of random, but in the editor the numbering is as it should be. Where the sub-figures are correctly numbered from (a) to (d), but when ...
0
votes
3answers
80 views

Format Code/Pseudocode

In a document containing a lot of other stuff, I have the following code which I have kept in verbatim(for lack of other ideas). As you can see, the alignment doesn't look so good. How do I make it ...
1
vote
1answer
56 views

Displaying the complete Long division

I want to display a long division procedure as illustrated. I did search but couldn't find what I'm looking for. Any help is much appreciated.
1
vote
1answer
38 views

How to edit this figure to be drawn in just a column of 2 column paper?

The code below makes the output figure to be in full page width. I need to have the same output figure with the width of column (width of 3.9 in). I tried to use this command for the figure ...
4
votes
2answers
77 views

Force linebreak, so that each subsequent line gets longer

Hej guys. Our institute has some special format requirements, and I'm wondering if one of these can be automated by some clever LaTex wizardry: A caption (also sections and subsections) is set ragged-...
1
vote
1answer
30 views

Understanding “stretchy” negative vertical space above framed chapter titles

This question is somewhat related to my previous question overfull hbox on chapters with line above/below chapter title using KOMA-script, as (parts of) the issue occurs with various/all methods of ...
0
votes
1answer
15 views

Text after caption causes unintended line breaks or centering

I want my figure captions to have the following format: Figure number is bold First couple of words are the title of the figure and always bold Rest of caption is not bold Here's my MWE: \...
3
votes
3answers
59 views

Keep section and subsection together in table of content

I have a long ToC provided by the tocloft package. It is long enough that it runs on to a second page. What I have then is that (for example) section 2 is at the end of the first page and section 2.1 ...
0
votes
1answer
33 views

Title formatting the section makes the bibliography header disappear

I used a section style that I found here. The problem is that the header of the bibliography becomes a box even though I've tried to make a separate style for unnumbered sections. \documentclass{...
0
votes
0answers
20 views

How to define the document class parameters?

I am using this document class for a chapter: \documentclass[runningheads,a4chapter]{llncs} How can I define a class so I has the following features: A4 page with 1 inch (or, 2.54 cm) margin on ...
3
votes
1answer
94 views

Disable smart (contextual) quotes for entire document?

Is it possible to disable smart (contextual) quotes for an entire document? If yes, how? In particular, can the single quote ', double quote ", and backtick ` be left as-is by some option or method ...
1
vote
1answer
60 views

Formatting counter in section, subsection and subsubsection

I want to show a counter with subsubsection-level headers and remove the final dot from the section counter, subsection and subsubsection (assuming you can assign a counter to subsubsection) by ...
0
votes
0answers
44 views

Longtable - Changing Font Color of Header Row doesnt extend to all cells

I am using longtable package as most of the tables that I use tend to go on for multiple pages. What I want is now that the header row should be filled with blue colour and white text. The remainder ...
4
votes
2answers
177 views

How to add left arrow between two tables?

How can I add an arrow between two tables? \documentclass[english]{IEEEtran} \usepackage{booktabs} \begin{document} \begin{table*}[!htb] \large\setlength{\tabcolsep}{0.1pt}...