Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

3
votes
2answers
98 views

How to align the last element on the right when using \hfill?

I am making a wine list from a CSV file (see my first question here: How to import data from excel and format it as text in LaTeX?) and I need to align the prices on the right. To do this, I used ...
1
vote
1answer
16 views

Centering only one (section)header

I want to center only one header and so far I have only found solutions that allow me to center ALL the section headers (e.g. \usepackage [centering] {titlesec}) I've come up with a work around that ...
0
votes
2answers
28 views

Why can't I process \centering with \par when there is no group?

This is a follow up in my previous question, Why can't I center a group? I asked why I can't use \centering to center a group. I got an answer saying that a paragraph is processed when a \par (or ...
2
votes
1answer
38 views

Why can't I center a group?

Alright, so obviously if I want to center a certain text I use the enviroment function as followed: \begin{center} text to be influenced \end{center} But why can't I instead use the group function ...
0
votes
0answers
39 views

Memoir + Natbib: my reference don't appear justified

I desperately need some help. I can't force my References to be justified. My references are produced with BibDesk (so they look in order) and I am using this part of the code: My main file: \...
6
votes
1answer
141 views

Tikz Matrix: Nodes are not 'in-a-row'? [duplicate]

I am using a matrix for node-positioning with a fixed node witdh. However, as some nodes contaning more than one line of text some nodes are shifted in y-axis and I don't know why or how to fix this. ...
1
vote
1answer
17 views

align and flalign in a same document

My tags are follows: \documentclass{book} \usepackage{amsmath} \begin{document} Test \begin{align} a+b=c \end{align} Test \begin{flalign} a+b=c \end{flalign} \end{document} And the output shows: ...
3
votes
4answers
47 views

How to align an image right next to text

So I'm fairly new to latex and am mainly using the Overleaf site for writing my report. Now I have a particular page with info regarding my school etc. but I want the school logo sitting neatly in the ...
0
votes
0answers
38 views

How to shift text to left?

I want to align these two. Or shift the text to left. how can it be done?
0
votes
0answers
16 views

Prime spacing with mathcal font

Compare the following: Here is the code and an image: \begin{align} V'(t) &= 0 \\ \mathcal{V}'(t) &= 0 \end{align} The first has a regular 'V'. The second uses mathcal. On my ...
1
vote
0answers
37 views

How do I write an algorithm with two columns to its right?

I know about verbatim which I use to write code, but how in the world can I get a table like this? The reason why I do not just write it in verbatim is that I want to apply effects like \texttt and $....
2
votes
2answers
79 views

How to center some rows in table but not others

I have the code \begin{center} \begin{tabular}{p{0.4\linewidth}p{0.4\linewidth}} \toprule \multicolumn{1}{c}{column 1} & \multicolumn{1}{c}{column 2} \\ \midrule ...
0
votes
0answers
33 views

Section in hebrew letters

I have a document in english with few sentences in hebrew. At one place I had like to make the Section title in hebrew however it appears at the left side of the paper instead of the right side. \...
1
vote
1answer
42 views

How to add a space before the varblock?

\documentclass[xcolor=table]{beamer} \newenvironment<>{varblock}[2][.9\textwidth]{% \setlength{\textwidth}{#1} \begin{actionenv}#3% \def\insertblocktitle{#2}% \par% \...
0
votes
1answer
17 views

Prevent spreading of words in: Left aligned, automatically wrapped text, in a table

I am trying to get a text left aligned in a table that automatically wraps text at a specified, varying column width. Without: LaTex adding extra spaces between words to reach the other side (right ...
0
votes
0answers
16 views

Aligning main (parent) equation along with all its associated sub-equations at the = sign [duplicate]

In a document, say we have one main equation (eq. 1) and two associated subequations (eq. 1a and eq. 1b). How do we align all three at the = sign? All three must have individual labels/tags to be ...
1
vote
1answer
66 views

Text not completely justified? Space between letters

I'm new to LaTeX and I'm trying to recreate a PDF file to look exactly the same. Now I managed to get all equations and everything correct. But the formatting is abit off, in the original document ...
0
votes
2answers
38 views

Centering text in default beamer slides

I want to redefine the frame template so that text is centered whenever I create a new frame, without using \centering in the frame environment. This is what I am currently doing: \begin{frame}\...
0
votes
1answer
49 views

Aligning in an enumeration environment

Is there a better, smoother way to align the comment columns? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{enumerate} \item[{\bf a.}] $\begin{aligned}[t] \dfrac{z^{\...
0
votes
1answer
37 views

Lyx, Beamer and itemize

So I'm trying to use LyX with beamer in order to create a presentation. When I try to use itemize in LyX, I want it to look something like that: \begin{itemize}\raggedleft \item ניסיון \end{itemize} ...
3
votes
1answer
31 views

How to have mutually-independent text side by side

How could I create two columns that are arranged side by side. By side by side I mean that, the one on the left is flushed to the right and the one on the right is flushed to the left. Also, they need ...
0
votes
1answer
20 views

Fill out and center content in tabularx

Problem: I am using the IEEE template for conference papers and do not manage to fill out the right part of a table in a way that makes the table look centered. Minimal Working Example (MWE): \...
3
votes
2answers
46 views

Move whole flowchart diagram left of the page when using Tikz

I am creating a flowchart using Tikz. Where under the main block, three blocks will share the equal space. I have tried with this \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{...
7
votes
3answers
181 views

Is there a way to have two or more equations on one line, each separately numbered and equal signs vertically aligned?

I will start with examples in order to more easily explain what I'm after. The first example shows how I would like four equations arranged. The vertical alignment of the equal signs in each row is ...
2
votes
1answer
32 views

How to center horizontally a tcolorbox in the page?

I would to center a tcolorbox in the page (or column, etc.) that has a smaller width than \linewidth. Is there a better way to do it than nesting the tcolorbox in a \begin-\end{center}? \...
0
votes
0answers
16 views

Justifying Text under 'newenvironment' Environment Name

I apologize for how bad this probably looks, as I am relatively new to LaTeX. Here is the code I have: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \...
3
votes
2answers
155 views

Space around vertical bar/pipe

I am new to Latex and am giving it a try on a homework assignment. My professor's notes (which are written in Latex) include a formula that looks like this: When I try and recreate this formula ...
2
votes
2answers
54 views

Split a row from a table into two equal columns

I have this simple table and I need some help please: \documentclass{article} \usepackage{graphicx} \begin{document} \begin{table}[] \resizebox{\textwidth}{!}{% \begin{tabular}{|c|c|c|c|c|c|c|} \...
1
vote
1answer
32 views

how to write three equalities in the same line and another under the first equality

how to write three equalities in the same line and another under the first equality? like this: A = B = D = E what I want is that E exactly under B
0
votes
0answers
5 views

Centred SCtables with sidecap package

I want a centred table with a side caption. I use the sidecap package and the SCtable environment. However, the \centering command which works fine for normal tables does not seem to work. \...
0
votes
1answer
31 views

How to center and indent a particular paragraph in LaTex?

I just want to centre and indent a particular paragraph. Everything else shall stay the same? How can I do this in LaTex?
1
vote
1answer
47 views

Indention of article's title in LateX

I am looking for an elegant solution to indent some lines in an article. In particular, the article's title, author's name, affiliation, abstract and keywords. It appears to be simple but I just ...
1
vote
2answers
34 views

Centring table not quite centred

My LaTeX-Fu is weak. I've been having a few problems trying to create a table of two rows of three columns, all centre aligned, all the same size, with the main table being centred also Here's what I ...
1
vote
2answers
19 views

Enumerate environment aligning incorrectly (all flushed left)

I have generated a minimal working example of an issue I'm having. I'm simple writing in an article document type, and for some reason the enumerate environment is flushing left. I would like it to be ...
1
vote
1answer
17 views

Can't centre tabular table

MWE: \documentclass[]{article} \usepackage{multirow} \usepackage{multicol} \usepackage{array} \newcommand\lastbit[1]{\ifhmode\unskip\fi\nobreak\hfill\rlap{\hspace{3\tabcolsep}#1}} \begin{document} \...
1
vote
0answers
20 views

Titlesec and Leftskip

This was actually my very first question about latex five years ago, and it went unanswered. I have come full circle now and I still couldn't figure this out, but at least now I new what keywords to ...
0
votes
1answer
24 views

How Can I Center the Text in my Table?

I want to center the text in each entry of my table: \usepackage{array} \documentclass[11pt, a4paper]{article} \begin{document} \begin{table}[h] \centering \begin{tabular*}{0.80\textwidth}{| @{\...
0
votes
1answer
28 views

Vertical alignment of different systems of equations

I would like to have the following systems horizontally aligned (the misalignment is due to some of the equations having a fraction, others not). Basically, I want (for example) all the $q_1$ on the ...
0
votes
1answer
45 views

Tikz node background image not centered when using right= of

Why is the image not centered for the right node? \usepackage{tikz} \usepackage{mwe} \tikzset{ image/.style={ path picture={ \node at (path picture bounding box.center) { \...
0
votes
2answers
50 views

Align justify into an itemsize list [duplicate]

\documentclass{beamer} \usetheme{CambridgeUS} \useoutertheme{infolines} \usepackage{tikz} \usepackage{tabularx} \usepackage{ragged2e} \begin{document} \begin{frame} \frametitle{Introduction} \...
0
votes
1answer
26 views

Why does the equation tag moves when using `\hspace`?

I am using align environment and sometimes can see that there is an unwated space in some parts of the aligned equations. Hence, I use \hspace with negative length to get the desired spacing. Even ...
1
vote
0answers
18 views

flushleft by using gb4e.sty [duplicate]

My tags are follows: \documentclass{book} \usepackage{showframe} \usepackage{gb4e,qtree,skull} \begin{document} \begin{exe} \ex\emph{Superiority-obeying and Superiority-violating multiple \emph{...
0
votes
0answers
22 views

figure gets moved to the left despite \centering

I have a working figure implemented. But as soon as I want to add my citation with this code: \newline \footnotesize\sffamily\text{Quelle:} \citet{ENTSOE.2014} the figure gets moved slightly to the ...
1
vote
0answers
12 views

Minipage in a two column CV appears in the center than towards the left

I have used minipage to make a two column CV. The left column appears in the center of the page rather than the left side, while the right column starts below the left one and continues onto the next ...
3
votes
1answer
70 views

TikZ: centering nodes and paths relative to each other

I'm trying to draw a textbox over an image like this: Here's what I have so far: \documentclass{article} \usepackage[paperwidth=50cm,paperheight=70cm,margin=1.3cm]{geometry} \usepackage{xcolor} \...
1
vote
2answers
48 views

Horizontal alignment in minipages

I'm having another trouble with horizontal alignment. Someone suggested in my last question to use minipages intead of multicol. I did use and everything was perfect, but I'm trying now to make three ...
0
votes
1answer
21 views

How to center a matrix of tikzpicture

This is the code \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,decorations.pathreplacing, calc, positioning} \begin{document} \begin{center} \begin{tikzpicture} \matrix [matrix of ...
1
vote
2answers
37 views

multicols equations not aligned

I'm trying to align two columns of equations but I don't know why it is not getting aligned horizontally. I know it isa small difference but I find it really annoying (I know my code is bad, if you ...
0
votes
2answers
74 views

How do I get a centered equation when I use \documentclass[fleqn]{article}?

Notice I want my equation to have numbering.
1
vote
1answer
35 views

Problem encountered when centering optimization problem formulation

I have tried centering the integer programming formulation using \centering, \begin{center} around the \begin{align} environment, but the formulation still appears to be flushed left. How can I go ...