Questions tagged [horizontal-alignment]

{horizontal-alignment} is about aligning document elements horizontally, e.g. typesetting paragraphs using \centering or \raggedright or adjusting the horizontal position of several equation or table components. If your question is generally about (horizontal) white space, use {spacing} instead.

Filter by
Sorted by
Tagged with
2 votes
2 answers
50 views

Align last subfigure on the left side

I have 5 pictures and want to align them that three pictures are on the left side above each other and two on the right side. I have tried it like this \begin{figure} \centering \begin{subfigure}[h]{....
jane's user avatar
  • 21
0 votes
0 answers
27 views

pls how do I type this in LaTeX(See image attached)? [closed]

How do I type the Cleland’s schematic representation of enzymatic reactions in overleaf?
nanshin nansak's user avatar
1 vote
3 answers
42 views

How to right justify a table cell using package tabular

\documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{times} \usepackage{booktabs} \begin{document} \begin{tabular}{p{0.5\textwidth} p{0.5\textwidth}} \toprule ...
chazr's user avatar
  • 11
1 vote
0 answers
16 views

How to align the title and the author left this way?

I have to do a Word exam, but i don't want to use word, so i thought i will "learn" latex by doing this exam with it. The first problem was with the firs page, neither of the solutions i had ...
Lolis4TheWin's user avatar
0 votes
0 answers
19 views

Aligning a tikzpicture to linewidth but with labels on the margin

I am working on some plots and diagrams, and I would like them to take the full text width (eventually these will be some mix of pgfplots and tikz). However, sometimes some objects are sticking out ...
fqrt's user avatar
  • 1
0 votes
1 answer
31 views

Horizontal centering of section name

Consider, as a starting, point the code below. I would like to have the multi-lined section name horizontally centered, but I have been unsuccessful. This type of centering is to be applied only on ...
PaulS's user avatar
  • 461
3 votes
1 answer
82 views
+50

center and adapt width in tcolorbox

PROBLEM So I'm finishing my tcolorbox styles for my writings, but I can't manage to center the text correctly if it is shorter than the \linewidth. One solution would be to add \centering every time, ...
Agente 156's user avatar
1 vote
1 answer
58 views

footnote from within halign

How do you create a footnote within an halign in plain TeX? The code below produces a line that looks like this: A B C2 which is as it should be, but the footnote reading ``How is this?'' simply ...
WillO's user avatar
  • 279
1 vote
2 answers
45 views

Indented text with numeric label

What would be a way to write the labelled text below, tagged with 15? I'm using align all the time but by default the text inside seems to go in mathmode, which forces me to introduce many "text&...
user1868607's user avatar
1 vote
2 answers
43 views

How to align text and equation in two columns?

What I need to do is this: I would like to have those two columns separated with the formulas aligned under. The result I got is disappointing though. I altro tried with the align command but it ...
Henry's user avatar
  • 340
2 votes
3 answers
56 views

Specifying the column width and centered vertical alignment of latex table

I have a table with multi-rows and columns. I need to specify the column width of some of the columns because the table is too wide for the page. But I can't find a way to do so and vertically center ...
Devin Dalton's user avatar
1 vote
0 answers
33 views

How do you right align in itemize without adding space?

How do I make my text after the linebreak right aligned while making it's top and bottom margin the same as topsep Example of code: Các nội dung nêu trên nhằm nổi bật một quan điểm tổng quát: từ ngữ ...
Adrik Ivanov's user avatar
4 votes
3 answers
144 views

How can I center mathematical symbols in table?

I want to center the arrows as well as the \vdots, but can't figure out how. I want to create a figure, but thought the smartest way to do it is to create it as an table. Any help would be ...
testtest's user avatar
0 votes
0 answers
24 views

Underbrace texts left-alignment in multiple equations

\documentclass[11pt,a4paper]{article} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{amssymb} \usepackage{newpxtext,newpxmath} \begin{document} \begin{align} \Delta \hspace{0.2em} f_{g,b} \...
Anonymouslylost's user avatar
1 vote
1 answer
59 views

Center memoir chapter precis if not full width

I would like to have each chapter precis be ragged right, but would like the text block itself to be centered. So, a short chapter precis would appear to be centered, but as soon as the lines start ...
Fredrik P's user avatar
  • 1,152
1 vote
3 answers
39 views

Centering text and symbols in tables with fixed column width

I tried building a table with fixed column width and centered text/symbols. I used the following script. \begin{center} \begin{tabular}{ |p{.1cm}|p{.1cm}|p{.1cm}| } \hline $\bigcirc$ & A & ...
samario28's user avatar
1 vote
1 answer
53 views

How to put display equations (with some space around them) inline?

I want to write an equation that behaves like inline-math w.r.t to horizontal alignment (i.e., the equations’ left edge is where the text before it ends; and the text after it is indented, so it ...
nleanba's user avatar
  • 113
0 votes
1 answer
46 views

Matlab2tikz and alignment: i need help

I made matlab2tikz convert two matlab graps into .tex files, the first image generated the following code: \definecolor{mycolor1}{rgb}{0.00000,0.44700,0.74100}% \definecolor{mycolor2}{rgb}{0.85000,0....
Davide's user avatar
  • 3
1 vote
1 answer
56 views

How to move a q.e.d. / halmos / tombstone in the caption of a H-placed figure to the right margin when using article?

Continuing How to put a halmos into a caption of a H-placed figure when using svmono?, what to do when you're using the class article rather than svmono? Running pdflatex on \documentclass{article} \...
AlMa0's user avatar
  • 439
4 votes
1 answer
67 views

Horizontal space before spanning left bracket

All is in the title: I want to get rid of this horizontal space that comes before a \left[ square bracket spanning multiple rows. See MWE and picture. MWE \documentclass[12pt,a4paper,twoside,openright]...
Vincent Krebs's user avatar
8 votes
1 answer
409 views

Modified Bourbaki problem

The expex package has a nice macro \trailingcitation which typesets a citation at the right margin of the same line if there is space, or flushed right on the line if there is no space (first two ...
Keelan's user avatar
  • 5,373
3 votes
1 answer
44 views

Accessing indent length with enumitem

For a package I'm writing, I need to access the actual amount a list item is indented. Here's a minimal example showing what lengths are available to me, but they don't seem to give me what I need. ...
Alan Munn's user avatar
  • 213k
0 votes
1 answer
28 views

Mimic align environment within tabularx, even more than once per proof

I have already asked this question: Define an environment similar to align such that it can be used in tabularx or tabular. Zarko's answer to that question (https://tex.stackexchange.com/a/693393/...
Noah J's user avatar
  • 443
2 votes
1 answer
54 views

centering right side with autoaligne

Here is a MWE: \documentclass{article} \usepackage{autoaligne} \begin{document} \[ (S):\quad \left\{ \autoaligne{x-2y+3z-4t=4\\+y-z+t=\-3\\x+3y+-3t=1\\+\-y+3z+t=\-3} \right. \...
Didier's user avatar
  • 1,281
4 votes
2 answers
186 views

Center equation and make big and bold

When using: \begin{center}equation\end{center} The equation goes far to the right instead of being centred. Example: \documentclass{article} \usepackage{cancel} \usepackage[fleqn]{mathtools} \...
Nickotine's user avatar
  • 173
1 vote
1 answer
19 views

multiline and shifted equation number

code: \documentclass[% reprint, amsmath,amssymb, aps,superscriptaddress, ]{revtex4-2} \usepackage{amsmath} \usepackage{lipsum} \begin{document} \section{Introduction} \lipsum[1-2] \begin{...
MementoMori's user avatar
0 votes
1 answer
37 views

Link between matrix nodes not horizontal

I'm using tikz matrix to put some data on a grid. However depending on the height of what's in each node the edge linking two nodes are slightly slanted making an ugly effect of wavy line. How can I ...
hivert's user avatar
  • 123
0 votes
1 answer
19 views

alignment of 'forall' for long equations

This post provides a solution for aligning equations to the right-hand side. Apparently, it does not work when equations are long. Assuming a given width, how should I modify the following equation to ...
mdslt's user avatar
  • 503
0 votes
1 answer
46 views

Centering itemize in Beamer

I'm trying to (automatically) center an itemize in a Beamer presentation. The problem is, that all solutions I've found either use varwidth with enumitem (which works a charm but not in beamer), use ...
fhred's user avatar
  • 23
4 votes
1 answer
160 views

How to get the width of the gap actually produced in the output-file due to \hskip?

How to get the width of the gap actually produced in the output-file due to \hskip? I wonder if there is a way in Knuthian TeX of getting the width of the gap actually produced in the output-file due ...
Cattleya's user avatar
  • 349
0 votes
0 answers
38 views

centering pgfplots in a standalone PDF file

I am using pgfplots to plot figure as a single pdf file, and then include it into the main latex code for the document. A simple example is as following. \documentclass[ border={0mm 0mm 0mm 0mm}, % ...
wxwuse's user avatar
  • 87
0 votes
1 answer
56 views

Table placement issue: cannot get the table within mdframed to center horizontally on page

\begin{center} \begin{mdframed}[userdefinedwidth= 0.8\textwidth, innerbottommargin= 10] \begin{table}[H] \centering \def\arraystretch{1.5}% \begin{tabular}{|c|c|} \...
William Yeakel's user avatar
7 votes
4 answers
413 views

align by any character in tabular

How would one align the RHS by the "8"s in the following? I tried adding another column, and then left aligning the "999998" right, and the "00001" left, but there was a ...
Sam's user avatar
  • 77
0 votes
0 answers
16 views

Text alignment issues in a table

I have created a table using Tables Generator and managed to edit the resulting code to get what I want, yet I still have some issues that I cannot seem to solve after going through several questions ...
tipofey's user avatar
0 votes
1 answer
39 views

Center term inbetween aligned signs

Edit: Only after I researched and posed the question, another question answering most of my issue was recommended to me. The cdot-alignment issue is still one I'd like to find a solution to though. I ...
Tree's user avatar
  • 1
2 votes
2 answers
102 views

Equations alignment white space

In the following excerpt, I would like to align the set of equations as indicated by the & or && symbols, except that I need the left-hand side of each equation to be attached to the = or \...
AEW's user avatar
  • 797
0 votes
0 answers
90 views

Bad horizontal alignment in tabularray or tabularx

The second column is not properly aligned to the left in both tabularry and tabularx environments MWE: \documentclass[10pt, a4paper, parskip=half]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{...
fuj36840's user avatar
  • 540
1 vote
1 answer
100 views

too much space with centering inside a newcommand

I have created a newcommand to format titles in my prayer book. I want the newcommand to be centered, but with the following code, there is extra space above and below the newcommand. I tried to use \...
Doc's user avatar
  • 41
2 votes
1 answer
30 views

Vertically align numbers in siunitx column at the bottom

I have a table with different row sizes and some S[] columns from package siunitx. By default, the numbers in the S columns are vertically centered in each row: \documentclass{article} \usepackage[...
Christoph Thiede's user avatar
8 votes
3 answers
170 views

Overline leads to inconsistent positions of superscript

I am looking to write this simple product of two powers of complex numbers, but the difference in positioning of the powers in the conjugated and non-conjugated cases bothers me. The potential \...
David's user avatar
  • 103
0 votes
2 answers
35 views

rule at middle of text hight

ich have the following code: \begin{center} \rule{0.2\linewidth}{0.1mm}\hspace{0.5em} \textbf{\large Analytische Aufgaben}\hspace{0.5em} \rule{0.2\linewidth}{0.1mm} \end{...
BukkitDEV's user avatar
10 votes
2 answers
435 views

How to properly align two numbered equations?

I try to type two following equations: These equations are not subequations. First number 1 in (1.1) and (1.2) means chapter. My problem is that each part of these equations is centering. I can't ...
Sindzicat's user avatar
  • 113
0 votes
1 answer
40 views

Cell lines are cut when using multiple rows

Working in a large project with some commands defined for usage in a table. I list them below. Using them, I am trying to create a table which has multiple rows and still aligns the other cells ...
nyw's user avatar
  • 25
3 votes
2 answers
181 views

Multiple alignments of different equation types in math mode

I was wondering how to correctly align the following equations at the & signs. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{3} &a_0 &= f^{\...
AEW's user avatar
  • 797
2 votes
1 answer
28 views

Make a table tighter and a caption centered / not too close from table

I would like to get a tighter table since I have too much space between rows and columns. Here below the current Latex code: \begin{table*}[h!] \centering \begin{tabular}{*{7}{c}} \...
guizmo133's user avatar
5 votes
1 answer
113 views

Superscript horizontal alignment on flipped integral symbol

I'm trying to define a command in latex that gives me a flipped integral symbol as I haven't been able to find it in any existing package. So far this is my attempt: \newcommand{\cocoendtni}{\...
Monoidoid's user avatar
  • 153
0 votes
0 answers
32 views

Double left-alignment in a big bracket

I'm trying to write 2 lines of inequalities contained in a big bracket. Thus I use \left\{ and \right. Additionally, I hope to write 2 inequalities in one line (i.e. 2 "<" symbol), and ...
Steve Jacob's user avatar
2 votes
1 answer
67 views

Optimization problem alignment

I was wondering how to correctly align the following problem at the first letters of each line (minimize needs to be aligned with such), as well as at the = and \in symbols. \documentclass{article} \...
AEW's user avatar
  • 797
1 vote
2 answers
78 views

Centering only a part of a line

I would like to center only a part of line. It would be a command \centerOnly that could be used as in \documentclass{article} \usepackage{enumitem} \usepackage{showframe} \begin{document} \begin{...
Colas's user avatar
  • 6,638
3 votes
1 answer
101 views

Align table exclusively to plus-minus signs without taking the decimal point into account

I would like to align my table the following way: Arsen______0,63+-0,12__________18 +-12 Blei________11,7+-0,6__________109 +-9 As you can see, I don't want to have any space between the \pm sign and ...
Yannik K's user avatar

1
2 3 4 5
111