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