Re: String including \rightarrow works unless with other text

2024-01-02 Thread Rich Shepard

On Tue, 2 Jan 2024, Kornel Benko wrote:


Alternatively you could use symbols from Insert->Special
Character->Symbols...->Category: Arrows

or use unicode direct with
M-x unicode-insert 2192


Kornel,

Thank you. I'm used to using the unfortuately-named ERT so I added the $
where needed and that did the trick.

Regards,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: String including \rightarrow works unless with other text [RESOLVED]

2024-01-02 Thread Rich Shepard

On Tue, 2 Jan 2024, Herbert Voss wrote:


$\rightarrow$  It must be in mathmode. However, insert it with the LyX
mathmode and you can insert the arrow as symbol.


Herbert,

Mea culpa! You and Paul pointed out that totally spaced using mathmode.
Adding the '$' was easier than inline math.

Thanks again,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: String including \rightarrow works unless with other text

2024-01-02 Thread Rich Shepard

On Tue, 2 Jan 2024, Paul Rubin wrote:


Neither displays correctly for me. The issue is that you are inserting the
arrow as LaTeX without invoking math mode (at least in mwe2; in mwe it's
not even LaTeX). So the compiler guesses where to begin and end math mode,
and it does not guess correctly. (Quoth the LaTeX log: "I've inserted a
begin-math/end-math symbol since I think

you left one out. Proceed, with fingers crossed.")

The simple fix is to insert the arrows using math model (ctrl-M), as in the 
attached version of your second example.


Paul,

I saw that but missed the point that I needed to use math mode rather than
plain LaTeX/ERT.

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: String including \rightarrow works unless with other text

2024-01-02 Thread Kornel Benko
Am Tue, 2 Jan 2024 18:35:50 +0100
schrieb Herbert Voss :

> Am 02.01.24 um 18:15 schrieb Rich Shepard:
> > I'm puzzled. In a document I display a series using \rightarrow to 
> > separate
> > the components. When I compile the document it displays as in the 
> > attached
> > mwe2.lyx file. When the string is by itself (mwe.lyx) it displays 
> > properly.
> >
> > I suspect it's a matter of spacing but I haven't figured out where.  
> 
> $\rightarrow$  It must be in mathmode. However, insert it with
> the LyX mathmode and you can insert the arrow as symbol.
> 
> Herbert
> 

Alternatively you could use symbols from
Insert->Special Character->Symbols...->Category: Arrows

or use unicode direct with
M-x unicode-insert 2192

Kornel








pgpRisCXaFNqa.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: String including \rightarrow works unless with other text

2024-01-02 Thread Herbert Voss



Am 02.01.24 um 18:15 schrieb Rich Shepard:
I'm puzzled. In a document I display a series using \rightarrow to 
separate
the components. When I compile the document it displays as in the 
attached
mwe2.lyx file. When the string is by itself (mwe.lyx) it displays 
properly.


I suspect it's a matter of spacing but I haven't figured out where.


$\rightarrow$  It must be in mathmode. However, insert it with
the LyX mathmode and you can insert the arrow as symbol.

Herbert

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: String including \rightarrow works unless with other text

2024-01-02 Thread Paul Rubin



On 1/2/24 12:15, Rich Shepard wrote:
I'm puzzled. In a document I display a series using \rightarrow to 
separate
the components. When I compile the document it displays as in the 
attached
mwe2.lyx file. When the string is by itself (mwe.lyx) it displays 
properly.


I suspect it's a matter of spacing but I haven't figured out where.

Help's needed.

TIA,

Rich

Neither displays correctly for me. The issue is that you are inserting 
the arrow as LaTeX without invoking math mode (at least in mwe2; in mwe 
it's not even LaTeX). So the compiler guesses where to begin and end 
math mode, and it does not guess correctly. (Quoth the LaTeX log: "I've 
inserted a begin-math/end-math symbol since I think


you left one out. Proceed, with fingers crossed.")

The simple fix is to insert the arrows using math model (ctrl-M), as in 
the attached version of your second example.


Paul


mwe2a.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


String including \rightarrow works unless with other text

2024-01-02 Thread Rich Shepard

I'm puzzled. In a document I display a series using \rightarrow to separate
the components. When I compile the document it displays as in the attached
mwe2.lyx file. When the string is by itself (mwe.lyx) it displays properly.

I suspect it's a matter of spacing but I haven't figured out where.

Help's needed.

TIA,

Rich#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrreprt
\begin_preamble
\date{}
\usepackage{mathpazo,amssymb}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "palatino" "default"
\font_sans "avant" "default"
\font_typewriter "courier" "default"
\font_math "auto" "auto"
\font_default_family rmdefault
\use_non_tex_fonts false
\font_sc true
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures false
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command biber mergedate=compact
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize executivepaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 0
\use_package esint 0
\use_package mathdots 1
\use_package mathtools 0
\use_package mhchem 1
\use_package stackrel 0
\use_package stmaryrd 0
\use_package undertilde 0
\cite_engine biblatex-natbib
\cite_engine_type authoryear
\biblatex_bibstyle authoryear
\biblatex_citestyle authoryear
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\paperwidth 6in
\paperheight 9in
\leftmargin 0.75in
\topmargin 0.5in
\rightmargin 0.5in
\bottommargin 0.5in
\secnumdepth 2
\tocdepth 2
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\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
data {
\backslash
rightarrow} information {
\backslash
rightarrow} insight
\end_layout

\begin_layout Standard

\end_layout

\end_body
\end_document
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrreprt
\begin_preamble
\date{}
\usepackage{mathpazo,amssymb}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "palatino" "default"
\font_sans "avant" "default"
\font_typewriter "courier" "default"
\font_math "auto" "auto"
\font_default_family rmdefault
\use_non_tex_fonts false
\font_sc true
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures false
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command biber mergedate=compact
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref false
\papersize executivepaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 0
\use_package esint 0
\use_package mathdots 1
\use_package mathtools 0
\use_package mhchem 1
\use_package stackrel 0
\use_package stmaryrd 0
\use_package undertilde 0
\cite_engine biblatex-natbib
\cite_engine_type authoryear
\biblatex_bibstyle authoryear
\biblatex_citestyle authoryear
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\paperwidth 6in
\paperheight 9in
\leftmargin 0.75in
\topmargin 0.5in
\rightmargin 0.5in
\bottommargin 0.5in
\secnumdepth 2
\tocdepth 2
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\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
While the sequence data 
\begin_inset ERT
status open

\begin_layout Plain Layout

{
\backslash
rightarrow}
\end_layout

\end_inset

 information 
\begin_inset ERT
status open

\begin_layout Plain Layout

{
\backslash
rightarrow}
\end_layout

\end_inset

 insight requires a solid base in terms of data quantity, quality, and relevance
 the quality component is sometimes the most difficult to evaluate.
 Data quality refers to the