Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
On 04/15/2018 06:39 PM, Hans Hagen wrote: > On 4/15/2018 6:14 PM, Pablo Rodriguez wrote: >> [...] >> Many thanks for the fix, Hans. > it's not a fix .. it's an extension to the font extension mechanism Hans it was my fault. Of course it is a new implementation. (I was thinking

[NTG-context] links don’t work with focus=standard

2018-04-15 Thread Pablo Rodriguez
Hans, I’m afraid that links with "focus=standard" are broken after beta from 2018.04.13 14:53. \setupinteraction[state=start, focus=standard] \starttext \completecontent \chapter{Chapter} a\footnote{footnote} \stoptext I think that all links that worked fine before the

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
On 04/15/2018 06:02 PM, Hans Hagen wrote: > On 4/15/2018 1:30 PM, Pablo Rodriguez wrote: >> [...] >> Is there any way to get spaces in the string to be replaced? > not with a lot of effort on my end which i'm not willing to invest in > something that is just a hack for

[NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
Dear list, I have the following sample: \replaceword[some][via ][Vía] \replaceword[some][calle ][c/ ] \replaceword[some][ calle][ Calle] \starttext \startTEXpage[offset=2em] This is what I get: \setreplacements[some]% calle via del viaducto de la calle

Re: [NTG-context] Reference links with focus=standard option

2018-04-11 Thread Pablo Rodriguez
On 04/11/2018 07:14 PM, Pablo Rodriguez wrote: > On 04/11/2018 04:35 PM, Lawrence Bell wrote: >> [...] >> What's going on here? > > I generated an uncompressed PDF document from your source: > http://pdf.ousia.tk/focus-standard.pdf. > [...] > (eq:ref) seems t

Re: [NTG-context] conditional format in xtables

2018-04-11 Thread Pablo Rodriguez
nd I need \ifcase and \ifodd. I must admit that now I don’t understand what expansion actually is. Many thanks for your help, Pablo >> Pablo Rodriguez 10. April 2018 um 19:18 >> Dear list, >> >> thanks to Wolfgang, I learnt to set conditional format in xtables,

Re: [NTG-context] Reference links with focus=standard option

2018-04-11 Thread Pablo Rodriguez
On 04/11/2018 04:35 PM, Lawrence Bell wrote: > Hi mailing list, > > I'm having some trouble with (interactive) references. I had a quick > search of the mailing list and couldn't find any talk about this kind of > issue, so I'm asking now. Hoping you could help me out. > > All is well with the

[NTG-context] \ifcase changes default align in xtables

2018-04-10 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupxtable[mytable] [option={stretch, height}, align={\ifcase\currentxtablerow\fi}] \starttext \startxtable[mytable] \startxrow \startxcell 1 \stopxcell \startxcell 2 \stopxcell

[NTG-context] conditional format in xtables

2018-04-10 Thread Pablo Rodriguez
Dear list, thanks to Wolfgang, I learnt to set conditional format in xtables, such as in: \setupxtable [foregroundcolor={\ifnum\currentxtablecolumn=2 red\else green\fi}] \starttext \startxtable \startxrow \startxcell one \stopxcell \startxcell

Re: [NTG-context] double followtokens?

2018-04-09 Thread Pablo Rodriguez
On 04/08/2018 11:17 PM, Hans Hagen wrote: > On 4/8/2018 8:10 PM, Pablo Rodriguez wrote: >> [...] >> \reversedtext is undefined (I’m using beta from 2018.04.04 00:51). > > of course it is ... it's basically the lua snippet i sent a few mails ago Now I know which one

Re: [NTG-context] double followtokens?

2018-04-08 Thread Pablo Rodriguez
On 04/08/2018 04:41 PM, Hans Hagen wrote: > On 4/8/2018 12:11 AM, Pablo Rodriguez wrote: >> [...] >> I want a full circle in two halves with the same duplicated sentence. >> The first one written clockwise and the second one written >> counterclockwise (as in the com

Re: [NTG-context] double followtokens?

2018-04-07 Thread Pablo Rodriguez
On 04/07/2018 11:25 PM, Hans Hagen wrote: > On 4/7/2018 11:04 PM, Pablo Rodriguez wrote: >> Dear list, >> >> I have the following sample: >> >>\useMPlibrary[txt] >> >>\starttext >> >>\startuseMPgraphic{followtokens} >>

[NTG-context] double followtokens?

2018-04-07 Thread Pablo Rodriguez
Dear list, I have the following sample: \useMPlibrary[txt] \starttext \startuseMPgraphic{followtokens} path RotPath ; RotPath := reverse halfcircle ; % path RotPath ; RotPath := halfcircle rotatedaround (origin, 180) ; \stopuseMPgraphic \followtokens{Just follow the tokens}

Re: [NTG-context] Fatal error with followtokens (metapost)

2018-04-07 Thread Pablo Rodriguez
On 04/07/2018 12:59 PM, Gerhard Kugler wrote: > Hi, > > the code: > > - > > \mainlanguage[de] > \enableregime[utf-8] In ConTeXt MkIV, UTF-8 is the default encoding for source files. The second line isn’t required. Just incase it helps, Pablo -- http://www.ousia.tk

Re: [NTG-context] (fake) bold as font feature

2018-03-27 Thread Pablo Rodriguez
On 03/27/2018 09:01 AM, Hans Hagen wrote: > On 3/26/2018 11:02 PM, Pablo Rodriguez wrote: >> [...] >> Just out of curiosity (and not related to this feature), I see that >> Windows and Linux binaries (both 64bit) in the Suite contain different >> versions (1.08 v. 1

Re: [NTG-context] (fake) bold as font feature

2018-03-26 Thread Pablo Rodriguez
On 03/26/2018 07:24 PM, Hans Hagen wrote: > On 3/26/2018 4:55 PM, Hans Hagen wrote: >> On 3/26/2018 1:40 PM, Pablo Rodriguez wrote: >>> Hans, >>> >>> would it be possible to add a embold feature (similar to the slanted >>> font feature) that f

[NTG-context] (fake) bold as font feature

2018-03-26 Thread Pablo Rodriguez
Hans, would it be possible to add a embold feature (similar to the slanted font feature) that fakes the bold font with \starteffect[both]...\stopeffect and it doesn’t strecht the font? This was already requested by Ulrike Fischer (https://mailman.ntg.nl/pipermail/ntg-context/2017/090094.html).

Re: [NTG-context] Fwd: Re: Fwd: (again) issue with lpath and conditional

2018-03-22 Thread Pablo Rodriguez
On 03/22/2018 05:57 PM, Hans Hagen wrote: > [...] >> What am I missing in the lpath and the css selector? > \xmldoifelse {#1} {..[contains(@class,'fullwidth')]} Many thanks for your reply, Hans. I’m afraid I wouldn’t have figured out myself in thousand years. Many thanks for your help, Pablo

[NTG-context] (again) issue with lpath and conditional

2018-03-21 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] a b \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc}{xml:*} \xmlsetsetup{\xmldocument} {pre[contains(@class,'typeset')]/code}

Re: [NTG-context] Question about paragraphs and hanging punctuation

2018-03-21 Thread Pablo Rodriguez
> which sets all columns for all kinds of paragraphs defined by > \defineparagraphs > (for normal text is necessary to set it separately). Alignment for body text is specified with \setupalignment. Even footnotes may have a different alignment. I hope it helps, Pablo > Tue, Ma

Re: [NTG-context] Framed & before/after

2018-03-21 Thread Pablo Rodriguez
On 03/21/2018 02:24 PM, Procházka Lukáš Ing. wrote: > Hello, > > does \framed recognize before and after keys, as mentioned here: > > http://wiki.contextgarden.net/Command/defineframed > or: http://wiki.contextgarden.net/Command/setupframedtexts ? Hi Lukáš, \framed inherits from

Re: [NTG-context] Question about paragraphs and hanging punctuation

2018-03-20 Thread Pablo Rodriguez
On 03/20/2018 08:17 PM, Tomas Hala wrote: > Hi all, > > I used together hanging punctuation and define/setup paragraphs > (tested on TL2017, current CTX). > Unfortunately, inside the paragraph environment the hanging > punctuation settings is ignored.> Moreover, it seems that attributes inner= >

[NTG-context] (solved) Re: issue with \xmlattribute{#1}{.}{id}

2018-03-19 Thread Pablo Rodriguez
Sorry for the noise. My approach was totally wrong. Pablo On 03/19/2018 06:28 PM, Pablo Rodriguez wrote: > Dear list, > > in an environment to parse an XML document, I use > \reference[\xmlattribute{#1}{.}{id}]. > > Since it doesn’t do what I need, I checked the pure comman

[NTG-context] issue with \xmlattribute{#1}{.}{id}

2018-03-19 Thread Pablo Rodriguez
Dear list, in an environment to parse an XML document, I use \reference[\xmlattribute{#1}{.}{id}]. Since it doesn’t do what I need, I checked the pure command "\xmlattribute{#1}{.}{id}". From id="spieker-weiss" and id="computer-mind", I get "spieker-weissmain::4103" and

Re: [NTG-context] \completindex in \setuparranging

2018-03-18 Thread Pablo Rodriguez
On 03/18/2018 11:21 PM, Gerard wrote: > Thank you Wolfgang for the solution : > > context --arrange my_document.tex > > Hi Pablo, > > I sent my email too fast (using message without changing the subject > !!!), I will be more vigilant next time with a new message ! Hi Gérard, it was good to

Re: [NTG-context] Google Search in ConTeXt Garden

2018-03-18 Thread Pablo Rodriguez
On 03/18/2018 02:55 PM, Rudolf Bahr wrote: > On Sun, Mar 18, 2018 at 01:13:35PM +0100, Pablo Rodriguez wrote: >> Dear list, >> >> when I use Google to search the wiki, such as in: >> >> http://wiki.contextgarden.net/google/new2.html?q=xmldoifelseempty >&g

Re: [NTG-context] \xmldoifelseempty

2018-03-18 Thread Pablo Rodriguez
On 03/18/2018 07:37 PM, survoje wrote: > Bonjour, > > \completeindex (or \placeindex) works in this case : > > \setuppapersize[A5]%[A4,landscape] > %\setuparranging[2UP] > > with % > > but does not work in this case : > > \setuppapersize[A5][A4,landscape] > \setuparranging[2UP] > > I do not

[NTG-context] \xmldoifelseempty

2018-03-18 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] \setupexternalfigures[location=default] \starttext \startTEXpage[offset=1ex] Full–width: \externalfigure[cow] \stopTEXpage \stoptext

[NTG-context] Google Search in ConTeXt Garden

2018-03-18 Thread Pablo Rodriguez
Dear list, when I use Google to search the wiki, such as in: http://wiki.contextgarden.net/google/new2.html?q=xmldoifelseempty I get the following error message: Unauthorized access to internal API. Please refer to https://support.google.com/customsearch/answer/4542055 Can anyone

[NTG-context] disabling italic correction

2018-03-15 Thread Pablo Rodriguez
Dear list, I have the following sample: \definefontfeature[default][default][itlc=yes] \setupitaliccorrection[global] \starttext {\em of}) \setupitaliccorrection[none] {\em of}) \stoptext Which is the way to enable and disable italic correction in the same sample?

[NTG-context] understanding the \feature command

2018-03-15 Thread Pablo Rodriguez
Dear list, I have the following sample: \definefontfeature [f:protrusion] [protrusion=quality] % \definefontfeature [f:noprotrusion] [protrusion=none] \setupalign[hanging] \starttext \feature[+][f:protrusion] \input knuth \blank[2*big] \feature[-][f:protrusion]

Re: [NTG-context] option for printing range

2018-03-06 Thread Pablo Rodriguez
On 02/25/2018 10:51 PM, Hans Hagen wrote: > On 2/25/2018 9:12 PM, Pablo Rodriguez wrote: >> [...] >> BTW, "\markpage[foo][+1]" works fine (with the issue I described), but >> "\markpage[foo][3,4]" doesn’t work at all. > > i'll look at it (next week)

Re: [NTG-context] Finding a

2018-03-03 Thread Pablo Rodriguez
On 03/03/2018 10:33 AM, T. Kurt Bond wrote: > If I have a module I want to use from several documents in different > places in my home directory tree, is there some directory under my > directory where I can put the module where it will be found?  Someplace > under $HOME/texmf for instance? If

Re: [NTG-context] option for printing range

2018-02-26 Thread Pablo Rodriguez
On 02/25/2018 10:51 PM, Hans Hagen wrote: > On 2/25/2018 9:12 PM, Pablo Rodriguez wrote: >> [...] >> The print range for Acrobat is "3,6,9-11" when it should be "2,5,8-10" >> (the document only contains 10 pages). > > is ok here (looking in the

Re: [NTG-context] option for printing range

2018-02-25 Thread Pablo Rodriguez
On 02/25/2018 10:51 PM, Hans Hagen wrote: > On 2/25/2018 9:12 PM, Pablo Rodriguez wrote: >> [...] >> The print range for Acrobat is "3,6,9-11" when it should be "2,5,8-10" >> (the document only contains 10 pages). > > is ok here (looking in t

Re: [NTG-context] option for printing range

2018-02-25 Thread Pablo Rodriguez
On 02/25/2018 01:21 PM, Hans Hagen wrote: > On 2/25/2018 10:11 AM, Pablo Rodriguez wrote: >> As for the marked pages feature, it should read for me "(totally >> unknown)" instead of "(probably unknown)". >> >>> % \markpage[foo][1,4,5] >>

Re: [NTG-context] option for printing range

2018-02-25 Thread Pablo Rodriguez
On 02/24/2018 07:50 PM, Hans Hagen wrote: > On 2/24/2018 11:31 AM, Pablo Rodriguez wrote: >> [...] >> This is extremely useful to help the user to print only the required >> pages and not the whole document (which may be required only for viewing >> purposes). >

[NTG-context] option for printing range

2018-02-24 Thread Pablo Rodriguez
Hans, would it be possible to add an key to \setupinteractionscreen that implements the /PrintPageRange key in the /ViewerPreferences dictionary (https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#page=373)? For example, "\setupinteractionscreen[range={2, 4-7, 10}]"

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Pablo Rodriguez
On 02/20/2018 06:10 PM, Hans Hagen wrote: > [...] > local name = P("\\") * (patterns.utf8char + S("@!?_"))^1 After checking other code samples, I realized that the approach had to be different: local name = P("\\") * (patterns.letter + S("@!?_") + patterns.utf8two + patterns.utf8three +

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Pablo Rodriguez
On 02/20/2018 06:10 PM, Hans Hagen wrote: > On 2/20/2018 5:18 PM, Pablo Rodriguez wrote: >> [...] >> I’m afraid it might be a bug. > > local name = P("\\") * (patterns.utf8char + S("@!?_"))^1 Hans, I’m afraid that my previous reply was too fast. Jus

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Pablo Rodriguez
On 02/20/2018 06:10 PM, Hans Hagen wrote: > On 2/20/2018 5:18 PM, Pablo Rodriguez wrote: >> [...] >> I’m afraid it might be a bug. > > local name = P("\\") * (patterns.utf8char + S("@!?_"))^1 Many thanks for your fast

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Pablo Rodriguez
On 02/20/2018 09:32 AM, Hans Hagen wrote: > On 2/19/2018 10:14 PM, Pablo Rodriguez wrote: >> [...] >> For some strange reason, "\␣" is problematic only when >> \xmlprettyprinttext (or \xmlinlineprettyprinttext) is set to tex. >> >> Is this a bu

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Pablo Rodriguez
On 02/19/2018 10:15 PM, Jeong Dal wrote: > Dear Wolfgang, > > Two months ago, you suggested an example for typefile with korean. I > just read it at that time and I try your sample today.  > Although there are Nanum Gothic and Nanum Gothic Coding in my system > font, no output of korean for \ss

[NTG-context] issue with character and \xmlprettyprinttext

2018-02-19 Thread Pablo Rodriguez
Hans, I have the following sample: \startbuffer[demo] b \␣ \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc|p|code}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups

[NTG-context] updating modules

2018-02-16 Thread Pablo Rodriguez
Dear module maintainers, I have updated the t-handlecsv module two days ago (https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=86). I thought upgrade in the ConTeXt Suite would be automatic, but I have just downloaded a new copy and t-handlecsv wasn’t update. Is there any way

Re: [NTG-context] rscale not working in latest beta from 2018.02.14 16:18

2018-02-16 Thread Pablo Rodriguez
On 02/14/2018 07:45 PM, Pablo Rodriguez wrote: > [...] > I have just realized that rscale doesn’t work at all. > > Previous beta (from 2018.02.12 08:53) has rscale working fine. Many thanks for your fast fix, Hans. Pablo -- http://

[NTG-context] rscale not working in latest beta from 2018.02.14 16:18

2018-02-14 Thread Pablo Rodriguez
Dear list, I have the following sample: \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefontfamily [mainface] [ss] [TeX Gyre Heros] [rscale=3] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1ex]

Re: [NTG-context] issue with string.collapsespaces()

2018-02-12 Thread Pablo Rodriguez
On 02/12/2018 05:09 PM, Hans Hagen wrote: > On 2/12/2018 5:00 PM, Pablo Rodriguez wrote: >> [...] >> Sorry for the stupid question, but isn’t the collapsespaces function >> intended to remove spaces? >> >> What am I missing here? >> > that it coll

[NTG-context] issue with string.collapsespaces()

2018-02-12 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startlua a = "a bc de" context(string.collapsespaces(a)) \stoplua \stoptext Sorry for the stupid question, but isn’t the collapsespaces function intended to remove spaces? What am I missing here? Many thanks for your

Re: [NTG-context] bug with special hyphenation?

2018-02-09 Thread Pablo Rodriguez
On 02/09/2018 12:03 AM, Hans Hagen wrote: > On 2/8/2018 8:00 PM, Pablo Rodriguez wrote: > >> Have I hit an issue with the new hyphenator, or am I simply missing >> somehting? > > it's a border case that i'll look into Many thanks for your fast fix in latest bet

[NTG-context] bug with special hyphenation?

2018-02-08 Thread Pablo Rodriguez
Dear list, I have been experiencing an issue with the new hyphenator for months (or maybe almost a year), but it took me a while to discover what was triggering it. First, the mandatory sample: \startluacode function document.addfunnyhyphen(tfmdata) local underscore =

Re: [NTG-context] image file resolver in Lua?

2018-02-05 Thread Pablo Rodriguez
On 02/04/2018 07:04 PM, Henning Hraban Ramm wrote: > Am 2018-02-04 um 13:06 schrieb Hans Hagen : > >> Not sure what you want top know but a lot of image properties can be checked >> by prerolling: >> \getfiguredimensions[t:/sources/cow.pdf] > > This is really interesting, but my

Re: [NTG-context] missing link

2018-02-04 Thread Pablo Rodriguez
On 02/04/2018 11:36 AM, Floris van Manen wrote: > On the contextgarden.net site, at page: > [...] > the link http://luatex.bluwiki.com/ points to a placeholder page. > e.g. not much of an example ;-) Hi Florian, according to http://luatex.org/documentation.html, the wiki is located at

Re: [NTG-context] Django: using ConTeXT mkiv to output PDF

2018-01-28 Thread Pablo Rodriguez
On 01/26/2018 07:41 PM, kaddour kardio wrote: > [...] > i tried this without success :( > the only workaround u've found for now is to render a tex file and > copile it manually. I don’t know how to invoke ConTeXt using Django, but to create booklets with my favourite text editor (Geany,

Re: [NTG-context] about \placeindex: uppercase initial and lowercase initial, two languages

2018-01-28 Thread Pablo Rodriguez
On 01/28/2018 03:16 PM, Jeong Dal wrote: > Hi, > > To place the index at the end of the book, I put \placeindex before > \stopproduct. > It is compiled well. > But, for the better output, I have two questions about the index. > > 1. In the output, it distinguished uppercase and lowercase

[NTG-context] (again) references to sections in registers

2018-01-27 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \chapter{Chapter} \section{Section} \index{one} \subsection{Subsection} \index{two} \placeindex \stoptext How can I do the following? - "one" is referred in the index to 1.1. -

[NTG-context] issue with \hyphenatedword

2018-01-22 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuppapersize[A9] \starttext \hyphenatedword{office} office \hsize\zeropoint office \hyphenatedword{office} \stoptext Compiling with latest beta (2018.01.19 13:42), hyphen isn’t used in \hyphenated word and the character

Re: [NTG-context] Bold math broken in beta

2018-01-02 Thread Pablo Rodriguez
On 01/02/2018 10:17 PM, Henri wrote: > \starttext > oeps $\mb e^{i\pi} = -1$ > \bold{oeps $e^{i\pi} = -1$} > \bold{oeps $\mb e^{i\pi} = -1$} > \stoptext Hi Henri, I can confirm the issue with bold math. From the beta backups I have, it seems to have been introduced in beta from 2017.10.24 10:30

[NTG-context] registers with section and line number references

2018-01-02 Thread Pablo Rodriguez
Dear list, Happy New Year to all list members. I have the following sample: \starttext \startlinenumbering \chapter{One} \index{Zapf}\input zapf \section{Two} \index{Knuth}\input knuth \subsection{Three} \index{Tufte}\input tufte \stoplinenumbering

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-27 Thread Pablo Rodriguez
On 12/21/2017 10:16 PM, Christoph Reller wrote: > > My module does not come in standard context. You have to download it > from https://bitbucket.org/philexander/context-highlight. If general > interest is high enough I can ask to > add it. Christoph, could you enable issues in your Bitbucket

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-27 Thread Pablo Rodriguez
On 12/27/2017 02:14 AM, SteamedFish wrote: > You can try vim module. > > It supports all the formats that vim is able to support and it is a builtin > module. Aditya suggested this possibility to me in a previous message in this thread. But my sources are XML, so the minimal sample is more

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-26 Thread Pablo Rodriguez
On 12/21/2017 10:53 PM, Aditya Mahajan wrote: > [...] > Can you post a minimal working example. I don't use XML so it is difficult > for me to understand how these commands are used in practice. Aditya, many thanks for your reply and your help. A minimal sample would be: \startbuffer[demo]

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-26 Thread Pablo Rodriguez
On 12/21/2017 10:16 PM, Christoph Reller wrote: > On Thu, 21 Dec 2017 21:16:45 +0100, Pablo Rodriguez wrote: >> [...] >> It is really a pity that it lacks TeX, since I’m focused on ConTeXt yet >> (after all, it would be a Spanish introduction to ConTeXt ;-)). XML will >

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
On 12/21/2017 08:05 PM, Aditya Mahajan wrote: > On Thu, 21 Dec 2017, Pablo Rodriguez wrote: >> [...] >> I don’t remember which were the options in t-vim, but I need the >> options from \setuptyping and \setuptype. > > Currently vim does not support these primarily beca

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
On 12/21/2017 05:04 PM, Christoph Reller wrote: > Dear Pablo, > > At least for XML you could use my module highlight-xml: > > \usemodule[highlight-xml] > \definetype[xml][option=xml] > [...] > Note that even partial XML is highlighted correctly. Dear Christoph, many thanks for your reply. Your

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
On 12/20/2017 10:18 PM, Hans Hagen wrote: > On 12/20/2017 8:45 PM, Pablo Rodriguez wrote: >> [...] >> Would it be possible that there are two SnippetComments for all lexers: >> SnippetCommentMark and SnippetCommentText? > > very low priority ... there is some logic beh

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
On 12/20/2017 12:20 AM, Aditya Mahajan wrote: > On Tue, 19 Dec 2017, Pablo Rodriguez wrote: >> [...] >> I checked your t-vim module months ago and I don’t remember which were >> the problems, but I had to discard it. > > Just try your document with t-vim. It should

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-20 Thread Pablo Rodriguez
On 12/20/2017 12:53 PM, Hans Hagen wrote: > On 12/18/2017 11:50 PM, Pablo Rodriguez wrote: >> [...] > % Differs per lexer: > > \definestartstop > [XmlSnippetComment] > [color=, > style=] > >> I’m afraid that the scite module isn’t an option fo

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-19 Thread Pablo Rodriguez
On 12/19/2017 08:26 PM, Aditya Mahajan wrote: > On Mon, 18 Dec 2017, Pablo Rodriguez wrote: >> [...] >> Would it be possible that all comments in type and typing (at least, for >> Lua, XML and TeX) would have the same formatting for the whole comment >> contents,

[NTG-context] type and typing comments for TeX and Lua

2017-12-18 Thread Pablo Rodriguez
Hans, sorry for insisting, but I really need this. I have the following sample: \definetype[context][option=tex] \definetype[lua][option=lua] \starttext \startTEXpage[offset=2em] a \TEX\ inline comment: \context{ag%befe} \Lua\ inline comment: \lua{agb --efe}

Re: [NTG-context] issue with css selector in lpath

2017-12-18 Thread Pablo Rodriguez
On 12/15/2017 07:55 AM, Hans Hagen wrote: > On 12/14/2017 10:18 PM, Pablo Rodriguez wrote: >> [...] >> Since the selector is basic in css (and escaping it gives a very weird >> css), could you consider that it might not be required to escape # as >> css selector? >

Re: [NTG-context] issue with css selector in lpath

2017-12-14 Thread Pablo Rodriguez
On 12/14/2017 09:39 PM, Hans Hagen wrote: > On 12/14/2017 8:46 PM, Pablo Rodriguez wrote: >> .header works fine, it is only #header that breaks compiliation. >> >> I hope Hans can fix it (or explain what I’m doing wrong). > > There's nothing to fix, as mentioned a

Re: [NTG-context] issue with css selector in lpath

2017-12-14 Thread Pablo Rodriguez
On 12/13/2017 10:22 AM, MF wrote: > Il giorno mar, 12/12/2017 alle 22.36 +0100, Pablo Rodriguez ha scritto: >> [...] >> But {header, #header} shouldn’t be a problem, accorrding to >> http://pragma-ade.com/general/manuals/xml-mkiv.pdf#page=34. >> >> If this isn

Re: [NTG-context] issue with css selector in lpath

2017-12-12 Thread Pablo Rodriguez
ound a bug. No, it doesn’t compile. But {header, #header} shouldn’t be a problem, accorrding to http://pragma-ade.com/general/manuals/xml-mkiv.pdf#page=34. If this isn’t a bug, I wonder what I’m doing wrong. Many thanks for your reply, Pablo > > Il giorno lun, 11/12/2017 alle 21.51 +0100,

[NTG-context] issue with css selector in lpath

2017-12-11 Thread Pablo Rodriguez
Dear list, I have the following code: \xmlsetsetup{\xmldocument} {{header, #header}} {xml:titlepage} I guess this is right, but I get the following compilation error: tex error > tex error on line 303 in file pandoc-xhtml.tex: ! Illegal parameter number in definition

Re: [NTG-context] writing a single lpath

2017-12-10 Thread Pablo Rodriguez
On 12/10/2017 07:01 PM, Hans Hagen wrote: > On 12/10/2017 6:25 PM, Pablo Rodriguez wrote: >> Dear list, >> >> excuse my stupid question, but I don’t know how to join with an or these >> lpaths: >> >> {header} >> {[@id='header']

[NTG-context] writing a single lpath

2017-12-10 Thread Pablo Rodriguez
Dear list, excuse my stupid question, but I don’t know how to join with an or these lpaths: {header} {[@id='header']} {header|*[@id='header']} doesn’t work. Which is the right way to do it with a single lpath? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Pablo Rodriguez
On 12/06/2017 07:24 PM, Wim Neimeijer wrote: > I disagree, a version from 2016 is not very old. I have a lot of > documents using a ConText setup which works with this version > of luatex and context. > > Last week I tried to use the latest beta with my documents and the beta > was unable to run

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Pablo Rodriguez
On 12/06/2017 06:16 PM, Wim Neimeijer wrote: > @Wolfgang, > > Ran your example (unsure about all these \definefontfamily commands), > but does not work, a lot of errors  > [...] > This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev)  > [...] > ConTeXt  ver: 2016.03.13 23:40 MKIV beta  fmt:

Re: [NTG-context] complete cut marks

2017-12-03 Thread Pablo Rodriguez
On 12/03/2017 12:23 PM, Hans Hagen wrote: > On 12/3/2017 8:47 AM, Pablo Rodriguez wrote: >> [...] >> This is why a crossed marking makes sense. > > the only thing that helps against the marke being cut off is to draw a > frame so i'll add > > \setuplayout[marking=p

Re: [NTG-context] complete cut marks

2017-12-02 Thread Pablo Rodriguez
On 11/29/2017 10:28 PM, Thomas A. Schmitz wrote: > On 29.11.2017 21:11, Pablo Rodriguez wrote: >> Could this be implemented? >> >> I come to this proposal after having to mark myself the sheets that I >> wanted to cut. > > I have an old module t-crop that o

Re: [NTG-context] complete cut marks

2017-12-02 Thread Pablo Rodriguez
On 11/29/2017 09:53 PM, luigi scarso wrote: > I think it can easily done with a layer, > but the scope of the crop marks is to make a "clean" cut; > adding more marks as in your example means that the final sheets > can still have a "dirty" remain of inks of the marks. Hi Luigi, there are some

Re: [NTG-context] framed with titles

2017-12-02 Thread Pablo Rodriguez
Hi Dalyoung, would it be possible that you add both samples to the wiki? This is the best way to have a reference for future needs. Pablo On 12/03/2017 12:11 AM, Jeong Dal wrote: > Hi, > > Some days ago, I asked a method to put theorem numbers in a framed title. > Recently, Wolfgang gave me

Re: [NTG-context] complete cut marks

2017-11-29 Thread Pablo Rodriguez
On 11/28/2017 11:48 PM, Hans Hagen wrote: > On 11/28/2017 9:29 PM, Pablo Rodriguez wrote: >> [...] >> Would it be possible to have a marking=crossed such as the one proposed >> in the attachment? >> >> (BTW, I added them by hand with Inkscape, this is why

[NTG-context] complete cut marks

2017-11-28 Thread Pablo Rodriguez
Hans, I have the following sample: \setuppapersize[A5][A4] \setuplayout [marking=on] \setupexternalfigure[location=default] \setuppagenumbering[location=] \starttext \externalfigure[cow][width=\textwidth] \stoptext These cut marks are lost after the first cut.

Re: [NTG-context] definefallbackfamily and uppercasedoublestruck not working?

2017-11-25 Thread Pablo Rodriguez
On 11/25/2017 03:10 PM, Mikael P. Sundqvist wrote: > [...] > I agree that it is strange to have those holes due to present symbols. > Will the code I used work in an updated beta, or should we proceed in > some other way? Hi Mikael, math is all Greek to me, but this seems to work (I guess,

Re: [NTG-context] Setting the footnote symbol

2017-11-17 Thread Pablo Rodriguez
On 11/16/2017 10:14 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: > On Thu, 16 Nov 2017 11:40:40 -0700, Pablo Rodriguez wrote: >> [...] >> I must confess that this is far beyond my knowledge. I never used >> \definefont. > > Mainly useful for testing for bugs in oth

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Pablo Rodriguez
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 has no associated typescript. > > Put another way: We

Re: [NTG-context] Setting the footnote symbol

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

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Pablo Rodriguez
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 raised. By default, the textcommand option has a value of \high in

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Pablo Rodriguez
On 11/16/2017 06:11 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: > Der gang, > > For the following \definefont scenario, the footnote symbol in the main > text is not raised: > > === > \setuppapersize[letter][letter] Dear Idris, which is the difference between your command above and

Re: [NTG-context] problems with XML export

2017-11-12 Thread Pablo Rodriguez
On 11/12/2017 05:06 PM, Alan Braslau wrote: > [...]> Whereas I might want to export systematically, Hans suggests that one > should export in a separate run using modes for example. This is not a > bad idea, but I would NOT want to have to then make a third run to fix > the "broken" PDF. This

Re: [NTG-context] new module seeking approval: handlecsv

2017-11-12 Thread Pablo Rodriguez
On 11/12/2017 11:46 AM, Mojca Miklavec wrote: > On 11 November 2017 at 21:32, Pablo Rodriguez wrote: >> [...] >> If the module is >> tex/texmf-context/tex/context/modules/mkiv/m-database.mkiv, I think this >> is only intended for typesetting the database contents. >

Re: [NTG-context] problems with XML export

2017-11-12 Thread Pablo Rodriguez
On 11/12/2017 09:33 AM, Henning Hraban Ramm wrote: > Am 2017-11-11 um 19:46 schrieb Pablo Rodriguez: >> \definehighlight[read][color=red, style=\sc] >> [...] >> I guess you have to use this instead of \color[]{}. > > Yes, I guess too. I remembered highligh

Re: [NTG-context] new module seeking approval: handlecsv

2017-11-11 Thread Pablo Rodriguez
On 11/11/2017 08:01 PM, Mojca Miklavec wrote: > On 8 November 2017 at 20:46, Pablo Rodriguez wrote: >> [...] >> It can handle different .csv files to data merging for document >> automatic generation. > > It would be helpful to figure out what exactly is missing in th

Re: [NTG-context] Reproducible PDF output

2017-11-11 Thread Pablo Rodriguez
On 11/11/2017 08:08 PM, N. Raghavendra wrote: [...] > $ ( context --nodates example.tex && cp example.pdf a && sleep 1 && \ > context --nodates example.tex && cp example.pdf b ) > /dev/null && \ > md5sum a b I checked it with sha256sum ;-). > Incidentally, is it common to use the

Re: [NTG-context] problems with XML export

2017-11-11 Thread Pablo Rodriguez
On 11/11/2017 06:30 PM, Henning Hraban Ramm wrote: > Here are a few problems that I encountered in my current ePub projects: > > * \color[]{} leaves no trace in export. Hi Hraban, this works with PDF, it should work with ePub: \definehighlight[read][color=red, style=\sc] \starttext

Re: [NTG-context] Reproducible PDF output

2017-11-11 Thread Pablo Rodriguez
On 11/11/2017 08:39 AM, N. Raghavendra wrote: > I would like to have reproducible PDF output from ConTeXt documents. I > tried the suggestions at https://tex.stackexchange.com/a/313605/146025 > but they did not work. The PDF output has information like > "ConTeXt.Time", "CreateDate", etc., which

[NTG-context] register with section references (instead of pages)

2017-11-08 Thread Pablo Rodriguez
Dear list, I have this sample: \starttext \chapter{One} \index{one} \section{Two} \index{two} \subsection{Three} \index{three} \placeregister[index] \stoptext Is there any way to get section numbers in the index references instead of page numbers? I have

[NTG-context] new module seeking approval: handlecsv

2017-11-08 Thread Pablo Rodriguez
Dear Mojca, I have submitted the handlecsv module to https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=86. It can handle different .csv files to data merging for document automatic generation. Would it be possible that it could be included in the ConTeXt Suite? Many thanks

<    1   2   3   4   5   6   7   8   9   10   >