Re: [NTG-context] Beamer --> ConTeXt (sample)

2020-10-09 Thread Aditya Mahajan
> recently I ha dto quickly put together few presentations for online meetings > and not knowing better (aka quicker) way, I took/installed LyX on my Fedora > machine. The process is not so smooth and end result is OK if we forgive > ourselves that all Beamer presentations are looking almost the

Re: [NTG-context] \doifelse not working, \doiftextelse breaking

2020-10-09 Thread Pablo Rodriguez
On 10/9/20 5:10 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 09.10.2020 um 16:31: >> [...] >> Which are the improvements to the command added by \do*argument? > > You can add a space between both arguments. You version expects this > >     \startswith [...][...] > > while the

[NTG-context] Hyphenation again

2020-10-09 Thread Denis Maier
Hi, another weird thing: In this example I use  \startexceptions to set hyphenation exceptions: ``` \mainlanguage[en] \startexceptions[en] appli-ca​ble obli-gated \stopexceptions \setuplayout[width=1cm] \starttext \currentmainlanguage \currentlanguage \hyphenatedword{applicable}

Re: [NTG-context] Beamer --> ConTeXt (sample)

2020-10-09 Thread Henning Hraban Ramm
> Am 09.10.2020 um 19:01 schrieb Saša Janiška : > I'm attaching small Beamer sample and wonder if someone can help by providing > somewhat similar thing for ConText? If you need columns, look into columnsets: https://wiki.contextgarden.net/Columns#Column_Sets Read

[NTG-context] Beamer --> ConTeXt (sample)

2020-10-09 Thread Saša Janiška
Hello, recently I ha dto quickly put together few presentations for online meetings and not knowing better (aka quicker) way, I took/installed LyX on my Fedora machine. The process is not so smooth and end result is OK if we forgive ourselves that all Beamer presentations are looking almost

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Denis Maier
Am 09.10.2020 um 14:48 schrieb Hans Hagen: On 10/9/2020 9:01 AM, Denis Maier wrote: [...] I see. I've noticed lang-us.lua has a list of exceptions in it:   ["exceptions"]={    ["characters"]="abcdefghijlmnoprstuyz",    ["data"]="as-so-ciate as-so-ciates dec-li-na-tion oblig-a-tory

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-09 Thread Denis Maier
Arg, it's getting uglier... I've been playing around with the replacement patterns. ``` \replaceword[replace][auff][au{ff}] \replaceword[replace][Aufl][Au{fl}] \replaceword[replace][aufl][au{fl}] \setreplacements[replace] \starttext auffasste auffasse Auflage aufliegen auffliegen

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-09 Thread Hans Hagen
On 10/8/2020 3:15 PM, Denis Maier wrote: Ok, I've commented the whole nolig-german-wordlist out piece by piece, and it looks like it comes down to this: ``` \replaceword[eka][auffasse][au{ff}asse] \replaceword[eka][auffasst][au{ff}asst] \setreplacements[eka] \starttext auffasste auffasse

Re: [NTG-context] \doifelse not working, \doiftextelse breaking

