[NTG-context] (bug?) wrong hyphenation with external fonts
Dear list, just accidentally I discovered the following issue: \definefontfamily[mainface][rm][MinionPro] \definefontfamily[anotherface][rm][TeX Gyre Pagella] % wrong hyphenation too with TeX Gyre Pagella Math \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] \hyphenatedword{LibreOffice libre office} \es\hyphenatedword{LibreOffice libre office} \stopTEXpage \startTEXpage[offset=1em] \setupbodyfont[anotherface]% \hyphenatedword{LibreOffice libre office} \es\hyphenatedword{LibreOffice libre office} \stopTEXpage \stoptext Hyphenation is wrong with fonts that don’t come with the ConTeXt distribution. TeX Gyre Pagella is hyphenated right, but MinionPro or even TeX Gyre Pagella Math are wrong hyphenated. I’m afraid it may be a bug. Could anyone confirm it? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] issue with break point
Dear list, I have the following code: \definebreakpoint[compound][—] \setbreakpoints[compound] \starttext \hsize\zeropoint Adobe—named {\em Adobe}—named \stoptext The second line doesn’t get the em-dash as a breakpoint. It seems to be related to the grouping. I’m afraid it may be a bug. Could anyone confirm this? Many thanks, Pablo -- http://www.ousia.tk ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] (bug?) interactive link areas and \scale
Dear list, [Sorry for sending many bug reports at once, but I’m not at home. I have my laptop and I’m working with it. Internet access is extremely limited here. I work offline and prepare all messages to be sent later when I can get some internet connection.] I have the following sample: \setupinteraction[state=start] \enabledirectives[references.border] \def\mypersonalurl#1{\bgroup% \tt\goto{\hyphenatedurl{#1}}[url(#1)]\egroup}% \unexpanded\def\href#1#2{\goto{#2} [url(#1)]} \starttext \mypersonalurl{wiki.contextgarden.net} \scale[width=.5\textwidth] {\mypersonalurl{wiki.contextgarden.net}} \stoptext The link area in latest beta is wrong when \scale is used (second link). Link area is fine with latest stable and beta from 2015.11.19 19:13. I don’t have all betas, but it appears in beta from 2015.12.20 00:29. Could anyone confirm the bug? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] not able to change paper sizes
Dear list, in this sample adapted from the documented code: \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape][A4,landscape] \starttext \setuppapersize[main] Page 1. \page Page 2. \page \setuppapersize[extra] Page 2 \page \setuppapersize[main] Page 3. \page Page 4. \page \adaptpapersize[extra] Page 5. \page Page 6. \page \startTEXpage[height=210mm, width=297mm] Page 6. \stopTEXpage \stoptext It isn’t possible to change the paper size. Only TEXpage does change the paper size. Could anyone confirm the bug? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] extended printing options in ConTeXt
Hans, would it be possible to implement two extended printing options defined in the PDF specification? You have kindly implemented duplex printing and page scaling options. At my workplace, we are it on a daily basis for mail merging (I had to make an “extension” to distinguish between duplex printing and page scaling [it isn’t an option for me]). In the present implementation, page, portrait and landscape values sets page scaling to none. In most of the documents we generate, we have to fit page contents to printer margins. It is a must for us, since corporate templates are the way they are (wrong designed). Would it be possible to have the PDF printing options in different keys than the one used for the the viewing options? It would be also extremely useful to be able to specify the number of copies and select page size from PDF document. These are the keys /NumCopies and /PickTrayByPDFSize (described on page 365 from the PDF specification). The keys and their values would be: duplex page portrait landscape (only a duplex key required) fixed (no value is required) copies number pdfsize yes no This way, the user has only to press the OK button in the printing dialog or enter (and forget about selecting which kind of document requires which options). I’m asking this for my own needs (it is essential for us at work, where none knows what ConTeXt might be). But this implementation benefits any ConTeXt user. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Reprocessing part of input
On 2/2/2016 4:28 PM, Meer, Hans van der wrote: How to do the following eludes me. Inside macro -processing read into a buffer the following part of the input \startmyinput ...\stopmyinput Analogous to input containing \startbuffer[mystoragebuffer] \startmyinput ... \stopmyinput \stopbuffer but now not executed at once, but stored in and executable from a buffer with \getbuffer[mystoragebuffer]. \setbuffer[foo]bar\endbuffer But of course there might be a better way to execute the same code more than once within one run of TeX. for that to answer you need to give more info - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Reprocessing part of input
How to do the following eludes me. Inside macro -processing read into a buffer the following part of the input \startmyinput ...\stopmyinput Analogous to input containing \startbuffer[mystoragebuffer] \startmyinput ... \stopmyinput \stopbuffer but now not executed at once, but stored in and executable from a buffer with \getbuffer[mystoragebuffer]. But of course there might be a better way to execute the same code more than once within one run of TeX. Hans van der Meer ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sanitize " in XML/XHTML documents
Am 2016-02-02 13:19, schrieb mass...@fastwebnet.it: Pandoc produces "some text". In TeX I would usually use \quotation{some text} to have proper, language dependent quotes. Are you sure that Pandoc can produce " only? Have you tried the --html-q-tags option? Greetings, Massi *face-palms* Yes, that did the trick. I completely overlooked that option. Thank you very much for that info! Now I can properly do quotes with an xmlsetup. Best regards, Andreas ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sanitize " in XML/XHTML documents
Am 2016-02-02 12:14, schrieb Hans Hagen: On 2/2/2016 11:32 AM, Andreas Schneider wrote: Anyway: is there any mechanism that I can use to "fix" quotations while typesetting XML documents? Pandoc produces "some text". In TeX I would usually use \quotation{some text} to have proper, language dependent quotes. To me that looks like a pandoc bug: how is a backend supposed to deal with left/right quotation marks? My next try would be to somehow intercept the XML stream (or flush) using lua and replace " ... " inline. However that all seems quite hacky. even then you can have issues: what if you have nested and/or unbalanced quotes ... Pandoc allows to replace quotes with "smart punctuation". That would cause "..." to be replaced by “...”. That way I can at least safely determine start and end, thereby replacing “ with \quotation\bgroup and ” with \egroup. I'm aware that there might still be cases where this goes wrong, but it should be much more rare then :-) So I guess my lua based search and replace (combined with said "smart punctuation") could be my best bet at the moment. If any other ideas pop up, I'm happy to hear them, though :-) Thanks for your quick response! Best regards, Andreas ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] papersize A1?
On 2/2/2016 11:02 AM, Procházka Lukáš Ing. wrote: Hello, the following code doesn't produce 594 x 841 mm (A1) page; the resulting size is 594 x 758 mm. Also, there is no "Hello" text. \setuppapersize[A1] \starttext Hello \stoptext What's wrong? for now add this to cont-new.mkiv: \pdfdecimaldigits\plusfive Best regards, Lukas ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sanitize " in XML/XHTML documents
> Pandoc produces "some text". In TeX I would usually use > \quotation{some text} to have proper, language dependent quotes. Are you sure that Pandoc can produce " only? Have you tried the --html-q-tags option? Greetings, Massi ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sanitize " in XML/XHTML documents
On 2/2/2016 11:32 AM, Andreas Schneider wrote: Hi, I hope I don't just overlook some plain obvious solution, but a longer search in the Wiki and the mailing list (and the context source) didn't come up with anything too useful Anyway: is there any mechanism that I can use to "fix" quotations while typesetting XML documents? Pandoc produces "some text". In TeX I would usually use \quotation{some text} to have proper, language dependent quotes. To me that looks like a pandoc bug: how is a backend supposed to deal with left/right quotation marks? I tried to intercept " using \xmltexentity{quot}{...} but apparently the internal replacement takes precedence here. Otherwise I would have tried to build some small state machine which remembers if it is currently inside a quotation of not. quot lt gt amp are kind of system entities so not to be messed with you could do a replacement: " -> &myquot; and then \xmltexentity{myquot}{?} or \xmlsetentity{myquot}{?} depending on what gets done My next try would be to somehow intercept the XML stream (or flush) using lua and replace " ... " inline. However that all seems quite hacky. even then you can have issues: what if you have nested and/or unbalanced quotes ... So, does ConTeXt currently offer anything I can piggyback to get quotations set properly? :-) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hyphenation list ignored
On 2/1/2016 10:28 AM, Francisco Gracia wrote: It has taken me some time to conjecture that *mwe* would probably mean *minimal working example* and somewhat more to try to concoct something that could pass for it, but here it is, in the attached file *mis-hyph.tex*. I hope not to have incurred in any gross mistake. Attached are also three other files (*exhibit-n.pdf*) which show the results of its compilation under three different circumstances. These circumstances are described at the end of each typeset text. Mishyphenated words are underlined. Inept as it is, this example has proved to me that I was mistaken in my initial supposition that the problem was related to the importing mechanism of a separate file containing the exceptions' list. The difficulty seems now to lie deeper into the hyphenation machinery itself. I would be glad if it could be of any help to solve it. fixed in luatex 0.89 (end of week release) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] papersize A1?
Hello, the following code doesn't produce 594 x 841 mm (A1) page; the resulting size is 594 x 758 mm. Also, there is no "Hello" text. \setuppapersize[A1] \starttext Hello \stoptext What's wrong? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 A1.log Description: Binary data A1.mkiv Description: Binary data A1.pdf Description: Adobe PDF document ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Sanitize " in XML/XHTML documents
Hi, I hope I don't just overlook some plain obvious solution, but a longer search in the Wiki and the mailing list (and the context source) didn't come up with anything too useful Anyway: is there any mechanism that I can use to "fix" quotations while typesetting XML documents? Pandoc produces "some text". In TeX I would usually use \quotation{some text} to have proper, language dependent quotes. I tried to intercept " using \xmltexentity{quot}{...} but apparently the internal replacement takes precedence here. Otherwise I would have tried to build some small state machine which remembers if it is currently inside a quotation of not. My next try would be to somehow intercept the XML stream (or flush) using lua and replace " ... " inline. However that all seems quite hacky. So, does ConTeXt currently offer anything I can piggyback to get quotations set properly? :-) Best regards, Andreas ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt vs Beamer
On Uto, 2016-01-26 at 09:57 +0100, Marcin Borkowski wrote: > unfortunately, there's no ConTeXt support, but adding it is a > questions of a few hours of simple Emacs Lisp hacking). Let me just say that I've decided to move to Spacemacs (it's RSI- friendly) along with Org-mode/Gnus etc. However, Emacs Lisp hacking is still just TODO, but wonder if you can share some tips for using AUCTeX with ConTeXt? reveal.js looks interesting, although, in general, I prefer non-JS stuff. Sincerely, Gour -- Never was there a time when I did not exist, nor you, nor all these kings; nor in the future shall any of us cease to be. ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] text wrapped around \textwidth sized images unwantedly.
On 2/1/2016 11:08 PM, d_jan wrote: I use ConTeXt for a document with many images. The text should float around the images, if possible. The floating itself works fine, but some images are equal or larger than \textwidth (so they are maxwidth=\textwidth). Instead of breaking above the image and starting below it again, the algorithm tries to float a bit of text (about 2-4 characters each line) around the image using space outside the text area (which naturally causes overfull \hbox-es). Is there any way to prevent this? If not, I define another float for these images and assign it to the affected images, but I wonder if I can get around this. try this: \setupfloat[figure][criterium=10cm,fallback=here] \placefigure[left]{}{\framed[width=5cm]{}} \input tufte \placefigure[left]{}{\framed[width=\textwidth]{}} \input tufte - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___