Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #116: the real ttys became pseudo ttys and vice-versa.


comp / comp.text.tex / Forced space

SubjectAuthor
* Forced spacedb
+- Re: Forced spacePieter van Oostrum
+- Re: Forced spaceUlrich D i e z
`* Re: Forced spaceDr Engelbert Buxbaum
 `- Re: Forced spaceUlrich D i e z

1
Subject: Forced space
From: db
Newsgroups: comp.text.tex
Organization: A noiseless patient Spider
Date: Mon, 1 Jul 2024 16:22 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.text.tex
Subject: Forced space
Date: Mon, 1 Jul 2024 16:22:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <v5ul3k$15am2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 01 Jul 2024 18:22:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6e7c0270fcd017df292a2a41d16f1852";
logging-data="1223362"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/D72vzke1+wUbM9EWcPEpNJ0xvRoBzUw="
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:7++iIcRSWZqCs3WYBOJXQti7tRE=
View all headers

In a text I'm writing, I have this line

is \begin{otherlanguage}{russian}река \end{otherlanguage}\;(rieka),

If I don't put the \; in and put a space in instead, there is
no space after compiling. As it is with \;, there is a space,
but now "(rieka)" is highlighted yellow. How come? What is the
best way to force a space where I have that \; ?
--
db

Subject: Re: Forced space
From: Pieter van Oostrum
Newsgroups: comp.text.tex
Date: Tue, 2 Jul 2024 12:02 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pieter-l@vanoostrum.org (Pieter van Oostrum)
Newsgroups: comp.text.tex
Subject: Re: Forced space
Date: Tue, 02 Jul 2024 14:02:46 +0200
Lines: 20
Message-ID: <m2ikxongrd.fsf@cochabamba-1.kpn>
References: <v5ul3k$15am2$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net p8UUt3Axm+FGHOiq6dNKoAiSKscsU5im0zGUKh7K36BEV6kIAM
Cancel-Lock: sha1:aQEA6irySpqN61EyW83L8M5oCiA= sha1:kvuv2VhPpRg4TsWV+RZ7xAeuP94= sha256:rxUAS6djhsla+JMbOMEMSudWTXudlOQUIhgK1SUz+TY=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
View all headers

db <dieterhansbritz@gmail.com> writes:

> In a text I'm writing, I have this line
>
> is \begin{otherlanguage}{russian}река \end{otherlanguage}\;(rieka),
>
> If I don't put the \; in and put a space in instead, there is
> no space after compiling. As it is with \;, there is a space,
> but now "(rieka)" is highlighted yellow. How come? What is the
> best way to force a space where I have that \; ?
> --
> db

When I put your line in a minimal LaTeX document with \; replaced by a space, there is a space between 'река' and '(rieka)'. I think this is the space that is after 'река' in the source.

And what do you mean by highlighted yellow?
--
Pieter van Oostrum <pieter@vanoostrum.org>
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]

Subject: Re: Forced space
From: Ulrich D i e z
Newsgroups: comp.text.tex
Date: Tue, 2 Jul 2024 12:22 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ud.usenetcorrespondence@web.de (Ulrich D i e z)
Newsgroups: comp.text.tex
Subject: Re: Forced space
Date: Tue, 2 Jul 2024 14:22:14 +0200
Message-ID: <v60rad$32em$1@solani.org>
References: <v5ul3k$15am2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 2 Jul 2024 12:20:29 -0000 (UTC)
Injection-Info: solani.org;
logging-data="100822"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
Cancel-Lock: sha1:owKSqMQhVj5HoH7gL9iEzhOrnVQ=
X-User-ID: eJwNysEBgEAIA7CVpECBcTy0+4+geSedxq1gMlIptw47IMvQhoMSVjnV4LKRo+v9D+Wr554P8zQQJQ==
In-Reply-To: <v5ul3k$15am2$1@dont-email.me>
Content-Language: de-DE
View all headers

db wrote:

> In a text I'm writing, I have this line
>
> is \begin{otherlanguage}{russian}река \end{otherlanguage}\;(rieka),
>
> If I don't put the \; in and put a space in instead, there is
> no space after compiling. As it is with \;, there is a space,
> but now "(rieka)" is highlighted yellow. How come? What is the
> best way to force a space where I have that \; ?

