[NTG-context] Re: Local alternative to \input

2024-03-05 Thread Henning Hraban Ramm
Am 04.03.24 um 10:43 schrieb Denis Maier via ntg-context: Hi, Aren’t environments used for setups (and not for textual content). Maybe a buffer may be what you want ? https://wiki.contextgarden.net/Command/startbuffer Yes, buffers are the way to go for (textual) contents, while setups or

[NTG-context] Re: Local alternative to \input

2024-03-04 Thread Denis Maier via ntg-context
] Re: Local alternative to \input With a single environment it seems to work, though when I expand it to multiple, it does not seem to work anymore \starttext SomeText \\ \environment aaa \\ SomeText \\ \environment bbb \\ SomeText \\ \startenvironment aaa \samplefile{lorem} \stopenvironment

[NTG-context] Re: Local alternative to \input

2024-03-03 Thread Jeroen
openvironment > > > > \startenvironment bar > > and this is another piece of text > > \stopenvironment > > > > \stoptext > > An environment is a separate file. > \environment is like \input with a few more checks, e.g. it loads the > file only once.

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
On Mon, 19 Feb 2024 09:45:03 +0800 黄复雄 wrote: > I recommend you to always show missing font markers in PDF documents > with \replacemissingcharacters Or let context throw an error in case a font/char is missing: %% alternative: %% context --errors='*' \enabledirectives [logs.errors=*]

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread 黄复雄
I recommend you to always show missing font markers in PDF documents with \replacemissingcharacters On Mon, Feb 19, 2024 at 12:46 AM Shiv Shankar Dayal wrote: > > Hi all, > > What is the best way to input UTF-8 in LuaMetaTex? If I use the UTF-8 > characters then do not c

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
On Sun, 18 Feb 2024 22:12:25 +0530 Shiv Shankar Dayal wrote: > What is the best way to input UTF-8 in LuaMetaTex? “Best” is subjective. What might be a good way for me might not be your preferred way. LuaMetaTex doesn't care at all *how* you input the characters into your text edi

[NTG-context] Best way to input UTF-8

2024-02-18 Thread Shiv Shankar Dayal
Hi all, What is the best way to input UTF-8 in LuaMetaTex? If I use the UTF-8 characters then do not come out in text with Modern font. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others

[NTG-context] Re: Local alternative to \input

2024-01-04 Thread Henning Hraban Ramm
\environment foo \environment bar \startenvironment foo this is a lot of text \stopenvironment \startenvironment bar and this is another piece of text \stopenvironment \stoptext An environment is a separate file. \environment is like \input with a few more checks, e.g. it loads the file only once. e.g

[NTG-context] Re: Local alternative to \input

2024-01-04 Thread Henning Hraban Ramm
Am 04.01.24 um 17:12 schrieb Jeroen: I have a document that is getting a lot of mark-up instructions for creating tables and placing figures. I would like to move this out of the main text flow. The easiest way would be using \input, but i rather place all this at the bottom of the file

[NTG-context] Re: Local alternative to \input

2024-01-04 Thread Wolfgang Schuster
eroen schrieb am 04.01.2024 um 17:12: I have a document that is getting a lot of mark-up instructions for creating tables and placing figures. I would like to move this out of the main text flow. The easiest way would be using \input, but i rather place all this at the bottom of the file

[NTG-context] Local alternative to \input

2024-01-04 Thread Jeroen
I have a document that is getting a lot of mark-up instructions for creating tables and placing figures. I would like to move this out of the main text flow. The easiest way would be using \input, but i rather place all this at the bottom of the file and just refer to it with something like

[NTG-context] Re: How to input first n lines from file?

2023-12-16 Thread Henning Hraban Ramm
Am 16.12.23 um 22:30 schrieb Joel via ntg-context: With the command `\input file`, I can input the entire contents of `file.tex`. Is there a way to limit it to the first n lines, for instance, something like `\input[10]` file would only input the first 10 lines from `file.tex` and ignore

[NTG-context] How to input first n lines from file?

2023-12-16 Thread Joel via ntg-context
With the command `\input file`, I can input the entire contents of `file.tex`. Is there a way to limit it to the first n lines, for instance, something like `\input[10]` file would only input the first 10 lines from `file.tex` and ignore the rest of the lines. --Joel

