Skip to main content

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
4 votes
1 answer
21 views

Fixed column width and left alignment works partially

For some reason, I am not able to set left alignment in the third column of a table (I can make it only in the first and second columns}. Does anybody know waht is hapenning? Below you find a MWE. ...
Marcus's user avatar
  • 215
4 votes
2 answers
78 views

Align enumerate label with left margin

This should be a simple one, hopefully. I like to align the label of the items in my enumerate environment with the left margin. I can do this with the option [labelsep = *] from the enumitem package. ...
Sverre's user avatar
  • 20.9k
2 votes
2 answers
86 views

Re-center text after string substitution

What I want to do I want to display the date (year / month) on the cover of my document in Japanese. I have used the datetime2 package in other places in my document to print the date in English ...
Patrick's user avatar
  • 155
2 votes
4 answers
141 views

Avoid underset text overlaping

As you can see, underset on right hand becomes overlaped. How can I avoid this? This is my MWE \documentclass[14pt]{article} \usepackage{amsmath} \usepackage{mathtools} \newcommand{\lunderset}[2]{\...
user3204810's user avatar
  • 1,539
1 vote
0 answers
35 views

In a multiline equation, how to align from the right in a second-level split?

I have a long equation, where I want to divide the expression into 4 parts, 2 of which are & aligned, and the other two are child to the former, and should be aligned from the right. I am nesting ...
Donn's user avatar
  • 11
0 votes
1 answer
31 views

How to left align chemical equations with tags?

I have a set of chemical reactions I am trying to write using mhchem. I need to left-align the equations and right-align the tags. Here's what I have done so far: \begin{align} \ce{AB -> A + B} \...
navajyothmp's user avatar
1 vote
1 answer
17 views

Latex Beamer - Add left padding to table of contents

I have changed the style of my table of contents in a beamer template, but now I want to add an horizontal padding to the left of this frame. How can I do it while keeping my custom configuration? \...
mupfelix's user avatar
5 votes
2 answers
205 views

How to Create a Fully Centered and Adjustable Multiline Table in LaTeX?

I am unfortunately quite a LaTeX noob and am having difficulties putting together a table. My goal is to center the content of each cell both vertically and horizontally. The table is aligned ...
bolli's user avatar
  • 51
1 vote
1 answer
38 views

Horizontally Align Lists in Proofs

Is there any way to make the 1. and bullet point align with the rest in the proof environment? \documentclass[letterpaper,12pt]{article} \usepackage{amsmath, amsfonts, amssymb, amsthm} \begin{document}...
Dian Sheng's user avatar
4 votes
3 answers
244 views

Non-standard alignment of multiline equation

In the old days when people used typewriters instead of LaTeX it was fairly easy to achieve the following non-standard multiline split Now that we have environments like align and alignat it is not ...
Ted Black's user avatar
  • 495
1 vote
2 answers
40 views

Left-aligned and centered text on same line (not equations)

In the style which I'm sort of copying, dates are printed against the left margin and the entry's heading (which doesn't need to conform to LaTeX sectioning commands) is centered. I have borrowed code ...
DomMocquereau's user avatar
0 votes
0 answers
11 views

Aligning conditions in pairs of cases [duplicate]

Is there any way to align the conditions in more than one cases environment? (the "u=0"/"u>0" below) $$\begin{aligned} x_1 &= \begin{cases}Z & u = 0 \\ ...
Jason S's user avatar
  • 2,880
0 votes
1 answer
52 views

How can I fully justify spaces inside enumitem description labels?

I will start with a picture that says more than a thousand words: \documentclass{article} \usepackage{enumitem} \usepackage{blindtext} \begin{document} What I currently see is this: \begin{...
Christoph Thiede's user avatar
1 vote
2 answers
57 views

Center first page title in exactly the middle of the page

I have the following code to create the front cover of a book: \documentclass[11pt,twoside,onecolumn]{memoir} \pagenumbering{gobble} % Remove page number \title{\fontsize{34pt}{34pt}\selectfont{ This ...
ellat's user avatar
  • 165
1 vote
1 answer
31 views

How do I fit a paragraph on the right hand side of an item?

How do I get text in this arrangement? The lines are the margins of the page. "x = y + 1" is a line of math in a box, as wide as the text inside. The paragraph extends from the right side of ...
Glyn Webster's user avatar
0 votes
1 answer
33 views

Handling with tabularx and tikzpicture

The goal is Generate a centerd-aligned single cell tabularx large as document width Insert a tikzipicture MWE: \documentclass{standalone} \usepackage{amsmath} \usepackage{mathtools} \usepackage{...
user3204810's user avatar
  • 1,539
4 votes
2 answers
151 views

Aligning equal signs and brackets at the same time

I wish to have the following . This is the code to generate the image above. \begin{align*} \vec{a}\dvec{B} = \vec{a}(\vec{b}\wedge\vec{c}) \\ \vec{a}(\vec{b}\wedge\vec{c}) = (a_x\hx + a_y\hy ...
Octonions's user avatar
-3 votes
1 answer
75 views

Simple Question [closed]

How to write the image below in latex?:
muzan muzan's user avatar
2 votes
1 answer
115 views

Why does centering work in AMS article but not plain article?

I have a command for images. It also centres them. I mostly just used it in amsart but today I tried using it in article and the centering that previously worked in the AMS article no longer works. ...
scribe's user avatar
  • 335
0 votes
1 answer
118 views

How can I write this on latex? [closed]

How can I write: On latex, I used \[ \] math command for the __ __ and \phantom for the spaces: but i cant seem to get the "set of choices" directly under it in the desired fashion: How ...
muzan muzan's user avatar
1 vote
0 answers
19 views

Left-Align Section Title After Using Wraptable

I created a table that is placed next to some text: \documentclass{article} \usepackage[font=small,labelfont=bf]{caption} \usepackage{geometry} \usepackage[graphicx]{realboxes} \usepackage{siunitx} \...
s28's user avatar
  • 87
0 votes
1 answer
34 views

Center the word "Appendix" and make it bigger

Is there some way to make the word "Appendix" bigger, so that it covers the page in the center, instead of a small "Appendix" in the upper left corner? I use this code: \...
Eirik Nordland's user avatar
2 votes
1 answer
51 views

Quote Equation number with horizontal alignment

I have using quote with displayed numbered equation. But the eq number (1) not moved from right to left. Can anyone advise me how to fix. Source TeX code is: \documentclass{book} \usepackage{...
KGSR's user avatar
  • 73
0 votes
2 answers
47 views

x/y and y/x having different-sized parentheses

I wrapped \dfrac xy and \dfrac yx in left and right LaTeX tags with parentheses, and I expected that the parentheses would be the same size since x/y and y/x should technically be the same height. ...
Technodoggo's user avatar
1 vote
1 answer
18 views

How to have the left padding/margin be 0 so that this columnwidth image does not have extra margin/padding on right?

How to have the left padding/margin be 0 so that this columnwidth image does not have extra margin/padding on right? \subsubsection{AI3D Benchmark Card} The AI3D Foundation produces a ``Benchmark ...
ina's user avatar
  • 123
0 votes
0 answers
41 views

How to make right alignment when using latex

I am trying to write my thesis in latex but am stuck with this alignment problem. I need only the heading to be written aligned not the content text, I have tried some instructions but it shows me the ...
bid2019's user avatar
5 votes
2 answers
1k views

Reproduce Knuth's circle and triangle examples

I have been trying to reproduce these examples from Knuth's book Digital Typography: So far this is the closest I have come: \documentclass[10pt,letterpaper]{article} \usepackage{shapepar} \...
Basil Crow's user avatar
-1 votes
1 answer
105 views

Create One Legal Page Still A Challenge [closed]

apologies for reiterating this question. However this issue is still not solved.I figure the best way to learn was to do hands on and get it going for myself, but after a few days, I am still finding ...
Simbadian's user avatar
3 votes
2 answers
146 views

How to break alignment on a row inside the align environment?

I'm trying to typeset the Gell-Mann matrices in LaTeX on Overleaf, these are 8 matrices 3x3. The code I'm using is \documentclass[a4paper, 11pt, twoside, titlepage]{report} \usepackage{amsmath, ...
Marco Olivieri's user avatar
0 votes
0 answers
39 views

Overleaf table centering

I copied the code below from https://www.overleaf.com/learn/latex/Tables. The output shown on the website has this table centered on top of the caption. However when I enter the same command in my ...
user24293678's user avatar
0 votes
1 answer
31 views

Text alignment with flushright centers my text instead, is this a bug?

Using TeXstudio. I've been trying to align a piece of poetry I wrote to the right side of the page. Essentially, I want to achieve a two column structure with their alignment being left/right flushed. ...
xDonnervogelx's user avatar
2 votes
2 answers
37 views

Flush picture right of text inside minipage

I want to display a university logo flushed right from some text in a CV inside a minipage. I can't get to to work, neither with tables nor with wrapfigure. But I am a novice, I admit. How should this ...
Jori's user avatar
  • 21
1 vote
1 answer
19 views

{tabularx} | Vertical Alignment in Tables comprising pictures

Again I'm struggling with constructing the simplest of tables. The scenario: I'd like to generate a very basic table, where the very first cell shows an image. The adjacent cell's text, though, should ...
Univac93's user avatar
2 votes
4 answers
153 views

Centering a group of table columns under a wide header

In the following table, the "Mean agreement vs. random" column is logically just one column, but it needs a bunch of internal alignment: the decimal points are supposed to all line up, and ...
zwol's user avatar
  • 2,981
1 vote
2 answers
45 views

Horizontal Alignment Spacing in Cases Environment

I want to typeset some piecewise equations in MathJax and align the inequality symbols in the piecewise conditions. Using the cases environment and adding more ampersands does somewhat align the parts ...
Lawton's user avatar
  • 135
1 vote
2 answers
49 views

Horizontal Alignment of Columns in a tabularx environment

How could I center the columns in the following table using tabularx based on numbers and not all symbols in a cell. Right now it is centered taking into account the stars, but I would like to center ...
Trevor Andrew's user avatar
0 votes
2 answers
34 views

Aligning long section names to the right side in the header

I'm trying to finish my thesis but I face some problems regarding text alignment in the header. I use the fancyhdr package and I want the chapter positioned on the left side and the section on the ...
Johannes's user avatar
3 votes
1 answer
96 views

How to make the right ends of equations in a split environment to align vertically?

I have an align environment inside of which I use a split environment to split the second long equation: I would like to ask how to push + h and + k to the right such that their right ends are the ...
Analyst's user avatar
  • 189
2 votes
1 answer
72 views

How to start my text within the align environment from the left margin of page without separating the equation line and text line?

I am writing a journal for publication and because of the page limit I have to write text within the equation line. Here is my code: \documentclass[final]{IEEEtran} \IEEEoverridecommandlockouts \...
Shashank Ranjan's user avatar
2 votes
1 answer
26 views

Beamer presentation with one slide, containing a single image, centered horizontally and vertically

I would like to create a Beamer presentation containing a single slide. This slide should contain the image image.png, and it should be exactly centered horizontally and vertically. There should be ...
Adam L. Taylor's user avatar
1 vote
1 answer
30 views

Centering color box without changing spacing

I want my color boxes to be horizontally centered by default, but when I set halign = center, it massively spaces out the text, which I do not want. I get the right output by not including a halign ...
Ainsley Pullen's user avatar
3 votes
2 answers
100 views

Alignment inside a equivalent statements proof

How can I set this kind of alignment keeping 1->2 in the left hand side and having the text with a justified alignment. I assume that I have to do 1->2 manually.
Robert's user avatar
  • 133
5 votes
2 answers
191 views

forest: Even horizontal distribution of all nodes on the same level

In the following tree, some nodes have multiple parents (which technically violates the tree definition). Therefore, to create the tree in the forest package, I manually added the edges from children ...
Zhorrid's user avatar
  • 101
2 votes
1 answer
55 views

Centering in non-merged tables?

This is the snippet I'm working on: \begin{landscape} \begin{table}[hbt!] \centering \begin{tabularx}{5.75in}% {@{} P{1in} P{0.4in} P{0.4in} P{0.5in} P{0.5in} P{0.4in} ...
Kenneth Ligutom's user avatar
3 votes
1 answer
86 views

Alignment in itemize

I need to align some elements within an itemize environment. For example, each item contains a question and some space (with dots) for students' answer. How can I have some elements within itemize ...
Gauffke's user avatar
  • 91
4 votes
1 answer
114 views

Equations in two columns and in box does not look too good

First of all, let see what I want. It is the two upper box with two equations in each. and the two boxes at the bottom are what I get from the following LaTeX code: \documentclass[12pt,letterpaper]{...
M. Lemelin's user avatar
4 votes
2 answers
314 views

Difference between \newline, \linebreak, \break

What are the actual definitions of \newline, \linebreak and \break (and also \par)? Is the latter a TeX primitive? I can't find the relevant documentation anywhere regarding their precise function, ...
SvenForkbeard's user avatar
0 votes
2 answers
72 views

Behaviour of newline in tabularx package

I want a table with two columns; the left column should be left-justified, the right right-justified, but with possible manual line breaks in either column. I am using a tabularx environment \begin{...
SvenForkbeard's user avatar
2 votes
2 answers
54 views

Align all equal signs in array of equations

Is there a way to align all equal signs in a stack of two equations so that they occupy the same areas evenly? This is my current code: \begin{eqnarray} m \Vec{a} \cdot \Hat{u}_L = - m L \Dot{\theta}^...
ncant's user avatar
  • 35
1 vote
1 answer
57 views

How to create a comprehensive diagram of many inequalities on a number line?

I want to graph 8 inequalities and a number line, like I show below: Note that it's different from plotting the inequalities themself, like it would be plotting x<2 for a x-number line (that is, ...
anonymous 's user avatar

1
2 3 4 5
113