{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.

learn more… | top users | synonyms (6)

1
vote
1answer
43 views

How to make flushleft work on multicolumn title?

In the below code, "Title3Title3 Title3Title3 Title3Title3" is misaligned with the other titles because flushleft does not seem to work with multicolumn titles. How do I left-justify all of these text ...
6
votes
1answer
2k views

How can I align rotated text in a table at the bottom?

I have a code that produces a table. The three last columns have rotated text. I would like to align them to the bottom (not top as in the code below). In addition I would like to center the "nr" and ...
11
votes
1answer
2k views

Describing steps in an equation

I am always describing the steps on how a formula is achieved or describing the underlying Mathematical principles taken to solve a problem in the align environment. But the descriptions are not ...
2
votes
2answers
60 views

Multicolumns with equation format

I'm currently writing a summary for my semiconducter devices course and I'm trying to do it with Latex (just started today). I have the following problem: I have two chapters with two formulas each. ...
1
vote
1answer
34 views

Latex table centering

I'm wondering how could I center text in table vertically and horizontally? I've seen several manuals and answred questions, but there are many way to create a table and as I'm a begginer in Tex I ...
18
votes
2answers
108k views

Adding tabs or creating my own command

I have a problem adding tabs and I can't use a tabular environments (like tabular or tabbing) because I can't mix it with enumerate environments. Is there a way to add a simgle tab like in any text ...
13
votes
2answers
1k views

\raggedouter to typeset marginal text in twoside book

We used the following code fragment using the changepage package: \newcommand{\raggedouter}{% \checkoddpage% \ifoddpage% \RaggedRight% \else% \RaggedLeft% ...
4
votes
3answers
61 views

How do I center an entry across columns in a pmatrix?

I have a matrix of the form: \documentclass[]{scrartcl} \usepackage{amssymb,amsmath,amsthm,amsfonts} \begin{document} \begin{equation} \begin{pmatrix} \boldsymbol{\Phi}_{l,t}^F \\ \mathbf{0} & ...
0
votes
0answers
9 views

Change spacing of the matching environment in examdesign?

I'm using the matching environment in the examdesign class. My problem is that the left column contains longish sentences that makes the layout look a bit wonky: Is there a simple way to extend the ...
6
votes
2answers
83 views

Left-aligning nested labels in enumerate

I'm trying to tweak the way nested lists appear for enumerate. Right now, using enumitem package, I've got something like this: \documentclass{article} \usepackage{enumitem} \begin{document} ...
2
votes
1answer
80 views

How can I change the side of all (or single) pages of a twoside book?

My book's first page is righthanded the second page is lefthanded the third righthanded and so on but I want it of the form: first page to be lefthanded the second page to be righthanded the third ...
0
votes
1answer
40 views

Custom pseudocode style

I want to write a custom pseudocode in latex in a similar style as the exemple below: . I didn't manage to get what I want using existing pseudocode package, is there another way to get this kind of ...
0
votes
0answers
22 views

table alignment specification

When I use \begin{tabular}{l*{20}{c}} it works perfectly. But when I use \begin{tabular}{l|c*{4}|c*{8}|c*{8}} It gives me error. How can I specify the alignment operator as multiples without ...
3
votes
1answer
17 views

longtable inside enumerate

When I have a longtable left-aligned inside an enumerate, it isn't indented properly. For example \begin{enumerate} \item text % \setlength\LTleft{\itemindent} % \setlength\LTright{\fill} ...
1
vote
1answer
64 views

The photo doesn't center when using \centering

I just saved an .eps file that it can not be uploaded to latex and it shows as in the photo , how would I resolve it ? this is the code , when I use smaller dimensions it's in the center , but with ...
1
vote
0answers
30 views

Figure centered (horizontally and vertically) + subsection on same page

I want to center my figure (horizontally and vertically). I have a subesction that I want to keep on the same page (at the top), but it is "pushed" on the next page. I am using the following code: ...
1
vote
1answer
102 views

Cases environment left alignment

As I understand, cases environment is centered by default: How to make it left aligned?
2
votes
1answer
50 views

Format table number alignment

I am having a few problems with the following code: \documentclass{standalone} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{tabular}{ l S[table-format = 4.2] ...
6
votes
2answers
257 views

How do you center everything

Is there a way to center everything in a LaTeX document even the text?
6
votes
2answers
84 views

More than two columns amsmath cases

I'm trying to use the cases environment to show an arbitrary equation. But I noticed that it only allows me to use 2 columns. However, I would require a third column, or perhaps a fourth as well. An ...
0
votes
0answers
43 views

How to justify one part of a line left and the other on the right hand side

I was wondering if it was possible to have two sections of text, on the same line be both left justified and right justified. For example doing this: {\itshape{\begin{flushleft}I'm on the ...
1
vote
0answers
59 views

Align fixed-width columns to the decimal point

I define a new column type for a fixed width column with centre aligned text as follows: \newcolumntype{d}[2]{>{{\rightdots{#1}}r<{\rightdots}\let\newline\\\arraybackslash\hspace{0pt}}m{#2}} ...
1
vote
1answer
172 views

Centering Xcircuit Figure

Hi I am using a program called xcircuit to make circuit diagrams and I cant seem to get the figure centered. I have tried \begin{center}, \centering. I have tried messing with \flushleft but it needs ...
1
vote
2answers
58 views

Spacing in align environment

I am familiar with the \flushright and \hfill commands for positioning text to the far right of the page. However throughout my document I am using the terms (x\rightarrow\infty) on many lines and I ...
0
votes
1answer
32 views

pspicture alignment

How can I align these three pspictures so the first two are on the same line and the third is under them ,aligned to the left? \begin{figure}[ht!] \psscalebox{1.0 1.0} % Change this value to rescale ...
0
votes
0answers
22 views

how to arrange figures in 2rows x 2 columns format

I need to arrange 4 figures in 2x2 format in a two-columned LaTex document. Can anyone please help me out with this?
1
vote
1answer
19 views

get the page horizontal and put 3x3 images

First, I used following: \usepackage{rotating} \usepackage{subfigure} .... \begin{sidewaysfigure} \subfigure[Title A]{\includegraphics[width=7cm]{figures/plot1a.png}} \subfigure[Title ...
3
votes
1answer
29 views

Dummy error with \center

I know this is a silly thing but I don't understand why does this happens. My text is not well centered but I'm using the \center command with all the page. This is my output: The phrase "Ingeniero ...
1
vote
1answer
19 views

Aligning texts and drawings in beamer

I am making a presentation using beamer for the first time. Please see the following code. \documentclass{beamer} \mode<presentation> { \usetheme{Warsaw} \setbeamercovered{transparent} } ...
1
vote
0answers
40 views

How can I align the cells vertically?

I'd like to align my table cell vertically and horizontally.... can anyone help here is my code \begin{table}[htbp] \small \centering \caption{comparisons} \subfloat[Approximation accuracy ...
2
votes
2answers
37 views

Center text in minipage along page center

For a one-page bulletin, I need some text and a logo on the end of a page. I've gotten first results with using minipages so far: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
4
votes
1answer
38 views

Putting two derivations on the same line

I'm trying to put two logic derivations on the same line, but I'm having trouble figuring out how to do this. Here is a sample of the code that I'm using: \documentclass{article} ...
1
vote
2answers
57 views

Adjust table to fit within the page

I am generating a table but I dont know why it's getting out of the page! [\begin{tabular}{|*{3}{l|}*{5}{c|}} \hline \textbf{Participant} & \textbf{Systèmes} & ...
3
votes
2answers
30 views

Centre Decimal aligned multicolumn

I have some decimal values in a table that I have aligned by decimal point but I would like them to be centred to the column. So far I have: \begin{tabular}{l r@{}l r@{}l r@{}l r@{}l} \toprule Weeks ...
1
vote
1answer
37 views

Cannot make \arraybackslash work after defining custom columns

I use: \usepackage{array} \newcolumntype{fwLa}[1]{>\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} ...
5
votes
1answer
59 views

Using TikZ current page node in memoir class

I need to use the current page.center position in a memoir document to center some images on a page. (unless someone has an entirely different suggestion about how to display images like this.) ...
28
votes
4answers
12k views

Justify text in moderncv cover letter

I am writing a cover letter and CV using moderncv. Everything works fine so far, but the text in the cover letter is not justified. I think it is good that it is not hyphenated, but it would look much ...
8
votes
2answers
8k views

Centering figure captions in IEEEtran

I am working on a paper using the IEEEtran template in LyX. I have run into a problem: While the contents (in this case, a table) of the figure float are centered, the caption is aligned to the left ...
2
votes
1answer
66 views

Remove horizontal space from align and equation globally

I want to cram as many equations that I can in align environment. I was able to set the margins to zero and remove the space before and after the equations. Se below example code. However, currently ...
6
votes
3answers
785 views

Alignments in bussproofs package

I'm using bussproofs and would like my premises always to be left-aligned with the beginning of the inference line. So far when I have a single premise inference, I can only get the premise centered ...
6
votes
2answers
159 views

Is it possible to typeset with angled margins?

I'm typesetting a book using memoir in XeLaTeX, but on some pages, as an accent, I would like to make an angled margin, something like this: Even if I have to define the page limit separately ...
2
votes
1answer
66 views

eps images turned out to be shifted in pdf file

I am trying to include an image. This picture should be centered and should not exceed page width: \documentclass{article} \usepackage{graphicx} \usepackage[showframe]{geometry} \begin{document} ...
3
votes
2answers
54 views

centered text in sticky labels package

I'm trying to print a bunch of labels and using the LaTeX labels.sty style documented at http://tug.ctan.org/macros/latex/contrib/labels/labels.pdf These are not for street addresses (which are ...
11
votes
2answers
25k views

Section Heading Centering problem

\begin{center} \section*{\textcolor{blue}{Ukaaranta }} \end{center} \subsection*{Shabhu Harivat} \addcontentsline{toc}{subsection}{shambhu harivat} \begin{center} ...
3
votes
1answer
31 views

Vertically equalities in align should be even

I want to know how to make a proper align where the equalites should be even vertically. \begin{align*} \Gamma(\lambda_{1})\Gamma(\lambda_{2})&=\int_{(0,\infty)^{2}}\phi(u,v)\, ...
5
votes
2answers
183 views

How to left align text in two column itemize

When I use following MWE for getting itemized text in two columns, the item in the list sometimes take a "justified" formatting and thus there is significant space in between two words. This produces ...
1
vote
1answer
30 views

Centering multiple images

If I try to center multiple images, as below, the first image has a small indent. Can anyone tell me why? \documentclass[11pt]{article} \usepackage{enumitem} \usepackage{caption} ...
6
votes
2answers
97 views

How to center text without adding space using modified center environmet

Firstly I'm very sorry because this question was in fact answered already. I only have a question to the following answer and I'm not allowed to comment there directly: ...
9
votes
2answers
249 views

How to center chapter, section and subsection using memoir?

I am trying to centre chapter, section and subsection using memoir, with the following code: \renewcommand{\chapnamefont}{\centering\normalfont} \renewcommand{\chapnumfont}{\centering\normalfont} ...
1
vote
1answer
30 views

Aligning content (e.g. a header from fancyhdr) horizontally with the right column

I haven't seen this asked anywhere here yet but I still think it might be useful for people attempting to create slightly more complex layouts. The idea is pretty simple, I'm trying to align content ...