[NTG-context] Re: Buffer and \input content as input for \processtokens, etc.

2023-12-06 Thread Hans Hagen
On 12/6/2023 8:26 PM, Jairo A. del Rio wrote: Hi, list! My question is just like that: how do I pass buffers or \input content to \processtokens. What I have done so far: \tolerant\protected\def\foo#={\ifparameter#1\or\oof{#1}\fi} \protected\def\oof#1{<#1>} \startbuffer[ofo] % Outpu

[NTG-context] Buffer and \input content as input for \processtokens, etc.

2023-12-06 Thread Jairo A. del Rio
Hi, list! My question is just like that: how do I pass buffers or \input content to \processtokens. What I have done so far: \tolerant\protected\def\foo#={\ifparameter#1\or\oof{#1}\fi} \protected\def\oof#1{<#1>} \startbuffer[ofo] % Output: Ths not a anymore! Th{i{s {is} not a {question} a

Re: [NTG-context] Can ConTeXt print specific paragraph and sentences from an input file?

2023-01-29 Thread Joel via ntg-context
I've tried to keep all of the input files entirely plain text, as much as possible. The exception is two custom macros used to mark citations that are in the text, \turabian{}{}{} and \ibid{}{}{}. I could find no way of getting around including that in the text, as legally I must include

Re: [NTG-context] Can ConTeXt print specific paragraph and sentences from an input file?

2023-01-26 Thread Hans Hagen via ntg-context
On 1/27/2023 4:22 AM, Joel via ntg-context wrote: Assuming I have an input file with an essay: \starttext \input essay \stoptext Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? depends

[NTG-context] Can ConTeXt print specific paragraph and sentences from an input file?

2023-01-26 Thread Joel via ntg-context
Assuming I have an input file with an essay: \starttext \input essay \stoptext Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? --Joel

Re: [NTG-context] ignore not closed tags in XML input

2022-05-21 Thread Pablo Rodriguez via ntg-context
On 5/19/22 17:33, juh via ntg-context wrote: > Dear Pablo, > > sorry for answering late as I am on holidays learning Spanish in > Salamanca. :-) Many thanks for your reply, Jan-Ulrich. I hope you are enjoying your experience in Spain. > Am Wed, May 18, 2022 at 06:00:20PM +0200 schrieb Pablo

Re: [NTG-context] ignore not closed tags in XML input

2022-05-21 Thread Pablo Rodriguez via ntg-context
On 5/19/22 00:09, Bruce Horrocks via ntg-context wrote: >> On 18 May 2022, at 17:00, Pablo Rodriguez via ntg-context wrote: >> Sorry for explaining myself so poorly. >> >> One of the not irrelevant tasks for me is finding examples of XML code. > > Perhaps you could start by typesetting a technical

Re: [NTG-context] ignore not closed tags in XML input

2022-05-21 Thread Pablo Rodriguez via ntg-context
On 5/18/22 19:14, Thangalin via ntg-context wrote: > Hey Pablo, > >> One of the not irrelevant tasks for me is finding examples of XML code. > > To clarify, XHTML documents /are/ XML documents. XHTML happens to use a > standardized set of XML element and attribute names. All XHTML examples > are

Re: [NTG-context] ignore not closed tags in XML input

2022-05-19 Thread juh via ntg-context
Dear Pablo, sorry for answering late as I am on holidays learning Spanish in Salamanca. :-) Am Wed, May 18, 2022 at 06:00:20PM +0200 schrieb Pablo Rodriguez via ntg-context: > Sorry for explaining myself so poorly. > > One of the not irrelevant tasks for me is finding examples of XML code. As

Re: [NTG-context] ignore not closed tags in XML input

2022-05-18 Thread Bruce Horrocks via ntg-context
> On 18 May 2022, at 17:00, Pablo Rodriguez via ntg-context > wrote: > > > Sorry for explaining myself so poorly. > > One of the not irrelevant tasks for me is finding examples of XML code. Perhaps you could start by typesetting a technical source rather than prose? I suggest trying to

Re: [NTG-context] ignore not closed tags in XML input

