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
2 answers
38 views

What is the default size of my list indentation?

Question I want to put a non-float tabular environment inside of a description list after a line break. I want said table to left align with the labels. What value does the description environment ...
user avatar
  • 353
1 vote
1 answer
22 views

make siunitx the decimal points alignment starts from the 3rd row of the table

I got a table has two rows as titles at the top of it, and numbers in the rest cells, so I've checked the document of the siunitx, It says something abt multicolumn but its kinda different from what ...
user avatar
  • 13
1 vote
1 answer
31 views

Listings: indent to specific tab position after math mode

I'm having difficulty formatting code listings with embedded math, using lstlisting with mathescape=true. In particular I'm finding it difficult to lay out code using indentation when there is math to ...
user avatar
  • 3,846
1 vote
1 answer
14 views

Table contents not centered in SI table format with uncertainty

When I use the SI table format, I usually have the numbers centered below the column name. However, when I add some uncertainty part, the contents appear left aligned (or maybe centered on the decimal ...
user avatar
0 votes
1 answer
20 views

Fully Justifying text in Overleaf Template

I am currently using an OVerleaf template to prepare my Cover Letter https://www.overleaf.com/latex/templates/deedy-cover-letter/yhdwrhyvqjwy I am unable to justify the paragraphs fully. I tried using ...
user avatar
2 votes
2 answers
97 views

forest align text to center when using text width

I'm trying to align to the center the text inside rectangles of fixed width \documentclass[12pt]{report} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Packages \usepackage{tikz} \usetikzlibrary{shapes....
user avatar
1 vote
1 answer
59 views

Alignment relative to previous line

I am looking for a way to align separate lines but always relative to some marker in the previous line. My use-case is to align equations in a math environment in a specific way but for demonstration ...
user avatar
  • 111
0 votes
1 answer
27 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
53 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
64 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
54 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
38 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
  • 175
3 votes
2 answers
57 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
23 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
137 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
32 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
57 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
24 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
44 views

Indent Problem of Chinese article [closed]

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
44 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
65 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
42 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
26 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
33 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
53 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
66 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
28 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
38 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
42 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
49 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
211 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,285
4 votes
2 answers
367 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
33 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
18 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
102 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
98 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
2 3 4 5
105