{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
4answers
181 views

Questions on basic LaTeX typesetting in mathematics

I have one or two elementary questions on basic LaTeX typesetting: I know putting $$...$$ sign puts the mathematical expression in the middle (center), but what if I also want to center the ...
2
votes
1answer
60 views

Left align after \specialcell in a centered table

I'm outputting descriptive tables from Stata using estpost and esttab into TeX format, and then importing them in LyX. I use \refcat to label my survey questions, and since some of them are very long ...
10
votes
3answers
187 views

TikZ: How to center captions below figures in matrix

I have three figures that I want to align in a matrix. Each figure is drawn in a different way and needs a caption that is centered below the corresponding figure. Here is what I currently have: ...
6
votes
2answers
107 views

How to move an enumerate environment to the right? [duplicate]

How can I horizontally align \begin{enumerate} more to the right? At the moment I'm using the code below: \begin{enumerate} \item sometext \item sometext \item sometext \end{enumerate} But it goes ...
1
vote
1answer
77 views

How can I left align the text in the figure/table caption?

How can I left align the text in the figure/table caption? This is the text I am using to add an image \begin{figure}[htbp] \centering ...
1
vote
1answer
40 views

Problem with ragged lines

Somehow, the lines in my document are all ragged, i.e. the further use of \raggedright does not change the document. I do not know the command to undo this (I believe not ragged is the preset). Here ...
6
votes
1answer
44 views

Problem with enumitem and \raggedright [duplicate]

I want my items in lists (enumerate, itemize and description) to be raggedright. So I use enumitem package to make things easier \usepackage{enumitem} \setlist[enumerate]{before = \raggedright}% In ...
3
votes
1answer
133 views

Top-aligned table cells with different font sizes and controlled spacing

I am trying to achieve a table where a few things have to work simultaneously. Several of these things have been discussed before, but I have been unable to make everything work at once (and some ...
1
vote
2answers
71 views

Formatting of an array of equations (left alignment)

I have the following text in a matrix environment. Is there a better way to format it, say with each column being left ordered, and how can this be done? $$ \begin{matrix} \Gamma^{i}_{\mbox{ ...
2
votes
3answers
111 views

centering a \hbox

I'm trying to center a collection of nested \hbox and \vbox without any succes :-( Here is the code I use: \begin{figure}[h] \center{ \vbox{\hbox{% \includegraphics{imageA}~% ...
7
votes
2answers
176 views

\RaggedRight makes document longer

I have a document carefully written to fit in 4 pages; but when I added a \raggedright (or \RaggedRight with use of the ragged2e package) the length gets longer. Furthermore, suddenly the output ...
2
votes
1answer
106 views

How to justify text after using image in LaTeX?

I am inserting a jpg/png image in my LaTeX document in center environment. The problem is when I insert the image, the text following the image loses the justify property. Also the itemize does not ...
4
votes
1answer
84 views

Beamer: combining footnote in one column with figure in the other one

I'd like to put a figure next to a list which contains a footnote. Without the footnote everything works fine. But when I add the footnote, the figure gets shifted to the right and partly appears to ...
6
votes
1answer
81 views

Horizontal alignment of margin notes in nested enumitem list

I would like to be able to 'tag' certain list items in an enumitem list with a mark in the left margin. I would like the marks in the left margin to be horizontally aligned with respect to each ...
5
votes
1answer
85 views

Crossed hierarchy

I appreciate it if you let me know the most elegant way to draw a crossed hierarchy such as the followings: X /\ Y Z /\/\ p q t q has two parents Y and Z.
2
votes
1answer
81 views

Using ERT in LyX [duplicate]

Using LyX to create a Beamer presentation I used the TeX button to insert some ERT: \begin{table}\caption{Regression table\label{tab1}} \begin{center} \begin{tabular}{l r l r l r l} \hline & ...
3
votes
1answer
54 views

Caption Centered but Table is not

For some reason the caption is aligned in the center of the page but the table is too far to the right. How can I have both centered? \documentclass{article} \usepackage{booktabs} ...
0
votes
1answer
120 views

moderncv - How do I put the date column on the right rather than on the left

The career advisor at my university suggests putting the title of the position on the left, and dates on the right side of the resume. I'm wondering how to I do that in moderncv themes?
5
votes
2answers
66 views

Title over align columns

Using the align environment I have two columns, one for derivation, and another for the rule that was used to create the derivation. However I'm pretty sure that there's a better way to do this? Here ...
4
votes
1answer
73 views

Aligning a \marginnote to a theorem title

I want to create a \marginnote which is aligned to the title of a theorem. However, the \marginnote is always placed over or under the title, when I put the \marginnote command before or into the ...
1
vote
2answers
85 views

Equation number not on the extreme right?

I am trying to number the equation in my thesis. All of the equation numbers are being displayed correctly on the extreme right (of the text area). However, in one equation, I am facing a little ...
1
vote
1answer
76 views

How to fix a table that is too wide for margins?

I have created a table that is too wide for the margins. What I tried to do was implement \hspace*{-50pt} before \begin{tabular} and \hspace{-50pt} after \end{tabluar}. Which gets rid of the overfull ...
2
votes
2answers
86 views

Problems with bottom margin and alignment of text

1.) The space between the page number and the text margin is too small and I'd like to adjust it. Somebody recommended, the geometry package, e.g. \usepackage[ top = 2.75cm, bottom = 5.50cm, left ...
1
vote
0answers
139 views

Vertical/Horizontal alignment for multi-line header [closed]

I have the following code to create my header \documentclass[english]{scrreprt} %%% PAGE DIMENSIONS \usepackage{geometry} ...
2
votes
2answers
103 views

Multiline formula with each column left-aligned

I am using LyX and I want a multiline and multicolumn display formula with each column aligned to the left. But when I add a formula and add columns, some are aligned to the right and some are ...
4
votes
1answer
80 views

Alignment in algorithmic environment

I don't like how there is often a slight misalignment between assignment statements in an algorithmic environment. For example, the first version of the algorithm given below looks strange to me. I ...
1
vote
2answers
138 views

How to center align the whole table?

I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex ...
0
votes
2answers
56 views

How to center align the whole table? [duplicate]

I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex ...
1
vote
1answer
43 views

Create commands each of the text aligned horizontally?

I am using exam document class as my guide in creating my own documentclass but i have encountered a problem.How will i create a command for each of the four texts in a line. here is a sample image: ...
8
votes
3answers
151 views

\qed or \qedhere at the end of split environment

While I was trying to improve my latest document with respect to its \qed symbols at the end of amsthm's proof environment i came across an interesting point. Assume the proof ends with some formula, ...
1
vote
1answer
126 views

Align the top of two tables horizontally (side-by-side with minipage)

I'm using \minipage to put two tables side by side. But when the two tables are not of equal length, the shorter of the two is vertically centered with respect to the other. I would like both tables ...
4
votes
2answers
97 views

How to change ledmac's paragraph footnotes from justified to ragged

How to change ledmac's paragraph footnotes from justified to ragged ? They seem to be justified by default, but I need them ragged left. Probably needs a redefinition of \parafootfmt, but I don't know ...
0
votes
1answer
92 views

Aligning Decimal Points in Columns [duplicate]

I simply want to align the decimal points in columns. I know this has been answered already but I can not figure out how to apply it in my table. Forgive me, I am very new to LaTeX. This is the code ...
5
votes
2answers
117 views

Nomenclature not aligned

I have a nomenclature section in my paper where I defined my symbols. For example: \documentclass[twocolumn,10pt]{asme2e} \addtolength{\textwidth}{-1pt} \usepackage{graphicx} \usepackage{amsmath} ...
1
vote
0answers
56 views

Globally set the justification in a framed box

I want to show the text from a Python Interpreter in a Windows console. This should be plain text (like you see in a command line terminal). I also want to show Python code snippets with highlighting. ...
3
votes
1answer
65 views

No correct centering when a line break is used

I have a centering environment inside a figure. In this environment, I have a text written in a footnotesize style. If I make a line break (\\) in the text, then the text is not centered correctly ...
2
votes
1answer
91 views

Text Alignment in paragraph box

I'm writing graphic application to generate latex tex. I'm making to generate text box with all it's features. Rotation alignment so on. I generated following cording but It was not Right aligned ...
2
votes
1answer
73 views

Make the titles centered using the titlesec package

I am using the titlesec package to better define my section headings. I have a question about it: How can I make the titles already centered in the middle of the page? I have them centered (at the top ...
8
votes
1answer
139 views

One-line equation with two columns

I try to write an equation with two similar formulas, i.e. \begin{equation} \qquad A_1 = B + C \qquad A_2 = D + E \qquad \end{equation} Of course, instead of \qquads I want to use something like ...
2
votes
1answer
125 views

Spacing in flalign affected by mathpazo

I got the following (partly shorted) equation: I would like to get rid of the space left of the equation (left of Q') so that the label (0.2) fits on the right side. \documentclass[ a4paper, ...
1
vote
2answers
131 views

Caption format changing

I want my captions of figures to be formated like this: 1 pav. First Caption 2 pav. Second Caption Furthermore, I need my captions to be centered. How can I redefine this?
3
votes
1answer
84 views

Remove indent from table environment, and center-set the resulting table

How can I center my table if I'd like it to be ´1.5\textwidth´? \documentclass{amsart} \usepackage{graphicx} \usepackage{booktabs} \usepackage{ctable} \usepackage{tabularx} \usepackage{rotating} ...
2
votes
2answers
61 views

Problems with centering

I define the command \newcommand{\rec}[2]{\begin{center} {\fboxsep 8pt \fcolorbox{RoyalBlue4}{LightYellow2}{ \begin{minipage}[t]{15cm} \textcolor{RoyalBlue4}{\large{\textsf{\bf #1}}}\\ #2 ...
2
votes
2answers
141 views

How to horizontally top-align multiple \tikzpicture's without using \hspace?

The use case I'm having is the following: \documentclass{article} \usepackage{amsmath} \usepackage[showframe]{geometry} \usepackage{qtree} \begin{document} \Tree [.A B C [.D E ] ] \Tree [.F [.G H ...
4
votes
0answers
80 views

Overlapping label and text in description environment [closed]

I'm relatively new to LaTeX, and I am having this problem with the description environment: \documentclass{article} \usepackage{amsmath} \usepackage{bm} \usepackage{IEEEtrantools} \usepackage{amsthm} ...
3
votes
3answers
97 views

New environment with center and parsep

I want to make a new environment where the content is centered and where I can specify a local parsep value. My attempt to make this work is the following: \documentclass{article} ...
3
votes
1answer
64 views

Alignment spacing for negatives - Why am I unable to properly align my equations?

Although I searched the Web and indeed found an answer here, I still seem unable to address my issue of aligning two rows in my step-by-step process for solving a very basic equation. Just in case it ...
0
votes
2answers
72 views

How to right align content of pbox?

Lets have simple \pbox example like this: \documentclass[twoside]{book} \usepackage{pbox, calc} \begin{document} \noindent\fbox{\pbox{\textwidth}{Some text\\Text}} \end{document} Here is printed ...
9
votes
2answers
118 views

Compute remaining horizontal space in align environment

I use align* often and sometimes it is preferable to add text to the right hand side of an equation instead of using \intertext, or \shortintertext, which tends to interrupt the math flow. This is ...
3
votes
0answers
80 views

How to modify the package 'newspaper' so that the heading is perfectly centered? And how to change the heading's font?

This is the newspaper package that I've modified to remove the quote and location at the beginning of the title page and I have modified the side margins so the left side's margin is (roughly) equal ...

1 2 3 4 5 23