2022-05-18 Thread Thangalin via ntg-context
Hey Pablo, > One of the not irrelevant tasks for me is finding examples of XML code. To clarify, XHTML documents *are* XML documents. XHTML happens to use a standardized set of XML element and attribute names. All XHTML examples are also XML examples. > But my worries came from having to

Re: [NTG-context] ignore not closed tags in XML input

2022-05-18 Thread Pablo Rodriguez via ntg-context
On 5/18/22 03:23, Thangalin via ntg-context wrote: > […] > I wanted to write an introduction on how to typeset XML sources with > ConTeXt (at least, in Spanish). > > See: > https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects/ > > It's English, but describes a fair amount of

Re: [NTG-context] ignore not closed tags in XML input

2022-05-17 Thread Thangalin via ntg-context
> I wanted to write an introduction on how to typeset XML sources with > ConTeXt (at least, in Spanish). > See: https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects/ It's English, but describes a fair amount of what you're probably looking to accomplish, and there are all sorts of

Re: [NTG-context] ignore not closed tags in XML input

2022-05-17 Thread Pablo Rodriguez via ntg-context
o download and sanitize over 20 HTML files. > > Which can be done with a couple of command lines. Xmllint usually does a good > job of cleaning up dodgy html input: > > xmllint --html --xmlout > Many thanks for your reply, Taco. Since I have to recursively download the

Re: [NTG-context] ignore not closed tags in XML input

2022-05-16 Thread Taco Hoekwater via ntg-context
eer. > > If I want to typeset the whole book > (https://seumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/), I will > have to download and sanitize over 20 HTML files. Which can be done with a couple of command lines. Xmllint usually does a good job of cleaning up dodgy html input

Re: [NTG-context] ignore not closed tags in XML input

2022-05-16 Thread Pablo Rodriguez via ntg-context
On 5/16/22 17:30, Hans van der Meer via ntg-context wrote: > Can't you use an editor with grep, searching for something like the > pattern ? Many thanks for your reply, dr. van der Meer. If I want to typeset the whole book (https://seumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/), I will

Re: [NTG-context] ignore not closed tags in XML input

2022-05-16 Thread Pablo Rodriguez via ntg-context
On 5/16/22 17:22, mf via ntg-context wrote: > See HTML-tidy, > > https://www.html-tidy.org/ > > it could help you pre-processing your HTML files. Hi Massi, the problem is that they aren’t my HTML files and that this is a very common error. I’m afraid that pre-processing could work for a few

Re: [NTG-context] ignore not closed tags in XML input

2022-05-16 Thread Hans van der Meer via ntg-context
eumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/001.html as > XML input for ConTeXt. > > The problem is that (as many other XML files that I haven’t generated > myself) some and tags aren’t closed, such as in: > > > https://fonts/css?greek; rel="stylesheet"&g

Re: [NTG-context] ignore not closed tags in XML input

2022-05-16 Thread mf via ntg-context
See HTML-tidy, https://www.html-tidy.org/ it could help you pre-processing your HTML files. Massi Il 16/05/22 17:08, Pablo Rodriguez via ntg-context ha scritto: Dear list, I would like to feed https://seumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/001.html as XML input for ConTeXt

[NTG-context] ignore not closed tags in XML input

2022-05-16 Thread Pablo Rodriguez via ntg-context
Dear list, I would like to feed https://seumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/001.html as XML input for ConTeXt. The problem is that (as many other XML files that I haven’t generated myself) some and tags aren’t closed, such as in: https://fonts/css?greek; rel="style

[NTG-context] Why can I no longer place \input inside table after update?

2022-04-23 Thread Joel via ntg-context
After I ran an update on ConTeXt, my code gets an error: \starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]     \HL         \NC {\bf Term} \NC {\bf Definition} \NC\NR                     \HL         \input test2.tex     \HL \stoptabulate \stoptext File test2.tex contains "\NC {\bf

Re: [NTG-context] simpleslides gives 'input stack overflow'

2021-05-11 Thread luigi scarso
designsize rm 12pt' is loaded > metapost> initializing instance 'metafun:1' using format 'metafun' > and method 'default' > metapost> loading 'metafun' as > '/usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv' using method > 'default' > metapost>

Re: [NTG-context] simpleslides gives 'input stack overflow'