2020-10-09 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 09.10.2020 um 16:31: To improve your command and allow a space between both arguments you can use \unexpanded\def\startswith {\dodoubleargument\dostartswith} \def\dostartswith[#1][#2]% {...} Now I see with \dosingleargument, \dodoubleargument and

Re: [NTG-context] Hyphenation again

2020-10-09 Thread Denis Maier
Am 09.10.2020 um 16:49 schrieb Rik Kabel: Denis You have a hex 200b after ca below. On 10/9/2020 10:38, Denis Maier wrote: appli-ca​ble Thanks, that was it. You shall never copy from a website ... You shall never copy from a website... etc.

Re: [NTG-context] \doifelse not working, \doiftextelse breaking

2020-10-09 Thread Pablo Rodriguez
On 10/9/20 4:08 PM, Wolfgang Schuster wrote: > [..] > You need a % at the end of the definition, otherwise TeX expects a space > after the second argument to end the command. > > \unexpanded\def\startswith[#1][#2]% >{...} Many thanks for your ultra-fast reply, Wolfgang. Now I see muy

Re: [NTG-context] \doifelse not working, \doiftextelse breaking

2020-10-09 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 09.10.2020 um 15:58: Dear list, I have the following sample: \starttext \startluacode function document.starts_with(str, start) if str:sub(1, #start) == start then context(start) end end \stopluacode

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-09 Thread Denis Maier
Next try, the compact syntax gives the same weird result: ``` \replaceword[replace][au{ff}asse au{ff}asst] \setreplacements[replace] \starttext auffasste auffasse \stoptext ``` I would really like to have correct ligatures. What can I do to help finding the reason for this? (Or is

[NTG-context] \doifelse not working, \doiftextelse breaking

2020-10-09 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startluacode function document.starts_with(str, start) if str:sub(1, #start) == start then context(start) end end \stopluacode \unexpanded\def\startswith[#1][#2]

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Hans Hagen
On 10/9/2020 9:01 AM, Denis Maier wrote: Am 09.10.2020 um 08:57 schrieb Taco Hoekwater: On 9 Oct 2020, at 08:52, Denis Maier wrote: Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm: \starttext {EN: \en\hyphenatedcoloredword{applicable}} {DE: \de\hyphenatedcoloredword{applicable}}

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Denis Maier
Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm: \starttext {EN: \en\hyphenatedcoloredword{applicable}} {DE: \de\hyphenatedcoloredword{applicable}} \stoptext Wow, that's super helpful. The English pattern seems to be "ap-plic-a-ble" According to Meriam-Webster it should just be

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Hans Hagen
On 10/9/2020 10:15 AM, Henning Hraban Ramm wrote: Am 09.10.2020 um 08:52 schrieb Denis Maier : Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm: \starttext {EN: \en\hyphenatedcoloredword{applicable}} {DE: \de\hyphenatedcoloredword{applicable}} \stoptext Wow, that's super helpful.

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Hans Hagen
On 10/8/2020 7:05 PM, Henning Hraban Ramm wrote: Am 08.10.2020 um 17:41 schrieb Denis Maier : where can I find the hyphenation patterns used by ConTeXt? I have two wrongly hyphenated words, and I want to check whether this is due to incorrect patterns. (I tried the source browser... not

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Henning Hraban Ramm
> Am 09.10.2020 um 08:52 schrieb Denis Maier : > > Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm: >> \starttext >> >> {EN: \en\hyphenatedcoloredword{applicable}} >> >> {DE: \de\hyphenatedcoloredword{applicable}} >> >> \stoptext >> > Wow, that's super helpful. BTW \hyphenatedword works

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-09 Thread Henning Hraban Ramm
> Am 08.10.2020 um 13:04 schrieb Hans Hagen : > > On 10/8/2020 12:02 PM, Denis Maier wrote: >> Hi, >> I do as adviced on the Wiki and input the nolig-german-wordlist.tex to >> suppress wrong ligatures. However, I'm seeing strange results: >> ``` >> \input nolig-german-wordlist.tex >>

[NTG-context] Local custom notes affect regular footnotes

2020-10-09 Thread Henning Hraban Ramm
If I use local notes, regular footnotes disappear in the following example: \definenote[testnote] \starttext \startlocalnotes[testnote] Test\testnote{Custom note} Other text inbetween with normal footnotes.\footnote{Footnote} Test\testnote{Another custom note} Other text afterwards with

Re: [NTG-context] Fine tuning an index

2020-10-09 Thread Duncan Hothersall
Just a note to add, that \showinjector doesn't seem to do anything unless you also have a \setinjector command, which is a bit counterintuitive since probably the first thing you want to do is see the ID of each line in your list/register before you know what \setinjector command you need. I've

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Denis Maier
Am 09.10.2020 um 08:57 schrieb Taco Hoekwater: On 9 Oct 2020, at 08:52, Denis Maier wrote: Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm: \starttext {EN: \en\hyphenatedcoloredword{applicable}} {DE: \de\hyphenatedcoloredword{applicable}} \stoptext Wow, that's super helpful. The

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Taco Hoekwater
> On 9 Oct 2020, at 08:52, Denis Maier wrote: > > Am 08.10.2020 um 19:05 schrieb Henning Hraban Ramm: >> \starttext >> >> {EN: \en\hyphenatedcoloredword{applicable}} >> >> {DE: \de\hyphenatedcoloredword{applicable}} >> >> \stoptext >> > Wow, that's super helpful. The English pattern seems

Re: [NTG-context] Fine tuning an index

2020-10-09 Thread Duncan Hothersall
Brilliant, thanks, I didn't know about that one. Much appreciated. Duncan On Thu, 8 Oct 2020 at 21:36, jbf wrote: > Duncan, have you looked at > https://wiki.contextgarden.net/Command/setinjector? > > > You might also need \showinjector. But