Re: [NTG-context] jpeg problem: Dimension too large
On Tue, Mar 10, 2015 at 9:51 AM, Hans Hagen pra...@wxs.nl wrote: On 3/9/2015 10:18 PM, Harald Koenig wrote: Hi, and here a 1st problem including (some) JPGs which are created/converted using convert from ImageMagick (using ImageMagick-6.8.6.9-2.28.1.x86_64 from openSUSE 13.1 -- just in case...) btw. -- I'm using a decent standalone context installation, full log file attached... running context j1.tex I get LuaTeX warning: arithmetic: number too big graphics inclusion limiting natural dimensions of './IMG_9712c1_bad.jpg' (height) when i provide more detail here: graphics inclusion limiting natural dimensions of './IMG_9712c1_ok.jpg', old -32768pt * 17778.42pt, new -30197.89787pt * 16383.8pt so we have a bug in the engine (or jpg library) convert IMG_9712c1_bad.jpg IMG_9712c1_bad_1.jpg IMG_9712c1_bad_1.jpg now wroks identify -verbose IMG_9712c1_bad_1.jpg o1 identify -verbose IMG_9712c1_bad.jpg o $ diff o o1 1c1 Image: IMG_9712c1_bad.jpg --- Image: IMG_9712c1_bad_1.jpg 7c7 Units: Undefined --- Units: PixelsPerInch 20,23c20,23 mean: 124.329 (0.487564) standard deviation: 17.5202 (0.0687068) kurtosis: 2.41664 skewness: -1.26318 --- mean: 124.324 (0.487547) standard deviation: 17.5075 (0.0686569) kurtosis: 2.41645 skewness: -1.2637 27,30c27,30 mean: 111.362 (0.436713) standard deviation: 15.7153 (0.0616287) kurtosis: 2.28057 skewness: -1.32468 --- mean: 111.364 (0.436722) standard deviation: 15.7186 (0.0616417) kurtosis: 2.2811 skewness: -1.32482 34,37c34,37 mean: 93.8436 (0.368014) standard deviation: 14.7826 (0.0579712) kurtosis: 1.96665 skewness: -1.31581 --- mean: 93.842 (0.368008) standard deviation: 14.7911 (0.0580042) kurtosis: 1.96604 skewness: -1.31629 42,45c42,45 mean: 109.845 (0.430764) standard deviation: 16.0464 (0.0629269) kurtosis: 5.8085 skewness: -1.07043 --- mean: 109.844 (0.430759) standard deviation: 16.0454 (0.0629232) kurtosis: 5.81176 skewness: -1.07339 66,67c66,67 date:create: 2015-03-10T09:44:29+01:00 date:modify: 2015-03-10T09:29:18+01:00 --- date:create: 2015-03-10T10:19:42+01:00 date:modify: 2015-03-10T10:19:42+01:00 70c70 signature: 9a007a0aa8c2cec2e9a4a7c6be79b538eac50590d343c3f31e2b0dbe1561e2dc --- signature: 3b838a4b66f58fb8e4b06578358c51e6efb8cc72ff7a5f4a88acf6f42067e228 72c72 filename: IMG_9712c1_bad.jpg --- filename: IMG_9712c1_bad_1.jpg shows that Units: Undefined is the problem. Imo, this is a bad jpg that should be fixed and not a bug of luatex. -- luigi ___ 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] TikZ is colored despite having \setupcolors[state=stop]
2015-03-10 12:24 GMT+01:00 Hans Hagen pra...@wxs.nl: On 3/10/2015 12:10 PM, Norbert Melzer wrote: I've posted the same question on TE already: http://tex.stackexchange.com/questions/232158/tikz-is- colored-despite-having-setupcolorsstate-stop Text of the question: In the following MWE I get a red square, but I want it to be gray, as in the also provided LaTeX-document: ```tex % ConTeXt MWE \setupcolors[state=stop] \usemodule[tikz] \starttext \tikz{\draw[color=red,fill] (0,0) rectangle (1,1)} \stoptext ``` ``` % LaTeX-document wich does what I want \PassOptionsToPackage{gray}{xcolor} \documentclass{article} \usepackage{tikz} \begin{document} \tikz{\draw[color=red,fill] (0,0) rectangle (1,1)} \end{document} ``` The state=stop will only affect tikz when it uses the context color handling. How can I convince TikZ to use ConTeXts colorhandling? One of the relevant status variables is: \c_colo_enabled \ifcase\c_colo_enabled yes \else no \fi assuming that _ is a character I don't understand what you exactly want to tell me with this. I assume you don't mean to copy-paste that literally into my env-file, but what to do exactly with that snippet? ___ 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] mkiv and lettrine
Nobody? Is there a way to get the ‘more options’ mentioned on ConTeXtgarden to work in mkiv? G On 01 Mar 2015, at 22:43, Gerben Wierda gerben.wie...@rna.nl wrote: On 01 Mar 2015, at 11:54, Hans Hagen pra...@wxs.nl wrote: On 3/1/2015 11:39 AM, Gerben Wierda wrote: Nobody? On 27 Feb 2015, at 18:01, Gerben Wierda gerben.wie...@rna.nl mailto:gerben.wie...@rna.nl wrote: I am using lettrine in mkii. I am trying to convert a project to mkiv. I’d like to use lettrine here too. \usemodule[lettrine] \setuplettrine[Lines=3, Hang=.5, Oversize=0, Raise=0, Findent=0pt, Nindent=0em, Slope=0em, Ante=, FontHook=, TextFont=\sc, Image=no] \lettrine{S}{\kap{\bf uppose we}} have a system What do I have to change for mkiv? search for 'initials' (probably on the wiki somewhere) http://wiki.contextgarden.net/Initials Halfway down, lettrine for if you need more options. But the given example does not work in mkiv G ___ 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 ___ ___ 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] TikZ is colored despite having \setupcolors[state=stop]
On 3/10/2015 12:10 PM, Norbert Melzer wrote: I've posted the same question on TE already: http://tex.stackexchange.com/questions/232158/tikz-is-colored-despite-having-setupcolorsstate-stop Text of the question: In the following MWE I get a red square, but I want it to be gray, as in the also provided LaTeX-document: ```tex % ConTeXt MWE \setupcolors[state=stop] \usemodule[tikz] \starttext \tikz{\draw[color=red,fill] (0,0) rectangle (1,1)} \stoptext ``` ``` % LaTeX-document wich does what I want \PassOptionsToPackage{gray}{xcolor} \documentclass{article} \usepackage{tikz} \begin{document} \tikz{\draw[color=red,fill] (0,0) rectangle (1,1)} \end{document} ``` The state=stop will only affect tikz when it uses the context color handling. One of the relevant status variables is: \c_colo_enabled \ifcase\c_colo_enabled yes \else no \fi assuming that _ is a character - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] \setupcaptions question
Am 13.02.2015 um 08:53 schrieb j. van den hoff veedeeh...@googlemail.com: On Fri, 13 Feb 2015 04:54:58 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: No, you’re right. I used the wrong command (\at is used to show the page where to float was placed) understood. and so far there is only a workaround for this problem. What you can do OK, does this require some sort of formal bug report or can the issue be now considered to be on the to do list? is to use the “suffix” key to set a stopper for the caption which will only appear in the caption itself. \setupexternalfigure[location=default] \setupcaption[figure][suffix=:] \starttext Take a look at \in{picture}[fig:cow] below. \startplacefigure[reference=fig:cow,title=A dutch cow] \externalfigure[cow] \stopplacefigure \stoptext This solution is far from perfect because normally the suffix key is used for the internal counter of split floats, e.g. when a numbered table is split over several tables and you get numbers label „Table 3.a” etc. I see. I think workaround will suffice for the present document, thank you. I will do that (and hope for a timely fix so that I can revert to numberstopper soon…) The new beta let you change the stopper symbol which is shown in the reference, to disable the stopper you have to use “numberstopper={\symbol[none]}”. \setupexternalfigure[location=default] \setupcaption[figure][numberstopper=:] \setupreferencestructureprefix[figure][default][numberstopper={\symbol[none]}] \starttext Take a look at \in{picture}[fig:cow] below. \startplacefigure[reference=fig:cow,title=A dutch cow] \externalfigure[cow] \stopplacefigure \stoptext Wolfgang ___ 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] mkiv and lettrine
On 3/10/2015 11:38 AM, Gerben Wierda wrote: Nobody? Is there a way to get the ‘more options’ mentioned on ConTeXtgarden to work in mkiv? there are some examples in the test suits (typesetting/initials*) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] shrink JPGs to some resolution (dpi) ?
On 3/10/2015 2:33 AM, Harald Koenig wrote: On Mar 10, Hans Hagen wrote: anyway, i need to think a bit about it but we do have all the info available, like - needed width/height - original width/height and from that we can calculate some conversion parameters if you start thinking/working on this, some data from EXIF might be interesting and helpful too, esp. the Orientation. using that data, automatic rotation to the correct orientation would be possible. maybe there are more interesting information in the exif data?! what about color space infos ? or time stamps or GPS data which might be used to be typeset... if it would help you i can provide a tracker that will save info like this (per image): that would be great as my current \message{} stuff is far from being perfect... Luigi and I looked into the engine bit and decided that it makes no sense to intercept it there as it would mean obscuring possible errors. But, I can intercept it in context so that is what happens now. You will get something: LuaTeX warning: arithmetic: number too big graphics inclusion image './IMG_9712c1_bad.jpg' has bad dimensions (-32768pt,23849.10001pt), discarding I also added a tracker: \starttext % \pdfimageresolution300 \enabletrackers[graphics.lognames,graphics.usage] \externalfigure[IMG_9712c1_ok] \externalfigure[IMG_9712c1_bad] \stoptext btw, you can simulate some of the issues with setting \pdfimageresolution to 1-10 The tracker makes a file jobname-figures-usage.lya that has two subtables, one with found images, and another with how they are used, including an error flag. I'll upload a beta. Now who will wikify this ... Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Link to mentions in listofsynonyms and to listofsynomyn in mentions?
Hi! Given the following ME, is there a way, that the use of `\AI` links to the corresponding entry in the `\listofabbrevs` and also that there is a comma separated list of pages which mention `\AI`, just as the acronym portion of LaTeXs glossaries does? ```tex \setupinteraction[state=start] \definesynonyms[abbrev][abbrevs][\longform] \abbrev{AI}{Artificial Intelligence} \starttext \AI \completelistofabbrevs \stoptext ``` TIA Norbert ___ 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] TikZ is colored despite having \setupcolors[state=stop]
I've posted the same question on TE already: http://tex.stackexchange.com/questions/232158/tikz-is-colored-despite-having-setupcolorsstate-stop Text of the question: In the following MWE I get a red square, but I want it to be gray, as in the also provided LaTeX-document: ```tex % ConTeXt MWE \setupcolors[state=stop] \usemodule[tikz] \starttext \tikz{\draw[color=red,fill] (0,0) rectangle (1,1)} \stoptext ``` ``` % LaTeX-document wich does what I want \PassOptionsToPackage{gray}{xcolor} \documentclass{article} \usepackage{tikz} \begin{document} \tikz{\draw[color=red,fill] (0,0) rectangle (1,1)} \end{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 ___
Re: [NTG-context] TikZ is colored despite having \setupcolors[state=stop]
How can I convince TikZ to use ConTeXts colorhandling? One of the relevant status variables is: \c_colo_enabled \ifcase\c_colo_enabled yes \else no \fi assuming that _ is a character I don't understand what you exactly want to tell me with this. I assume you don't mean to copy-paste that literally into my env-file, but what to do exactly with that snippet? it shows away to test of color is enabled ... just an example of usage ... it's up to tikz folks to use it or not ... so nothing for you to do Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Sourcemirror at gitorious is closing down, where to find it then?
On Tue, Mar 10, 2015 at 4:56 PM, Norbert Melzer wrote: Since gitorious got acquired by gitlab it will shut down its service end of May 2015 (https://about.gitlab.com/2015/03/03/gitlab-acquires-gitorious/). Where will ConTeXts source mirror be hosted then? Will it get transfered over to gitlab? Github? Bitbucket? Sourceforge? Somewhere else? First: we need a reliable repository We have a collection of ConTeXt releases that I need to convert into a git repository (there was a discontinuity back in October that I need to fix, so that we'll have a complete history). If someone is willing to spend a few hours fixing/completing the script that will turn the zips into git commits, let me know and I'll send you my half-finished work. Second: there are a bunch of (outdated) mirrors that will be brought up to date again once the first step is complete - There is a mirror on GitHub (https://github.com/contextgarden/context) - There is a mirror on contextgarden (http://git.contextgarden.net/context/context) - I conveniently locked myself out when creating a new username (context) on GitLab by making a typo when entering the email address and I'm not sure where and how to ask for help. Maybe the request for username expires after a while if nobody confirms it? Or I could hypothetically create that email with a typo and resend the confirmation email, then disable the email account again. If someone can point me out the place where I could ask for unlocking the context account, I would be grateful. I might just as well try luck on the generic email address. - I'm not a particular fan of sourceforge. I see no reason to host a mirror there. Their user interface is simply horrible. They got a bit better over time, but ... - BitBucket used to be hg-only. I see no reason not to have a mirror there as well (but I don't see any particular need for yet another mirror either). If there are enough people who think that having yet another mirror on BitBucket as well would be useful for whatever reason, let me know. (I don't know how GitLab works now and whether they fixed that annoying bug, but we had some serious issues with the Unicorn server behind it. Cloning the repository was often stuck/broken for no good reason, just because the server thought that cloning was supposed to be done in under 30 seconds, else it broke the connection as stale. Maybe they'll have to fix it now if all those giant projects like Qt switch to their service.) Mojca ___ 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] Sourcemirror at gitorious is closing down, where to find it then?
On 3/10/2015 5:39 PM, Mojca Miklavec wrote: On Tue, Mar 10, 2015 at 4:56 PM, Norbert Melzer wrote: Since gitorious got acquired by gitlab it will shut down its service end of May 2015 (https://about.gitlab.com/2015/03/03/gitlab-acquires-gitorious/). Where will ConTeXts source mirror be hosted then? Will it get transfered over to gitlab? Github? Bitbucket? Sourceforge? Somewhere else? First: we need a reliable repository yours isn't less reliable that gitorious as yours stays around -) We have a collection of ConTeXt releases that I need to convert into a git repository (there was a discontinuity back in October that I need to fix, so that we'll have a complete history). that would be nice indeed If someone is willing to spend a few hours fixing/completing the script that will turn the zips into git commits, let me know and I'll send you my half-finished work. i suppose i could commit but maintaining a git repos with all these dependencies is no fun for me Second: there are a bunch of (outdated) mirrors that will be brought up to date again once the first step is complete - There is a mirror on GitHub (https://github.com/contextgarden/context) - There is a mirror on contextgarden (http://git.contextgarden.net/context/context) - I conveniently locked myself out when creating a new username (context) on GitLab by making a typo when entering the email address and I'm not sure where and how to ask for help. Maybe the request for username expires after a while if nobody confirms it? Or I could hypothetically create that email with a typo and resend the confirmation email, then disable the email account again. If someone can point me out the place where I could ask for unlocking the context account, I would be grateful. I might just as well try luck on the generic email address. - I'm not a particular fan of sourceforge. I see no reason to host a mirror there. Their user interface is simply horrible. They got a bit better over time, but ... no need as we have the supelec for luatex and so ... - BitBucket used to be hg-only. I see no reason not to have a mirror there as well (but I don't see any particular need for yet another mirror either). If there are enough people who think that having yet another mirror on BitBucket as well would be useful for whatever reason, let me know. indeed, a volunteer using that could also keep it up to date (I don't know how GitLab works now and whether they fixed that annoying bug, but we had some serious issues with the Unicorn server behind it. Cloning the repository was often stuck/broken for no good reason, just because the server thought that cloning was supposed to be done in under 30 seconds, else it broke the connection as stale. Maybe they'll have to fix it now if all those giant projects like Qt switch to their service.) till they sell themselves too -) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] mkiv and lettrine
On 10 Mar 2015, at 12:03, Hans Hagen pra...@wxs.nl wrote: On 3/10/2015 11:38 AM, Gerben Wierda wrote: Nobody? Is there a way to get the ‘more options’ mentioned on ConTeXtgarden to work in mkiv? there are some examples in the test suits (typesetting/initials*) And where are the test suites? They’re not part of the distribution. G ___ 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] Sourcemirror at gitorious is closing down, where to find it then?
On 03/10/2015 04:56 PM, Norbert Melzer wrote: Since gitorious got acquired by gitlab it will shut down its service end of May 2015 (https://about.gitlab.com/2015/03/03/gitlab-acquires-gitorious/). Where will ConTeXts source mirror be hosted then? Will it get transfered over to gitlab? Github? Bitbucket? Sourceforge? Somewhere else? Hi Norbert, GitHub has a ConTeXt repo: https://github.com/contextgarden/context/. And there is another repo at http://git.contextgarden.net/groups/context. The only issue is that their last commit is five months old. 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] mkiv and lettrine
http://wiki.contextgarden.net/Test_suite links to https://foundry.supelec.fr/gf/project/contexttest/scmsvn/?action=AccessInfo which is a dead link. Most if not all links to supelec on that page are dead On 10 Mar 2015, at 18:11, Gerben Wierda gerben.wie...@rna.nl wrote: On 10 Mar 2015, at 12:03, Hans Hagen pra...@wxs.nl wrote: On 3/10/2015 11:38 AM, Gerben Wierda wrote: Nobody? Is there a way to get the ‘more options’ mentioned on ConTeXtgarden to work in mkiv? there are some examples in the test suits (typesetting/initials*) And where are the test suites? They’re not part of the distribution. G ___ 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 ___ ___ 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] footnote link destionations in interactive documents
Hans, I have the following sample: \setupinteraction[state=start, focus=standard] \starttext \completecontent \chapter{Chapter 1} a\footnote{b} \stoptext The sample above has a /XYZ link destination for the table of contents, but two /Fit link destinations for footnotes. Now that links work better since the first beta from yesterday, wouldn’t it be possible that footnote links in interactive documents use the same kind of destinations than the other links? 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] Hanging indent
Hello everybody, Currently I am typesetting a small dictionary. I want to have hanging indents if the text joined to the expression is longer than one line. In the past I had this definitions: \defineblank[Afterhangingparagraph][1pc] \starttext \def\Hangindent{\hangafter=1\hangindent=1em} \definestartstop[HangPar] [before={\bgroup\appendtoks\Hangindent\to\everypar}, after={\egroup\blank[Afterhangingparagraph]}] \starttext \startHangPar \input knuth \stopHangPar \startHangPar {\bf Aanslaan,} aanspreken. Een poging in 't werk stellen. Ik zal dat heertje reis aanslaan. Sla dien broger (man) aan, misschien heeft hij poen (geld). Jongens, er moet aangeslagen worden, daar loopt mooi gajes (menschen daar wat van te halen is). \stopHangPar \stoptext The strange thing is, that the first two paragraphs of the Knuth-text is showing a hanging indent, however the last paragraph does not which is unexpected. In the example from the dictionary no hanging indentation is shown. What do I mis here? Kind regards Willi ___ 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] footnote link destionations in interactive documents
On 3/10/2015 6:04 PM, Pablo Rodriguez wrote: Hans, I have the following sample: \setupinteraction[state=start, focus=standard] \starttext \completecontent \chapter{Chapter 1} a\footnote{b} \stoptext The sample above has a /XYZ link destination for the table of contents, but two /Fit link destinations for footnotes. Now that links work better since the first beta from yesterday, wouldn’t it be possible that footnote links in interactive documents use the same kind of destinations than the other links? as we're closing in to a tex live release and therefore a current i'm not going to touch reference/destination code now (also because it's pretty hard to test, this kind of viewer related mess) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] shrink JPGs to some resolution (dpi) ?
Hallo Harald, lange nicht gesehen! ;) Am 2015-03-10 um 07:33 schrieb Harald Koenig koe...@tat.physik.uni-tuebingen.de: if you start thinking/working on this, some data from EXIF might be interesting and helpful too, esp. the Orientation. using that data, automatic rotation to the correct orientation would be possible. maybe there are more interesting information in the exif data?! what about color space infos ? or time stamps or GPS data which might be used to be typeset... Oh yes, and then include a OpenStreetMap snippet of the location… (I’m working on an architectural guide, and I planned to put all the material in a database and use ConTeXt and Python to automatically create the book as well as an mobile app, plus a map with the building locations… But now we have a contract with a publisher, and he wants InDesign data. Since we must also use his serial layout, that makes sense. And he thinks a separate map is too expensive. Maybe I’ll create that app anyway, I already put so much work in enhancing OSM data…) Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] shrink JPGs to some resolution (dpi) ?
On Mon, Mar 09 2015, Harald Koenig wrote: is it possible that context (lua?) will shrink all \externalfigure jpegs automatically to some specified dpi resolution and quality (e.g. 300 dpi with 95% jpeg 'quality' for print and 100 dpi and 75% for screen quality) ? Hi, Does this work: http://modules.contextgarden.net/grph-downsample ? (I did not test it with the latest context version...) There is no support for changing the quality, but it should be easy to add it. -- Peter ___ 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] shrink JPGs to some resolution (dpi) ?
On Mar 10, Peter Münster wrote: Does this work: http://modules.contextgarden.net/grph-downsample ? (I did not test it with the latest context version...) There is no support for changing the quality, but it should be easy to add it. that should great! but how do I use it ? problems with me as newbe start with installation: reading http://wiki.contextgarden.net/Modules#Installation I unzipped the file in .../context/tex/texmf/ and run context --generate BUT then I found the hint about first-setup.sh --modules=grph-downsample which removed the unzipped module:-( so for now I stay with unzup and context --generate and do not run first-setup.sh again. what's the real way here ? next problem: how to use your module ? I can't find the docs and just a \usemodule[grph-downsample] doesn't seem to do the trick ?! btw, I've added your suggested patch to grph-inc.lua thanks, Harald -- I hope to die ___ _ before I *have* to use Microsoft Word., 0--,|/OOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen._/ / /OOO\ \ \/OOO\ \ O|// \/\/\/\/\/\/\/\/\/ Harald Koenig // / \\ \ koe...@tat.physik.uni-tuebingen.de ^ ^ ___ 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] paragraph footnotes line height
Il giorno sab, 07/03/2015 alle 10.59 +0100, Wolfgang Schuster ha scritto: Am 07.03.2015 um 00:08 schrieb mf mass...@fastwebnet.it: Hello, I'd like to know how I can set the line height of paragraph footnotes. They get the line height set with \setupinterlinespace, whether I use the grid or not. Here's my configuration: \setupnotation[footnote][ alternative=serried, numbercommand=, numberstopper=, numbercommand=\high, numberconversion=a, way=bypage, width=0pt, location=page ] \setupnote[footnote][ paragraph=yes, inbetween= \emdash{} , location=page ] \startsetups[footnote:interlinespace] \setupinterlinespace[line=10pt] \stopsetups \setupnote[footnote][setups=footnote:interlinespace] Wolfgang I have found a solution, searching with docfetcher for the occurrencies of \baselineskip in all the ConTeXt documentation I've downloaded. In LaTeX in proper ConTeXt, at page 26, Berend de Boer shows how to set the the interline space relatively to the body font size. My layout has a body font size of 11 points on 12 points of interline space; I'm using grid snapping (\setuplayout[ ... grid=tolerant, ... ]). Instead of setting the interline space like this: \setupinterlinespace[12pt] I've used: \setupinterlinespace[1.09\bodyfontsize] % 11pt * 1.09 = 12pt This way: - the paragraph footnotes' interline space is less than the 12 points of the grid - Wolfgang's solution works too: \startsetups[footnote:interlinespace] \setupinterlinespace[line=1.2\bodyfontsize] \stopsetups but only to widen the interline space of footnotes; When I try to shrink the footnotes' interline space with: \startsetups[footnote:interlinespace] \setupinterlinespace[line=.9\bodyfontsize] \stopsetups the only vertical space that shrinks it the one between the bottom of the main text and the footnotes' top. Have you an explanation for that behaviour? I'm new to ConTeXt and I still need to develop a ConTeXt mindset; perhaps the people who know how ConTeXt works will find that understandable. Any hint is welcome. Thanks, 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] mkiv and lettrine
After studying that, I’ve been unable to find out how to do the following. \starttext \placeinitial {``L}{\kap{\bf et me}} tell you a little story.\index{Wittgenstein+ice floor analogy} There was once a young man who dreamed of reducing the world to pure logic. Because he was a very clever young man, he actually managed to do it. When he had finished his work, he stood back and admired it. It was beautiful! A world purged of imperfection and indetermenency. Countless acres of gleaming ice stretching to the horizon. So the clever young man looked around the world he had created and decided to explore it. He took one step forward and fell flat on his back. You see, he had forgotten about friction! The ice was smooth and level and stainless, but you couldn't walk there. So the clever young man sat down and wept bitter tears. But as he grew into a wise old man, he came to understand that roughness and ambiguity aren't imperfections, they are what make the \stoptext I’d like to - Have ``L in the initial (quote mark + L) - Have the initial a bit in the margin, but not fully - Have the top of the initial not rise above the top of the first line On 10 Mar 2015, at 18:35, luigi scarso luigi.sca...@gmail.com wrote: On Tue, Mar 10, 2015 at 6:11 PM, Gerben Wierda gerben.wie...@rna.nl wrote: On 10 Mar 2015, at 12:03, Hans Hagen pra...@wxs.nl wrote: On 3/10/2015 11:38 AM, Gerben Wierda wrote: Nobody? Is there a way to get the ‘more options’ mentioned on ConTeXtgarden to work in mkiv? there are some examples in the test suits (typesetting/initials*) And where are the test suites? They’re not part of the distribution. http://www.pragma-ade.nl/context/latest/cont-tst.7z -- luigi ___ 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 ___ ___ 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] setupformulas options (or defineformula) and effort to reduce the font in math formulas
Hello List. I would like some elegant way to diminished font in math formulas... Is there possibility anything as \setupformulas[before={\switchtobodyfont[small]} ]? I need to align formulas, so are not enough to \mathematics {} Below is my fallback. You can do something smarter? Thanx Jaroslav Hajtmar \defineformula[small][ align=right, strut=yes, spacebefore=, spaceafter=, % before={\switchtobodyfont[small]} ] % Here is my fallback solution: \def\Startsmallformula{\startsmallformula\switchtobodyfont[small] } \starttext \startformula \lim\limits_{x\rightarrow-2^{\mp}}{\arctan\frac{x}{2+x}}=\pm\frac{\pi}{2} \stopformula \startformula f':\;y' = \frac{\sqrt{3}(1+x^2)}{(1-x^2)^2+3x^2} \stopformula \startformula \lim\limits_{x\rightarrow 1^{\mp}}{\frac{x^2+1}{x-1}}=\mp\infty \stopformula \Startsmallformula \lim\limits_{x\rightarrow-2^{\mp}}{\arctan\frac{x}{2+x}}=\pm\frac{\pi}{2} \stopsmallformula \Startsmallformula f':\;y' = \frac{\sqrt{3}(1+x^2)}{(1-x^2)^2+3x^2} \stopsmallformula \Startsmallformula \lim\limits_{x\rightarrow 1^{\mp}}{\frac{x^2+1}{x-1}}=\mp\infty \stopsmallformula \blank[big] \startsmallformula \startalign \NC f(x)\NC = \ln (x^2+2x+2)\NR \NC f(-x)\NC = \ln ((–x)^2 - 2x + 2)\NR \NC -f(x)\NC = -\ln (x^2+2x+2)\NR \stopalign \stopsmallformula \blank[big] \Startsmallformula \startalign \NC f(x)\NC = \ln (x^2+2x+2)\NR \NC f(-x)\NC = \ln ((–x)^2 - 2x + 2)\NR \NC -f(x)\NC = -\ln (x^2+2x+2)\NR \stopalign \stopsmallformula \stoptext ___ 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] mkiv and lettrine
On 3/10/2015 10:51 PM, Gerben Wierda wrote: After studying that, I’ve been unable to find out how to do the following. \starttext \placeinitial {``L}{\kap{\bf et me}} tell you a little story.\index{Wittgenstein+ice floor analogy} There was once a young man who dreamed of reducing the world to pure logic. Because he was a very clever young man, he actually managed to do it. When he had finished his work, he stood back and admired it. It was beautiful! A world purged of imperfection and indetermenency. Countless acres of gleaming ice stretching to the horizon. So the clever young man looked around the world he had created and decided to explore it. He took one step forward and fell flat on his back. You see, he had forgotten about friction! The ice was smooth and level and stainless, but you couldn't walk there. So the clever young man sat down and wept bitter tears. But as he grew into a wise old man, he came to understand that roughness and ambiguity aren't imperfections, they are what make the \stoptext I’d like to - Have ``L in the initial (quote mark + L) - Have the initial a bit in the margin, but not fully - Have the top of the initial not rise above the top of the first line \setupbodyfont[dejavu] \starttext \setupinitial[font=Bold cp \measure{initial:n},hoffset=2ex,voffset=1\lineheight,n=2,m=2,distance=-1ex] \placeinitial `What is this. \input ward \par \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] setupformulas options (or defineformula) and effort to reduce the font in math formulas
Thanks Hans for the reply. I take to type some formulas larger font, so that's why I opted to frame their own definition of a formula environment with small print. Switch entire mathematical text on small I don't want. Therefore, I would like to have both: \startformula \stopformula and \startsmallformula \stopsmallformula Thanx Jaroslav Hajtmar Dne 10.3.2015 v 23:57 Hans Hagen napsal(a): On 3/10/2015 11:45 PM, Jaroslav Hajtmar wrote: Hello List. I would like some elegant way to diminished font in math formulas... Is there possibility anything as \setupformulas[before={\switchtobodyfont[small]} ]? I need to align formulas, so are not enough to \mathematics {} Below is my fallback. You can do something smarter? define a bodyfont (rm,mm,tt) where the math has an rscale of 0.8 Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] paragraph footnotes line height
On 3/10/2015 10:58 PM, mf wrote: Il giorno sab, 07/03/2015 alle 10.59 +0100, Wolfgang Schuster ha scritto: Am 07.03.2015 um 00:08 schrieb mf mass...@fastwebnet.it: Hello, I'd like to know how I can set the line height of paragraph footnotes. They get the line height set with \setupinterlinespace, whether I use the grid or not. Here's my configuration: \setupnotation[footnote][ alternative=serried, numbercommand=, numberstopper=, numbercommand=\high, numberconversion=a, way=bypage, width=0pt, location=page ] \setupnote[footnote][ paragraph=yes, inbetween= \emdash{} , location=page ] \startsetups[footnote:interlinespace] \setupinterlinespace[line=10pt] \stopsetups \setupnote[footnote][setups=footnote:interlinespace] Wolfgang I have found a solution, searching with docfetcher for the occurrencies of \baselineskip in all the ConTeXt documentation I've downloaded. In LaTeX in proper ConTeXt, at page 26, Berend de Boer shows how to set the the interline space relatively to the body font size. My layout has a body font size of 11 points on 12 points of interline space; I'm using grid snapping (\setuplayout[ ... grid=tolerant, ... ]). Instead of setting the interline space like this: \setupinterlinespace[12pt] I've used: \setupinterlinespace[1.09\bodyfontsize] % 11pt * 1.09 = 12pt This way: - the paragraph footnotes' interline space is less than the 12 points of the grid - Wolfgang's solution works too: \startsetups[footnote:interlinespace] \setupinterlinespace[line=1.2\bodyfontsize] \stopsetups but only to widen the interline space of footnotes; When I try to shrink the footnotes' interline space with: \startsetups[footnote:interlinespace] \setupinterlinespace[line=.9\bodyfontsize] \stopsetups the only vertical space that shrinks it the one between the bottom of the main text and the footnotes' top. Have you an explanation for that behaviour? I'm new to ConTeXt and I still need to develop a ConTeXt mindset; perhaps the people who know how ConTeXt works will find that understandable. Any hint is welcome. the defaults are these: \setupinterlinespace [height=.72, depth=.28, line=2.8\exheight] so you can try for instance \setupinterlinespace [line=3.2\exheight] the height/depth are ratios used in struts etc - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] setupformulas options (or defineformula) and effort to reduce the font in math formulas
On 3/10/2015 11:45 PM, Jaroslav Hajtmar wrote: Hello List. I would like some elegant way to diminished font in math formulas... Is there possibility anything as \setupformulas[before={\switchtobodyfont[small]} ]? I need to align formulas, so are not enough to \mathematics {} Below is my fallback. You can do something smarter? define a bodyfont (rm,mm,tt) where the math has an rscale of 0.8 Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] jpeg problem: Dimension too large
On Mon, Mar 9, 2015 at 10:18 PM, Harald Koenig koe...@tat.physik.uni-tuebingen.de wrote: Hi, and here a 1st problem including (some) JPGs which are created/converted using convert from ImageMagick (using ImageMagick-6.8.6.9-2.28.1.x86_64 from openSUSE 13.1 -- just in case...) btw. -- I'm using a decent standalone context installation, full log file attached... running context j1.tex I get LuaTeX warning: arithmetic: number too big graphics inclusion limiting natural dimensions of './IMG_9712c1_bad.jpg' (height) tex errorerror on line 1 in file /home/harald/tex/Indien-2015/j1.tex: ! Dimension too large for IMG_9712c1_bad.jpg which was generated with this command: convert -resize 632x330 IMG_9712c1_ok.jpg IMG_9712c1_bad.jpg using other tools I can't find any problem with that bad jpg, only context complains:-( what's wrong with IMG_9712c1_bad.jpg ?also with pdftex also with pdftex: figures : dimensions of IMG_9712c1_ok loaded from figurefile itself pdfTeX warning: pdftex: arithmetic: number too big ./IMG_9712c1_bad.jpg ! Dimension too large. to be read again \setanalyzedfiguredimensions ...lyzedfigurewidth \zeropoint \ifdim \analyze... \doanalyzefiguredimensionsinternal ...ions \!!ten \fi argument ...}\doanalyzefiguredimensionsinternal \doanalyzefiguredimensions... \firstoftwoarguments #1#2-#1 \dododoanalyzeunknownfiguretype ...guredimensions \fi ... -- luigi ___ 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] jpeg problem: Dimension too large
On 3/9/2015 10:18 PM, Harald Koenig wrote: btw. -- I'm using a decent standalone context installation, full log file attached... fyi, you can use gm identify -verbose IMG_9712c1_bad.jpg - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] jpeg problem: Dimension too large
Hi, and here a 1st problem including (some) JPGs which are created/converted using convert from ImageMagick (using ImageMagick-6.8.6.9-2.28.1.x86_64 from openSUSE 13.1 -- just in case...) btw. -- I'm using a decent standalone context installation, full log file attached... running context j1.tex I get LuaTeX warning: arithmetic: number too big graphics inclusion limiting natural dimensions of './IMG_9712c1_bad.jpg' (height) tex errorerror on line 1 in file /home/harald/tex/Indien-2015/j1.tex: ! Dimension too large for IMG_9712c1_bad.jpg which was generated with this command: convert -resize 632x330 IMG_9712c1_ok.jpg IMG_9712c1_bad.jpg using other tools I can't find any problem with that bad jpg, only context complains:-( what's wrong with IMG_9712c1_bad.jpg ? tanks, Harald -- I hope to die ___ _ before I *have* to use Microsoft Word., 0--,|/OOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen._/ / /OOO\ \ \/OOO\ \ O|// \/\/\/\/\/\/\/\/\/ Harald Koenig // / \\ \ koe...@tat.physik.uni-tuebingen.de ^ ^ j1.tex Description: TeX document open source 1 1 /home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2015.02.03 23:55 MKIV beta fmt: 2015.3.5 int: english/english system 'cont-new.mkiv' loaded open source 2 2 /home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/base/cont-new.mkiv close source 2 2 /home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/base/cont-new.mkiv system files jobname 'j1', input './j1', result 'j1' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 /home/harald/tex/Indien-2015/j1.tex fontspreloading latin modern fonts (second stage) fonts'fallback modern-designsize rm 12pt' is loaded LuaTeX warning: arithmetic: number too big graphics inclusion limiting natural dimensions of './IMG_9712c1_bad.jpg' (height) tex errorerror on line 1 in file /home/harald/tex/Indien-2015/j1.tex: ! Dimension too large \relocateexternalfigure ...d \foundexternalfigure \bgroup \box \foundexterna... l.1 \relocateexternalfigure \grph_include_place ...\ctxlua {figures.include()} \ctxlua {figures.scale()}\... \grph_include_figure ...include_place [#1][#2][#3] \fi \syst_helpers_triple_empty_two_spaced ...{#2}][][] to be read again \par l.6 1 \starttext 2 3 \externalfigure[IMG_9712c1_ok] 4 5 \externalfigure[IMG_9712c1_bad] 6 7 \stoptext 8 9 10 ? tex errorerror on line 1 in file /home/harald/tex/Indien-2015/j1.tex: ! Dimension too large \page_otr_eject_page_and_flush_inserts ...getotal \pagegoal \else \normalvf... \228last ...ge_otr_command_next_page_and_inserts \relax \doifbothsidesoverr... \page_breaks_handle_step ...ent_option \endcsname \else \ifcsname \??pagebre... \91 #1,-\page_breaks_handle_step {#1} \syst_helpers_do_process_comma_item \syst_helpers_do_process_comma_list ...rgument #1, ]\relax \global \advance \... \page_breaks_process ...t \page_breaks_handle {#1} \else \page_breaks_handle_... ... l.7 \stoptext 1 \starttext 2 3 \externalfigure[IMG_9712c1_ok] 4 5 \externalfigure[IMG_9712c1_bad] 6 7 \stoptext 8 9 10 ? backend xmp using file '/home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 pagesflushing realpage 2, userpage 2 close source 2 3 /home/harald/tex/Indien-2015/j1.tex close source 1 3 /home/harald/tex/Indien-2015/ct/tex/texmf-context/tex/context/base/cont-yes.mkiv system structure start used structure used structure text: j1 system structure stop used structure system files start used files used file 1: filename=cont-yes.mkiv filetype=tex
Re: [NTG-context] jpeg problem: Dimension too large
On 3/9/2015 10:18 PM, Harald Koenig wrote: Hi, and here a 1st problem including (some) JPGs which are created/converted using convert from ImageMagick (using ImageMagick-6.8.6.9-2.28.1.x86_64 from openSUSE 13.1 -- just in case...) btw. -- I'm using a decent standalone context installation, full log file attached... running context j1.tex I get LuaTeX warning: arithmetic: number too big graphics inclusion limiting natural dimensions of './IMG_9712c1_bad.jpg' (height) when i provide more detail here: graphics inclusion limiting natural dimensions of './IMG_9712c1_ok.jpg', old -32768pt * 17778.42pt, new -30197.89787pt * 16383.8pt so we have a bug in the engine (or jpg library) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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] shrink JPGs to some resolution (dpi) ?
On Tue, Mar 10 2015, Harald Koenig wrote: but how do I use it ? - Copy grph-downsample.lua to .../context/tex/texmf-local/tex/context/third/grph-downsample/grph-downsample.lua - context --generate - Copy hacker.jpg to your directory. - Write this to test.tex: --8---cut here---start-8--- \loadluafile[grph-downsample] \setupexternalfigures[conversion=lowres.jpg, resolution=10] \starttext \externalfigure[hacker.jpg][width=5cm] \stoptext --8---cut here---end---8--- - Then: context test (I hope it works...) - Perhaps wikify it. first-setup.sh --modules=grph-downsample which removed the unzipped module:-( Unfortunately, grph-downsample is not in the context-suite. Mojca, could you add it? what's the real way here ? For now, you have to put it to texmf-local. next problem: how to use your module ? I can't find the docs and just a \usemodule[grph-downsample] \loadluafile seems to do the trick, but perhaps there is an official context-way, Hans? btw, I've added your suggested patch to grph-inc.lua The patch is only needed, when you change the size of the image, for example 5cm - 6cm. Without the patch, the down-sampled file won't be regenerated. -- Peter ___ 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] Hanging indent
Am 10.03.2015 um 22:00 schrieb Willi Egger cont...@boede.nl: Hello everybody, Currently I am typesetting a small dictionary. I want to have hanging indents if the text joined to the expression is longer than one line. In the past I had this definitions: \defineblank[Afterhangingparagraph][1pc] \starttext \def\Hangindent{\hangafter=1\hangindent=1em} \definestartstop[HangPar] [before={\bgroup\appendtoks\Hangindent\to\everypar}, after={\egroup\blank[Afterhangingparagraph]}] \starttext \startHangPar \input knuth \stopHangPar \startHangPar {\bf Aanslaan,} aanspreken. Een poging in 't werk stellen. Ik zal dat heertje reis aanslaan. Sla dien broger (man) aan, misschien heeft hij poen (geld). Jongens, er moet aangeslagen worden, daar loopt mooi gajes (menschen daar wat van te halen is). \stopHangPar \stoptext The strange thing is, that the first two paragraphs of the Knuth-text is showing a hanging indent, however the last paragraph does not which is unexpected. In the example from the dictionary no hanging indentation is shown. What do I mis here? You have to add \par at the end of your environment, i.e. \definestartstop [HangPar] [before=\begingroup\EveryPar{\hangafter\plusone\hangindent\emwidth\relax}, after={\par\endgroup\blank[1pc]}] Wolfgang ___ 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] setupformulas options (or defineformula) and effort to reduce the font in math formulas
Am 11.03.2015 um 00:07 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Thanks Hans for the reply. I take to type some formulas larger font, so that's why I opted to frame their own definition of a formula environment with small print. Switch entire mathematical text on small I don't want. Therefore, I would like to have both: \startformula \stopformula and \startsmallformula \stopsmallformula \startformula has a optional argument which let you change the font, e.g. \startformula[9pt]. \definestartstop[smallformula] [before={\startformula[small]}, after=\stopformula] \starttext \startformula c^2 = a^2 + b^2 \stopformula \startformula[small] c^2 = a^2 + b^2 \stopformula \startsmallformula c^2 = a^2 + b^2 \stopsmallformula \stoptext Wolfgang ___ 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 ___