2021-05-09 Thread Adam Reviczky
'default' metapost> loading 'metafun' as '/usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv' using method 'default' metapost > initializing number mode 'scaled' input stack overflow mtx-context | fatal error: return code: 256 Commenting out "StartPage"

[NTG-context] simpleslides gives 'input stack overflow'

2021-05-09 Thread Adam Reviczky
Hi, With the latest luatex change from https://github.com/TeX-Live/luatex/commit/1566b63b338abbe38ed839fac9f2022ebbfa7d59 (and MKIV 2021-05-09 17:14:00) I get an input stack overflow: simpleslides> loading style Boxed system > command '\NormalHeight' is already defined

Re: [NTG-context] Nested structure of files loaded by input

2021-03-30 Thread Wolfgang Schuster
schrieb am Di., 30. März 2021, 09:45: > Hi, > > I have file main.tex that loads various subfiles that are placed in a > subdir : > > > > \starttext > > \input subdir/chapter1 > > \stoptext > > > > Chapter1.tex itself loads some other file

Re: [NTG-context] Nested structure of files loaded by input

2021-03-30 Thread Henning Hraban Ramm
> Am 30.03.2021 um 10:23 schrieb > : >> BTW I’d strongly suggest to use the project structure (environment, >> products, components) in such cases, but that doesn’t change this. > > I use environments, but in that particular case there's no need for products > and components. (OTOH, with

Re: [NTG-context] Nested structure of files loaded by input

2021-03-30 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Henning > Hraban Ramm > Gesendet: Dienstag, 30. März 2021 10:14 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Nested structure of files loaded by input > > > > > Am 30.

Re: [NTG-context] Nested structure of files loaded by input

2021-03-30 Thread Henning Hraban Ramm
> Am 30.03.2021 um 09:43 schrieb denis.ma...@ub.unibe.ch: > What am I missing ? Does \input resolve filenames according to the CWD, not > to the location itself is located ? Nothing. You need to decide from where you want to run your files. BTW I’d strongly suggest to use th

Re: [NTG-context] Nested structure of files loaded by input

2021-03-30 Thread denis.maier
Ok, I can make it work with \doiffileexistselse But is there a more elegant way ? Von: ntg-context Im Auftrag von denis.ma...@ub.unibe.ch Gesendet: Dienstag, 30. März 2021 09:44 An: ntg-context@ntg.nl Betreff: [NTG-context] Nested structure of files loaded by input Hi, I have file main.tex

[NTG-context] Nested structure of files loaded by input

2021-03-30 Thread denis.maier
Hi, I have file main.tex that loads various subfiles that are placed in a subdir : \starttext \input subdir/chapter1 \stoptext Chapter1.tex itself loads some other files that are also placed in the subdir directory : \starttext \input subfile1 \stoptext Subfile1 : \starttext Asdf \stopttext

[NTG-context] LMTX problem with \input

