2022 Developer Survey is open! Take survey.

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
3 answers
53 views

elementary school-like math operation

I'd like to write an equation formatted like this Term can be writted with siunitx package, but to align them like this? \flalign{} doesn't do exactly what I ask. Any idea?
user avatar
2 votes
2 answers
154 views

How can I draw a box around a picture plus text?

Right now I am struggling with getting a box around some text with a figure. The idea is that I have a small picture on the lefthand-side with some text right next to it. And then draw a box around ...
user avatar
0 votes
1 answer
39 views

Remove dot from custom defined section title

I've just defines a new type of section title following this page. The used code is shown below: \newcommand{\ssection}[1]{% \section[#1]{\centering\Large \\ #1}} If I type \ssection{This is a test}...
user avatar
2 votes
1 answer
22 views

How can I use tikz-cd and \mathsurround simultaneously?

The proper formatting I need to use includes the line \mathsurround=2pt, but this ruins the arrow placement in tikzcd environments. Can I temporarily turn \mathsurround off, either by recovering the ...
user avatar
  • 338
1 vote
1 answer
28 views

Center reaction with chemfig: subscript causes shifting

As can be seen, the second molecule of the reagents is not aligned with the first, probably due to the presence of the methane subscript 4. I tried this solution, but it doesn't work. Any idea? \...
user avatar
-2 votes
2 answers
200 views

How to create code in the preamble to give the same result as a prescribed boxed figure with nested caption and numbering

Can a routine be created - similar to those for \chapter, \section, \subsection i.e., containing a number of #2, #1 parameters - to control the boxes used to highlight a series of figures? In my MWE ...
user avatar
0 votes
2 answers
51 views

LaTex - Table formatting (multicolumn, multirow, parbox)

I have created the table below. However, there are some formatting problems that I can't get fixed. \documentclass[9pt,twocolumn]{article} \usepackage{tabularx} \usepackage[format=plain, indention=...
user avatar
  • 1
0 votes
0 answers
41 views

Identifying and/or imitating a Times compatible math font from Conway's Functional Analysis

I have been attempting to locate the name of the times-compatible math font present in John Conway's 1990 text A Course in Functional Analysis. Other posts on this website, such as this one and this ...
user avatar
  • 1
0 votes
2 answers
27 views

Fixing vertical subscript offset: one more step

I have overcome the problem related to the positioning of the subscript in mathmode. \documentclass[10pt]{article} \begin{document} $ n_P %before $ $ \fontdimen15\textfont2=4pt \fontdimen16\textfont2=...
user avatar
2 votes
2 answers
236 views

Write some text under physic-chemistry formula

How can I write some text under a formula? The effect I would like to achieve is the following I would like the two words, "prodotti" and "reagenti", to be placed under each ...
user avatar
0 votes
0 answers
24 views

Colorbox Text Format

I have been using LaTeX Overleaf (overleaf.com) for nearly one year now. I need to highlight some things, so I used the xcolor package. But then, my text became a bit weirdly formatted, so I had to ...
user avatar
0 votes
1 answer
32 views

How to draw a long table in LATEX My table has 6 columns and footnote If I can get an entire table in one page it will be quite hepflul

Working Status Suffering from Chronic Disease Difficulty in Mobility Activity of Daily Living Sample (N) Age <40 90.6 37.7 39.7 21.4 3155 41-50 89.2 ...
user avatar
  • 13
-1 votes
0 answers
35 views

I have used the following to create addition problems is there an easy way to create a similar multiplication sheet?

\documentclass{article} %AdditionCode % \usepackage{amsmath} \usepackage{mathtools} \usepackage{enumitem} \usepackage{tikz} \usepackage{xlop} \usepackage{pstricks} % \usepackage{showframe} \...
user avatar
  • 11
0 votes
0 answers
39 views

Error when trying to add orcid [duplicate]

I have tried to add orcid to Arxiv template as follows: \documentclass{article} \def\MakeUppercaseUnsupportedInPdfStrings{\scshape} \usepackage{arxiv} \usepackage{amsmath,amssymb,amsfonts} \...
user avatar
  • 155
0 votes
1 answer
23 views

strecthed \wedge [closed]

I was wondering how to write that symbol in latex? the \wedge does not look fine since it looks too acute.
user avatar
  • 113
0 votes
2 answers
41 views

Move a few lines to the right of the page in the sheet

