Re: [NTG-context] Error setting up ConTeXt in MacTeX 2020

2020-09-18 Thread Thomas A. Schmitz
On 18. Sep 2020, at 12:00, Felix Krause wrote: > > The directory name luatex-cache suggests it's used for caching. That doesn’t help a lot. > I interpret the output like „something happens during the generation of the > format file and therefore the file never gets generated“. I don't know

Re: [NTG-context] Error setting up ConTeXt in MacTeX 2020

2020-09-18 Thread Thomas A. Schmitz
> On 18. Sep 2020, at 11:35, Felix Krause wrote: > > Hm. I don't have this directory (not using MacPorts) and my error seems to be > quite different (the scripts to be executed seem to be found). > I dug through the thread but for all I can see, nothing there describes my > problem or a

[NTG-context] columns yet again

2020-09-13 Thread Thomas A. Schmitz
Hi all, I hope everybody made it back home safely after the meeting. It was great listening in, even if I couldn't be there in person, unfortunately! Today's question is an old one, but I'm confused. What I need: two columns, of unequal width, the left column has line numbering; two column

[NTG-context] register entries in footnotes

2020-04-26 Thread Thomas A. Schmitz
A similar question has been asked three years ago, and Rik Kabel posted a partial solution, adapted here: \defineprocessor [Footnote] [right={ n}] \define[1] \fnindex{\index[Footnote->]{#1}} \starttext This is a sentence with a term in the index: cat\index{cat}. This sentence also has an

Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Thomas A. Schmitz
> On 24. Apr 2020, at 18:19, Gerben Wierda wrote: > > \starttext > > \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, > g=0.000, > b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm > [My]\\Application\\(Component)}} > > \stoptext > > and if

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Thomas A. Schmitz
> On 24. Apr 2020, at 09:21, Gerben Wierda wrote: > > > I altready did that earlier as per the Wiki information (did not report it) > and just tried again. No difference. Steps to happiness: 1. Extract the ttc font to ttf 2. Copy the ttf files to your local texmf directory 3. reload the

Re: [NTG-context] Use a counter in a reference?

2020-04-13 Thread Thomas A. Schmitz
On 4/13/20 10:13 PM, Kevin Kenan wrote: I have a need to tag elements in a text in a way that they are sequentially numbered and can have references to refer to them. Something like: Here is some \tag[tagref]{\bf text} that is tagged. . . . Refer to tag

Re: [NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes

2020-04-10 Thread Thomas A. Schmitz
> On 10. Apr 2020, at 14:49, Christoph Hintermüller > wrote: > > Please increase the USB of ConTeXt by improoving the xml/xhtml exporter > backend by allowing modules to hook into it, defining how the contotent > should be processed and what css attributes the corresponding tags > should

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Thomas A. Schmitz
On 05.04.20 15:00, Jairo A. del Rio wrote: I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this:

Re: [NTG-context] Customizing \cite alternatives

2020-02-20 Thread Thomas A. Schmitz
On 20.02.20 14:16, Philipp A. wrote: Makes sense, seems like no default is defined anymore, so it won’t render without using a style. I use apa, and the attached screenshot shows my problem. If you use APA, you have to set up the APA cite options. The manual is a bit on the short side here,

Re: [NTG-context] Customizing \cite alternatives

2020-02-19 Thread Thomas A. Schmitz
It is difficult to answer your question because we don't know which specifications you use for your citations. You will have to provide a minimal example that allows us to see what you're doing. Thomas On 2/17/20 6:26 PM, Philipp A. wrote: Hi List, I want the comma gone from “et al.”

Re: [NTG-context] math font

2020-02-07 Thread Thomas A. Schmitz
> On 7. Feb 2020, at 15:14, Wolfgang Schuster > wrote: > > Does this also happen when you use \definetypeface to set the math font? > > \definetypeface [thomas] [mm] [math] [xits] [default] No, with this change, the warnings are gone. New syntax? Or user error? Thomas

[NTG-context] math font

2020-02-07 Thread Thomas A. Schmitz
Hi all, in my environment file, I have defined a math font: \definefontfamily [thomas] [math] [XITS Math] and as far as I can see in the log file, this font is found: system >9: filename=xits-math.lfg filetype=tex

Re: [NTG-context] line numbering within frame

2020-01-26 Thread Thomas A. Schmitz
On 25.01.20 19:17, Wolfgang Schuster wrote: Before I give the answer to the question we have to go back to a few TeX/ConTeXt basics. Wolfgang, thank you for this careful and helpful reply. It really made me understand what is going on here. At the same time, I also feel a bit more

Re: [NTG-context] line numbering within frame

2020-01-24 Thread Thomas A. Schmitz
> On 23. Jan 2020, at 12:45, Tomas Hala wrote: > > Hi Thomas, > > move definitions and setups for Three and Four before the use of \framed. > (With TL2019 works.) > > Wishes, > > Tomáš Thank you for the hint - we’re still waiting for an answer to Wolfgang’s bonus question. But I have

Re: [NTG-context] line numbering within frame

2020-01-23 Thread Thomas A. Schmitz
> On 23. Jan 2020, at 22:32, Wolfgang Schuster > wrote: > > > Bonus question: Why is it necessary to put \definelinenumbering before > \framed? > > Wolfgang I would be grateful for an answer because I have no clue ;-) In my real life case, I fetch the content of the frame from an xml