2021-01-14 Thread Henning Hraban Ramm
Another LMTX/MkIV difference: In a component, I include another file with \input, that starts with \page in the first line. With LMTX I get an error: """ I can't figure out why you would want to use a tab mark here. If some right brace up above has ended a previous alignm

Re: [NTG-context] Unicode math input in LMTX

2020-10-29 Thread Hans Åberg
> On 29 Oct 2020, at 16:36, Aditya Mahajan wrote: > > On Thu, 29 Oct 2020, Sylvain Hubert wrote: > >> Hi all, >> >> Does anyone know if it is possible to input unicode in math formulas in >> LMTX with the help of something similar to unicode-math in

Re: [NTG-context] Unicode math input in LMTX

2020-10-29 Thread Aditya Mahajan
On Thu, 29 Oct 2020, Sylvain Hubert wrote: > Hi all, > > Does anyone know if it is possible to input unicode in math formulas in > LMTX with the help of something similar to unicode-math in LaTeX? You don't need any latex package. Simply inputing unicode math should work out

Re: [NTG-context] Unicode math input in LMTX

2020-10-29 Thread Hans Hagen
On 10/29/2020 11:27 AM, Sylvain Hubert wrote: Hi all, Does anyone know if it is possible to input unicode in math formulas in LMTX with the help of something similar to unicode-math in LaTeX? I don't know what unicode-math does but using unicode math code points should normally work ok

[NTG-context] Unicode math input in LMTX

2020-10-29 Thread Sylvain Hubert
Hi all, Does anyone know if it is possible to input unicode in math formulas in LMTX with the help of something similar to unicode-math in LaTeX? Best, Sylvain ___ If your question is of interest to others as well

Re: [NTG-context] Input file name containing full stop "."

2020-09-09 Thread Marco Patzer
On Wed, 9 Sep 2020 10:56:09 +0200 Christoph Reller wrote: > I am using ConTeXt LMTX Version 2020.09.05 21:18 with an input file > named, e.g., "test.test.tex". When compiling, ConTeXt generates files > "test.log", "test.tua", "test.pdf". >

[NTG-context] Input file name containing full stop "."

2020-09-09 Thread Christoph Reller
Dear list, I am using ConTeXt LMTX Version 2020.09.05 21:18 with an input file named, e.g., "test.test.tex". When compiling, ConTeXt generates files "test.log", "test.tua", "test.pdf". ConTeXt MKIV used to produce files "test.test.log",

Re: [NTG-context] "error not related to input file"

2019-12-16 Thread Rudolf Bahr
english > > I get the following error message: > > > > tex error > error not related to input file: > > tex error > tex: ! Emergency stop > > tex error > lua: ? > > tex error > mps: - > > > > In LuaTeX ... I get a

Re: [NTG-context] "error not related to input file"

2019-12-14 Thread Hans Hagen
On 12/14/2019 5:43 PM, Rudolf Bahr wrote: Hello All, In: LuaMetaTeX, Version 2.03.3 ConTeXt ver: 2019.12.12 19:35 MKIV beta fmt: 2019.12.12 int: english/english I get the following error message: tex error > error not related to input file: tex error > tex: ! Emergenc

Re: [NTG-context] "error not related to input file"

2019-12-14 Thread Otared Kavian
.12 int: >> english/english >> I get the following error message: >> >> tex error > error not related to input file: >> tex error > tex: ! Emergency stop >> tex error > lua: ? >> tex error > mps: - >> >>

Re: [NTG-context] "error not related to input file"

2019-12-14 Thread Rudolf Bahr
On Sat, Dec 14, 2019 at 05:43:45PM +0100, Bahr Rudolf wrote: > > Hello All, > > In: > LuaMetaTeX, Version 2.03.3 > ConTeXt ver: 2019.12.12 19:35 MKIV beta fmt: 2019.12.12 int: > english/english > I get the following error message: > > tex error >

[NTG-context] "error not related to input file"

2019-12-14 Thread Rudolf Bahr
Hello All, In: LuaMetaTeX, Version 2.03.3 ConTeXt ver: 2019.12.12 19:35 MKIV beta fmt: 2019.12.12 int: english/english I get the following error message: tex error > error not related to input file: tex error > tex: ! Emergency stop tex error > lua: ?

Re: [NTG-context] Grammar to parse TeX input?

2018-11-28 Thread Hans Hagen
On 11/28/2018 9:33 AM, Joseph Canedo wrote: I’d like to change some input to modify used font but only in parts of it, for example to implement having first line with different font. So basically if I have text with macros etc…: % firstlines-001.tex \setupbodyfont [pagella] \setupalign

Re: [NTG-context] Grammar to parse TeX input?

2018-11-28 Thread Joseph Canedo
I’d like to change some input to modify used font but only in parts of it, for example to implement having first line with different font. So basically if I have text with macros etc…: \WORD{i}eu \Note[]{}{Ebrieux \LeftDot 11.a.}crea au commencement le ciel et la terre. Et la terre estoit

Re: [NTG-context] Grammar to parse TeX input?

2018-11-28 Thread Hans Hagen
/2014-09-12-taco-luatex/luatextalk.pdf A way to decompose some input into tokens which represent either normal text, csnames etc…  I had a try to this token library in LuaTeX but I could not find examples of how to use it. I suspect that buffers mechanism use it somehow. you can pick up stuff

Re: [NTG-context] Grammar to parse TeX input?

2018-11-27 Thread Joseph Canedo
to decompose some input into tokens which represent either normal text, csnames etc… I had a try to this token library in LuaTeX but I could not find examples of how to use it. I suspect that buffers mechanism use it somehow. Thanks De : Hans Hagen Envoyé le :lundi 26 novembre 2018 18:55 À

Re: [NTG-context] checking sources with \input

2018-11-27 Thread Pablo Rodriguez
On 11/27/18 5:54 PM, Hans Hagen wrote: > On 11/27/2018 5:42 PM, Pablo Rodriguez wrote: >> [...] >> Besides asking for "--verbose", I know that we have the following command: >> >> mtxrunjit --autogenerate --script check file.tex >> >> But it d

Re: [NTG-context] checking sources with \input

2018-11-27 Thread Hans Hagen
work either with LuaTeX 1.08 or 1.09. There is no explicit error message, compilation only stops. Besides asking for "--verbose", I know that we have the following command: mtxrunjit --autogenerate --script check file.tex But it doesn’t load source files with \input. Would it b

[NTG-context] checking sources with \input

2018-11-27 Thread Pablo Rodriguez
. There is no explicit error message, compilation only stops. Besides asking for "--verbose", I know that we have the following command: mtxrunjit --autogenerate --script check file.tex But it doesn’t load source files with \input. Would it be possible that the script loads source files th

Re: [NTG-context] Grammar to parse TeX input?

2018-11-26 Thread Hans Hagen
\StopZZZ{\ctxlua{zzz_function(buffers.getcontent('ZZZBuffer'))}} \StartZZZ \input knuth \StopZZZ context.processbuffer { "ZZZBuffer" } - Hans Hagen | PRAGMA ADE Ridde

[NTG-context] Grammar to parse TeX input?

2018-11-26 Thread Joseph Canedo
\input knuth \StopZZZ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-13 Thread Otared Kavian
using an RNC > schema. Hi Aditya, Thanks for your input. Since, to say the least, I am more than very limited in programming, I am not yet able to explore the XML approach your are suggesting. But once I have done some progress in using Lua + ConTeXt as Hans has shown me, I’ll try to explore

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-11 Thread Hans Hagen
On 2/11/2018 2:17 PM, Aditya Mahajan wrote: On Sun, 11 Feb 2018, Hans Hagen wrote: Think different ... see end. \startluacode     document.speakerdata = {     {     speakername = "Gauss",     title   = "Remarks on Number Theory",     time    = "8am",   

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-11 Thread Aditya Mahajan
On Sun, 11 Feb 2018, Hans Hagen wrote: Think different ... see end. \startluacode document.speakerdata = { { speakername = "Gauss", title = "Remarks on Number Theory", time= "8am", room= "B", day

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-11 Thread Hans Hagen
On 2/11/2018 8:49 AM, Otared Kavian wrote: On 10 Feb 2018, at 17:56, Hans Hagen <pra...@wxs.nl> wrote: On 2/10/2018 4:10 PM, Otared Kavian wrote: […] buffers are quite efficient as they never see the file system while input reads the file each time .. both are fresh reads so the

[NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-10 Thread Otared Kavian
={Some Room}, ] is input several times, in order to extract from these variables one or more informations to be typeset, for different types of documents. However I don’t know whether this is a wise solution, or is it better to define once and for all a buffer and then use

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

2017-11-08 Thread Henri
How about using the "Transliterator" module by Philipp Gesang? https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=6004710974/action=view/id=50 Comes with TeXlive and ConTeXt standalone. On Wed, 2017-11-08 at 16:09 +0100, Mojca Miklavec wrote: > On 8 November 2017 at 15:36, Thomas A.

Re: [NTG-context] ntg-context Digest, ASCII input - non ASCII output, Vol 161, Issue 13

2017-11-08 Thread Sava Maksimović
Thanks for answers, I'm afraid, I didn't completely understand all of you about transliterating commands name. I don't want to do this. I don't want to translate or transliterate command names. I just want to transliterate *text* part of input. I can't split *commands and math* input from *text

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

2017-11-08 Thread Mojca Miklavec
On 8 November 2017 at 15:36, Thomas A. Schmitz wrote: > 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

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-08 Thread Mojca Miklavec
On 7 November 2017 at 20:38, Thomas A. Schmitz wrote: > > When mkiv was in its infancy, Hans helped me in writing something like this > for my Greek module. It basically applies a Lua string.gsub to the input to > produce and typeset utf8 output. This would be done with font feat

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

2017-11-08 Thread Ulrike Fischer
Am Tue, 7 Nov 2017 20:38:14 +0100 schrieb Thomas A. Schmitz: >> In Latex, package fontenc(precisely OT2 encoding) do that things. > Yes, LaTeX stays firmly in the 1970s. But the world has moved on. And LaTeX has moved on too. You can use luatex and utf8 input with it withou

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 ?

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

2017-11-07 Thread Mojca Miklavec
Dear Sava, On 7 November 2017 at 13:48, Sava Maksimović wrote: > Hi, > > 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

[NTG-context] ASCII input - non ASCII output

2017-11-07 Thread Sava Maksimović
Hi, 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 b, v, g, d, ... to g

Re: [NTG-context] synctex, TeXShop and \input files

2017-09-29 Thread Otared Kavian
Hi Hans, Thanks for the hint. Indeed every input file has got a reference in synctex file produced by ConTeXt. (I noticed also that during the typesetting ConTeXt creates another file with a suffix syncctx which is wiped out at the end of the processinng). On the other hand after reading your

Re: [NTG-context] synctex, TeXShop and \input files

2017-09-28 Thread Hans Hagen
e a document with five or six chapters. Each chapter is included in files which are named for instance chapter-1.tex chapter-2.tex and so on.  Then my file main.tex contains the lines \input chapter-1.tex \input chapter-2.tex and so on, in order to typeset the whole document. But now I don’t know

Re: [NTG-context] synctex, TeXShop and \input files

2017-09-28 Thread Otared Kavian
is included in files which are named for instance chapter-1.tex chapter-2.tex and so on. Then my file main.tex contains the lines \input chapter-1.tex \input chapter-2.tex and so on, in order to typeset the whole document. But now I don’t know how to sync the PDF

Re: [NTG-context] synctex, TeXShop and \input files

2017-09-28 Thread Hans Hagen
file, even it were part of an \input file. For instance after typesetting the file: %%% begin synctex-example.tex \setupsynctex[state=start,method=max] \starttext \input knuth.tex \hairline \input ward.tex \stoptext %%% end synctex-example.tex I could click on the sentence « The separation of any

[NTG-context] synctex, TeXShop and \input files

2017-09-28 Thread Otared Kavian
Hi all, Some time ago Hans added a new synctex command which seemed to work quite well: on a Mac running MacOS and TeXShop I could for instance click on a sentence in the PDF file produced by ConTeXt and the sentence was highlighted in the source file, even it were part of an \input file

Re: [NTG-context] Input methods

2017-03-22 Thread Hans Åberg
> On 26 Sep 2016, at 11:25, Wolfgang Schuster <schuster.wolfg...@gmail.com> > wrote: > > Can you provide your file(s) for download? I made a C++ program "text_to_plist" that computes a text substitution plist from a sequence of input files [1]. It checks f

Re: [NTG-context] Input methods

2016-09-29 Thread Hans Åberg
> On 26 Sep 2016, at 11:25, Wolfgang Schuster > wrote: > > Can you provide your file(s) for download? I have made a new set, at [1], as before: Abbreviations using non-alphanumerical symbols now drop the leading "\", as they seemed to caused strange conflicts.

Re: [NTG-context] Input methods

2016-09-26 Thread Hans Åberg
h it in hand, it is not particularly >>> difficult to use Unicode symbols in the input file. > Can you provide your file(s) for download? They are at [1] with instructions. Using an escape character as "\" is not necessary, but helps against unwanted replacements. And it is not ne

Re: [NTG-context] Input methods

2016-09-26 Thread Wolfgang Schuster
Hans Åberg <mailto:haber...@telia.com> 26. September 2016 um 11:00 FYI, I made interactive text substitutions (on MacOS) for the Unicode math letters plus a number of symbols. With it in hand, it is not particularly difficult to use Unicode symbols in the input file. Can you provide you

Re: [NTG-context] Input methods

2016-09-26 Thread Hans Åberg
FYI, I made interactive text substitutions (on MacOS) for the Unicode math letters plus a number of symbols. With it in hand, it is not particularly difficult to use Unicode symbols in the input file. ___ If your

[NTG-context] Simple input vs component structure

2016-09-18 Thread Malte Stien
Hi all, I have a set of reference manuals that consist of a number of chapters. Those documents pull in the individual chapters via \input commands. I have just recently discovered that ConTeXt actually DOES support a project/product/component structure. So, I have been experimenting

[NTG-context] Input methods

2016-09-16 Thread Hans Åberg
> On 15 Sep 2016, at 20:19, Wolfgang Schuster <schuster.wolfg...@gmail.com> > wrote: > Another input method is shown in the following video [1] where each symbol > get its own command, e.g. \mbfitx is equal to {\bi x}. This works on MacOS 10.12 in any application that uses

Re: [NTG-context] xml input

2016-04-23 Thread Meer, Hans van der
For those still interested in the inclusion of nodes into the root of the xml-tree. With the help of a hint by Hans Hagen, the following is the best I am able to produce. The code below includes the contents of the file twice as can be seen in the pdf. \startbuffer[test] \stopbuffer

Re: [NTG-context] xml input

2016-04-22 Thread Hans Hagen
On 4/22/2016 9:33 AM, Meer, Hans van der wrote: On 21 Apr 2016, at 10:41, Hans Hagen > wrote: your \xmlsetsetup{#1}{*}{-} makex takenotes into a nothing ... (comment that line if needed to see effects in your code) I got that line from your first

Re: [NTG-context] xml input

2016-04-22 Thread Meer, Hans van der
On 21 Apr 2016, at 10:41, Hans Hagen > wrote: your \xmlsetsetup{#1}{*}{-} makex takenotes into a nothing ... (comment that line if needed to see effects in your code) I got that line from your first demo program in "Dealing with XML in ConTeXt Mkiv":

Re: [NTG-context] xml input

2016-04-21 Thread Mica Semrick
Thank you, this is much appreciated! Best, Mica On April 21, 2016 12:41:26 AM PDT, "Meer, Hans van der" wrote: >A week ago I posted here by accident part of a private conversation (in >Dutch) with Hans Hagen. I already apologized for this. > >On 15 Apr 2016, at 00:47, Mica

Re: [NTG-context] xml input

2016-04-21 Thread Hans Hagen
On 4/21/2016 9:41 AM, Meer, Hans van der wrote: > long mail ... your \xmlsetsetup{#1}{*}{-} makex takenotes into a nothing ... (comment that line if needed to see effects in your code) \enabletrackers[lxml.loading,lxml.setups] \startbuffer[notes-xml] bar \stopbuffer

Re: [NTG-context] xml input

2016-04-21 Thread Meer, Hans van der
A week ago I posted here by accident part of a private conversation (in Dutch) with Hans Hagen. I already apologized for this. On 15 Apr 2016, at 00:47, Mica Semrick > wrote: I'm interested in this thread too... But I'm american, so

Re: [NTG-context] xml input

2016-04-14 Thread Mica Semrick
/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: >attempt >> to index field 'settings' (a nil value) >> stack traceback: >> ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-aux.lua:428: in >> function 'include' >> ...-35/tex/texmf-context/tex/context/base/mkiv

Re: [NTG-context] xml input

2016-04-14 Thread Meer, Hans van der
My fault, wholly my fault! Just didn't look precise enough in replying. Thought to answer Hans Hagen in private but was a little offguard. No offense taken. Hans van der Meer > On 14 Apr 2016, at 22:56, Pablo Rodriguez wrote: > > Hans, > > > My apologies for the comment, if

Re: [NTG-context] xml input

2016-04-14 Thread Pablo Rodriguez
ntext/base/mkiv/lxml-aux.lua:428: in > function 'include' > ...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:579: in > function <...-35/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:567> > (...tail calls...) > > > De navolgende code is toch niet fo

Re: [NTG-context] xml input

2016-04-14 Thread luigi scarso
On Thu, Apr 14, 2016 at 10:30 PM, Meer, Hans van der <h.vanderm...@uva.nl> wrote: > > On 14 Apr 2016, at 10:45, Hans Hagen <pra...@wxs.nl> wrote: > > On 4/13/2016 4:21 PM, Meer, Hans van der wrote: > > I would like to process several input

  1   2   3   >