Text FormattingLeft alignment adds extra space among paragraphs

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
annad
Posts: 4
Joined: Mon Jul 20, 2015 1:10 pm

Left alignment adds extra space among paragraphs

Post by annad »

Hi,

I need to align the text of my article to the left, following the rules of the formatting rules of a journal.
I start from a standard article setting: paragraphs are justified and indented, no extra-space between paragraphs.
When I align the text to the left, Lyx adds some extra space between paragraphs that I do not want.
I cannot choose to indent paragraphs neither.

Any advice?

Thanks very much.

Anna

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Left alignment adds extra space among paragraphs

Post by Johannes_B »

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
annad
Posts: 4
Joined: Mon Jul 20, 2015 1:10 pm

Re: Left alignment adds extra space among paragraphs

Post by annad »

Thanks, but actually it does not work for me.

Moreover, I really want to get rid of the space between paragraphes. Even if the paragraphs are not indented, it is not a problem.

Thanks.

Anna
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Left alignment adds extra space among paragraphs

Post by Johannes_B »

As you will notice when clicking on open in online editor just above the linked forum thread, there is no space between paragraphs. I guess your document is set up differently, so we need a reduced LyX document that still shows the behaviour, as well as the LaTeX export of that reduced copy.
How to make a LyX minimal example
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
annad
Posts: 4
Joined: Mon Jul 20, 2015 1:10 pm

Re: Left alignment adds extra space among paragraphs

Post by annad »

Thanks for your answer.

Here is an example that shows my problem.

Anna
Attachments
example.pdf
(20.85 KiB) Downloaded 166 times
example.lyx
(3.35 KiB) Downloaded 227 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Left alignment adds extra space among paragraphs

Post by Johannes_B »

You have choosen in the text formatting section in the document preferences of LyX, that different paragraphs of text should have a vertical space between them. That is what you see.

It also appears as if you prevent indenting of every paragraph by hand and put every paragraph in its own flushleft box, which will introduce additional white space. Do you want to have the complete document ragged on the right side? If so, add \raggedright using an ERT-box at the very beginning of your text.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
annad
Posts: 4
Joined: Mon Jul 20, 2015 1:10 pm

Re: Left alignment adds extra space among paragraphs

Post by annad »

Thanks very much: I add your \raggedright and now my text if aligned to the left.

Just for clarity, I did not choose to add a vertical space between paragraphs. The only thing I did was to change the alignement in the Paragraph settings from justified (the default) to left alignment. This had two side effects: extra space between paragraphs and no indentation.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Left alignment adds extra space among paragraphs

Post by Johannes_B »

annad wrote:Just for clarity, I did not choose to add a vertical space between paragraphs. The only thing I did was to change the alignement in the Paragraph settings from justified (the default) to left alignment. This had two side effects: extra space between paragraphs and no indentation.
It is quite possible, that LyX does add that stuff automatically. As i am not a LyX user, i cannot be sure. :-) I don't like stuff being hidden.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply