From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to justify a line of text in the GUI? Date: Tue, 15 Nov 2022 14:40:50 +0200 Message-ID: <83sfikie5p.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15397"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 15 13:45:47 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ouvJy-0003k7-EU for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 13:45:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouvF9-0004qa-P4; Tue, 15 Nov 2022 07:40:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouvF0-0004o4-Lo for help-gnu-emacs@gnu.org; Tue, 15 Nov 2022 07:40:38 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouvF0-0001Nd-CX for help-gnu-emacs@gnu.org; Tue, 15 Nov 2022 07:40:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ESnYTpBoedKW3pcpx4eCNLHM4u+P6PxBACVrarN7lnM=; b=K5PTkmh489Ol KEp/VlMItZlzG8PdYB4KfLtAzIa7DjJMMEgkm5pZWZzaFbBNhyakxyKS4md0MgOawH2RdnOXGIVvO G1OnNE+IHxypWisdsdoUQCjEhKpmh5jcxBxV0fD46gTCm9cIA/czXuRwfPct+ZQBmmZdtU2jru0Hq 06GmWK3wUeyMaJBkWKYL+bxI5o4b5V28RMZbg+it5c8IrZyzqLaxiJpVv5ozO08mxUjvHx37918Y8 lIhzKH7yQlQf1qLk5MS+hhQzwUnFnNlbSqYAXczSD4NgZPJTUYJ7fNXmvZ/xE127570qjGx/X1BUq jn8DoK9RLsAgLItAeV0Dgw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouvEz-0005xi-KT for help-gnu-emacs@gnu.org; Tue, 15 Nov 2022 07:40:37 -0500 In-Reply-To: (message from Evan Aad on Mon, 14 Nov 2022 17:28:24 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140962 Archived-At: > From: Evan Aad > Date: Mon, 14 Nov 2022 17:28:24 +0200 > > When composing a bilingual document that combines a right-to-left > language, such as Hebrew, with a left-to-right language, such as > English, is there a way to justify a line of text to the right or to > the left in the GUI when the text in that line contains no letters of > the alphabet? > > For example, when writing a mathematical text in Hebrew, intended be > typeset by the TeX system, the following display-mode equation may > occur: > $$ > x+y=z > $$ > > In this case the Emacs GUI would right-justify the first pair of > dollar signs, whereas the next two lines would be left-justified. This > causes a disruption of the logical cohesiveness of the LaTeX code. Is > there a way that I could left-justify the first pair of dollar signs? Precede the line you want to left-justify with the U+200E LEFT-TO-RIGHT MARK (a.k.a. "LRM") character. It by default displays as a thin 1-pixel space, and so is almost invisible, and it will cause the "$$" line be treated as a left-to-right paragraph. However, I don't know what will this do to TeX output; you should try. If the LRM gets in the way, perhaps a better solution is to precede the problematic line with a comment that has some left-to-right characters in it; that should have the same effect on the paragraph direction determined by Emacs.