You do not provide sufficient information for reproducing and tracking
down the problem. Therefore the only option is resorting to guesswork:

Probably \end{otherlanguage} does \ignorespacesafterend.

What happens when you do:

\newcommand\myspacemacro{ }
....
\begin{otherlanguage}{russian}река\end{otherlanguage}\myspacemacro(rieka),

?

Or:

\newcommand\foo[1]{#1}
....
\begin{otherlanguage}{russian}река\end{otherlanguage}\foo{ }(rieka),

?

Your remark about yellow highlighting does not provide useful
information at all as it is not clear what exactly you look at and what
programs you use and what packages/tools you might use for achieving
whatsoever highlighting.

Ulrich

Subject: Re: Forced space
From: Dr Engelbert Buxbaum
Newsgroups: comp.text.tex
Organization: private
Date: Wed, 3 Jul 2024 08:21 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: engelbert_buxbaum@hotmail.com (Dr Engelbert Buxbaum)
Newsgroups: comp.text.tex
Subject: Re: Forced space
Date: Wed, 3 Jul 2024 10:21:39 +0200
Organization: private
Lines: 16
Message-ID: <MPG.40ef286971a93ac39896a7@news.eternal-september.org>
References: <v5ul3k$15am2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 03 Jul 2024 10:21:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c2a5b7496a54469302f205f3422dc4aa";
logging-data="2229391"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+27iABMYvSFBNn/neIUVQrXypcJDN9rHc="
User-Agent: MicroPlanet-Gravity/3.0.4
Cancel-Lock: sha1:1MmycVso7HhMMx+nBMNXR376Igs=
View all headers

In article <v5ul3k$15am2$1@dont-email.me>, dieterhansbritz@gmail.com
says...
>
> In a text I'm writing, I have this line
>
> is \begin{otherlanguage}{russian}???? \end{otherlanguage}\;(rieka),
>
> If I don't put the \; in and put a space in instead, there is
> no space after compiling. As it is with \;, there is a space,
> but now "(rieka)" is highlighted yellow. How come? What is the
> best way to force a space where I have that \; ?

Have you tried using "\ "? That is the usual command to enter a space
after a TeX-command so it does not get eaten. Since you don't give a
minimal compilable example, it is difficult to give more specific
advice.

Subject: Re: Forced space
From: Ulrich D i e z
Newsgroups: comp.text.tex
Date: Wed, 3 Jul 2024 15:41 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ud.usenetcorrespondence@web.de (Ulrich D i e z)
Newsgroups: comp.text.tex
Subject: Re: Forced space
Date: Wed, 3 Jul 2024 17:41:07 +0200
Message-ID: <v63rb3$4r2d$1@solani.org>
References: <v5ul3k$15am2$1@dont-email.me>
<MPG.40ef286971a93ac39896a7@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 3 Jul 2024 15:39:15 -0000 (UTC)
Injection-Info: solani.org;
logging-data="158797"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
Cancel-Lock: sha1:t2K0Bt6OgGzQq9301y2sfhyIH+c=
Content-Language: de-DE
In-Reply-To: <MPG.40ef286971a93ac39896a7@news.eternal-september.org>
X-User-ID: eJwFwQkBwDAIA0BLJeWVw0LxL2F3dl2coW6utrYnIa8fW51Vcdq+7FgozgwYvMxFonqwgvkBIUcRWQ==
View all headers

Dr Engelbert Buxbaum schrieb:

> Have you tried using "\ "? That is the usual command to enter a space
> after a TeX-command so it does not get eaten. Since you don't give a
> minimal compilable example, it is difficult to give more specific
> advice.

You use <control space> to insert that amount of discardable glue that
you get by a <space token> when the space factor is 1000.
Usually this is what you want in situations where preventing the eating
of spaces is neded.

Whether <control space> or <space token> after the
otherlanguage-environment is better for inserting discardable glue might
depend on behavior desired in the case of the phrase within the
otherlanguage-environment ending with punctuation.

Sincerely

Ulrich

1

rocksolid light 0.9.8
clearnet tor