{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
3answers
100 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
78 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
121 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 ...
3
votes
1answer
389 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 ...
5
votes
3answers
190 views
How can I do this without the cases?
How can I do this without the cases?
$\begin{cases}
\dfrac{\partial u(x,y)}{\partial x}=2x=\dfrac{\partial v(x,y)}{\partial y} \\
\dfrac{\partial u(x,y)}{\partial y}=-2y=- \dfrac{\partial ...
9
votes
3answers
326 views
Nicer alignment of x^*/2
I'm trying to typeset $\frac{x^*}{2}$, but I can't find a (simple) way to make the alignment look nice. So far, I've tried the following:
\documentclass{article}
\begin{document}
\begin{equation}
...
2
votes
1answer
72 views
Why aren't qtrees aligned horizontally if they are at the end of a theorem with qed symbol enabled?
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{qtree}
\declaretheorem[name=Example,qed=\ensuremath{\triangleleft}]{example}
...
5
votes
1answer
99 views
Centering a dirtree
I would like to center a directory tree produced by the package dirtree but the following code fails. Just look at the 2nd tree... All the texts are centered. :-(
M(not)WE
\documentclass{scrartcl}
...
1
vote
1answer
101 views
Problem with sizing side-by-side minipages
I've been writing up my resume in LaTeX (for the flashiness and also to get better with LaTeX), and I've been having some trouble with one of the macros I wrote, called \nrccolstring.
\nrccolstring ...
2
votes
1answer
89 views
Horizontal margincaption alignment using floatrow
I want to switch from sidecap to floatrow in putting figure captions in the margin. When using sidecapthe text is perfectly positoned within the margin. When i use floatrow there is a slight shift. ...
1
vote
0answers
117 views
Center subfigure using floatrow
I'm working with caption and subcaption to style my (sub)figure captions and especially with floatrow to center my figures. However, this does not work for subfigures, as the following nMWE (nearly ...
2
votes
1answer
149 views
How to adjust the space between pictures using minipage?
I use minipages to place three graphs, however the spaces between each two is not with the same width. Here is the code, may someone help me? and how to locate the (a) (b) (c) above the each of the ...
3
votes
1answer
62 views
Problems with horizontal aligment of figures using subcaption package
The subfigures do not align horizontally, the (a) subfigure is placed approx. 3 cm lower then the (b)-figure. Can you please see what I'm doing wrong.
\documentclass[english]{article}
...
2
votes
0answers
35 views
How to left-align particular equations using own environment?
I'm trying to left align particular equations. To do that I created a new environment (because I need it a few times).
Now, I found that there are various options to do that:
using the fleqn option ...
2
votes
1answer
85 views
Center alignment of tikzpicture outside figure environment without vertical space [duplicate]
How to align tikzpicture outside figure environment without introducing vertical space? I'm aware of related questions, such as What is the correct way to center a \tikzpicture? and Should I use ...
0
votes
1answer
86 views
Making a Title after using \hfill [closed]
Hey guys I'm totally new to this and I guess I'm asking for something that kind of defeats the purpose of LaTeX, but maybe not..
Anyways, how can I make a title after I have used \hfill to make a ...
3
votes
1answer
105 views
Aligning verses differently
Is there a way to create the following layout using the verse package?
\documentclass{article}
\usepackage{verse}
\usepackage[utf8]{inputenc}
\usepackage[margin=1.3in]{geometry}
...
3
votes
2answers
120 views
Right aligning a quote with extra indentation
I want to insert a quote into a document, have it aligned to the right, italic, with some extra indentation from the right margin, this is what i've managed so far:
\documentclass{book}
...
9
votes
2answers
125 views
Math Spacing in the presence of a trailing/non-trailing comma
I thought I knew how to use a \hphantom{} but don't know of an easy way to handle this case due to the comma. I want to get the text aligned for the X row. I added the appropriate \hphantom{{}+1} ...
3
votes
2answers
133 views
Over wide figure with caption of the same width that both spill out of the right margin and are aligned flush left
This question is similar to that question, but instead I want to place a figure caption flush left aligned to an overwide figure so that it spills out of the right margin.
MWE
...
2
votes
1answer
142 views
How to align text without two column?
I want to have the following text alignment and I don't wanna use any "two column" and table because a environment i use doesn't support them. :(
The text format looks like below picutre. Basicly i ...
0
votes
0answers
19 views
How can I get vdots align horizontally in my equations? [duplicate]
I'm trying to make vertical dots align as in the following picture:
But the best one I could get is this:
Here is my LaTex code:
\begin{align*}
x_{t} &= \phi x_{t-1} + \epsilon_{t} = ...
1
vote
1answer
34 views
Custom parameters for formatting images
I am a LaTeX newbie working on creating my first custom LaTeX class.
I would like to know if it's possible to define parameters for \includegraphics such as width, height, center/right align etc in ...
2
votes
2answers
279 views
center and \centering both add space above; \centerline does not
The nag package suggests I use the center environment in LaTeX, rather than the TeX \centerline command.
When I do that, however, I find that the former inserts a blank line above the line (in my ...
3
votes
1answer
97 views
Alignment horizontal subcaption and TikZ
I have a problem with the alignment of 2 plots. The Problem is I want the captions to be horizontal aligned. Also the x-axis should be horizontal aligned!
Is there a way to do that?
...
5
votes
3answers
94 views
Aligning items inside a list
I'm trying to recreate a list in some work I'm doing and struggling to get all of the component parts to align.
The list in the middle there is what I'm trying to replicate.
Does anyone have any ...
2
votes
2answers
74 views
Table alignment
I'm not an expert with the tabular environment...I have some problems:
I got an error "Extra alignment tab has been changed to \cr."
I would like to have the professor name completely to the ...
1
vote
1answer
153 views
Problem with side by side figures and captions
I want to have 4 figures side by side and centered in my paper. I am using this code. The problem is that captions and figures are not aligned. It seems captions are in correct position, but figures ...
3
votes
1answer
596 views
center /verbatim text in /figure
I'm trying to center a the content of a figure that has verbatim text in it, but the verbatim text is always right-aligned:
\begin{figure}
\centering
\begin{verbatim}
some
text
here
...
4
votes
2answers
85 views
Disable indentation in enumerate temporarily
I would like to place an unindented \fbox inside an enumerate environment.
\begin{enumerate}
\item Some text.
\par\fbox{a}
\item Some more text.
\end{enumerate}
The above code produces:
...
6
votes
1answer
88 views
How to get a properly indented custom enumerate list (with checklist-style blanks)?
I'm trying to make an enumerated checklist that looks like this:
Paragraph text here that says really cool stuff. Notice how the list after is
properly indented
___ 1. Thing 1
___ ...
1
vote
1answer
103 views
Special chapter title formatting
Using the book class. I would like to have chapter titles that look like this:
| CHAPTER ## |
| Chapter Title (italic) |
Can titlesec do this?
1
vote
0answers
54 views
How to specify the the column width but also keep the cell content center horizontally? [duplicate]
I want to specify the width of the column but also keep the content centered. How can I do that?
Here is my code
\begin{tabular}{p{6cm} c c p{2cm} p{3cm}}
\Xhline{3\arrayrulewidth}\hline
...
23
votes
4answers
295 views
unexpected interaction between \raggedright and \parshape
While answering Random start of line, I came upon a strange interaction between \raggedright and \parshape.
If a ragged-right paragraph ends in a short line, this line will be "the most ragged".
...
3
votes
1answer
144 views
Combining leftskip, rightskip and raggedright
For some text (\blindtext below), I would like to add 20pt to the left and right page margin, and I would like the text to be raggedright (no hyphenation).
The first try below does not add 20pt to ...
0
votes
3answers
223 views
Caption of an image doesn't follow flushleft
Hello I want to place a photograph in a page so i write:
\begin{figure}[h]
\caption{H Feistel Function }
\begin{flushleft}
\includegraphics[scale=0.7]{func}
\end{flushleft}
\end{figure}
I face 2 ...
1
vote
1answer
65 views
how to create a two column table for differentiating?
I want to compare two types of networks.
I have 4 comparison points.
How should I create a 2 column table where every of those 4 points for both networks is aligned?
1
vote
2answers
104 views
How to display formulas?
I am using the following format for all
\begin{math}
newP = p + vt + 0.5a(t square)
\end{math}
How do I
from left justified to centrally justified
leave one blank line before and after the ...
0
votes
1answer
77 views
LaTeX commands for centering the equations without numbering them [duplicate]
What LaTeX commands should I use to center the equations on the page, but without numbering them?
4
votes
1answer
152 views
Center subfigures; fix TikZ error
I am trying to center some figures produced by TikZ. In my example, I have three large Tikz pictures that are separate figures. I also have the same three pictures, but this time as subfigures.
All ...
2
votes
1answer
61 views
Issues centering table headers [duplicate]
I already asked how to best align header rows in a table especially in a tabu environment.
Align (center) header row in table
The two identical solutions worked great for one table but I am having ...
10
votes
1answer
121 views
Is this a known issue with the centering of eqnarray?
In this example,
\documentclass{article}
\begin{document}
\begin{eqnarray*}
A&=&B,\\
C&=&D,\\
E&=&F,
\end{eqnarray*}
\begin{eqnarray*}
A&=&\mathord{B,}\\
...
4
votes
1answer
78 views
floatrow and dirtree clash
I am using dirtree to visualize a directory structure. It needs to be embedded into a float as to avoid problems when a pagebreak occours. This works fine except when loading floatrow which i use to ...
1
vote
1answer
69 views
Alignment for equations with numbering in enumeration environment and in environment of cases
I have problem of alignment in the following, please check and suggest solution:
\begin{enumerate}
\item
\begin{equation}
\kappa_{a,b}(t)=\begin{cases}
e^{at}, & 0\leq ...
4
votes
2answers
176 views
How to anchor labels in tikz for baseline alignment
LaTeX handles subscripts and superscripts nicely, automatically correcting for various sizing and placement issues. I am trying to build a function that works like subscripts and superscripts, but ...
2
votes
1answer
106 views
How to get column alignment in tabularx?
When I put X in column specifier, how can I define column formatting? How can I get center alignment? Currently I am putting \centering, but that is not a proper solution.
This is my code:
...
3
votes
2answers
153 views
Align (center) header row in table
I use @{\hskip 50pt} to separate columns in my table. The problem which arises is that I add this extra space after a multicolumn. This also moves the header row so that it is no longer centred. Is ...
2
votes
2answers
107 views
Horizontal alignment of multiple glossaries
I utilize the glossariespackage with acronym option as well as an self-defined symbols list. Unfortunately, each glossary aligns different horizontally. Is it possible to make them aligned? Otherwise, ...




