Questions tagged [justify]

A text alignment mode where every line has the same width

A text alignment mode of layout engines where words separated by spaces become evenly distributed so every line starts and ends at the same horizontal position (except the last line, which may not fill if its content is too short)

331 questions
5
votes
2 answers

Justify text in R

How do you justify text in R? By justify I mean that each line in a paragraph is exactly the same length (like when you justify in open office or excel). I have tried to find an option with strwrap and cat but have been unsuccessful. ## Get some…
Rorschach
  • 31,301
  • 5
  • 78
  • 129
5
votes
1 answer

Does format(..., justify = "left") on a dataframe also left-justify the column names?

I'm relatively new to R, so hopefully this is an easy fix. Here's my problem: x <- data.frame(c("Thing1", "Thing2", "Thing3", "Thing4", "Thing5"), c("Sizeable line of text", "more text", "I hope this aligns", "something", "help me")) colnames(x) <-…
neuropsych
  • 61
  • 1
  • 4
5
votes
2 answers

Justify elements with fix space (variable width)

I have a container with a variable number of elements in it. The elements should be justified but with a fix space between (e.g. 20px). That means the width of every element has to adapt. For example this: HTML
Luca Nate Mahler
  • 1,292
  • 2
  • 13
  • 28
5
votes
4 answers

Set a line break in justified text, and still have it justify

I have a paragraph of text that is justified. At a certain point in the text, I need the next line to begin with a certain word, so I need to break the text, but I still want the "broken" line justified (stretched to the end of the line), even if…
GentlePurpleRain
  • 529
  • 1
  • 5
  • 24
5
votes
4 answers

Using printf, left- and right-justify two strings to a given length

Using printf in C or Bash shell, how can I left- and right-justify two strings (character arrays) to a given length? E.g. if the strings are "stack" and "overflow", and the length is 20 characters, I wish to print stack-------overflow (for clarity,…
Gnubie
  • 2,587
  • 4
  • 25
  • 38
4
votes
1 answer

Making a LaTex looking justified text in libre office

I'm writing at my thesis at the moment. I'm using Libre Office instead of LaTex - stupid me, i know! But at this time there is no way to change to LaTex, so i have to deal with it... I want to make the whole text justified... But if I do it with the…
Joergi
  • 1,527
  • 3
  • 39
  • 82
4
votes
1 answer

How to justify text in Quarto?

I would like to justify the text in a Quarto document. This means that it should automatically add text between words so that both edges of each line of text are aligned with both margins. In a word-document this would be the following highlighted…
Quinten
  • 35,235
  • 5
  • 20
  • 53
4
votes
0 answers

Why setMovementMethod() breaks text justification in TextView?

I have a TextView with these attributes: android:maxLines = "10" android:scrollbars = "vertical" By using above attributes, textView displays text justified: But when I set movement method for textView like below, justification…
hasanghaforian
  • 13,858
  • 11
  • 76
  • 167
4
votes
1 answer

Justify Arabic Text in TextView in iOS

I have a textview. I am getting arabic text from server to be shown in the textview. I need to justify the text. The text is justified with NSTextAlignmentJustified. For right to left languages like arabic, the last line in paragraph must be right…
Alfred
  • 136
  • 8
4
votes
3 answers

How can I ensure that an icon will be on the same line as text, and not on a new line?

EDIT: I got the icon to be next to the text by setting span{max-width:140px; display:block; float:left} but now the text in the span is overlapping the bottom of the li; it's no longer setting the height correctly. I have an expandable menu…
Erica Stockwell-Alpert
  • 4,624
  • 10
  • 63
  • 130
4
votes
4 answers

justify one line of html text to fill an entire line?

I have a navigation bar with links inside and its around the height I'd like it right now but I want the buttons to be evenly spaced but text-align:justify; isn't working. I'm I doing something wrong? http://jsfiddle.net/xuEY6/
Jim Jones
  • 2,568
  • 6
  • 26
  • 43
4
votes
1 answer

Html css justify glitch with angularJS

I am trying to make a element with inner elements that should be justified. Now is the problem that when I generate the elements with AngularJS text-align justify does not works anymore. I've made a example that simulate…
Robin Timman
  • 489
  • 2
  • 7
  • 17
4
votes
2 answers

How to format text file as it can be seen in man pages (justifying text, nothing more) using bash

What I would like to do is the following. Text file content : This is a simple text file containing lines of text with different width but I would like to justify them. Any idea ? Expected result : This is a simple text file containing lines of …
Slander
  • 225
  • 2
  • 13
4
votes
3 answers

Weird space after inline-block. Not between

I have this html code: And this css: nav…
Piotr Uchman
  • 119
  • 1
  • 7
4
votes
3 answers

Justify android text inside a listview without using a WebView

I need to justify a text in Android without using a WebView, because i use it inside a listview, that create a lot of problems because of the recycle, when i scroll down it's okay, but when i get back up, the webview keep the size of the last one,…
Tsunaze
  • 3,204
  • 7
  • 44
  • 81
1 2
3
22 23