[texworks] Editing Hebrew with inline maths or English

Moti Ben-Ari moti.ben.ari at gmail.com
Mon Nov 7 06:39:22 CET 2016


Thanks, Philip, Johannes.

First, I'm using pdflatex from MikTeX with babel. It is sufficient for the
informal document I'm writing for high-school math students.

After some experimentation I noticed that the TW editor works OK provided
that the math ends in an English letter:
$a_n = a_1 + (n-1)d$.
But if it ends with a number or punctuation mark then I get an editor
problem although they typeset correctly:
3$$  instead of $3$ and ${a_{51$ instead of $a_{51}$.

Following Philip's suggestion, I noticed that right-clicking brings up a
menu of over a dozen relevant unicode control characters. I tried a couple
and they seemed to solve the problem, but I don't understand the concepts
used. Can you direct me to a good tutorial??

Moti

On Sun, Nov 6, 2016 at 11:54 PM, <texworks-request at tug.org> wrote:

> Send texworks mailing list submissions to
>         texworks at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://tug.org/mailman/listinfo/texworks
> or, via email, send a message with subject or body 'help' to
>         texworks-request at tug.org
>
> You can reach the person managing the list at
>         texworks-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of texworks digest..."
>
>
> Today's Topics:
>
>    1. Re: Editing Hebrew with inline maths or English (Philip Taylor)
>    2. Re: Editing Hebrew with inline math or English (Philip Taylor)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 6 Nov 2016 21:07:34 +0000
> From: Philip Taylor <P.Taylor at Rhul.Ac.Uk>
> To: Johannes Heck <heck.johannes at gmail.com>
> Cc: "TeXworks (TeX front end) discussion." <texworks at tug.org>
> Subject: Re: [texworks] Editing Hebrew with inline maths or English
> Message-ID: <4d350cee-4da3-7744-134d-f4e71b644fae at Rhul.Ac.Uk>
> Content-Type: text/plain; charset="UTF-8"
>
>
>
> Johannes Heck wrote:
> >
> > I'll try ;)
> > For me, it was the Best choice for intermixed german/hebrew Texts,
> because its a clear markup for changes in the direction of the text.
> Without that package, i hat Problems e.g. with hyphenation/linewrapping of
> short hebrew (rtl) phrases within german (ltr) Paragraphen. With that
> package, a change of the writing direction is not just marked by a
> unicode-code rtl/ltr, but XeTeX (i dont know if it also works with plain
> LaTeX) is told that it has to typeset that given phrase rtl/ltr.
> > I thought that was what Mordechai was asking for.
> >
> Ah, I see.  As I understood it, Mordechai was more concerned with getting
> LTR text inline rendered correctly in TeXworks when it is surrounded by RTL
> text  (he was already able to get it to typeset correctly with XeTeX, I
> believe), and the problem appeared to be that the dollar-symbol is
> direction-neutral and therefore does not of itself trigger the correct
> rendering in TeXworks.
>
> Philip Taylor
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 6 Nov 2016 21:54:08 +0000
> From: Philip Taylor <P.Taylor at Rhul.Ac.Uk>
> To: Mordechai Ben-Ari <moti.ben-ari at weizmann.ac.il>
> Cc: "TeXworks (TeX front end) discussion." <texworks at tug.org>
> Subject: Re: [texworks] Editing Hebrew with inline math or English
> Message-ID: <73110cd5-a409-3311-7ff0-bfae896bce6a at Rhul.Ac.Uk>
> Content-Type: text/plain; charset="utf-8"
>
>
>
> Philip Taylor wrote:
> > I (think I) solved the problem by inserting Unicode direction-switching
> markers at the appropriate points :
> >
> > \font \hebrewfont = "David"
> >
> > \hebrewfont
> >
> > ????$x^2+1$?????
> >
> > \end
> >
> > As these are difficult to insert by hand, I inserted them as "[" and "]"
> and then used regular-expression search-and-replace to perform the
> necessary substitutions :
> >
> > \[ -> \x200E
> > \] -> \x200F
> A subsidiary question :  does not your multi-line solution lead to
> unwanted spaces ?  I found that to replicate the appearance of the typeset
> output of my inline version, I had to hide two end-of-line markers in your
> multi-line original, as in :
>
> > ???%
> >
> > $x^2+1$%
> >
> > ???
> >
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://tug.org/pipermail/texworks/attachments/20161106/
> a66af2ad/attachment.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> texworks mailing list
> texworks at tug.org
> http://tug.org/mailman/listinfo/texworks
>
>
> ------------------------------
>
> End of texworks Digest, Vol 99, Issue 6
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texworks/attachments/20161107/b1dd1c19/attachment.html>


More information about the texworks mailing list