[NTG-context] line numbering within frame

2020-01-23 Thread Thomas A. Schmitz
Hi all, I want line numbering within a framed environment, and I need two (at least) independent numbering systems. I hit a similar problem in 2016, and Wolfgang provided a solution (defining different numbering environment). However, this does not work within a frame. The example shows the

Re: [NTG-context] Hyphenation LuaTeX

2020-01-17 Thread Thomas A. Schmitz
On 17.01.20 12:55, Henning Hraban Ramm wrote: I suspect "patterns" understands only one file, as far as I understood the source, but don’t trust me on this. When you mark your Greek passages with {\agr ἡ Ἑλληνικὴ γλῶσσα} (or \language[agr] instead of \agr), you should get the right pattern

Re: [NTG-context] beta 2019.12.02 18:38 fails to build format

2019-12-04 Thread Thomas A. Schmitz
> On 4. Dec 2019, at 15:33, Hans Hagen wrote: > > it means that your binary doesn't match the tex files (it is a new feature, > mentioned a few days before at this list) OK, I see - after wiping everything and a fresh download, lmtx works again - there is a problem with line breaks, I’ll

[NTG-context] beta 2019.12.02 18:38 fails to build format

2019-12-04 Thread Thomas A. Schmitz
Hi all, has this already been reported? On my macOS machine, the latest lmtx beta fails to build the format with this error: tex error > tex error on line 99 in file hand-ini.mkxl: ! Undefined control sequence ...ansion :\currentexpansion }{\adjustspacingstep

Re: [NTG-context] How to get attribute value from xml tag?

2019-10-20 Thread Thomas A. Schmitz
> On 20. Oct 2019, at 16:05, Geert Verhaag wrote: > > The \xmlfirst{#1}{distance} yields 20, but how can the unit attribute value > km be accessed? > > Gerard > > \xmlattribute{#1}{/distance}{unit} (probably, you need to make a real example. See xml-mkiv.pdf, chapter 3.6) Thomas

[NTG-context] arrows in FLOW charts

2019-10-07 Thread Thomas A. Schmitz
Hi all, I may be missing something really obvious: is it possible to change the shape of single connection lines in the flowchart module? Let’s say in the following example, I want the connection between test2 and test3 dashed and blue. Can this be done? Thanks, and best wishes Thomas

Re: [NTG-context] beta

2019-09-30 Thread Thomas A. Schmitz
On 29.09.19 16:31, Hans Hagen wrote: Hi, A week ago we had the (nice and pleasant) annual context meeting and as usual some new stuff has been presented there which was not yet in the distribution at that moment. Some pending code is now being moved into the distribution. Part is font

Re: [NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Thomas A. Schmitz
On 9/23/19 4:12 PM, Fabrice Couvreur wrote: Hello, I can not change the font size of my figures in the table. Thank you Fabrice Does changing \usecolors [xwi] to \usecolors [ema] help? All best Thomas ___

Re: [NTG-context] about SimpleSlides

2019-08-02 Thread Thomas A. Schmitz
On 7/30/19 8:06 AM, Atsuhito Kohda wrote: Hi all, SimpleSlides is very useful for novice users so I do use it. But I encountered few problems which, I'm afraid, might be known. Hi, sorry, I'm on my vacation right now; I'll look into this in two weeks, when I'm back home. All best Thomas

[NTG-context] mapping seeregister command to xml

2019-07-04 Thread Thomas A. Schmitz
Hi, I'm having trouble mapping the seeregister command to an xml setup. Example (looks somewhat messy, but explains why I need it): \startbuffer[test] This is a test. IGRR 4, 988sort="IGRR4+988" target="TAM 2 677">IGRR 4+988 = TAM 2, 677sort="TAM2+677">TAM 2+677 \stopbuffer

Re: [NTG-context] two (2) questions about footnotes

2019-05-27 Thread Thomas A. Schmitz
On 05/27/2019 09:35 AM, Hans Hagen wrote:   Test1: \index{Adam}Adam. \footnote{Test2: \index{Eve}Eve.} \footnote[note:abel]{Test3: \index[Abel]{Abel in \in{note}[note:abel]}Abel.} \page \placeregister [index] \stoptext Ah excellent, thanks a lot, that makes everything clear! All

[NTG-context] two (2) questions about footnotes

2019-05-27 Thread Thomas A. Schmitz
Hi all, I have two questions/problems about footnotes. Here is a minimal example, which does not compile in this form: \unexpanded\def\MyRule{\blackrule[width=\textwidth,height=3pt]} \setupfootnotes[rule=\MyRule] \starttext Test1: \index{Adam}Adam.\footnote{Test2: \index{Eve}Eve.} \page

Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Thomas A. Schmitz
On 5/17/19 12:41 PM, Dmitry Starostin wrote: I tried several variants, but I cannot find where exactly the switch happens. \definebtx[apa:list:title:incollection][apa:list:title][style=] \definebtx[apa:list:title:book][apa:list:title][style=] \definebtx[apa:list:journal][apa:list][style=]

Re: [NTG-context] PDF output routine in lmtx

2019-04-30 Thread Thomas A. Schmitz
> On 29. Apr 2019, at 11:46, Christian Prim wrote: > > Hi > > in lmtx the pdf output routine has changed afaik. I just wanted to report, > that in lmtx our printer/copier (Ricoh 8200S or Ricoh 8110S) doesn't print > any character. A standard document as the MWE prints well under mkiv. Under

Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Thomas A. Schmitz
> On 3. Apr 2019, at 10:56, Henning Hraban Ramm wrote: > > Thank you – it’s not only a German habit, even if we pronounce it “folgende”, > “f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was > usual in mediaeval Latin. > So, this is at least used in English, German,

Re: [NTG-context] Welcome to LMTX

2019-04-02 Thread Thomas A. Schmitz
On 02.04.19 11:34, Rudolf Bahr wrote: whereis mtxrun gives: mtxrun: /home/sam/context/tex/texmf-linux-64/bin/mtxrun whereis context gives: context: /usr/local/context /home/sam/context/tex/texmf-linux-64/bin/context Hmm - you're still using your old context, it should say

[NTG-context] environment variable for runtime

2019-02-27 Thread Thomas A. Schmitz
Hi, I would like to typeset the runtime information that context displays at the end of typesetting: mkiv lua stats > runtime: 174.639 seconds, 913 processed pages, 913 shipped pages, 5.228 pages/second system | total runtime: 526.583 seconds Is this stored in any environment

Re: [NTG-context] New logo proposal

2019-01-30 Thread Thomas A. Schmitz
On 1/30/19 1:50 PM, Willi Egger wrote: I would say, that the multicolor version is dissecting the word ConTeXT to unidentifiable crumbles. It is to my taste to less connected to typesetting, herewith agreeing partly with Clyde. It is useless to argue about taste, but it may be of interest to

Re: [NTG-context] Sorting registers method for "uppercase like lowercase, diacritics ignored"

2019-01-20 Thread Thomas A. Schmitz
On 20.01.19 21:59, Marcus Vinicius Mesquita wrote: Well, I tried all possible permutations thereof, and also the predefined methods, and none gives what my editor wants, which is just "uppercase like lowercase, diacritics ignored". See MWE attached. Please, would somebody help me achieve the

[NTG-context] final thoughts on experiments with lua

2019-01-09 Thread Thomas A. Schmitz
I've finished testing my lua script, and it does exactly what I need. I think I'll write a small article about it for one of the next context group proceedings, but wanted to just give a very brief summary that might be of interest to some: Pure Lua is wonderful, but as the language is

Re: [NTG-context] further experiments with lua

2019-01-09 Thread Thomas A. Schmitz
On 1/9/19 9:47 AM, Hans Hagen wrote: mtxrun has al the basic modules in it but not the character ones (thinking of it, i can add an autoload for that, maybe i should do that) so you need: require "char-ini" Hans, Luigi, thanks a lot, that solves it! Maybe autoload or at least a small hint

[NTG-context] further experiments with lua

2019-01-08 Thread Thomas A. Schmitz
Hi Hans, I'm doing some further experiments with the utf and lpeg libraries. This code fails, and I don't understand why: local s = "Ä" print(characters.uccode(s)) mtxrun --script test.lua ./test.lua:3: attempt to index global 'characters' (a nil value) Thomas

Re: [NTG-context] papersize problem with latest beta

2019-01-07 Thread Thomas A. Schmitz
> On 7. Jan 2019, at 17:07, Hans Hagen wrote: > > i uploaded a fix Sorry, didn’t see the new upload. Thanks, issue is fixed! Thomas ___ If your question is of interest to others as well, please add an entry to

[NTG-context] papersize problem with latest beta

2019-01-07 Thread Thomas A. Schmitz
Hi Hans, the latest and greatest (2019.01.07 10:07) has a problem with papersizes. MWE: \setuppapersize[A6] \showframe \starttext Hello world \stoptext All best Thomas ___ If your question is of interest to

Re: [NTG-context] lua lpeg + utf8

2019-01-06 Thread Thomas A. Schmitz
On 06.01.19 23:08, Hans Hagen wrote: what do you mean with "running luatex alone" ; you can run scripts with mtxrun --script yourscript foo.txt (or do you mean something different) Hi Hans, thanks, this is what I meant! I guess I was trying to reinvent the wheel and doing things in pure

Re: [NTG-context] lua lpeg + utf8

2019-01-06 Thread Thomas A. Schmitz
On 06.01.19 19:20, Wolfgang Schuster wrote: \starttext \startluacode print("abcdeφὴὰabcde") local remap = utf.remapper { a = "y", c = "z", ὴ = "ή", ὰ = "ά" } print(remap("abcdeφὴὰabcde")) \stopluacode \stoptext Wolfgang, thank you, I should have looked into this manual! Is there an easy

[NTG-context] lua lpeg + utf8

2019-01-06 Thread Thomas A. Schmitz
Hi everybody, best wishes for (the still new) 2019! My question is not strictly a ConTeXt problem, but about the way luatex (and pure Lua) can handle utf8 in lpeg. Here is my Lua example: mystring = "abcdeφὴὰabcde" local replace_table = { a = "y", c = "z", ὴ = "ή", ὰ = "ά", }

Re: [NTG-context] book

2018-12-20 Thread Thomas A. Schmitz
On 12/16/18 2:45 PM, Andrea Valle wrote: sorry https://www.logos-verlag.de/cgi-bin/engbuchmid?isbn=4466 This looks very interesting, from a typographical point of view. How did you create the music notation examples? Would it be

Re: [NTG-context] Issues using publications subsystem for non-bibliographic database

2018-12-08 Thread Thomas A. Schmitz
On 08.12.18 20:50, Alan Braslau wrote: In my incremental development, I place a bibliography at the end of a chapter, part, or even section - there is no need for this to be backmatter. Using modes, these then can remain or not be rendered as design advances. I've been following this thread

[NTG-context] regression in bib system

2018-12-05 Thread Thomas A. Schmitz
Hans, Alan, I'm experiencing a regression with bibliographies in the latest beta (2018.12.01 13:20). I haven't been able to reduce it to a MWE yet, but here's what I get from my bibliographic files: compilation hangs with this message: close source> level 2, order 8, name

Re: [NTG-context] ConTeXt source from XML

2018-10-23 Thread Thomas A. Schmitz
> On 23. Oct 2018, at 10:43, Hans Hagen wrote: > > examples ... i thought that there is a kind of error message on the console > (at least in a tex run) Yes, I often get errors like “can’t close tag with on line .” But I don’t know in which situations these messages pop up and when

Re: [NTG-context] wrong hyphenation in ancient Greek?

2018-10-13 Thread Thomas A. Schmitz
On 13.10.2018 10:05, Pablo Rodriguez wrote: As far as I know, two consonants in ancient Greek aren’t hyphenated, when they may begin a word. Γν may be the beginning of word in Greek (such as γνῶσις), but even LSJ has no word that begins with γμ. Am I missing something or should this be

[NTG-context] tex-gyre fonts missing in 2018.07.02 14:39

2018-07-04 Thread Thomas A. Schmitz
Hi Hans, is it possible that you forgot to include the texgyre fonts in the latest beta? I just realized that the directory experimental/tex/texmf/fonts/opentype/public/tex-gyre is missing… (and my documents are in latin modern) All best Thomas

Re: [NTG-context] xml, language, btx problems

2018-06-18 Thread Thomas A. Schmitz
sometimes you need to do \starttexcode   ... \stoptexcode when inside some special caocode regime (which happens in xml) Hans Hans, thank you - that was the golden hint! It works now as I've always wanted! And I realize once again that I know far less about ConTeXt than I wished and

Re: [NTG-context] xml, language, btx problems

2018-06-18 Thread Thomas A. Schmitz
Hi Alan, thanks for joining the discussion! Just to answer your two queries about my setup: On 06/18/2018 12:58 AM, Alan Braslau wrote: Thomas, Why would the definitions need to be loaded before \starttext? The bibliographic data can be loaded independent of any rendering or use

Re: [NTG-context] xml, language, btx problems

2018-06-17 Thread Thomas A. Schmitz
On 06/17/2018 09:37 PM, Pablo Rodriguez wrote: Hi Thomas, this may work in your case: \startxmlsetups xml:document \mainlanguage[\xmlatt{#1}{language}] \doifmodeelse{**en} {\usebtxdefinitions [english]} {\usebtxdefinitions [deutsch]} \stopxmlsetups I have just

[NTG-context] xml, language, btx problems

2018-06-17 Thread Thomas A. Schmitz
Hi, I have a conceptual problem integrating btx into my xml workflow. There are too many files involved, so no minimal example, but a minimal description. Root of my xml document: ... I have two files with btx definitions: publ-imp-deutsch.mkvi publ-imp-english.mkvi Loading one of

Re: [NTG-context] Build for Alpine Linux

2018-04-17 Thread Thomas A. Schmitz
On 04/17/2018 05:25 PM, Arthur Reutenauer wrote: I can’t test musl support, but the new code should avoid the problem Thomas experienced. Best, Arthur I haven't had any trouble so far but need to test with another computer, tonight. Thomas

Re: [NTG-context] linux binaries split?

2018-03-24 Thread Thomas A. Schmitz
On 03/24/2018 05:51 PM, Mojca Miklavec wrote: I reverted the change for now until someone can come up with a working command. Arthur's if command -v ldd >/dev/null && ldd --version 2>&1 | fgrep -q '^musl' works for me, but again, there may be other corner cases that we don't see now. I

Re: [NTG-context] linux binaries split?

2018-03-24 Thread Thomas A. Schmitz
On 24.03.2018 14:06, Arthur Reutenauer wrote: Quite possibly the shell makes a difference, but the expression being grepped for really should be protected by quotes. Can you try ldd --version 2>&1 | fgrep -q '^musl' ? Best, Arthur Arthur, with your

Re: [NTG-context] linux binaries split?

2018-03-24 Thread Thomas A. Schmitz
On 24.03.2018 13:32, Mojca Miklavec wrote: The binaries were requested (and provided) by Henri Menke: https://mailman.ntg.nl/pipermail/ntg-context/2018/090611.html From what I understood (maybe I misunderstood) the regular linux binaries would not even work on machines with musl, but maybe

Re: [NTG-context] linux binaries split?

2018-03-24 Thread Thomas A. Schmitz
On 03/24/2018 12:14 PM, luigi scarso wrote: hm, what does command -v ldd >/dev/null && ldd --version 2>&1 say ? ldd (GNU libc) 2.26 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for

[NTG-context] linux binaries split?

2018-03-24 Thread Thomas A. Schmitz
Hi, I wanted to use my minimal installation on arch linux this morning and received this error: Binaries for platform 'linuxmusl-64' are missing. (There is no folder "/mnt/shared/context/tex/texmf-linuxmusl-64/bin") provide a proper tex root (like '. setuptex /something/tex') Looking into

Re: [NTG-context] natural tables to extreme tables

2018-02-28 Thread Thomas A. Schmitz
On 02/28/2018 11:35 PM, Hans Hagen wrote: page 26 of the xtable manual ... you define tagged settings and can use these tag for cells and rows OK Hans, I see that, thanks a lot! But it still means I have to tag the cells/rows? As always, I'm playing with xml and Lua and am trying to write

[NTG-context] natural tables to extreme tables

2018-02-28 Thread Thomas A. Schmitz
Hi, for my experimenting with tables: is there a way to set up individual columns in xtables? Maybe I'm thick tonight, but I couldn't find anything in the manual or the source. If I have this setup \setupTABLE [frame=on,split=repeat] \setupTABLE [column] [1] [width=0.7cm,align=left]

Re: [NTG-context] How to do an inline itemization?

2018-02-28 Thread Thomas A. Schmitz
On 02/28/2018 11:33 AM, Dr. Thomas Möbius wrote: How to do an in-line / in-text itemization? I would like to (i) enumerate something (ii) in the text (iii) but I don't know how. Thank you! Thomas \starttext \startitemize[n,text] \startitem One \stopitem \startitem Two \stopitem

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-20 Thread Thomas A. Schmitz
Hi Otared, > > So my first question is: how can one define one's own « specification », when > modifying built-in specifications is not satisfactory for one's needs, or > does not give the expected result? I work with lots of bibliographies and want my very own styles, and I have indeed

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-18 Thread Thomas A. Schmitz
On 02/18/2018 06:07 PM, Alan Braslau wrote: title={The Cambridge Companion to {\em Ulysses}}, Alan, I think this was Rik Kabel's point: for some scenarios, you cannot avoid to have some sort of context commands in your bibtex file. For a while, I also used biblatex from time to time, so I

Re: [NTG-context] xits-math font problem

2018-02-18 Thread Thomas A. Schmitz
On 02/16/2018 11:57 AM, Hans Hagen wrote: you can look into the cache and see what names.tma mentions (and save the xits bit for later comparison when it fails) as i can't replicate it here i need that info Hans, I have compared the two files names.tma from my laptop (has the error) and my

Re: [NTG-context] xits-math font problem

2018-02-16 Thread Thomas A. Schmitz
On 16.02.2018 08:37, Hans Hagen wrote: can you try mtxrun --script font --reload --force Hans, it's the same problem I reported about a week ago, and in my experience, it recurs intermittently. A reload of the font cache fixes it for a while, but it comes back, and it concerns only XITS

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Thomas A. Schmitz
On 08.02.2018 15:34, Rudolf Bahr wrote: With the use of "\immediate\write" and "\read" in context and the read and write functions in lua I know exactly from where to where the data goes. How to do the same with "context()"? This question is impossible to answer - what is "the same"? Please

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Thomas A. Schmitz
On 02/07/2018 06:39 PM, Rudolf Bahr wrote: Sometimes the necessity could arise to send data from lua to context and answers back to lua. I tried this by using "read" and "immediate\write" commands in context. These commands are described in chapter 21 and 22 of Donald E. Knuth's "The TeXbook".

Re: [NTG-context] Metapost: How to get total number of pages?

2017-11-17 Thread Thomas A. Schmitz
On 17.11.2017 14:02, Procházka Lukáš Ing. wrote: it seems that there is 'PageNumber' variable (macro) available within MP code, maybe introduced by 'StartPage', within MP. How do I get total number of pages or last page number within MP (in Ctx: \totalnumberofpages, \lastpage)? NOfPages If

Re: [NTG-context] ASCII input - non ASCII output

2017-11-08 Thread Thomas A. Schmitz
On 11/08/2017 11:34 AM, Mojca Miklavec wrote: I'm still not arguing that this is the most brilliant idea, but I can totally imagine a Serbian professor wanting to "auto-generate" a Cyrillic version of his book on top of the Latin edition with close-to-zero extra effort. Ok, I can see that this

Re: [NTG-context] ASCII input - non ASCII output

2017-11-07 Thread Thomas A. Schmitz
On 11/07/2017 01:48 PM, Sava Maksimović wrote: Is there a way in context, that for some*text* ascii input (in source .tex file) define mapping in internal tex system ? For example, if i put two ascii characters "dj" in .tex file, can i get cyrillic character "ђ" in .pdf ? And so on, for input

Re: [NTG-context] ligature exceptions

2017-09-27 Thread Thomas A. Schmitz
On 09/27/2017 10:25 PM, Henning Hraban Ramm wrote: Thank you for the suggestion. I tried \replaceword[eka][Auflage][Au{fl}age] \setreplacements[eka] and even converted the german wordlist from the selnolig package, but it doesn’t help. Works here. You'll have to make a real example.

Re: [NTG-context] ligature exceptions

2017-09-27 Thread Thomas A. Schmitz
On 09/27/2017 02:16 PM, Thomas Widmann wrote: That's a nice idea. If something like that existed, it could be used to change 's' to 'ſ' in relevant places, too. This exists, see here: https://www.mail-archive.com/ntg-context@ntg.nl/msg79381.html

Re: [NTG-context] Troubleshooting pdf bookmarks

2017-09-26 Thread Thomas A. Schmitz
On 09/26/2017 12:19 PM, Henning Hraban Ramm wrote: There was \tracebookmarks only in MkII. Isn't that what \enabledirectives[references.bookmarks.preroll] does nowadays? Thomas ___ If your question is of

Re: [NTG-context] abbreviations: \infull always in small caps

2017-09-23 Thread Thomas A. Schmitz
On 23.09.2017 12:40, Henning Hraban Ramm wrote: Ahoi, I’m trying to employ the synonyms mechanism for abbreviations, as documented: \setupsynonyms [style=italic, headstyle=bold, titlestyle=normal, synonymstyle=normal] \abbreviation{Abt.}{Abteilung} \abbreviation{ADN}{Allgemeiner

Re: [NTG-context] Hyphenation with dashes in natural table

2017-09-11 Thread Thomas A. Schmitz
On 09/11/2017 10:23 PM, Rik Kabel wrote: See http://wiki.contextgarden.net/Compound_words. But this page also contains the solution to the original problem: \setbreakpoints [compound] Thomas ___ If your question

Re: [NTG-context] typesetting serial letters in Context

2017-06-13 Thread Thomas A. Schmitz
> On 13. Jun 2017, at 09:53, luigi scarso wrote: > >> Yet there is no x-corres.mkiv. Who can help me out? >> > I don't remember x-corres.mkiv, but > mkiv has a guide > tex/texmf-context/doc/context/documents/general/manuals/xml-mkiv.pdf Yes, typesetting xml in mkiv is

[NTG-context] framedtable frame

2017-05-21 Thread Thomas A. Schmitz
Hi all, I am hitting a slight imperfection in the new framedtable mechanism. Example included; question: is it possible to have the same behavior in cell frames as in the natural table in the third part of my example? Thanks, and best wishes Thomas \starttext \start

[NTG-context] another question about markings

2017-05-08 Thread Thomas A. Schmitz
Aaaand here's another question about markings: how could I compare the value of the top/bottom (or first/last) markings and have the header change accordingly? Example attached, it doesn't do what I (naively) expected it to do. All best Thomas \setuppapersize [A5] \definemarking[Head]

[NTG-context] linenumbers in marking

2017-05-08 Thread Thomas A. Schmitz
Hi all, 5 years ago, on the mailing list, there was a thread started by Pablo Rodríguez (http://www.mail-archive.com/ntg-context@ntg.nl/msg62140.html) about line numbers in headers. Wolfgang Schuster replied that in principle, it's possible to have line numbers in headers, "but it’s not

Re: [NTG-context] (again) index sorting of accented characters

2017-04-27 Thread Thomas A. Schmitz
On 04/27/2017 10:26 PM, Pablo Rodriguez wrote: Could you please confirm the issue? Many thanks for your help, Two remarks: 1. I'm not sure what you're looking for. Do you really want an index that sorts every form of every word as an entry? So that ἐμήν and ἐμοῖς are different words and

Re: [NTG-context] (again) index sorting of accented characters

2017-04-27 Thread Thomas A. Schmitz
On 04/27/2017 07:21 PM, Pablo Rodriguez wrote: I mean, if this is the way, I have other two patches for other two languages in which I have indices. And if I’m wrong, I would like to know how to get right word sorting in registers. Have you played with the different "methods" defined in

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Thomas A. Schmitz
On 24.04.2017 15:11, Procházka Lukáš Ing. wrote: The rectangle drawn is transparent, which is OK. But the text "Test" is not, is it fully red; why? How to specify text to be partially transparent, too? TIA. Best regards, Lukas Wouldn't it be better to define the transparency in ConTeXt

Re: [NTG-context] processing very big tables

2017-04-11 Thread Thomas A. Schmitz
On 11.04.2017 11:53, Thomas A. Schmitz wrote: Hans, just in case it's useful: I have a small test file that shows my problem with linetables. The data comes from xml (of course...), but I have simply captured it in a lua table (in alphabet.lua). Look at p. 4, 10, 11, etc. All best Thomas

Re: [NTG-context] processing very big tables

2017-04-11 Thread Thomas A. Schmitz
On 10.04.2017 17:07, Hans Hagen wrote: don't set it then (line tables are actually able to span pages horizontally) Hans, just in case it's useful: I have a small test file that shows my problem with linetables. The data comes from xml (of course...), but I have simply captured it in a lua

Re: [NTG-context] processing very big tables

2017-04-10 Thread Thomas A. Schmitz
On 10.04.2017 17:07, Hans Hagen wrote: don't set it then (line tables are actually able to span pages horizontally) nope, when I don't set it, I don't get a table typeset... hm, currently not, but i can probably add some features would be awesome, if you have the time! Thomas

Re: [NTG-context] processing very big tables

2017-04-10 Thread Thomas A. Schmitz
On 09.04.2017 15:57, Hans Hagen wrote: \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white]

Re: [NTG-context] processing very big tables

2017-04-09 Thread Thomas A. Schmitz
On 04/09/2017 03:57 PM, Hans Hagen wrote: \starttext \setuplinetable[n=2,lines=25] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white] \setuplinetable[c][1][width=6cm] % ,background=color,backgroundcolor=red,color=white]

[NTG-context] processing very big tables

2017-04-09 Thread Thomas A. Schmitz
Hi all, I need some fundamental advice from experienced users: I'm processing xml and collecting the data in lua tables, which I want to typeset in some sort of table or tabular format. Typesetting requirements are fairly low, just a couple of columns that need to be nicely aligned, with the

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Thomas A. Schmitz
On 19.03.2017 16:56, Pablo Rodriguez wrote: is there any reason not to use the following instead of your way below? for i = 1,n do tex.print("(" .. vecteurX[i] .. ", " .. vecteurY[i] .. ")\\par") end I don't think that this is a good approach. Refer to chapter 11.6 of "Programming in

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Thomas A. Schmitz
On 19.03.2017 16:30, Otared Kavian wrote: I would like to print in a text the values of a array computed in a \startluacode …. \stopluacode combination. How can I do it properly? Please have a look at the example below and its output, which is not satisfactory because the right parenthesis is

Re: [NTG-context] hunting a lua stack error

2017-03-13 Thread Thomas A. Schmitz
On 13.03.2017 21:22, Alan Bowen wrote: The file processes but does not show the “A, B, and C” when interaction is activated. Alan Alan, you had a similar problem a while ago, and I meant to write, but forgot. bibtex disallows some characters in cite keys: "a bibtex key is a sequence of

Re: [NTG-context] TOC in presentations

2017-03-08 Thread Thomas A. Schmitz
On 03/09/2017 06:57 AM, Jose Luis Arellano wrote: Dear list, After learning ConTeXt for a while, I have decided to try to make my own slides, but I will like to use a list of contents in every page. Can anybody post an example or link to start? Have a look at the code in

Re: [NTG-context] Bug in Natural Tables

2017-03-08 Thread Thomas A. Schmitz
On 03/08/2017 03:47 PM, Henri Menke wrote: No, this is Natural Tables. The macros I am using are defined in tabl-nte.mkiv and the header there states You're right, I was too fast with my response. Nevertheless, as you requested, here the same bug with the traditional Natural Table

Re: [NTG-context] Bug in Natural Tables

2017-03-08 Thread Thomas A. Schmitz
On 03/08/2017 10:28 AM, Henri Menke wrote: \starttext \startTABLE[align={lohi,middle}] \NC OSI-Schicht\NC[nx=6] Umsetzung \NC\NR \NC Anwendungsschicht \NC[nx=2,ny=3] SOME/I \NC[nx=2,ny=3] AVB/TSN \NC[nx=2,ny=3] DoIP \NC\NR \NC Darstellungsschicht\NC\NR \NC

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-03-03 Thread Thomas A. Schmitz
On 25.02.2017 21:49, Hans Hagen wrote: xml.attribute(e,"..[tag()='section' or tag()='chapter']","title") with an optional default (there is also p = xml.parent(e) and then you can access p.at.title .. so there are several ways( Hans I am sorry it took me so long to play with this... But it

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Thomas A. Schmitz
On 02/25/2017 09:49 PM, Hans Hagen wrote: xml.attribute(e,"..[tag()='section' or tag()='chapter']","title") with an optional default (there is also p = xml.parent(e) and then you can access p.at.title .. so there are several ways( Excellent, I can work with that! Thanks a lot Thomas

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Thomas A. Schmitz
On 02/25/2017 09:10 PM, Hans Hagen wrote: then you can just use xml.attribute (or lxml.attribute) Yes, exactly: how does something like \xmlattribute{#1}{..[tag()='section' or tag()='chapter']}{title} translate into lua? such as xml.attribute(e, "../../chapter", "title", "")? Thomas

Re: [NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Thomas A. Schmitz
Hans, thanks for your efforts and your help - but I need a lua solution because I have to process my document in lua tables. Thanks Thomas On 02/25/2017 07:30 PM, Hans Hagen wrote: \startbuffer[test] Text Text \stopbuffer

[NTG-context] xml in lua: how to say "ancestor"?

2017-02-25 Thread Thomas A. Schmitz
Hi all, no real example, just snippets, sorry: I need to process xml documents in lua (because I want to collect information in tables). The structure is a bit irregular: Text Text So chapters may or may not have sections. If, on

  1   2   3   4   5   6   7   8   9   10   >