LyX3 more questions

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
PascalF
Posts: 4
Joined: Sat Feb 25, 2012 7:50 pm

3 more questions

Post by PascalF »

I have 3 more questions:

1.
If the hyphenation is wrong when rendering the document, how can I change it for this word or deactivate it for that single word.

2.
How can I deactivate the hyphenation in general?

3.
If I use the paragraph-style for Literature, it gets the headline "Literaturverzeichnis" (I'm German). But our university only want "Literatur" as headline. But this isn't editable. How can I edit that headline?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

3 more questions

Post by Stefan Kottwitz »

Hi Pascal,

welcome to the board!

Here are possible solutions. You can apply each of them by copying the corresponding code line into your LyX document preamble. For this, open Document settings in the main menu, and look for the preamble.
  1. Use the \hyphenation command, mark hyphenation points by a dash (hyphen), such as

    Code: Select all

    \hyphenation{question hy-phen-a-tion}
    In this example, the word "hyphenation" can be broken in three ways. In contrast, the word "question" would not be hyphenated as there's no hyphen in it.
  2. Load the hyphenat package:

    Code: Select all

    \usepackage[none]{hyphenat}
  3. If you loaded the babel package with ngerman option, (which means document settings Deutsch, Neue Rechtschreibung), use

    Code: Select all

    \addto\captionsngerman{\renewcommand{\refname}{Literatur}}
    if it's an article class. If it's a book or report class, use

    Code: Select all

    \addto\captionsngerman{\renewcommand{\bibname}{Literatur}}
Stefan
LaTeX.org admin
PascalF
Posts: 4
Joined: Sat Feb 25, 2012 7:50 pm

Re: 3 more questions

Post by PascalF »

Hi Stefan,

thanks for the reply. I've tried the first one, but the wrong hyphenated word is still wrong hyphenated.

I only have to add this single line (of course with my word and its hyphenation in the bracktes) into the preamble, right?

Greetings, Pascal
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

3 more questions

Post by Stefan Kottwitz »

That's right, just this command in the document preamble.
Perhaps just use \- in the body text where you would like to allow hyphenation, or use \mbox{word} to forbid it, but that's TeX/LaTeX, not comfortable with LyX.

Stefan
LaTeX.org admin
PascalF
Posts: 4
Joined: Sat Feb 25, 2012 7:50 pm

Re: 3 more questions

Post by PascalF »

I could insert a soft hyphen for the word in Lyx. But then I have to do this every time the word appears. Something in the preamble would be better.
Post Reply