The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1
vote
1answer
14 views

includepdf not adapting to odd/even page margins

An issue with centering I am trying to include several pages of a pdf within a document (hence using includepdf). These take up most of the page, so a 1-to-1 page input to page output is desired. The ...
4
votes
3answers
67 views

Complex matrices column alignment on sign

Background: I would like to improve my matlab function mat2lat(A): https://github.com/KasparJohannesSchneider/mat2lat/issues/1 Problem: For complex matrices, the alignment mode {c} doesn't look ...
0
votes
1answer
31 views

Multiple equations of a system on one line

I tried to write a system with multiple equations on every line. I have this: And I have the following error: Extra alignment tab has been changed to \cr. Could you please help? Thanks a lot!
1
vote
1answer
44 views

Pgfplots/Tikz figure not centering

I have the following graph and I have no idea why it is not centering. Here is the code as a minimum working example: \documentclass[]{thesis} \usepackage{graphicx} \graphicspath{{figures/}} % ...
0
votes
1answer
26 views

How to replace numbers with centered strings in dcolumn table?

In a table produced by the texreg::texreg() function in R I want to replace numerical values with strings. The purpose is to summarize values of a bunch of control variables with a single line and a ...
0
votes
0answers
32 views

Pandoc, how to allow right tab-stop when converting a .docx exported from Google Doc to .latex

Google Docs and Drive, OpenOffice and Microsoft word all have the right tab-stop functionality This is how you configure it in Google Document: Type the text you want on the left Click the ruler &...
0
votes
0answers
22 views

Adjust cells width such that rows look balanced

This is continued from this post where I asked how to keep "even spaces between cells". The approach I started from was the one below first rule, that of the answer is just after the first rule. ...
4
votes
1answer
56 views

ConTeXt: custom \intertext

In a ConTeXt file, I would like to insert a line of text inside \eqalign. When I use \intertext: \starttext \startalignment[middle] $\eqalign{ a &= b \cr \intertext{and} b &= c \cr }$ \...
2
votes
2answers
23 views

Same text alignment inside a parbox as the environment where it is

How \parbox could "inherit" the "alignment mode" used in the environment where it is called? In other words, how can I automate the text alignment setting into a \parbox, in order to take the same ...
1
vote
1answer
32 views

How do I vertically align all entries in a relatively complicated table?

I'm relatively new to Latex, but found it pretty useful in writing up my thesis. However, I'm having trouble with a slightly complicated table and how the it is presenting itself after running. I used ...
2
votes
1answer
29 views

KOMA-script: locally align chapter title

I would like chapter titles added with \chapter{title} to be aligned to the right (i.e. with \raggedleft), but everything else that classifies as a chapter (i.e. a chapter added with \addchap{title} ...
0
votes
1answer
29 views

Keeping even spaces between cell, yet raggedarray for the last one

The case below is fine except for the middle cell, I would have wanted it to be centered. \documentclass{minimal} \usepackage{tabularx} \newcolumntype{R}{>{\raggedleft\arraybackslash}X} \...
3
votes
2answers
26 views

Increase the horizontal space of before a line in algorithm environment

I have an algorithm like the bellow code. How can I align line seven with its upper lines (please look at the uploaded picture)? \documentclass[a4paper,11pt]{article} \usepackage[fleqn]{amsmath} \...
5
votes
2answers
97 views

underline alignment

\begin{equation}\label{eq:OrdenaAlpha} \begin{array}{lrl} \alpha^{0} = \alpha & = & (+6 \quad -1 \quad +4 \quad -5 \quad \underline{-2} \quad \underline{-3}) \\ \alpha^{1} =...
3
votes
3answers
387 views

Is there a way to double indent equations

I have already aligned the first set of these equations \begin{align*} \sum_{k=1}^n 1 &= n\\ \newline \sum_{k=m}^n 1 &= n+1-m\\ \sum_{k=1}^n k = S &= 1+2+3+...+n\\ &= n + (n-1) + (n-...
1
vote
1answer
31 views

Right-justify colorbox slightly to the left of bookcover's edge

I'm looking to place a title in colorbox, in cls bookcover, that is right-justified, and leaving a margin to the left of the edge. I can somewhat get there using tabularx in cls article, but unable to ...
2
votes
1answer
42 views

Centring sidewaysfigure full page diagram

I have a really big commutative cube that I would like to display in a figure. It seems like the easiest way to do so is to use sidewaysfigure*, since the cube is much wider than it is tall (because ...
0
votes
0answers
21 views

The horizontal space between margin and *align* environment [duplicate]

How can I remove the space between margin and align environment \documentclass[a4paper,14pt]{article} \author{} \usepackage[fleqn]{amsmath} \usepackage[a4paper,margin=1in,left=2cm,right=1cm,top=1.5cm,...
0
votes
1answer
19 views

Align a footnote with leftmost border of centered text

I would like 1. The main text to be centered (unlike CCC...) 2. The footnote text to be just below (unlike AAA... & CCC...) 3. The main and footnote text to have their leftmost border aligned (...
3
votes
1answer
62 views

typing a number formatted as currency

while typesetting indian currency such as 100000 the comma , is placed after three digits first and then after every two digits--1,00,000--how do we do it in latex?? i need to have the profit in ...
1
vote
1answer
32 views

Table content alignment

I checked the questions related to this content, But i couldn't find a solution, that is helpful to me. I have issue in alignment of the table contents. I am using the multirow option and including ...
3
votes
1answer
35 views

cover page--“The” is separated from “Publisher”--also how to put a clean page break to stop raggedleft on second page

\documentclass[10pt,a4paper]{report} %inter office note /cover page vertical line template \usepackage{enumitem} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage[table]{xcolor} ...
1
vote
2answers
31 views

Table cut by the page and not centered

I'm writing a table that should be centered but it is not, and instead of fitting in the page it is cut by the page. Here's the code: \begin{table}[h] \centering \begin{tabular}{|l|c|c|c|c|...
0
votes
1answer
48 views

Horizontally and vertically centered multi-lined cells

I want a table where the cells contain either a single line of text or two lines of text, and the cell contents are both horizontally and vertically centered. The height of the cells should be 2cms ...
0
votes
1answer
28 views

Align a figure's border with that of the text's body

In the example below I want image-example-b's right border to at or to the right of the body of text's border. As it is there is a gap. I wasn't expecting this as the textwidth spanned by the two ...
2
votes
2answers
33 views

How to change indentation of a text block?

It's probably a really basic question, but I'm just starting out with LaTeX. I want a, preferably elegant, solution for putting one block of text a bit more to the right than the rest of the text like ...
0
votes
0answers
29 views

How to justify the last line in a cell?

MWE: \documentclass{article} \begin{document} \begin{tabular}{|p{2cm}|} sdlj lsadfj sdlafjk sdlfj a \\ \end{tabular} \end{document} The last line is flushed left. I want it to justify. Similar can ...
3
votes
3answers
36 views

How to set two tabular environments, horizontally aligned, to the width needed for the larger?

As part of a larger display, I am placing two tabular environments together, one above the other. These two environments are going to appear in one column of a larger tabular, and I want the two ...
2
votes
1answer
34 views

Table with two tabulars of different width

I have a table which consists of two parts (tabulars). It looks similar to the excerpt attached below. Now what I would like to do is format the second part (tabular) of the table nicely. That means: ...
1
vote
2answers
21 views

How to align a caption to the left side of a table in an wrapped environment

I am trying to find a solution for the following problem: I have a table in a wrapped environment (wraptable). I need my table caption to be left aligned with the table. Also, I don't want the ...
1
vote
0answers
18 views

Alignment for Proof Justification in flalign* space? [duplicate]

In problem 5 of my math homework I'm trying to typeset I'm having a gap in my knowledge about how to go about aligning the "Rule" justifications when I move from each step in my equation proof. Is ...
0
votes
0answers
13 views

Align all descriptions relative to the longest symbol in a nomenclature

I'm using the nomencl-package for a list of symbols. Line breaks are inserted automatically whenever a description of a symbol is too long. However, if a symbol itself is too long, the indentation of ...
0
votes
1answer
47 views

Center align* within gather*

Running the following example \documentclass{article} \usepackage{amsmath} \begin{document} \hrule \begin{gather} \sin{2x}=2\sin{x}\cos{x}\\ \begin{align} \cos{2x}&=\cos^2{x}-\sin^...
1
vote
1answer
34 views

How to fill landscape page with four images

I have huge set of weather related images with are plotted for 12 months for various cities. I would like to present these images to the users in the form of pdf in landscape layout in an organised ...
1
vote
1answer
32 views

How to center the title, the author, and the date in Tufte handout?

I am using tufte-handout. I have centered parts and sections using sectsty. How can I center the title, the author, and the date? %%%%%%%%%%%%%%%%%%%% \documentclass[]{tufte-handout} \usepackage{...
0
votes
0answers
41 views

How can I align the corresponding options (vertically) in the exam class?

I am trying to prepare a question paper for a test, and I'd like the choices of the multiple choice questions to be aligned, that is, I'd like all the A's, B's, C's and D's to be aligned just like in ...
3
votes
1answer
45 views

How can I align multiple aligned environments?

I have this equations: \begin{align} \begin{aligned} x&=y & z&=w & k&=j \\ a&=b & c&=d & e&=f \\ \end{aligned} \\ \begin{aligned} x+a&=y+...
0
votes
1answer
59 views

How to right align dotted line without hspace command?

The template of my dissertation approval page uses \hspace to put a space between each juror's name and its dotted line. How can I right align the dotted lines in output (without using \hspace)? ...
0
votes
0answers
43 views

Interlaced tables

I'm trying to typeset a character sheet for Call of Cthulhu. I want to create a table containing combat skills, and for each skill, a list of weapons. To typeset the skill table, I'd use something ...
0
votes
0answers
37 views

How to keep logos and text inbeetwen in a line?

I am creating my first poster in LateX. I am using the Gemini beamer theme (TY authors btw!) and wanted to add two logos - one to the right and other to the left, approximately to the middle of header....
1
vote
2answers
37 views

Strange alignment behavior of two numbered equations on the same line

Considering my previous question at this link One or more equations (two-by-two on different rows) with an enumerate to the left and the another on the right, I have a strange alignment behavior of ...
1
vote
1answer
31 views

In a tabular, how to set a cell text aligned on the right and the text in the below cell aligned with the beginning of the above text

I'd like to obtain a thing similar to the following image As you see the word "Candidato:" is aligned with the beginning of the name "Giovanni Bianchi", While "Giovanni Bianchi" is aligned to the ...
1
vote
1answer
33 views

Manually adjust length and width of table (Cells)

Question: In the following table i would like to adjust length and height of every cell, how can i do this? MWE: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{...
4
votes
2answers
263 views

How to justify left this system of equations?

It took me quite some time to come up with LaTeX code for the following system of equation: \begin{gather*} \left\{\begin{matrix} u_{t}=\nabla\cdot D(u_{t})\nabla u_{t}+\mu_{1} \frac{c_1}{k_1+c_1}u_1+...
1
vote
1answer
35 views

Centering table horizontally within page using threeparttable

I’m sure this has been addressed somewhere before, but I’m having difficulty finding the answer and would greatly appreciate some help. I’ve tried inserting \centering or using the center environment ...
0
votes
2answers
32 views

Horizontal alignment issues with enumerate/description and sub-levels

I am struggling to obtain a proper horizontal alignment with either enumerate or description. I have simple bold arabic numbers followed by a dot as labels. These are references to exercises, and so ...
2
votes
1answer
24 views

Tabular and centering error

I want to create a tabular with fixed column width and centered text. I write it like that: \begin{table}[ht] \begin{center} \begin{tabular}{p{4cm}p{4cm}p{4cm}} \hline \multicolumn{3}{c}{\textbf{High ...
2
votes
2answers
39 views

Need align and equation to center with respect to nested items [duplicate]

I want my equation and align environments to center with respect to nested indents, but they only seem to center with respect to the full page width. Here is some example code: \documentclass[12pt]{...
2
votes
2answers
40 views

Trying to exclude text from flushright

I'm working on a resume here in LaTex and having some difficulties alligning some text. Please find the code below: \documentclass[a4paper,12pt,final]{memoir} % misc \renewcommand{\familydefault}{...
1
vote
2answers
45 views

\raggedleft the content of all frames in Beamer

I want to \raggedleft only the content of each frame in Beamer. I tried this \documentclass{beamer} \usepackage{etoolbox} \AtBeginEnvironment{frame}{\raggedleft} \begin{document} \begin{frame} ...