I would like to move a series of consecutive lines (AAA-FFF) to the right of the page, but I only move the first one (AAA). This is the LaTex source code: \documentclass[a4paper,12pt]{article} \...
user avatar
  • 103
1 vote
0 answers
37 views

Beamer Title Page Text Rearrangement

I have made the following title page in Xelatex Beamer using an online template. I am happy with the outlook. I just want the order of the logo and Author swaped with Lecture topic and date. I want ...
user avatar
0 votes
2 answers
46 views

Formatting frontmatter pages

I am finalizing my master's thesis. Among the frontmatter elements, there are pages for the Copyright statement, Acknowledgements, and Abstract. I have two issues that I couldn't manage to solve: How ...
user avatar
  • 305
0 votes
0 answers
24 views

Right justifying an image to separated lines

I'm trying to figure out how to position the logo (pictured) to the right of the three lines of text. My attempt at achieving this: \begin{wrapfigure}{R}{1.95\textwidth} \centering \includegraphics[...
user avatar
0 votes
0 answers
32 views

Adjusting space between footnote mark and text

I've looked through the documentation, and other questions here, but I can't seem to find an exact hint on how to solve this little problem I have: I need to reduce the spacing between the main text ...
user avatar
  • 75
0 votes
1 answer
23 views

Customize chapter and section style in appendices

I am using the scrbook document class. I would like to change the style of chapters and sections in the Appendices as illustrated here. It works very well except for the word Chapter in the black ...
user avatar
  • 305
1 vote
0 answers
43 views

Formatting the Display of Multi-Lined addtocontents Entries

