Skip to main content

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
4 votes
4 answers
159 views

Text in captions not indented after a line break when using ragged2e (caption, tabularx)

I have a problem with the packages ragged2e, caption and tabularx. Maybe someone can help me? tabularx is used to create tables that should be horizontally centred, display centred table cells and ...
Seban's user avatar
  • 53
1 vote
0 answers
33 views

ragged2e: forbid overlong lines [duplicate]

I am trying to set some text ragged-right with ragged2e. To conform to the format I'm working with, my text absolutely must not go over the right margin under any circumstances. LaTeX sometimes ...
Holly's user avatar
  • 13
0 votes
1 answer
30 views

combining ragged2e and mdframed

Minimal example: \documentclass{article} \usepackage[document]{ragged2e} \usepackage{mdframed} \newmdtheoremenv{definition}{Definition} \begin{document} \begin{definition}[experiment] Cubum autem ...
Holly's user avatar
  • 13
0 votes
1 answer
49 views

\begin{Center} from ragged2e introduces excessive spacing in math mode

I've tried to find this asked somewhere before, however I was unable. I use the following preamble: \documentclass[12pt]{article} \usepackage{ragged2e} \usepackage[a5paper, total={4.1in, 8in}]{...
studying mathematics 's user avatar
0 votes
2 answers
124 views

My justified (ragged2e) text does this terribleness and I do not understand why [closed]

The code: (there is even a comment about some justify terribleness, but as I originally wrote this several months ago (on TexLive, now editing on Kile) I no longer remember) %%%%%%%%%% Introduction ...
Nick Cyvil's user avatar
0 votes
1 answer
40 views

Justify columns in xltabular with Arial font and ragged2 package

I am using Arial font and the ragged2e package. Although the text of the paragraphs is justified, the text inside the tables is not. I tried to remove the ragged2e, but the I obtained several warnings....
David Moldes's user avatar
1 vote
0 answers
38 views

Long labels in list overlap when using ragged2e

I defined a new list using the enumitem package. The content of the list varies in many ways. Sometimes a label has two or three lines and the item has only one line. I can prevent overlap of the ...
suricata78's user avatar
0 votes
0 answers
38 views

How to remove centering of the captions in figures and subfigures?

I am facing trouble removing centering of the captions in the figures, I tried justification==justified as well, but its not working. Also, I tried \raggedright in the caption, it is moving the ...
Lakshita Jindal's user avatar
2 votes
3 answers
114 views

How can I create balanced raggedright lines for headings?

I have sectional headings (at all heading levels) that are set raggedright and unhyphenated. But the line distribution is unbalanced, so that when the heading is long you can get, say, one word ...
sujato's user avatar
  • 367
0 votes
0 answers
40 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
219 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
330 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
4 votes
2 answers
391 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
  • 175
1 vote
1 answer
47 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
83 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,886
1 vote
1 answer
46 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
39 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
35 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
45 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
229 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
152 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,333
0 votes
3 answers
686 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
184 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
106 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
  • 728
1 vote
1 answer
267 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
222 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
276 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
329 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
179 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
2 votes
1 answer
71 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,608
3 votes
1 answer
69 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
203 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
107 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
  • 481
5 votes
2 answers
818 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,323
1 vote
1 answer
258 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,689
2 votes
1 answer
682 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
38 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 ...
senorita.xi's user avatar
0 votes
0 answers
852 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,...
senorita.xi's user avatar
4 votes
1 answer
1k 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
  • 428
8 votes
2 answers
225 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
  • 56.8k
0 votes
1 answer
264 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
101 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.5k
3 votes
1 answer
323 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,796
0 votes
0 answers
814 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
77 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
589 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
167 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,659
5 votes
1 answer
354 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