Re: [NTG-context] local picture not found anymore
On Tue, Feb 5, 2013 at 12:35 AM, Aditya Mahajan wrote: It certainly does not search all files in the doc directory. On TL'12 mtxrun does not find /usr/share/texmf/doc/dvipdfm/something.pdf, i.e., Maybe just because dvipdfm is excluded from the search, but that's pure speculation. I don't see any doc path in texmfcnf.lua and it's not yet clear to me where it gets added. Mojca PS: I remember times when it used to be difficult to get \externalfigure[cow] working without an extra command. Now it's apparently vice versa ;) ___ 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] local picture not found anymore
On 2013–02–05 Mojca Miklavec wrote: PS: I remember times when it used to be difficult to get \externalfigure[cow] working without an extra command. Now it's apparently vice versa ;) Funnily this is already a complete working minimal example: \externalfigure [example] This compiles with context beyond 2011.11.29 23:11 but fails with 2011.05.18 18:04 and earlier. Marco signature.asc Description: Digital signature ___ 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] Alternative width of figures in different documents (problem with modes?)
Hello ConTeXist. I would like use modes alternative to change of image dimensions in different documents (presentation or print version). Compilation in ConTeXt TeXLive 2012 version will compile without error, but without visual effect. Compilation with the standalone version fails. What is problem or eventually. how to solve my problem another way. Thanks Jaroslav Hajtmar Here is my minimal example: \enablemode[presentation] \def\alternativewidth#1#2{ \doifmodeelse{presentation} {width=#1} {width=#2} } \useexternalfigure[COW][cow.pdf][height=5cm, \alternativewidth{3cm}{5cm}] \starttext \input tufte \placefigure[here,force][cowref]{Caption}{\externalfigure[COW]} \input tufte \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] Alternative width of figures in different documents (problem with modes?)
Am 05.02.2013 um 13:50 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello ConTeXist. I would like use modes alternative to change of image dimensions in different documents (presentation or print version). Compilation in ConTeXt TeXLive 2012 version will compile without error, but without visual effect. Compilation with the standalone version fails. What is problem or eventually. how to solve my problem another way. The \doifmodeelse command isn’t expandable and can’t be used in this form. Thanks Jaroslav Hajtmar Here is my minimal example: \enablemode[presentation] \def\alternativewidth#1#2{ \doifmodeelse{presentation} {width=#1} {width=#2} } \useexternalfigure[COW][cow.pdf][height=5cm, \alternativewidth{3cm}{5cm}] \startmode[presentation] \useexternalfigure[COW][cow.pdf][height=5cm,width=3cm] \stopmode \startnotemode[presentation] \useexternalfigure[COW][cow.pdf][height=5cm,width=5cm] \stopnotmode or \startmode[presentation] \definemeasure[alternativewidth][3cm] \stopmode \startnotmode[presentation] \definemeasure[alternativewidth][5cm] \stopnotmode \useexternalfigure[COW][cow.pdf][height=5cm,width=\measure{alternativewidth}] 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] Alternative width of figures in different documents (problem with modes?)
Thanx Wolfgang. I might have guessed :-). Anyway, thanks for inspiring solutions ... Jaroslav Hajtmar Dne 5.2.2013 14:15, Wolfgang Schuster napsal(a): Am 05.02.2013 um 13:50 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello ConTeXist. I would like use modes alternative to change of image dimensions in different documents (presentation or print version). Compilation in ConTeXt TeXLive 2012 version will compile without error, but without visual effect. Compilation with the standalone version fails. What is problem or eventually. how to solve my problem another way. The \doifmodeelse command isn’t expandable and can’t be used in this form. Thanks Jaroslav Hajtmar Here is my minimal example: \enablemode[presentation] \def\alternativewidth#1#2{ \doifmodeelse{presentation} {width=#1} {width=#2} } \useexternalfigure[COW][cow.pdf][height=5cm, \alternativewidth{3cm}{5cm}] \startmode[presentation] \useexternalfigure[COW][cow.pdf][height=5cm,width=3cm] \stopmode \startnotemode[presentation] \useexternalfigure[COW][cow.pdf][height=5cm,width=5cm] \stopnotmode or \startmode[presentation] \definemeasure[alternativewidth][3cm] \stopmode \startnotmode[presentation] \definemeasure[alternativewidth][5cm] \stopnotmode \useexternalfigure[COW][cow.pdf][height=5cm,width=\measure{alternativewidth}] 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] local picture not found anymore
On 5 feb. 2013, at 00:22, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Mon, Feb 4, 2013 at 7:52 PM, Meer H. van der wrote: Found this one with a lucky guess. The macro call \doiffile{picture} does find a usable picture file (I guess picture.pdf) in my tex-tree. My conclusion would be that the search no longer starts in the current directory but does a global search first. That used to be different. Why the change? I had a similar (yet unresolved) problem, see thread ConTeXt inputs files from TEXMF/doc from October 2012: http://thread.gmane.org/gmane.comp.tex.context/78692 I'm not sure if that was really a change, but it probably isn't intentionally so. My wild guess is that pdf takes precedence over jpg (ConTeXt would probably first test if picture.pdf is found and only if that one wouldn't be, it would try picture.png or jpg). In any case ConTeXt should not even search in doc folder for files to be included as a picture. If those PDFs from doc folders would be excluded, most such problems would go away, I believe. You probably included /usr/local/texlive/2012/texmf-dist/doc/latex/oberdiek/picture.pdf? No, I did call \doiffile{picture} without any path components and the aforementioned file comes out first. One more observation: having put a file picture.pdf in the current directory makes \doiffile{picture} find that one. I conclude therefore that the search is first for file type pdf in all paths and only after that for another file type. Preferably in my eyes would have been the other way around: first priority of the search on a picture file of any acceptable type, and on failing that the same in all directories subsequently in the search path. But, this might be called a matter of taste. 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] deferred variable lookup in environment?
On 02/02/2013 12:31 AM, Marco Patzer wrote: On 2013–02–02 Ingo Hohmann wrote: I'm trying to have the date in a layer in an environment. In the text using the environment, I want to be able to set the date. If the date is not set, the current date should be used, otherwise the set date. This is what I've tried, but it is always the currentdate, that is displayes. You are trying to use the date before it is defined. You can use a two-pass mechanism: \define\mydate{\datasetvariable{mydata}{date}{date}} Thank you Marco, this works. Is it possible to update fields in the datasetvariables table, or is it only possible to replace the whole table? \setdataset[data][info][date=\currentdate] \setdataset[data][info][subject={subject}] After the second line, the first value is gone. Thank you, Ingo ___ 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] deferred variable lookup in environment?
On 2013–02–05 Ingo Hohmann wrote: Is it possible to update fields in the datasetvariables table, or is it only possible to replace the whole table? I don't know of an interface allowing that without directly dealing with the Lua tables. Maybe you can use the tag for that: \setdataset[data][info][date=\currentdate] \setdataset[data][info][subject={subject}] \setdataset[data][dateinfo] [date=\currentdate] \setdataset[data][subjectinfo][subject={subject}] Marco signature.asc Description: Digital signature ___ 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] local picture not found anymore
On 2/5/2013 10:13 AM, Mojca Miklavec wrote: On Tue, Feb 5, 2013 at 12:35 AM, Aditya Mahajan wrote: It certainly does not search all files in the doc directory. On TL'12 mtxrun does not find /usr/share/texmf/doc/dvipdfm/something.pdf, i.e., Maybe just because dvipdfm is excluded from the search, but that's pure speculation. I don't see any doc path in texmfcnf.lua and it's not yet clear to me where it gets added. Mojca PS: I remember times when it used to be difficult to get \externalfigure[cow] working without an extra command. Now it's apparently vice versa ;) i uploaded a beta i think something was introduces when something with url based inclusions was adapted ... i now treat an url different and because a 'not found image' then can give an 'html' file which confuses the backend i do some extra checking in that variant .. somewhat messy 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] External figures from other folders
On 2/4/2013 5:07 PM, Mari Voipio wrote: This way I didn't need to change the names of my graphics nor my code. It was also handy when translations arrived in batches; I translated the graphics one by one and could always compile a proper looking document, first with all graphics in English, then some in the target language, finally fully translated - and still, if a new version of the wiring drawing turned up, I only had to update the master directory and then remember to compile the translations to get the changes in. Here's another one handy for manuals: In the preamble or environment: \defineexternalfigure[sizeone][width=5cm] \defineexternalfigure[sizetwo][height=4cm] (these can also inherit: \definexternalfigure[a][b][frame=on]) In the document source: \externalfigure[cow][sizeone] \externalfigure[cow][sizetwo][frame=on] A way to get consistent scaling (probably one of the oldest features .. in mkii it's part of \useexternalfigure but in mkiv this has been split into two commands with a cleaner inheritance model). 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] Adobe Garamond with Simplefont
Hi there, I wanted to use Adobe Garamond Pro by: \usemodule [simplefonts][size=10.5pt] \setmainfont[name:Adobe Garamond Pro][expansion=quality,protrusion=quality] \setupalign [hanging] But it fails by the following error: + fonts bodyfont 10.5pt is defined (can better be done global) fonts bodyfont 12.6pt is defined (can better be done global) fonts bodyfont 8.4pt is defined (can better be done global) fonts defining font with asked name 'Adobe Garamond Pro' is not found using lookup 'name' fonts defining unknown font Adobe Garamond Pro, loading aborted fonts defining unable to define Adobe Garamond Pro as [simplefonts:1-10.5pt-rm-tf--0] ) structures begin of sectionblock frontpart fonts defining font with asked name 'Adobe Garamond Pro' is not found using lookup 'name' fonts defining unknown font Adobe Garamond Pro, loading aborted fonts defining unable to define Adobe Garamond Pro as [thedefinedfont--0] fonts defining font with asked name 'Adobe Garamond Pro' is not found using lookup 'name' fonts defining unknown font Adobe Garamond Pro, loading aborted fonts defining unable to define Adobe Garamond Pro as [thedefinedfont--0] fonts defining font with asked name 'Adobe Garamond Pro' is not found using lookup 'name' fonts defining unknown font Adobe Garamond Pro, loading aborted fonts defining unable to define Adobe Garamond Pro as [simplefonts:1-10.5pt-rm-tf--4] ++ So it seems that the name is wrong? In Windows the name is Adobe Garamond Pro, how to find the correct name for ConTeXt? And by the way: What does mean fonts bodyfont 10.5pt is defined (can better be done global), what to do better? Thanks Huseyin ___ 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] Example from FAQ not working?
Hi, I tried this example from Context FAQ but without success: \installalign {block} {\parfillskip=\hsize \advance\parfillskip by -1.5\parindent \advance\parfillskip by 0pt minus \parfillskip \advance\parfillskip by 0pt minus -1em} % followed by \setupalign[block] I expected no last line will be shorter than the paragraph indenting, but it didn't work. If I used the plainTeX commands directly (without trying to install and use the new alignment) everything worked as expected: \parfillskip=\hsize \advance\parfillskip by -1.5\parindent \advance\parfillskip by 0pt minus \parfillskip \advance\parfillskip by 0pt minus -1em Has anybody the explanation for this? My luatex version is beta-0.74.0-2012122510 (TeX Live 2013/dev)(rev 4541). Best regards Pavel ___ 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] Latest beta broken?
Hi Hans, The latest beta (version: 2013.02.05 13:35) gives an erreor message with this minimal example: \starttext Hello hans! \stoptext The error message is: ! LuaTeX error ...-minimal/tex/texmf-context/tex/context/base/file-job.lua:785: bad argument #1 to 'for iterator' (table expected, got nil) stack traceback: [C]: in function 'for iterator' ...-minimal/tex/texmf-context/tex/context/base/file-job.lua:785: in function 'getcommandline' [string \directlua ]:1: in main chunk. system tex error on line 1 in file /context-minimal/tex/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX error ... 1 %D \module 2 %D [ file=cont-yes, 3 %Dversion=2012.06.01, 4 %D title=\CONTEXT\ Miscellaneous Macros, 5 %D subtitle=Startup Stub, 6 %D author=Hans Hagen, 7 %D date=\currentdate, 8 %D copyright={PRAGMA ADE \ \CONTEXT\ Development Team}] 9 %C 10 %C This module is part of the \CONTEXT\ macro||package and is 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for \ctxcommand #1-\directlua {commands.#1} inserted text ...s \job_options_get_commandline \job_options_get_ctxfile \... everyjob \the \everyjob l.1 %D \module ? Process aborted Best regards: OK ___ 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] Latest beta broken?
On 2/5/2013 9:45 PM, Otared Kavian wrote: Hi Hans, The latest beta (version: 2013.02.05 13:35) gives an erreor message with this minimal example: making a new zip now ... I forgot to add a file 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] Fixed Line Height
When a page begins to get full, TeX automatically squeezes lines slightly closer together (vertically) to help the page break where it thinks that it should. If the page is less than full, then the (vertical) distance between lines is fixed. How can I make this fixed distance remain fixed even as the page starts approaching full? That is, I don't want the lines to squeeze together when the page gets full. I'm familiar with \clubpenalty \interlinepenalty \displaywidowpenalty \widowpenalty \keeplinestogether (ConTeXt) but I'm not sure how to use any/all of these to get this effect. Troy Henderson ___ 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] Fixed Line Height
On Tue, 5 Feb 2013, Troy Henderson wrote: When a page begins to get full, TeX automatically squeezes lines slightly closer together (vertically) to help the page break where it thinks that it should. If the page is less than full, then the (vertical) distance between lines is fixed. How can I make this fixed distance remain fixed even as the page starts approaching full? That is, I don't want the lines to squeeze together when the page gets full. I'm familiar with \clubpenalty \interlinepenalty \displaywidowpenalty \widowpenalty \keeplinestogether (ConTeXt) but I'm not sure how to use any/all of these to get this effect. Try: \appendtoks\fixedblankskip\to\everybeforeblankhandling Aditya ___ 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] block with different formatting per line?
On 02/03/2013 04:56 AM, Rogers, Michael K wrote: On Feb 1, 2013, at 6:16 PM, Ingo Hohmanncont...@ingohohmann.de wrote: Hi, is it possible to define a block, where lines are automatically formatted differently? For example: first line in caps, second in bold, others normal. Is this possible? And how? If you mean input lines, then yes. But if you mean output lines, then I don't know. It seems a well-defined task, but a hard task judging by how the line-breaking algorithm is described by Knuth. I'll leave that question to experts. Here's a way to process the input lines. If there's a counter that counts the line number, there would be another way; but I couldn't find out that there was a counter. There may be better ways anyway. \define\FirstLine{\let\myLine\SecondLine\sc} \define\SecondLine{\let\myLine\OtherLine\bf} \define\OtherLine{\tf} \definelines[doMyLines][command=\myLine] \def\startMyLines{\let\myLine\FirstLine\startdoMyLines} \def\stopMyLines{\stopdoMyLines} As I said that works, but while trying to understand this, I found that the documentation for \definelines doesn't mention the command= option. On the other hand it does mention align= and this doesn't work. Neither does \setuplines. I always get undefined control sequence. \definelines[doFirstBoldRight][command=\myLine] \setupdoFirstBoldRight[align=flushleft] OR \definelines[doFirstBoldRight][align=flushleft,command=\myLine] gives the same error. Do you have any idea what I am doing wrong? Thank you in advance, Ingo ___ 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 ___