Lyx - Hervorgehobene Textsilbentrennung aktivieren, Überlauf verhindern

Lyx - Hervorgehobene Textsilbentrennung aktivieren, Überlauf verhindern

Ich verwende in Lyx Hervorhebungen, um Variablen in einer Beschreibung eines Berechnungsalgorithmus anzuzeigen.

Einige dieser Variablen haben lange Namen. Lyx versucht nicht, diese Variablen zu trennen, wenn sie in die definierten Seitenränder gelangen, was zu einem Textüberlauf führen kann.

Darüber hinaus führt ihre Aufnahme in einen Satz offenbar dazu, dass auch Wörter aus Standardtexten an den Rand gedrängt werden.

Sie können beide Probleme in diesem Screenshot sehen. Die ersten beiden Zeilen zeigen den Anfang des Rands an, an den sich Standardtextzeilen halten:

Lyx hat das Problem des hervorgehobenen Textüberlaufs behoben

Hier ist der zugehörige Lyx-Code:

\emph default
are gathered into a set 
\emph on
degreeOneNbors
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
 and the unmapped atoms of degree greater than one which are bonded to 
\emph on
mapped
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
are gathered into a set 
\emph on
unmappedDegreeGtOneNbors
\begin_inset script subscript

\begin_layout Plain Layout
b
\end_layout

\end_inset


\emph default
.
 The atoms in 
\emph on
degreeOneNbors
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
are decomposed into groups of atoms 
\emph on
chemicalSimilarityGroups
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
which are a chemical match [
\begin_inset CommandInset ref
LatexCommand formatted
reference "Procedure:isChemicalMatch"

\end_inset

].
 So too are the atoms in 
\emph on
unmappedDegreeGtOneNbors
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
decomposed into 
\emph on
chemicalSimilarityGroups
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
b
\end_layout

\end_inset


\emph default
.
 These chemically similar groups are then paired up where possible such
 that a group 
\emph on
chemicalSimilarityGroup
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
in 
\emph on
chemicalSimilarityGroups
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
contains atoms which are a chemical match for a group 
\emph on
chemicalSimilarityGroup
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
b
\end_layout

\end_inset

Ich verstehe, \hyphenation{wo-rd, w-ord}dass ich die zulässigen Silbentrennungen solcher Wörter manuell angeben kann. Ich habe jedoch sehr viele Variablen dieser Art, sodass dieser Ansatz, bei dem alles einzeln erfolgt, viel zu zeitaufwändig wäre.

Ich habe nach einer Lösung gesucht in derLyx Silbentrennungsdokumentation, aber ohne Erfolg.

Kann ich meiner Präambel etwas hinzufügen, um Lyx anzuweisen, diese hervorgehobenen Wörter auf die gleiche Weise zu trennen wie Wörter im Standardtext und zu verhindern, dass sie die Berechnung der Zeilenlänge durch Lyx stören, sodass auch ein Überlauf im Standardtext verhindert wird?

Ich möchte eine Silbentrennung des gesamten Textes erreichen, die den definierten Seitenrändern entspricht, anstatt Blocksatz mit z. B. zu ermöglichen \raggedright.


BEARBEITEN:Hier ist eine minimale Beispiel-Lyx-Datei. Das Bildergebnis von pdflatex (Bearbeiten -> Anzeigen [PDF (pdflatex)]) folgt anschließend.

\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
Next, the procedure considers each anchor atom 
\emph on
anchor
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
 and its mapped counterpart 
\emph on
mapped
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
.
 The degree one atoms bonded to 
\emph on
anchor
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
are gathered into a set 
\emph on
degreeOneNbors
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
 and the unmapped atoms of degree greater than one which are bonded to 
\emph on
mapped
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
are gathered into a set 
\emph on
unmappedDegreeGtOneNbors
\begin_inset script subscript

\begin_layout Plain Layout
b
\end_layout

\end_inset


\emph default
.
 The atoms in 
\emph on
degreeOneNbors
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
are decomposed into groups of atoms 
\emph on
chemicalSimilarityGroups
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
 which are a chemical match.
 So too are the atoms in 
\emph on
unmappedDegreeGtOneNbors
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
 decomposed into 
\emph on
chemicalSimilarityGroups
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
b
\end_layout

\end_inset


\emph default
.
 These chemically similar groups are then paired up where possible such
 that a group 
\emph on
chemicalSimilarityGroup
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
 in 
\emph on
chemicalSimilarityGroups
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
a
\end_layout

\end_inset


\emph default
contains atoms which are a chemical match for a group 
\emph on
chemicalSimilarityGroup
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
b
\end_layout

\end_inset


\emph default
 in
\emph on
 chemicalSimilarityGroups
\begin_inset script subscript

\begin_layout Plain Layout

\emph on
b
\end_layout

\end_inset


\emph default
.
 Each such pair is then considered in turn.
\end_layout

\end_body
\end_document

So sieht es in Adobe Reader aus:

Minimales Beispiel einer PDF-Ansicht

verwandte Informationen