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
0 votes
0 answers
30 views

Alignment relative to previous line [closed]

I am looking for a way to align separate lines, but always relative to some marker in the previous line. Let me just use two symbols &1 and &2 to formulate some pseudo-TeX code to bring across ...
user avatar
  • 101
0 votes
1 answer
26 views

Align multiple equations centering

I am trying to center multiple equations with align, gather, and center but could have done yet. How can I do it? The picture shows what I want. Thank you \documentclass{article} \usepackage{amssymb,...
user avatar
0 votes
2 answers
48 views

Universal method for put y label at middle of y axis

As the title suggests, I would like to know if there is a "universal" method to position the label of the ordinate axis horizontally to its left and vertically to its center. In other words, ...
user avatar
0 votes
2 answers
61 views

How to draw tables with correct column widths and correct centering of multicolumn items?

I would like to put the $\omega_1$ and $\omega_2$ terms right in the middle of two columns. If I make the columns equally wide -- 2em in the code below -- the result is very poor: \documentclass{...
user avatar
  • 141
0 votes
0 answers
53 views

How to have better tab and alignment in maths equations?

Instead of typing the \hspace{30mm} or otherwise to set the space, are there any other ways to efficiently 'tabbing' different equations in different alignment environments? Sorry if the code is bad, ...
user avatar
0 votes
0 answers
20 views

All tables are centered but flushed to the right, cant center by any means

The issue at hand is, since I had to increase fontsize (that worked perfectly) but now my tables are centered but flushed to the right side of the page and the columns of the right side are out of ...
user avatar
  • 13
0 votes
0 answers
22 views

Vertically center the content of some cell in a table

I'm writing a research paper in latex and I'm having trouble formatting a table. I'm making a full-page table and I can't figure out how to vertically center the contents of some cells. This question ...
user avatar
  • 1
2 votes
1 answer
135 views

Looking for a *comprehensive treatise* on horizontal alignment of mathematical expressions with LaTeX

NB: In the original version of this post, I mistakenly used "vertical alignment" where I really should have used "horizontal alignment" instead. I have now corrected this mistake ...
user avatar
  • 791
1 vote
1 answer
37 views

Aligning equations with align

Imagine I have the following system \begin{align} a&=b\\ abc&=def+1\\ e&=mc^2-H(x,y,z) \end{align} I want to add a first column aligned in a different manner, like so is this ...
user avatar
  • 145
3 votes
2 answers
56 views

Alignat: column not flushing right to the margin

I am trying to use alignat* to have flushed-right comments on equations. The comments are correctly aligned, but I can't find a way to ensure they are flushing to the document's margins. Either the ...
user avatar
0 votes
3 answers
43 views

Is it possible to use Tab space to create a horizontal space and then align the texts ? I used \quad and \qquad but it doesn't work

\begin{itemize} \item Structure porteuse (y. c. infrastructure) \qquad \qquad \qquad \qquad 75 ans \item Parapets / bordure de pont \qquad \qquad \qquad \qquad \qquad \...
user avatar
0 votes
0 answers
21 views

Horizontally aligning multiple bussproofs labels

I'm using the bussproofs package to typeset some inference rules, using the \RightLabel directive to assign names to each rule. When I typeset multiple prooftrees in a row, they get horizontally ...
user avatar
5 votes
2 answers
133 views

Boxes with text or numbers

I am trying to get a neater version of something like this Following is what I have done to get this \begin{equation*} \begin{aligned} \overbrace{\fbox{r}\fbox{r+1}\dots\fbox{2r-1}}_{Block-2}\ \ ...
user avatar
  • 73
0 votes
2 answers
55 views

How to center the first row?

\begin{table*} \caption{Table Name} \centering \begin{tabular}{lllllllllllllllll} \toprule[.1em] \multirow{Ref} &\multicolumn{6}{l}{User Profile Based Features} & \multicolumn{10}{l}{...
user avatar
0 votes
1 answer
23 views

Roman pagenumbering on top with horizontal lines

I have the problem that I would like to have Roman and Arabic pagenumbering on top right with a horizontal line below. However, if I use this package: \usepackage[automark]{scrlayer-scrpage} with ...
user avatar
0 votes
2 answers
36 views

How to align equation on several characters

Using Latex, I am looking for a way to align equations on several characters. I want to obtain something like that : ax + bx = c1 a²x + bx = c2 a²x + b²x = c2 As you can see the idea is that ...
user avatar
0 votes
1 answer
29 views

Left align text inside figure environment

The following code produces a bit of text where the first line is not aligned with respect to the second line, i.e. the word 'city' and the horizontal line are not indented by the same distance. I ...
user avatar
1 vote
2 answers
45 views

Trouble aligning a Rightarrow in a forest environment

I am trying to draw two forest and I've been able to. What I'd like to add now is a Equivalence arrow (\Leftrightarrow) in the middle of those, but well aligned. Currently I have the following code: \...
user avatar
  • 299
4 votes
1 answer
55 views

Multiple text alignments in TikZ legend entries

I am looking for a simple way to have multiple alignments in a TikZ legend. I have the following code which produces a TikZ figure: \documentclass[11pt,a4paper]{article} \usepackage{pgfplots} \...
user avatar
0 votes
1 answer
54 views

Adding right-aligned text to a multi-line list item?

My question is similar to Adding right aligned text to a list item?. The important difference is that my items span multiple lines. The right-aligned text itself never spans more than 1 line. The ...
user avatar
  • 3
0 votes
2 answers
23 views

Aligning figure (within table environment) to the right margin

\usepackage{graphicx} \usepackage{multicol} \usepackage{tabularx} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \usepackage[export]{adjustbox} \usepackage{wrapfig} \begin{document} ...
user avatar
0 votes
1 answer
39 views

Indent Problem of Chinese article

This is a Chinese article so I'm using ctex package and XeLatex as the compiler. How to set the indent of each paragraph 2em (twice the width of a chinese character) ? All code before \begin{document} ...
user avatar
  • 101
1 vote
1 answer
42 views

Center an equation in a specific point

I would like to know how I can center this equation in the first equal sign (commented with a letter c in the picture). Thanks in advance! Here is my code so far: \begin{align} J_i &= \frac{J_i '}{...
user avatar
  • 35
2 votes
1 answer
61 views

\end{center} but still centering

I am centering a text: \documentclass{memoir} \renewcommand{\partpageend}{} %% can write after part title \usepackage{graphicx} \renewcommand{\beforepartskip}{% added <<<<<<<<...
user avatar
0 votes
0 answers
41 views

Strange overfull \hbox

I'm having a strange issue with LaTeX where I'm getting overfull \hbox warnings for seemingly no reason (of course there is one, I just can't figure it out). I'm hoping someone can illuminate the ...
user avatar
1 vote
1 answer
25 views

tikz: automatic anchor point

Can you see label "prodotti"? \documentclass{article} \usepackage{float} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{figure}[H] \...
user avatar
1 vote
1 answer
30 views

List of abbreviations using setlist and enumitem package

I am writing a list of abbreviations. This is the format that I use. So I use this configuration \usepackage{enumitem} \newlist{abbrv}{itemize}{1} \setlist[abbrv,1]{label=,labelwidth=1in,align=...
user avatar
  • 25
1 vote
1 answer
62 views

My table is not centered [closed]

I am new to latex. I have been trying to adjust my table several times to be [1]][1]centered on a landscape page, but my attempts did not work out. I would appreciate your help! Also, if you could ...
user avatar
  • 13
0 votes
1 answer
50 views

TikZ: Why is a scalebox-ed picture not exactly centered even with the centering option?

My figure is somehow centered, but not exactly centered. Why? A more general question would be: If I have a TikZ picture with already-computed coordinates, that I can't easily re-compute, how can I ...
user avatar
  • 114
0 votes
3 answers
64 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
0 votes
1 answer
27 views

How do I typeset centered and aligned equations with additional flush left / ragged right labeled intertexts in one single math mode environment?

I'm using LuaLaTeX and the scrbook class. Here's what I want to typeset: I tried to typeset this using several helpful macros related to adjustable shortintertexts and align/alignat environments from ...
user avatar
0 votes
1 answer
37 views

How can I define an environment similar to alignat, but calculates the number of columns automatically like align?

I've read several posts explaining the difference between align and alignat such as this TeX SE answer. I want to make a new environment with the capabilities of align (create as many as desired based ...
user avatar
0 votes
2 answers
41 views

Align text // newcommand

I am using the following code, but can't figure out how to align the paragraph to the left. Can someone help me, please? \documentclass{scrartcl} \reversemarginpar % Move the margin to the left of ...
user avatar
0 votes
1 answer
48 views

writing a menu in latex

I am trying to write a simple menu. I would like to insert aligned numbers on the left and want to fit the following on one page, if possible should look more like a menu. many thanks in advance. \...
user avatar
4 votes
1 answer
210 views

How to Automatically Center Verse

Consider the following code: \documentclass{book} \textwidth 5.75in \usepackage{verse} \begin{document} \thispagestyle{empty} \LARGE \vskip 25pt \begin{center} \textbf{Casey at the Bat} \end{center}...
user avatar
  • 5,283
4 votes
2 answers
364 views

How can I place two circuit diagrams next to each other?

I made these two circuit diagrams: But I don't want them to be one above the other, instead I want them to be ''in the same line'' if that makes sense, one next to the other. I tried the multicolumn ...
user avatar
  • 117
1 vote
1 answer
32 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
1 vote
1 answer
16 views

hspace* does vertical space instead of horizontal space in algorithm block

I tried to use the algorithmic package to write down a pseudo code. \begin{algorithm} \caption{caption} \Require $n\in \N$, fixed time $T>0$ \begin{algorithmic}[1] \State T ...
user avatar
  • 13
1 vote
1 answer
24 views

Forest - horizontal directory structure

Does someone know how to turn this vertical directory structure into a horizontal one? I already tried different solutions, but none of them worked as expected. \documentclass[12pt,a4paper,oneside, ...
user avatar
2 votes
2 answers
98 views

Plain TeX simple horizontal alignment in table

Beginner's question: Why doesn't horizontal alignment work as I expect in this simple table? I just have a set of variables with values in the left column which I want to align under the heading "...
user avatar
0 votes
1 answer
33 views

CV symbol position alignment problem

I'm using these templates as baseline: https://es.overleaf.com/articles/pratham-tibrewals-cv/xbckppvktddd https://es.overleaf.com/latex/templates/recreating-business-insiders-cv-of-marissa-mayer/...
user avatar
  • 257
1 vote
1 answer
92 views

Two column document in plain TeX

How could a one-column document in plain TeX be converted into a two columns document? Could somebody provide me with a sample text? I've read through "A Gentile introduction to TeX". The ...
user avatar
0 votes
1 answer
33 views

Indentation Wrong Second line in Titleframe Goettingen theme (Beamer)

I'm coming here looking for help because I've tried in every way to correct the error in the attached figure. When dealing with a long title, the second line suffers an unnecessary indentation. I ...
user avatar
0 votes
1 answer
34 views

Indentation in Beamer Frametitle [duplicate]

I'm coming here looking for help because I've tried in every way to correct the error in the attached figure. When dealing with a long title, the second line suffers an unnecessary indentation. I ...
user avatar
1 vote
1 answer
60 views

Align equations on different rows inside tabularray environment

I'm trying to find a solution for my problem: align different equations on different rows at their respective equal sign. I tried the most popular environments for this: eqparbox equation* align* but ...
user avatar
  • 61
0 votes
0 answers
32 views

Is there some way to auto replace h\spaced equation labels with right marginalized labels?

I labeled my equations with numbers and separated the labels with H space function, but now I realise thus isn't so good, so I there some function that sets the labels to the right margin? For Example ...
user avatar
  • 101
1 vote
2 answers
60 views

Splitting a tcolorbox into two columns

I'd like to split a tcolorbox environment into two columns like this: +---------------------------------------------------------------------------+ | Definition. Lorem ipsum dolor sit amet, ...
user avatar
  • 13
0 votes
2 answers
62 views

How to right align the last line of a block of text?

I’m using pandoc to convert a Markdown file to a LaTeX document and then to PDF. The document I have contains some quotations. Coming from standard Markdown, they are rendered as quotation or quote in ...
user avatar
1 vote
1 answer
48 views

How to horizontally align text in text in wrapfig environment with surrounding text?

My code is: \documentclass{article} \usepackage[table]{xcolor} \definecolor{background}{rgb}{1,0.62502,0} \usepackage{wrapfig} \setlength\intextsep{0pt} \usepackage{lipsum} \begin{document} \lipsum[...
user avatar
  • 736
2 votes
1 answer
41 views

How to make each column of the same width, each column center aligned and each number aligned by decimal in a table in LaTeX?

I have a table as follows: Its code is: \documentclass{article} \usepackage{siunitx} \usepackage{wrapfig} \usepackage{graphicx} \usepackage{tabularx} \usepackage{booktabs} \usepackage{multirow} \...
user avatar
  • 633

1
2 3 4 5
105