[NTG-context] What is the ConTeXt way to handle this \vbox trick?

2021-05-08 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Consider the following MWE (for a sequential multiple-choice exam), using some old and ugly TeX code: === \setupbodyfont[schola] \noheaderandfooterlines \setupwhitespace[big] \def\CHOICE#1#2{\leavevmode\vbox{\tabskip=0pt\everycr={} \halign{\strut\hfil##\hfil\cr

[NTG-context] Converting footnotes to endnotes

2021-06-03 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Generally, I do not use endnotes - see Robert Bringhurst's criticisms of endnotes in typography - but a publisher is demanding them. Converting footnotes to endnotes must be quite simple yet I'm missing it: \setupnotation[footnote] [way=bychapter] % \setupnote[footnote] % [way=b

Re: [NTG-context] Converting footnotes to endnotes

2021-06-03 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 03 Jun 2021 14:17:15 -0600, Wolfgang Schuster wrote: \setupnote [footnote] [location=none] That did the trick; many thanks! == \setupnote [footnote] [location=none] \starttext \startsection[title={},reference={}] \input ward \startfootnote \input ward \stopfoot

Re: [NTG-context] Converting footnotes to endnotes

2021-06-05 Thread Idris Samawi Hamid ادريس سماوي حامد
On Fri, 04 Jun 2021 12:06:31 -0600, Hans Hagen wrote: On 6/3/2021 10:09 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Generally, I do not use endnotes - see Robert Bringhurst's criticisms of endnotes in typography - but a publisher is demanding them. Converting footnot

[NTG-context] first-setup.bat weirdness I: cloned system

2016-07-19 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, In the past I updated to the latest via installing cont-tmf.zip (and luatex.exe if needed) manually, but recently I switched to first-setup.bat. I got things working on one 64-bit machine (vista), and want to set up context on another (windows7), also 64-bit. Normally all I nee

[NTG-context] first-setup.bat weirdness II: xetex etc.

2016-07-19 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear syndicate, As mentioned in my other message, "first-setup.bat weirdness I: cloned system" I've now switched to the first-setup.bat way of updating. Two pieces of weirdness on the main machine: 1. mtx-context | running command: xetex --ini --etex --8bit cont-en.mkii \dump makes

[NTG-context] math font fallback for palatino \cal

2016-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Using pagella (palatino) for a project here. Unfortunately texgyrepagella-math.otf has a rather unattractive set of \cal caps; schola, termes, bonum etc. all use the same and much better-looking set. So I decided to try and define a palatino math set with the \cal caps from sch

Re: [NTG-context] math font fallback for palatino \cal

2016-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 14 Aug 2016 12:33:53 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Using pagella (palatino) for a project here. Unfortunately texgyrepagella-math.otf has a rather unattractive set of \cal caps; schola, termes, bonum etc. all use the same and much better-looking

Re: [NTG-context] math font fallback for palatino \cal

2016-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 14 Aug 2016 13:17:35 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 14. August 2016 um 20:33 Dear gang, Using pagella (palatino) for a project here. Unfortunately texgyrepagella-math.otf has a rather unattractive set o

[NTG-context] Fwd: ANNOUNCE: pandoc scholar

2017-05-08 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, This just in. Slightly off-topic, but in the wake of the recent markdown thread some of you may find this approach interesting or a source of ideas for doing something similar in ConTeXt. Best wishes Idris --- Forwarded message --- From: "Albert Krewinkel" To: pandoc-di

Re: [NTG-context] how to prevent stupid typos?

2017-06-06 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear Pablo, On Tue, 06 Jun 2017 14:02:24 -0600, Pablo Rodriguez wrote: Dear list, I have the following sample: \starttext This is \linenote{abed intended. \stoptext From which I get the error: close source> level 2, order 3, name '/home/ousia/untitled.tex' close source>

Re: [NTG-context] how to prevent stupid typos?

2017-06-07 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 07 Jun 2017 02:09:48 -0600, Hans Hagen wrote: On 6/7/2017 7:02 AM, Pablo Rodriguez wrote: On 06/06/2017 10:56 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: [...] Would it be any way to make ConTeXt report that \linenote{ hasn’t been closed? Just check your file before running it

Re: [NTG-context] how to prevent stupid typos?

2017-06-07 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 07 Jun 2017 12:11:14 -0600, Pablo Rodriguez wrote: (but i have to admit that i normally just run files and redo after fixing an error, running is fast enough) My question here isn’t about speed. If a source may load twenty source files and it actually loads five source files, the prob

Re: [NTG-context] how to prevent stupid typos?

2017-06-07 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 07 Jun 2017 14:08:21 -0600, Pablo Rodriguez wrote: And creating a keyboard shortcut to launch the script automatically helps a lot. Scite: Ctrl-0 Notepad++: Ctrl-Shift-0 (new n++ setup for context currently under development) Idris -- Idris Samawi Hamid, Professor Department of Phil

Re: [NTG-context] how to prevent stupid typos?

2017-06-07 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 07 Jun 2017 14:33:05 -0600, Pablo Rodriguez wrote: On 06/07/2017 10:16 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Wed, 07 Jun 2017 14:08:21 -0600, Pablo Rodriguez wrote: And creating a keyboard shortcut to launch the script automatically helps a lot. Scite: Ctrl-0

[NTG-context] replace characters with bounding boxes

2017-07-20 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Given a set body font and text, how does one replace all characters of that font in that text with the corresponding rectangular bounding boxes? Once an answer to the above is spelled out: How does one control the width of the lines which make up the bounding boxes? Thank you i

Re: [NTG-context] replace characters with bounding boxes

2017-07-20 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 20 Jul 2017 07:31:00 -0600, Hans Hagen wrote: On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Given a set body font and text, how does one replace all characters of that font in that text with the corresponding rectangular bounding boxes? Once an

Re: [NTG-context] replace characters with bounding boxes

2017-07-20 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 20 Jul 2017 15:05:31 -0600, Hans Hagen wrote: On 7/20/2017 8:06 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Thu, 20 Jul 2017 07:31:00 -0600, Hans Hagen wrote: On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Given a set body font and text, how

[NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, There appears to be something awry with type-imp-cambria.mkiv or type-imp-dejavu.mkiv. Consider the following: === \setupbodyfont [cambria,12pt] \starttext Test % {\it Test} {\bf Test} {\bi Test} \stoptext === This produces a pdf with Cambria Italic instead of Cambria R

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen wrote: On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, There appears to be something awry with type-imp-cambria.mkiv or type-imp-dejavu.mkiv. Consider the following: === \setupbodyfont [cambria,12pt

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 02 Aug 2017 15:15:59 -0600, Aditya Mahajan wrote: On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote: On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen wrote: On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: > Dear gang, > There appears to be som

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 02 Aug 2017 15:17:07 -0600, Hans Hagen wrote: On 8/2/2017 11:05 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen wrote: On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, There appears to be something awry with

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-03 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 03 Aug 2017 01:41:42 -0600, Henning Hraban Ramm wrote: Am 2017-08-02 um 23:46 schrieb Aditya Mahajan : I occasionally experience a similar issue (after an update wrong fontface is used, especially with math fonts) and reloading the fonts database with --force always fixes the iss

[NTG-context] methods for numbered paragraphs

2017-08-03 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear syndicate, Not sure if there is a canonical way to do numbered paragraphs. In the following, I use subsections to mimic numbered paragraphs: ===section-intext.tex=== \setuphead[section][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue] \setuphead[subsecti

[NTG-context] methods for numbered paragraphs (ii)

2017-08-05 Thread Idris Samawi Hamid ادريس سماوي حامد
[Sent this a couple of days ago, maybe will get some takers this time -)] Dear syndicate, Not sure if there is a canonical way to do numbered paragraphs. In the following, I use subsections to mimic numbered paragraphs: ===section-intext.tex=== \setuphead[section][style=\bfa,after={\bla

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-05 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 05 Aug 2017 14:08:28 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: [Sent this a couple of days ago, maybe will get some takers this time -)] Dear syndicate, Not sure if there is a canonical way to do numbered paragraphs. In the following, I use subsections to mimic numbered

Re: [NTG-context] methods for numbered paragraphs

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Wolfgang, On Sun, 06 Aug 2017 03:09:16 -0600, Wolfgang Schuster wrote: \setupwhitespace[big] \definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}] \setupparagraphintro[each][\ParagraphNumber] \starttext \section{Section} \input ward \input ward \input ward \stoptext

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 05 Aug 2017 21:28:30 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: The parameter insidesection= helps: \setupwhitespace[big] \def\SPACE#1{#1\hskip2em\hbox{}} \setuphead[section] [style=\bf, after={\blank[big]}, before={\blank[big,medium

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 06 Aug 2017 13:39:50 -0600, Pablo Rodriguez wrote: On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: [...] Something along the lines of the following would be a sufficient (and easier) first step for the current project, although we may want to revisit the above for

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 06 Aug 2017 13:49:37 -0600, Pablo Rodriguez wrote: On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: In addition to the two dropbox links above, see the following: https://people.umass.edu/klement/tlp/tlp.html#bodytext https://people.umass.edu/klement/tlp/tlp.pdf

[NTG-context] Could you look at this?

2017-08-07 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Hans, https://mailman.ntg.nl/pipermail/ntg-context/2017/089431.html For the current writing project: It seems I've gotten about as far as I'm going to get on the list with this. Could you kindly take a look at the two automation challenges at the end of the message when you get a chance?

Re: [NTG-context] Could you look at this?

2017-08-07 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Wolfgang, On Mon, 07 Aug 2017 12:17:21 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 7. August 2017 um 15:54 Hi Hans, https://mailman.ntg.nl/pipermail/ntg-context/2017/089431.html For the current writing project: It seem

Re: [NTG-context] Could you look at this?

2017-08-07 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 07 Aug 2017 13:57:56 -0600, Wolfgang Schuster wrote: Simpler version: \defineseparatorset [ParagraphNumber][.,] \definecounter[ParagraphNumber][numberseparatorset=ParagraphNumber,criterium=all] \define\ParagraphNumber {\incrementcounter[ParagraphNumber]% \convertedcounter[Pa

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-07 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Hans, Pablo, On Mon, 07 Aug 2017 15:03:41 -0600, Pablo Rodriguez wrote: On 08/07/2017 08:57 PM, Hans Hagen wrote: On 8/7/2017 5:08 PM, Pablo Rodriguez wrote: [...] I mean, in a common sectioning structure a \subsubsection comes after a \subsection. But I don’t think it must be mandatory.

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-08 Thread Idris Samawi Hamid ادريس سماوي حامد
On Tue, 08 Aug 2017 01:36:00 -0600, Hans Hagen wrote: On 8/7/2017 11:03 PM, Pablo Rodriguez wrote: On 08/07/2017 08:57 PM, Hans Hagen wrote: On 8/7/2017 5:08 PM, Pablo Rodriguez wrote: [...] I mean, in a common sectioning structure a \subsubsection comes after a \subsection. But I don’t t

Re: [NTG-context] Could you look at this?

2017-08-08 Thread Idris Samawi Hamid ادريس سماوي حامد
[off-topic] Hi Jean-Pierre, On Tue, 08 Aug 2017 01:34:28 -0600, Jean-Pierre Delange wrote: Hi Idriss, Pablo, Wolfgang and Hans, It has been a long time since I have read the Wittgenstein "Tractacus-Logico-Philosophicus". I remember, when I was 20, that I was very puzzled by this asser

Re: [NTG-context] Could you look at this?

2017-08-08 Thread Idris Samawi Hamid ادريس سماوي حامد
On Tue, 08 Aug 2017 01:29:12 -0600, Hans Hagen wrote: On 8/8/2017 12:32 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Thank you again, Wolfgang. After playing with this, figured out how to do the full decimal version; just toggle % \defineseparatorset [ParagraphNumber][.,] % no second

Re: [NTG-context] Could you look at this?

2017-08-08 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 07 Aug 2017 13:57:56 -0600, Wolfgang Schuster wrote: Simpler version: \defineseparatorset [ParagraphNumber][.,] \definecounter[ParagraphNumber][numberseparatorset=ParagraphNumber,criterium=all] \define\ParagraphNumber {\incrementcounter[ParagraphNumber]% \convertedcounter[Paragra

Re: [NTG-context] Could you look at this?

2017-08-08 Thread Idris Samawi Hamid ادريس سماوي حامد
On Tue, 08 Aug 2017 08:13:22 -0600, Idris Samawi Hamid ادريس سماوي حامد Here is a first attempt to combine this paragraph numbering with sectioning: \defineseparatorset [ParagraphNumber][.,] % no second decimal for susubparagraphs % \defineseparatorset [ParagraphNumber][.,.] % second

Re: [NTG-context] Could you look at this?

2017-08-08 Thread Idris Samawi Hamid ادريس سماوي حامد
On Tue, 08 Aug 2017 22:14:15 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: Wikified by Pablo: http://wiki.contextgarden.net/Paragraph_Enumeration#Using_Section_Numbering_to_Improve_Paragraph_Numbering And coming soon to a beta near you: http://wiki.contextgarden.net/Titles

Re: [NTG-context] show bounding boxes

2017-08-24 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Herbert, On Wed, 23 Aug 2017 02:18:34 -0600, Herbert Voss wrote: Hello all, is it possible to get additional frames around words and the whole line? \definefontfeature[default][default][boundingbox=frame] \starttext »Tee for Two« shows negative kerning. \input sapolsky \stoptext Cur

[NTG-context] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد
Der gang, For the following \definefont scenario, the footnote symbol in the main text is not raised: === \setuppapersize[letter][letter] % \setupbodyfont[schola,12pt] \definefont[PagellaRegular] [texgyrepagella-regular.otf at 14pt] \definefont[PagellaRegularSmall][texgyrepagella-reg

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear Pablo, On Thu, 16 Nov 2017 10:47:13 -0700, Pablo Rodriguez wrote: On 11/16/2017 06:11 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: What do we need to do to get a raised footnote symbol in the main text (line 6 of the pdf)? Thanks in advance. BTW, I mixed the number which had to be

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 16 Nov 2017 11:11:50 -0700, Pablo Rodriguez wrote: On 11/16/2017 06:57 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Thu, 16 Nov 2017 10:47:13 -0700, Pablo Rodriguez wrote: [...] You should rewrite your \setupnote command in the following way: \setupnote[footnote

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 16 Nov 2017 11:40:40 -0700, Pablo Rodriguez wrote: On 11/16/2017 07:18 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Yes, but the point of this scenario is to do everything with \definefont. pagella is just for purposes of a MWE: otherwise the scenario calls for using a font that

Re: [NTG-context] Setting the footnote symbol

2017-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد
On Fri, 17 Nov 2017 13:06:02 -0700, Pablo Rodriguez wrote: With average user, I mean I don’t fully understand the code that I read (and I cannot write code for ConTeXt [either TeX or Lua]). Otherwise, I would be contributing code to ConTeXt. But what you contribute by answering and helping is

[NTG-context] Midsentence alias

2018-02-11 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Midsentences in the ConTeXt sense are quite common. Consider the following: === \setuplanguage[en] [leftsentence={{} \endash\nobreakspace}, rightsentence={{} \endash\nobreakspace}, leftsubsentence={{} \textbar\nobreakspace}, rightsubsentence={{} \textbar\nobreakspace}, midsent

Re: [NTG-context] Midsentence alias

2018-02-11 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 11 Feb 2018 09:56:40 -0700, Hans Hagen wrote: On 2/11/2018 5:20 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Is there an analogous symbol for a midsentence, which requires a mark only at its beginning? |=| Excellent! -- Idris Samawi Hamid, Professor Department of Philosophy

[NTG-context] Table of contents: style and subject

2018-03-03 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Here's a strange situation: In approach I) we get the subject heading in the TOC, but style=bold doesn't work. In approach II) style=bold works, but the subject heading doesn't show up. For each approach, how do we get both subject heading and style=bold in the TOC? Between I

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 04 Mar 2018 02:47:17 -0700, Hans Hagen wrote: On 3/4/2018 4:27 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Here's a strange situation: In approach I) we get the subject heading in the TOC, but style=bold doesn't work. In approach II) style=bold work

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 04 Mar 2018 06:29:53 -0700, Hans Hagen wrote: A working minimal example follows. Is this the recommended practice? Can it be streamlined further? : \placecontent \placelist[content] [subject,section,subsection,subsubsection] Hm, toggling lines 12-13 below: Line 13 makes the T

[NTG-context] ANNOUNCEMENT: Notepad++ for ConTeXt - Version 0.98

2018-03-05 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear ConTeXt gang, A continuing desideratum for ConTeXt is a user-friendly writing and editing environment, where the range of application of the category “user-friendly” includes especially non-experts in programming or software development. The lack of such an environment is one factor th

[NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Consider the following: == \starttext \startframedtext[width=fit,frame=off,offset=0pt] % \startlocalfootnotes[n=2] \startlocalfootnotes \input ward \startfootnote \input ward \stopfootnote \placelocalfootnotes \stoplocalfootnotes \stopframedtext \stoptext ==

Re: [NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 25 Mar 2018 09:29:01 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 25. März 2018 um 17:04 Dear gang, Consider the following: == \starttext \startframedtext[width=fit,frame=off,offset=0pt] % \startlocalfootnot

Re: [NTG-context] How to setup the footnote number in local footnotes

2018-03-26 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 25 Mar 2018 16:34:08 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 26. März 2018 um 00:24 2) Alternatively, would like to be able to define a conversion that sets the footnote numeral to 2. 3) Uncommenting th

[NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Just put together a macro that appears to do what's desired. However, is there a cleaner, more ConTeXt-like way to do this? === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQ

[NTG-context] Conversion of \newcounts

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Related to the last thread ("Numbered, counted snippets in running text"). Let us consider the same macro: === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT} \NR \NC #1 \NR

Re: [NTG-context] Conversion of \newcounts

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 19 May 2018 16:40:13 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 20. Mai 2018 um 00:30 Dear gang, Related to the last thread ("Numbered, counted snippets in running text"). Let us conside

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 19 May 2018 16:47:34 -0600, Henri Menke wrote: On 05/20/2018 09:34 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Just put together a macro that appears to do what's desired. However, is there a cleaner, more ConTeXt-like way to do this? === \newcount \MQT \

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Idris Samawi Hamid ادريس سماوي حامد
] \starttext \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stoptext Wow.. many thanks! Idris Wolfgang Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 19. Mai 2018 um 23:34 Dear gang, Just put together a macro that appears to do what's desired. However, is ther

[NTG-context] bidi protocols

2018-06-06 Thread Idris Samawi Hamid ادريس سماوي حامد
Greetings, mtx-context | current version: 2018.06.02 22:34 In the following, bidi does not work: === \setupdirections[bidi=global] \starttext \definedfont[file:almfixed.otf*arabic at 14pt] Test امتحان test \righttoleft Test امتحان test \stoptext === See attached. This used to wor

[NTG-context] Breaking ligatures

2013-03-20 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear Knights, What is the canonical way to break a ligature in MkIV? The canonical TeX way, e.g. f{}i does not work if the feature liga=yes. The zero-width joiner or non-joiner will do it but that seems ad hoc or abusive ;-) since those are really for cursive scripts like Arabic and Syr

Re: [NTG-context] Breaking ligatures

2013-03-20 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 20 Mar 2013 14:22:31 -0600, Hans Hagen wrote: quite a claim ... afaik devanagari also needs them Ah, interesting! anyhow, just don't enable ligatures if in doubt (some fonts have language dependent ligatures) ... it's somewhat arbitrary to have only 'f' related ligs anyway On W

[NTG-context] wiki page for \feature

2013-03-21 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, I made a wiki page for \feature et al: http://wiki.contextgarden.net/Open_Type_Fonts_and_Featuresets_in_MkIV Towards the end we need a graphical sample of the sample file, but I do not know how to do that. See === Now let us review the results: [output/graphic here] ===

[NTG-context] Representing TeX on the web [Off-topic]

2013-03-30 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, My apologies if the answers to the following are already well-known and if I'm being completely clueless: What is the standard way of representing the symbol '\TeX' in html and the like? Related: Is there any movement to have '\TeX' registered as a Unicode symbol? Thanks in

Re: [NTG-context] Representing TeX on the web [Off-topic]

2013-03-31 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 30 Mar 2013 23:34:11 -0600, Arthur Reutenauer wrote: Related: Is there any movement to have '\TeX' registered as a Unicode symbol? I really hope not. Why not? Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 805

Re: [NTG-context] Representing TeX on the web [Off-topic]

2013-03-31 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 30 Mar 2013 23:34:11 -0600, Arthur Reutenauer wrote: ^^ Time travel ;-) TEX On Sun, 31 Mar 2013 00:14:52 -0600, Khaled Hosny wrote: span.TEX {letter-spacing: -0.1em;} span.TEX span.E {left: -0.04em; position: relative;top: 0.5ex;} TEX On Sun, 31 Mar

[NTG-context] tikz-cd - commutative diagrams

2013-04-15 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, The tikz module works, as per the attached attached test file. I need some commutative diagrams and found something relatively recent and interesting: http://www.ctan.org/pkg/tikz-cd But \input'ing the file tikz-cd.tex after the tikz module does not work; I get an undefined cont

Re: [NTG-context] Non-breaking spaces

2013-04-17 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Hans, These commands are good to know! On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen wrote: \narrownobreakspace If a font does not have U+202F defined, what's the best way to redefine this to, say, one half of the current font's regular space U+0020 (with no shrinking or stretching

Re: [NTG-context] Non-breaking spaces

2013-04-17 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 17 Apr 2013 07:56:41 -0600, Hans Hagen wrote: On 4/17/2013 3:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Hans, These commands are good to know! On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen wrote: \narrownobreakspace If a font does not have U+202F defined, what&#

Re: [NTG-context] Non-breaking spaces

2013-04-17 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi, On Wed, 17 Apr 2013 01:08:30 -0600, H. Özoguz wrote: How to make it non-breaking? See also my reply to Hans, basically you need a \penalty1 (See TeXBook, page 353, 110) Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collin

Re: [NTG-context] Non-breaking spaces

2013-04-17 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 17 Apr 2013 08:51:37 -0600, Hans Hagen wrote: \defineactivecharater + {\narrownobreakspace} و+الباب (untested, but on my list) But per the current definition I should be able to define U+"202F as, e.g., .7ex in the font and get the same effect, right? why make a character active a

Re: [NTG-context] Non-breaking spaces

2013-04-17 Thread Idris Samawi Hamid ادريس سماوي حامد
[no cc] On Wed, 17 Apr 2013 09:35:43 -0600, Hans Hagen wrote: On 4/17/2013 5:28 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: (Eventually I have to port the ConTeXt support package for Npp to a lexer/plugin where I can define these things explicitly, but first I need someone who knows

Re: [NTG-context] Adobe Garamond Problems with letter combination "fi"

2013-04-26 Thread Idris Samawi Hamid ادريس سماوي حامد
Greetings, Keith, Thomas, and all, On Fri, 26 Apr 2013 10:43:59 -0600, Thomas A. Schmitz wrote: if you look at the books of decent publishers, you will see that most of them still use ligatures (most American university presses, Oxford and Cambridge, German publishers such as Reclam etc.

Re: [NTG-context] Arabic typesetting, one more

2013-05-11 Thread Idris Samawi Hamid ادريس سماوي حامد
Salaam, Huseyin, I missed this and other threads, it's been busy here... On Tue, 07 May 2013 23:35:25 -0600, H. Özoguz wrote: But with traditionalarabic it is worse than with arabtype. What could be a way to fix this? Traditional Arabic is a uniscribe-compliant font, but not a fully openty

Re: [NTG-context] font trickery

2013-05-14 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Hans, On Tue, 14 May 2013 12:01:36 -0600, Hans Hagen wrote: I'm on-and-off working on the more technical font manual and in the process also check some old code i've laying around (deciding on what to include and not). I'm also revising the tracer styles. Which makes me wonder: are the

Re: [NTG-context] font trickery

2013-05-15 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Georg, On Wed, 15 May 2013 00:09:22 -0600, Georg Duffner wrote: I’d prefer to stay with the AFF syntax which is well established. I wonder if the latest, virtually frozen FontForge supports the current AFF syntax or still uses an earlier version. Before AFF was complete George adde

[NTG-context] \textwidth vs local

2013-05-17 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Is there a \dimen variable for the local key for the width of a text column? Take a look at the attached pdf: Clearly local is different from \textwidth and \makeupwidth. = \starttext \framed[width=\textwidth,frame=on]{\type{\textwidth}} \framed[width=\makeupwidth,fra

Re: [NTG-context] \textwidth vs local

2013-05-17 Thread Idris Samawi Hamid ادريس سماوي حامد
This is an *immense* help... Thanks a million!! Best wishes Idris On Fri, 17 May 2013 17:08:15 -0600, Hans Hagen wrote: \showframe \startbuffer \setlocalhsize \dontleavehmode\framed[width=\hsize] {\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{\hsize }} \par \dontleav

Re: [NTG-context] font trickery

2013-05-17 Thread Idris Samawi Hamid ادريس سماوي حامد
On Fri, 17 May 2013 17:55:10 -0600, Hans Hagen wrote: indeed. however the biggest challenge in patching a font runtime is where to inject the patches in the look up sequence ... Indeed, I was thinking exactly the same thing! It needs some thought... The simplest and safest idea may be to s

[NTG-context] Commutative diagrams in tikz-cd: for wiki

2013-05-25 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, With a couple of modifications I got tikz-cd (a package to make commutative diagrams for categories and toposes etc. by Florêncio Neves) working in mkiv: http://texdoc.net/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf It depends on the tikz module, already supported in mkiv. The

Re: [NTG-context] Font problems

2013-05-31 Thread Idris Samawi Hamid ادريس سماوي حامد
Salaam, Huseyn, On Fri, 31 May 2013 07:24:20 -0600, H. Özoguz wrote: With the font file "maddina.ttf" I have the same problems. But this font is clearly not broken, you can download it here: http://www.searchfreefonts.com/free/quran-madina.htm (or see attachment of this mail). But is t

Re: [NTG-context] Font problems

2013-05-31 Thread Idris Samawi Hamid ادريس سماوي حامد
Salaam Huseyin, If you have not done so already, you can also try the Quran fonts listed at the bottom of this page: http://al-quran.info/page/about Scheherazade you are already familiar with. I have not done much testing of the others but they are all OT I believe. Best wishes Idris --

Re: [NTG-context] Hebrew vowel placement in ConTeXt.

2013-06-17 Thread Idris Samawi Hamid ادريس سماوي حامد
Greetings, Michael, On Mon, 17 Jun 2013 10:15:11 -0600, Michael Ash wrote: Is there a standard way to send unicode text to this list? Your Unicode text came through perfectly: \textdir TRT \hebrew לָכֵן חַכּוּ־לִי נְאֻם־יְהוָה לְיוֹם קוּמִי לְעַד כִּי מִשְׁפָּטִי לֶאֱסֹף גּוֹיִם לְקָב

Re: [NTG-context] Hebrew vowel placement in ConTeXt.

2013-06-17 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 17 Jun 2013 10:31:12 -0600, Michael Ash wrote: Also it's typesetting fine in ConTeXt except for the vowel placement. Any suggestions there? Thank you again. You probably need the opentype features activated. Ezra has two features from what I can tell, so try something like this

Re: [NTG-context] Typesetting Classical Arabic Poetry

2013-08-24 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi JR, On Fri, 23 Aug 2013 15:12:54 -0600, J. R. Schmid wrote: for better or worse, I'm trying to typeset Arabic poetry in ConTeXt For better :-) after having become fed up with LaTeX for a variety of reasons. Arabic script itself is not a problem and I already love how easy it is to use

[NTG-context] zero-width joiners etc

2013-08-29 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Does anyone here remember how to toggle Unicode control characters like the zero-width joiners, non-joiners etc? For example, some fonts map the control character to a symbol but we usually don't want that symbol showing up in normal text output. I know there is (used to be?) a s

Re: [NTG-context] zero-width joiners etc

2013-08-29 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 29 Aug 2013 13:09:22 -0600, Hans Hagen wrote: \setcharacterstripping[1] (experimental code ... probably never used) It works and thanks!! Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 _

[NTG-context] Arabic and Latin hemistiches

2013-08-29 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Re: Arabic poetry thread: Hans has just implemented high-level support for hemistiches and caesuras (using here the technical names for the style of poetry structure used in Arabic and other classical literature). http://en.wikipedia.org/wiki/Hemistich http://en.wikipedia.org/wi

Re: [NTG-context] Arabic and Latin hemistiches

2013-08-29 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 29 Aug 2013 19:07:48 -0600, J. R. Schmid wrote: That's what I understood from the ConTeXt Standalone wiki page, and also why I'm so confused about this - my Standalone installation is brand new, and I started it roughly 3 hours after Hans' post about the new module. I just ran firs

[NTG-context] ConTeXt in the cloud

2013-08-30 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Since I work with context at both my home and my work machines, I'm thinking of moving my context tree to dropbox and just keeping that one tree updated. Have any of you tried something like this, and are there any unforeseen issues that could arise? Or are there any other thou

Re: [NTG-context] Kashide in ConTeXt

2013-09-11 Thread Idris Samawi Hamid ادريس سماوي حامد
Salaam, Vafa,On Tue, 10 Sep 2013 09:34:23 -0600, Vafa Khalighi wrote:it is about stretching words.It can be done manually, of course, by just manual insertions of U+0640. Did you mean something else by 'manual'?As for automatic, it is in the pipeline and my hope is it will be done by Spring if no

Re: [NTG-context] Bug in inframed

2013-09-12 Thread Idris Samawi Hamid ادريس سماوي حامد
Salaam, On Thu, 12 Sep 2013 06:09:46 -0600, H. Özoguz wrote: I found the following bug in \inframed, getting problems with inframing arabic words, try the following example \definefont[arab][name:arial*arabic at 18pt] \define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}} \starttext \awort{بِال

[NTG-context] ConTeXt epub workflow

2014-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, I have an urgent project that needs three outputs: pdf, epub, and kindle. The formatting needs are pretty basic. In your experience: What is the recommended, more efficient workflow for this sort of thing? Should I start with markdown and then generate context and epub (then co

Re: [NTG-context] ConTeXt epub workflow

2014-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 02 Jul 2014 15:12:10 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: What is the recommended, more efficient workflow for this sort of thing? Should I start with markdown and then generate context and epub (then convert epub=>kindle I presume)? Or does one context file w

[NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, How do we activate/control whitespace (and indenting) within framed texts? The following seems to fail: == \setupframedtexts [frame=off, location=middle, before={\blank[medium]\setupwhitespace[medium]}, after={\blank[medium]}] \setupwhitespace[medium] \setupindenting[y

Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 13 Jul 2014 16:35:32 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: See attached. Attached -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80523 framedtexts.pdf Description: Adobe PDF document

Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 13 Jul 2014 16:46:00 -0600, Aditya Mahajan wrote: On Jul 13, 2014, at 6:35 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, How do we activate/control whitespace (and indenting) within framed texts? The following seems to fail: == \setupframedtexts

[NTG-context] ANNOUNCEMENT: Arabic-Latin Modern Fixed

2014-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد
[This announcement is dedicated to the 110% recovery and return of our visionary and fearless leader Hans Hagen: Three cheers to you, Hans!!!] Dear gang, It's my pleasure to announce the release of Arabic-Latin Modern Fixed, a monospaced font that extends TeX-Gyre Latin Modern Mono 10 Regula

[NTG-context] Using TABLE in a definition etc.

2014-08-16 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, I'm trying to setup a definition that uses a natural table and could use some guru help. Here is what I have so far: === \def\Glyphbox{% \setupframed[frame=off,align=middle,offfset=none] \framed{\cbox{ \bTABLE[align=middle] \bTR \bTD \gulistan#1 \fontchar{#2} \eTD \eTR

  1   2   3   4   >