Questions tagged [ragged2e]

{ragged2e} is a package that provides the commands \Centering, \RaggedRight and \RaggedLeft (and associated environments) for setting ragged text while allowing hyphenation.

Filter by
Sorted by
Tagged with
1 vote
0 answers
37 views

How do you right align in itemize without adding space?

How do I make my text after the linebreak right aligned while making it's top and bottom margin the same as topsep Example of code: Các nội dung nêu trên nhằm nổi bật một quan điểm tổng quát: từ ngữ ...
Adrik Ivanov's user avatar
3 votes
3 answers
209 views

Weird first line indentation in verse after ragged2e ending in line break

In a multi-author project, I noticed a weird indentation in the first line of a verse environment directly following any ragged2e environment if it ends in a line break (\\): \documentclass{article} \...
14mRh4X0r's user avatar
  • 133
2 votes
1 answer
228 views

I am unable to justify text in latex [closed]

when I add \usepackage[document]{ragged2e} 17 errors pop up. The document class I am using is \documentclass[a4paper]{aitthesis} as I am writing my thesis. Can anybody help me resolving the matter ?...
Sumbel Ijaz's user avatar
3 votes
2 answers
254 views

raggedright and begin{flushleft} having different behaviour

I am trying align text such that the first line is fully left aligned, and the second line is centered. The following is the desired behaviour with the associated code. \begin{flushleft} Step 2: \end{...
Jaan's user avatar
  • 165
1 vote
1 answer
45 views

How to emulate justified, non-hyphenated environment from Word/Adobe/etc.?

I would like to emulate a 'justify' environment as seen in most WYSIWYG editors. Each line should extend its spacing to fit the maximum possible width. No words should be hyphenated. (Using \hbox or ...
Shoddy Weather's user avatar
0 votes
1 answer
58 views

Ragged2e Parfillskip Stretch

The ragged2e package uses the default length 0pt plus 1fil for the parameter \RaggedRightParfillskip I've tested replacing this value with 0pt plus \textwidth and I've observed that LaTeX will ...
User23456234's user avatar
  • 1,611
1 vote
1 answer
42 views

Alignment and hyphenation issues [closed]

Can we use \! and ~ to adjust the space between the words to adjust the hyphenation and the readability of the paragraph?
karthik holla's user avatar
0 votes
0 answers
35 views

Weird output with ragged2e and tikzposter class

I was making a tikzposter and noticed a strange 1=1 output somewhere on the output pdf. Trying to debug what was the cause of this result, I found out that the following simple working example, ...
ado sar's user avatar
  • 203
0 votes
0 answers
34 views

All tables are centered but flushed to the right, cant center by any means

The issue at hand is, since I had to increase fontsize (that worked perfectly) but now my tables are centered but flushed to the right side of the page and the columns of the right side are out of ...
Fred21's user avatar
  • 13
1 vote
1 answer
38 views

How Can I Align all of the Cells of my Table to \RaggedRight

I created this table in LaTeX by using the xltabular package: \begin{xltabular}{\linewidth}{X X X X X X X} \toprule Activity & \multicolumn{2}{X}{1. Feb 10, 2022} & \multicolumn{2}{X}{2. April ...
Amarakon's user avatar
  • 165
3 votes
2 answers
227 views

How to center text left and right on the same line?

I'm looking to recreate this title environment below. I think the person used mdframed so I choose to use that as well. I get stuck when I try implementing the course name, professor name or week ...
nocomment's user avatar
  • 363
1 vote
0 answers
125 views

Justifying problem on index entries

First an MWE and its output to the index page are as follows. \documentclass[a4paper]{article} \usepackage{idxlayout} \usepackage{imakeidx} \makeindex[columns=2,columnsep=2em] \begin{document} ...
M. Logic's user avatar
  • 4,023
0 votes
3 answers
471 views

Why RaggedRight and RaggedLeft don't work inside a box in this case?

I'm trying to align the minipage with the supervisor information on the left, and the minipage with the candidate information on the right. But the \RaggedRight and \RaggedLeft commands seem to have ...
user266709's user avatar
1 vote
3 answers
142 views

Is it possible to right align the text in the last row of a justified textblock?

is there a way to right align a text, which is at the same time justified? This particularly points onto the last line of the paragraph, which is normaly left aligned, or for example a very short one ...
Pab's user avatar
  • 17
0 votes
0 answers
98 views

scrreprt LuaLaTeX Error: incompatible 'everysel' detected. \if@raggedtwoe@footmisc

I updated all my packages, then got this error. I installed the package everysel in the MiKTeX Console, but this didn't help. Everysel is called by the package ragged2e, which I need. I need to ...
C.Carl's user avatar
  • 718
1 vote
1 answer
200 views

Numbered equations in itemize

I want to list some equations in an itemize environment and still use the corresponding equation numbers. For that I defined \newcommand\inlineeqno{\stepcounter{equation}\ (\theequation)} and then i ...
Micha Christ's user avatar
2 votes
3 answers
204 views

Ragged2e causing build failure

The following Latex document shows this equation: \documentclass{article} % \usepackage[document]{ragged2e} \usepackage{ parskip % Makes formatting nicer } \begin{document} $\lim_{x \to c}(f(x) - f(...
K--'s user avatar
  • 123
1 vote
1 answer
194 views

Customizing endnotes: hanging indent + justified text + no space between notes

This is what I want to achieve for endnotes in a book typeset using LuaLaTeX 2020. Endnote marker at the left margin Hanging indent (endnote text should indented throughout, not just first line of ...
user22209's user avatar
  • 921
3 votes
2 answers
262 views

How to fully justify text in elsarticle [closed]

How can i justify all the texts in this paper. This is Elsevier article which is probably converted from IEEE format. Thanks in advance.
GM Iqbal Mahmud's user avatar
1 vote
2 answers
131 views

Make defined enumerate list start at something other than one without changing the definition

I need to start my enumerate list start from 3. I use the enumeration on a table and giving newlist at the preamble. I've read how-can-i-make-an-enumerate-list-start-at-something-other-than-1, but the ...
user516076's user avatar
1 vote
1 answer
62 views

`geometry` strangely affect the behavior of `ragged2e`

Look at this example: %! TEX program = xelatex \documentclass{article} \usepackage[scheme=plain]{ctex} \ctexset{linestretch=0pt} \xeCJKsetup{CJKglue={},CJKecglue={},RubberPunctSkip=false,CheckSingle} ...
Jinwen's user avatar
  • 8,092
3 votes
1 answer
65 views

Text overflows cell

"Endomorphism" overflows cell even though I have provided a hyphenation for it. What could be the cause of this? \documentclass[11pt]{article} \usepackage{array, tabularx, ragged2e, ...
jvdh's user avatar
  • 145
-1 votes
1 answer
27 views

Right-align broken word ending after hyphenation in RaggedLeft

I have some text that is RaggedLeft (that is right-aligned). If inside that text there is any hyphenated word, the rest of it is left-aligned, like: |Lorem ipsum dolor sit amet, consectetur adipiscing ...
Dr.Kameleon's user avatar
0 votes
2 answers
162 views

Dual columns where one is justified and the other is ragged right

I am writing a report on the differences between justified- and ragged right alignment. I am trying to demonstrate the differences between them by having two columns next to each other (multicols). ...
Gustaf Linder's user avatar
1 vote
0 answers
89 views

Ifthispageodd and next page

I created the following environment: \newenvironment{symmetric}{ \Ifthispageodd{\begin{addmargin}[-1cm]{2cm}\RaggedLeft}{\begin{addmargin}[2cm]{-1cm}} } {\end{addmargin}\justify} Works as I thought, ...
ReRunner's user avatar
  • 317
5 votes
2 answers
698 views

Justified captions with KOMA-Script and ragged2e

I just stumbled across some phenomena. I am using KOMA-Script book scrbook and have loaded the package ragged2e. Usually, I do load that package with the option newcommands, to be able to use ...
Jan's user avatar
  • 5,254
1 vote
1 answer
250 views

cellspace: Package array Error: Illegal pream-token (\ecolumn): `c' used. \end{tabularx}

How to fix the error Package array Error: Illegal pream-token (\ecolumn): `c' used. \end{tabularx} when using the column specifier O for the following? \documentclass{exam} \usepackage{...
Diaa's user avatar
  • 9,433
2 votes
1 answer
611 views

\RaggedLeft in a \newcommand not working as expected

I want to have two lines (some kind of "page metadata") on every subsection right-aligned. Those lines are never going to be full width (one contains a date only). For that I was trying to define a ...
flypenguin's user avatar
0 votes
0 answers
37 views

Problem with ragged2e [duplicate]

I want to use justifying command from this package but it could not be installed. Everytime I use \usepackage{ragged2e} I get this error: File `ragged2e.sty' not found. \usepackage. How could I ...
Ксения Цочева's user avatar
0 votes
0 answers
772 views

The requested package is unknown

I used these packages: \documentclass{beamer} \usepackage{mathtext} \usepackage{amssymb,amsmath} \usepackage[T1,T2A]{fontenc} \usepackage{sidecap} \usepackage[cp1251]{inputenc} \usepackage[bulgarian,...
Ксения Цочева's user avatar
4 votes
1 answer
891 views

\RaggedRight prevents hyphenation

The column type \newcolumntype{L}[1]{>{\RaggedRight\arraybackslash}p{#1}} proposed here does not hyphenate long words that don't have a hyphen, but instead lets them protrude beyond the column. ...
root's user avatar
  • 418
8 votes
2 answers
221 views

Is there a new incompatibility between ragged2e an scrlttr2?

The following MWE used to work fine, but since I updated my TeX distribution yesterday (hadn’t done it in a while) it raises an error as soon as there appears more than on \\ in the address. It works ...
Tobi's user avatar
  • 55.9k
0 votes
1 answer
244 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)? ...
yildizabdullah's user avatar
2 votes
0 answers
3k views

LaTeX Warning: Command \@arrayparboxrestore has changed

Hey so this error message LaTeX Warning: Command \@arrayparboxrestore has changed. manifests up when I use \usepackage[document]{ragged2e} but the error does not manifest whenever I comment out that ...
arstdhneio's user avatar
3 votes
1 answer
91 views

My spaces are swallowed

I want to have my code examples show up with not only \code{\textbackslash texttt} but also a grey box. You might be familiar with the looks from some famous web page with questions and answers on ...
jonalv's user avatar
  • 11.3k
3 votes
1 answer
308 views

How to prevent \raggedright from removing left-indent of \parshape?

Output with \raggedright looks good when greater indentation is specified for \parshape, but \raggedright eats up smaller indentation. If a word doesn't fit on a line, is there a way to prevent ...
bp2017's user avatar
  • 3,726
0 votes
0 answers
662 views

LaTeX document alignment

In our document we tried to align everything with ragged2e package and it doesn't really help to align as some of the text is align and some of it isn't. I have added this command in master folder ...
Martynas G.'s user avatar
1 vote
1 answer
73 views

How to supress with ragged2e in a glossary (longtable)?

I am trying to use the long style provided in the glossary package to use in my acronym list. However, I am also using the ragged2e package and I have my paragraphs indented too. This causes both the ...
ralk912's user avatar
  • 478
0 votes
1 answer
552 views

Is it OK to ignore Underfull \hbox errors? I attempted, but it did not wok. I use textpos and ragged2e

I tried to solve by middle of the following questions: ragged2e: "newcommands" option produces "underfull \hbox" warnings, Underfull \hbox (badness 10000) in paragraph in figure ...
Oo'-'s user avatar
  • 269
6 votes
1 answer
156 views

Interference between `ragged2e` and `tcolorbox`: Additional spacing for centered bold text

When centering bold text in a tcolorbox using [halign upper=center], additional horizontal spacing occurs when the package ragged2e is loaded additionally. I guess this is unintended behavior. – Is ...
FlorianL's user avatar
  • 1,629
5 votes
1 answer
344 views

koma-script: Problem with \footnote and \RaggedRight

Here's an MWE (using koma-script v3.25): \documentclass[paper=a8]{scrartcl} \RequirePackage{ragged2e} %\addtokomafont{footnote}{\RaggedRight} \begin{document} foo\footnote{bar} \end{document} Here ...
lemzwerg's user avatar
  • 599
0 votes
1 answer
219 views

Adjust the word space in the itemize environment

As you can see, there is a too-wide space caused by the long word "AuthenticateWith". Is there any idea to introduce the hyphenation under the {itemize} and somehow adjust the item. I tried \...
Yang Lu's user avatar
13 votes
2 answers
330 views

Text beginning with “plus” after ragged2e's commands prevents compilation

I lost quite some time due to some weird error (which might possibly stem from a ragged2e bug, but I'm note sure so I won't put the blame on anyone), so I thought it would be nice to share this. The ...
Alice M.'s user avatar
  • 1,011
0 votes
1 answer
3k views

How to make justified alignment of text have as little space between the words as possible?

EDIT: additional examples added (scroll farther down) I've noticed there's always unnecessary space generated between the words when justified alignment of text is used (be it one or another package ...
bp2017's user avatar
  • 3,726
2 votes
1 answer
119 views

How to prevent automatic insertion of a blank line at the beginning of a `justify` environment of `ragged2e` package?

Blank line is always generated at the beginning for some reason. I need to get rid of it. \documentclass[border=0.5mm]{standalone} \usepackage{ragged2e} \usepackage{tikz} \begin{document} \begin{...
bp2017's user avatar
  • 3,726
3 votes
1 answer
440 views

Underfull \hbox warning with \RaggedLeft

I use the mcaption package to place the captions in the margin column. With \RaggedOuter I align them properly on even and odd pages, respectively. Only on even pages, I tend to get underfull \hbox ...
Matthias's user avatar
  • 1,956
1 vote
1 answer
327 views

Aligning text to the right inside a verse

Inside a verse environment as provided by the verse package how would I align an entire stanza to the right? I'm looking for something like the below: Neither \raggedleft nor \RaggedLeft as provided ...
miestasmia's user avatar
1 vote
1 answer
913 views

How to take off the "-" of the justified texts in Beamer

In the end of the line the justified text has "-" I would like to take off. Is there anyway to do that? \documentclass{beamer} \usepackage[portuguese]{babel} % or: 'brazilian' ?! \usepackage[T1]{...
Arduin's user avatar
  • 133
1 vote
1 answer
306 views

Strange hyphenation behaviour with multirow, plus problems with hyphenating german-language words with umlauts

I have problems with hyphenation in multirow text cells, again. In some cases, this totally gets ignored even though using hyphenation. Bonus question would be, how do I tell \hyphenation to ...
D. Duesen's user avatar
  • 155
5 votes
3 answers
5k views

Hyphenating text inside tabularx

I'm currently writing a thesis where hyphenation is not allowed with exception to tables. Disable Text hyphenation is working fine using: \usepackage[none]{hyphenat} \sloppy Now the problem is that ...
Moataz Elmasry's user avatar