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

3
votes
3answers
130 views

Centering two images but aligning them left

How would I place two images below each other so that their left sides are aligned and the whole construction is centered? I tried like this: ...
4
votes
2answers
91 views

clean, breakable left-aligned array-like environment

The centered, yet left-aligned aspect of \begin{array}{lll} ... \end{array} is what I usually go with to give a list of conditions. My only problem with it, is that it is not breakable, so I try to ...
7
votes
1answer
108 views

Aligning itemize elements both from left and right

I do this \documentclass[12pt]{article} \usepackage{enumitem} \setlist[enumerate]{labelwidth=3cm,labelsep=0.5cm,leftmargin=4cm,align=left} \begin{document} \begin{enumerate}[label= Example ...
7
votes
2answers
128 views

Creating Horizontal Lines With A Specific Distance

I'm relatively new at LaTeX. I've read material online and have been practicing. However, I have not been able to find a solution to two of my questions. I'm hoping someone may be of assistance. This ...
6
votes
1answer
93 views

How can I fill a line from the left?

I am fiddling with various ways of filling a line with a vertically centered line and experimenting with the answers here: http://stackoverflow.com/questions/2553392/latex-rule-filling-the-line and ...
1
vote
1answer
31 views

Incorrect alignment when using aligned

I'm trying to TeX some nice equations but there is a strange behaviour when I use an aligned-environment in an align*-environment. I think one little example makes my problem clear: \begin{align*} ...
12
votes
2answers
327 views

How to properly align three-level enumerate 1. 1.1. 1.1.1

I've created my environment, and modified the enumerate command: \renewcommand{\labelenumi}{\arabic{enumi}.} \renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}.} ...
1
vote
0answers
32 views

How to change default alignment for table environment in report class [duplicate]

I am using the table environment in report class. Here is the MWE: \documentclass{report} \begin{document} \begin{table} \begin{tabular}{cc} \hline a&b\\ c&d\\ \hline \end{tabular} ...
1
vote
2answers
64 views

aligning an equation to the left [duplicate]

I have the following equation: \begin{align} \frac{1}{4}\left[\frac{\partial{(u^n+u^*)(u^n+u^*)}}{\partial{x}}\right]_p &=\nonumber\\ \dfrac{u_{fe}\dfrac{\dfrac{u_{i,j,k}^n+u_{i,j,k}^{*}}{2}+ ...
12
votes
3answers
463 views

Displaymath environment that can align equations and squeezes math

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. ...
2
votes
2answers
253 views

Align text in \hfill environment

How can I arrange the text lines in the \hfill ? Is using a tabular environment the only way around this ? \documentclass{letter} % Uses 10pt \usepackage{marvosym} % add the symbols for email and ...
2
votes
1answer
72 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 ...
6
votes
1answer
80 views

Alignment problem if line breaks are used in listings

I am using a monospace font and I want that all lines are horizontally aligned ("a" should be directly under "a"). How can I do this? I have noticed that also the pagebreak symbol shifts the text. ...
4
votes
1answer
82 views

How do I Make a Three-Column Title?

I'm trying to format a title for my document. Normally, I write <Title> \hfill \today, to have a title nicely split into two columns, each aligned at the left and right margin, respectively. ...
7
votes
3answers
345 views

Maintaining alignment between irregularly vertically spaced TikZ matrix nodes

I'm trying to create a diagram with pairs of rectangles of different sizes, each separated by a fixed interval. Additionally, I want each pair to be left-aligned at the same point. Here's an example ...
3
votes
1answer
115 views

How to align an equation horizontally in qtree, centering one character of my equation?

I have the following code for my qtree: \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \makeatletter \usepackage{qtree} \makeatother \usepackage{babel} ...
3
votes
2answers
84 views

I want to force a justification to both sides after using \newline

\documentclass[11pt,a4paper]{article} \usepackage[cp1250]{inputenc} \begin{document} \noindent In year 1000 somebody wrote something\footnote{\emph{something}} because he wanted to. Some thought he is ...
2
votes
1answer
167 views

Remove vertical space in examples (Linguex)

I use the linguex package for numbering my examples. After each example I want there to be a reference, right aligned on the next line. This is my code \documentclass [a4paper, 12 pt]{memoir} ...
2
votes
1answer
144 views

Centering text in a table cell

I know the question has been asked before, but the answers don't seem to apply. I have a table defined below: \begin{table}[!ht] \begin{center} \caption[Micromagnetic simulators]{Micromagnetic ...
2
votes
1answer
94 views

Alignment of the subsection changed after styling

I applied some styling to my page.But my alignment of the sub section headers changed.Here is the code: \documentclass[12pt,oneside]{book} \usepackage{graphicx} \usepackage[explicit]{titlesec} ...
2
votes
1answer
458 views

LyX Hyphenation

In LyX I want my paragraphs to be justified, without the use of hyphenation. I am using \exhyphenpenalty=10000\hyphenpenalty=10000 in my preamble and it works, but I notice that the first line of the ...
7
votes
2answers
3k views

How to align terms in alignat environment

These are my math equations. To enhance readability, I'd like the third column to be aligned around the + sign; that is, I wish to place some horizontal blank in front of $n\mathbf{A}_0$ (not ...
0
votes
0answers
110 views

Left align caption and underline it (Memoir)

im using LyX and documentclass memoir. I would like to have a set up like in the attached file when inserting figures and tables, however, I just don't know how to implement it in LyX. Can you help ...
9
votes
2answers
458 views

Help me create my out patient documentation template

\documentclass[a5paper]{article} \usepackage{eso-pic} \usepackage{fancyhdr} \usepackage[pdfauthor={VB},% pdftitle={Consultation},% pagebackref=true,% ]{hyperref} \usepackage[headsep=3cm,top=4cm, ...
5
votes
2answers
144 views

Left-aligned, inline-ish equations

I'm attempting to create a template for writing up Physics problems sets. A lot of these problem sets can involve short, simple calculations. For example: I attempt to typeset this calculation with ...
3
votes
2answers
83 views

How can I get rid of space after a tabular, aligned to the right via \hfill?

I'd like to get rid of the additional empty space on the right between \begin{tabular}{ll} \textsc{place,} & \textsc{date}\\ Place, & \today \end{tabular} % and the right page ...
1
vote
1answer
175 views

fit tabular width with multicolumns into text width latex

So i want to make the following table fit in my text width. The table is much longer than the text. Any propositions? Thanks in advance. Here is the table code (dont pay attention to the comments' ...
1
vote
1answer
72 views

How can I have a tabular flush with the margins? [duplicate]

Consider the following: \documentclass{article} \setlength\parindent{0pt} \begin{document} content \hfill content \begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r} one & two \\ ...
4
votes
1answer
149 views

How can component and voltage labels be positioned so they are properly aligned with components?

I have coded the following circuit: \documentclass{article} \usepackage[american]{circuitikz} \begin{document} \begin{circuitikz} \draw (0,4) to [C,v^=\(v_c\),*-*] (0,1) to [short] (0,0) ...
0
votes
1answer
101 views

Superimposing characters in text mode (pdfTeX)

I'm trying to compose a non-Unicode character by arranging Unicode characters one above the other or one next to the other close-up, but I'd need a negative space which in text mode isn't available. ...
2
votes
1answer
344 views

modernCV seems to forbid any hyphenation. How can I switch that off?

I'm writing a document with the help of the modernCV class, using (a modification of) the casual style. It looks like this class is penalizing hyphenation pretty severely. Why is that so? I can't find ...
7
votes
2answers
308 views

How to align the radio buttons in hyperref form?

I am trying to create a formular, this is my MWE: \documentclass[parskip=half]{scrartcl} \usepackage{hyperref} \renewcommand{\LayoutChoiceField}[2]{% \leavevmode #2 #1% } \begin{document} ...
3
votes
1answer
3k views

Left-align captions with respect to subfigure

How do I left-align the captions on the subfigures below, so that the caption starts aligned with the left-hand edge of the corresponding subfigure? \documentclass{article} ...
5
votes
2answers
476 views

Strange behaviour of \closing in koma-script scrlttr2 class

I'm having some trouble with the command \closing{\closingphrase}. If \closingphrase is longer (e.g. 'Met vriendelijke groet'), the closing phrase is aligned left and the signature is indented. This ...
1
vote
1answer
93 views

Problem with justification and \titleformat (LuaLaTeX) [closed]

I am using this titleformat for my chapters but the text after \chapter{} ist centered too. \titleformat{\chapter}[display] {\normalfont\Large\sffamily} ...
3
votes
1answer
247 views

How to position fancyhdr[R]?

I cant get the right header/footer on the right position. It should be positioned 3cm from right page end. How can i achieve that? Sample Document: \documentclass[12pt,a4paper]{scrartcl} % includes ...
8
votes
2answers
327 views

Align \footnote left

At the moment my footnote looks like this ²Commit-Hooks definieren was die Softwareversionierung (zum Beispiel SVN) machen soll, sobald ein Commit passiert. The second line just does not align to ...
3
votes
2answers
240 views

Problem of alignment of blocks in two columns?

Consider the following code of a beamer frame: \begin{frame}{Test} \begin{block}{Single column} \justifying This is a block. \end{block} \begin{columns}[onlytextwidth] \begin{column}{0.45\textwidth} ...
3
votes
1answer
157 views

Tikz: Alignment of labels relative to a split rectangle

Is there a way for accurate placement of labels relative to the center of each of the parts of a split rectangle? The following example shows two errors: Alignment is with the left side of the ...
15
votes
5answers
257 views

Behavior of \\ inside center environment

While trying to compile a title page for my dissertation I realized that I do not understand the behavior of \\. Consider the following MWE \documentclass{memoir} \begin{document} \begin{center} ...
1
vote
1answer
220 views

Aligning graphical elements with flowfram

I'm new to Latex! I've have successfully managed to get my text in the right format, but am having problems positioning a single graphic where it needs to go. Essentially it should be on the left hand ...
3
votes
1answer
117 views

dcolumn with brackets

I am using dcolumn to align cells to the decimal point. But in case of brackets, I always got overfull errors in my main document. If I replicate a MWE with the full preamble, there are no more ...
6
votes
1answer
230 views

Front page in document class book not centered

I'm using the document class book and I am designing my front page atm. I try it like this: \documentclass{book} \begin{document} \thispagestyle{empty} \begin{center} FRONT PAGE \\ \end{center} ...
8
votes
1answer
118 views

Why is this lettrine being bumped into the margin?

Consider the MWE from an earlier question: \documentclass{article} \usepackage{lettrine} %\usepackage{fontspec} %\defaultfontfeatures{Ligatures={Historical}} ...
3
votes
1answer
36 views

Alignment issue?

I am trying to align the 2 equals signs and the minus sign at the beginning of each line of the following code, but no matter what I do, it won't work. $C_{n}$ = $ \dfrac{1}{4\pi{i}} $ $ ...
1
vote
2answers
83 views

Problem with \hfill and hyphenation

When I use \hfill and in the previous line the last word is hyphenated, the \hfill doesn't work the same way as usual: \documentclass[a4paper, 12pt]{book} \begin{document} Spellings attempt to ...
3
votes
2answers
112 views

How to prevent justification in the header?

I am trying to prevent justification in my header. I have tried \raggedright so far suggested here How to prevent automatic justification of references? but no luck with this \makeatletter ...
2
votes
1answer
96 views

Left aligning a displayed equation in plain TeX

This one seems to be a rather simple question but right now I just run out of ideas. I simply want to left align a displayed equation using plain TeX, that is, I want the equation to start from the ...
4
votes
2answers
526 views

Why isn't my table centering with threeparttable?

Can anyone help me to solve my problem with threeparttable, TPTMinimum redefinition and centering environment? I haven't seen in any other topic what I was trying to do. I have something like this: ...
5
votes
1answer
304 views

Horizontally align subfloat in figure

I am putting three figures on one row, and the width is not enough if I want to show them clearly (big enough). I used to use hspace to manually shift the figure, but it doesn't work this time. (It ...