In the following MWE \documentclass{book} \begin{document}\large \addtocontents{toc}{\vskip 10pt} \addtocontents{toc}{\protect {III. The words of this sentence are quite a few; I would like the ...
user avatar
2 votes
2 answers
79 views

Centering middle line in 2x2 table

I am having trouble centering the middle line in the table. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{fancyhdr} \usepackage[margin=1in]{...
user avatar
  • 123
0 votes
0 answers
31 views

How to have text in ToC be different to text in Chapter title

So I'm writing a document that requires me to add an asterisk after a chapter title. However, I cannot have the asterisk be a part of the chapter title in the table of contents. Is there a way to ...
user avatar
0 votes
1 answer
30 views

Beamer spacing inside equation

I have the following code and because the floors and ceilings are large they touch. I want to add space between each line of the equation. How do I do so? \begin{frame} \begin{equation*} ...
user avatar
  • 37
0 votes
2 answers
94 views

Tree Diagram with Filesystem Branches

I am trying to draw this tree diagram exactly: I edited my code and it looks better, but still needs more work. Here is the code and result: \usetikzlibrary {trees} \tikz [font=\footnotesize,grow=...
user avatar
  • 19
0 votes
1 answer
28 views

Style with font for heading being bold italic

I have the following style. Would like to have the font for heading be bold italic. But modification would I need? \newtheoremstyle{mystyle} % name of style {8pt} % measure of space ...
user avatar
  • 103
0 votes
1 answer
42 views

Drawing a Multi-Column Table with Latex

I am trying to draw exactly the same table below (Please pay attention to the vertical text at the very left): How can implement such a thing in LaTeX? Thanks!
user avatar
  • 19
4 votes
1 answer
75 views

How to insert a paragraph above a word, in between two lines of text

I am trying to add interlinear comments to a piece of text. I am currently using the solution here: How to do centered interlinear text in LaTeX This involved defining a command \newcommand\wrd[2]{% ...
user avatar
0 votes
2 answers
57 views

How to write long sentences in math mode

I would like to write these sentences aligned by \subseteq. But they didn't fit on the page and I had to reduce the font size. The problem is that this part was disproportionate to the rest of the ...
user avatar
  • 33
8 votes
3 answers
305 views

Adding Column Rules in ConTeXt's columnsets / pagecolumns

This is my first time playing with ConText and, while I'd like to think I have some decent programming experience, TeX code is something I've never worked with before (and am sufficiently intimidated ...
user avatar
  • 81
0 votes
1 answer
22 views

Adding name on the top of signature line in footer

I wish to add the name of my guide manually on the footer section for 'signature' on my document. I am using the document class report and this page constitutes the undertaking part of my thesis. I am ...
user avatar
  • 135
0 votes
1 answer
28 views

How to get page number to the right of \textwidth

I would like to set my page numbers to the bottom right to the right of \textwidth. I have a couple figures that have long footnotes and the page numbers are currently on top of this. While not ideal, ...
user avatar
  • 411
0 votes
1 answer
42 views

Shortening Author's Name and Presentation Title in a Metropolis Footling

Using Metropolis beamer, I want to add a shorten version of my name and the presentation title. if I apply the code: \documentclass{beamer} \usetheme{metropolis} \title{The title of the presentation} ...
user avatar
  • 19
2 votes
1 answer
48 views

How can I get this chapter title format?

I'd like my chapters to look like this: (if it helps, the picture is from the Princeton Lectures in Analysis textbook series by Elias Stein) I know how to insert the quote (using the epigraph package)...
user avatar
  • 23
0 votes
0 answers
22 views

Page break in LaTeX only if a code block is split between pages

I'm writing a report in LaTeX that contains several code blocks of varying sizes. For example, a code block might be: \begin{lstlisting}[language=Python] dic = { "qwe": 0.2, ...
user avatar
0 votes
1 answer
37 views

How to align uncertainty with siunitx in table

I have a table that contains SI units using the siunitx package which have different digits of uncertainties. How can I easily go about aligning them to the \pm? I've tried playing around with the ...
user avatar
1 vote
2 answers
43 views

Adding horizontal line under chapter number but before chapter title, without adding the line to the table of contents

I'm trying to format my report chapter titles to have a horizontal line under the chapter number but above the name of the chapter such that it reads Chapter 'horizontal line' Name of Chapter I can do ...
user avatar
0 votes
0 answers
21 views

How to Ignore "and" keyword inside a bibtex author field [duplicate]

I'd like to add a bibtex entry where the author is the Institute of Electrical and Electronics Engineers (IEEE), but when I put: @misc{IEEE, author={Institute of Electrical and Electronics Engineers}, ...
user avatar
  • 1
0 votes
2 answers
52 views

Multicols package creating new column at the bottom of page instead of top

When the code featured below is compiled, the result is a page in which the second column begins near the bottom of the page instead of near the top. Using overleaf to compile code. \documentclass{...
user avatar
3 votes
3 answers
124 views

How to indent each line after a fraction in a single expression?

How can I format the fractions to appear underneath like so in both images. For the second image the plus should not be under the expression above it. Here is my code for the second image: \...
user avatar
  • 145
0 votes
0 answers
82 views

How to align = symbol of several equations vertically?

I want to do something quite particular with PlainTeX, though I'm not one hundred percent sure it's possible. Say I have a few equations, each on a separate line, which represent the simplification of ...
user avatar
  • 1
0 votes
1 answer
51 views

How to condense references maximally

I would like to condense the references in my dissertation since they count towards the page limit. As things stand they look like this: whereas I was looking for something more compact like this: ...
user avatar
0 votes
1 answer
17 views

How can I define a header exclusive to the title page?

I'm very new to Latex and I'm having trouble making a title page. My university wants us to use a specific format for the title page to deliver our projects, so I'm trying to recreate it in Latex so I ...
user avatar
  • 103
1 vote
1 answer
47 views

Changing fonts within \titlecap

I use the \titlecap macro from titlecaps package to convert text into titling caps. I would also like to make simple font style changes within the converted text. The following example code does not ...
user avatar
0 votes
1 answer
30 views

I would like Appendices to be listed separately from the main table of contents

I want my table of contents to look like the included image where the appendices are listed separately from everything else. I would also like to know how to remove the excess space between the table ...
user avatar
0 votes
1 answer
44 views

How to use "\" in latex [duplicate]

I am struggling with how to include the character \ without it being a command. For a similar problem with % I would just use \%, but obviously \\ is just a page break. Am I just being stupid?
user avatar
8 votes
1 answer
150 views

Find midpoint of path

I have two coordinates (v1) and (v2) which are connected by a bended path. Now I would like to connect a third variable (v3) to the middle point of this path, but I cannot figure out how. \coordinate (...
user avatar
  • 247
0 votes
1 answer
40 views

landscape setting but still portrait

So I`m trying to get a landscape page mid document (to print 6 figures in one row) and was following the instructions of this article. Here is code fragment. \documentclass[parskip=full, oneside]{...
user avatar
  • 119
0 votes
1 answer
25 views

Drop Cap individual settings, leave the main style of drop caps intact, but modify only certain (single) drop cap's parameters

I set up all the parameters of existing Drop Caps in my book via \DefaultLoversize and \DefaultLraise commands and everything looks fine until the drop caps letter falls, for example, on this Cyrillic ...
user avatar

1
2 3 4 5
99