* Disappearing figures
@ 2005-09-10 16:38 Giuseppe Bilotta
2005-09-12 6:39 ` Taco Hoekwater
0 siblings, 1 reply; 7+ messages in thread
From: Giuseppe Bilotta @ 2005-09-10 16:38 UTC (permalink / raw)
Hello people,
I think I spotted a bug either in ConTeXt or in my
capability comprehension.
Take the following simple code:
\placefigure[here][testfigs]{Test cases}{
\startcombination[3*3]
{\externalfigure[tests/curves.1]}{Testcase~1}
{\externalfigure[tests/curves.2]}{Testcase~2}
{\externalfigure[tests/curves.3]}{Testcase~3}
{\externalfigure[tests/curves.4]}{Testcase~4}
{\externalfigure[tests/curves.5]}{Testcase~5}
{\externalfigure[tests/curves.6]}{Testcase~6}
{\externalfigure[tests/curves.7]}{Testcase~7}
{}{}
{\externalfigure[tests/curves.8]}{Testcase~8}
\stopcombination
}
It works --- on the first texexec run. On subsequent runs,
ConTeXt complains that
figure tests/curves can not be found
The problem is that I have a file curves (no extension in
tests/ ... but why is ConTeXt looking for it, if I *did*
specify an extension?
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Disappearing figures
2005-09-10 16:38 Disappearing figures Giuseppe Bilotta
@ 2005-09-12 6:39 ` Taco Hoekwater
2005-09-12 7:37 ` Re[2]: " Giuseppe Bilotta
2005-09-12 11:04 ` Disappearing figures Hans Hagen
0 siblings, 2 replies; 7+ messages in thread
From: Taco Hoekwater @ 2005-09-12 6:39 UTC (permalink / raw)
Giuseppe Bilotta wrote:
> Hello people,
>
> I think I spotted a bug either in ConTeXt or in my
> capability comprehension.
>
> Take the following simple code:
>
> \placefigure[here][testfigs]{Test cases}{
> \startcombination[3*3]
...
>
> It works --- on the first texexec run. On subsequent runs,
> ConTeXt complains that
>
> figure tests/curves can not be found
Same problem here, even with only this:
\starttext
\externalfigure[curves.1]
\stoptext
I've copied curves.1 from the "tests" dir to its parent,
and I still get a 'not found' on the second run. Makes no
sense.
Taco
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re[2]: Disappearing figures
2005-09-12 6:39 ` Taco Hoekwater
@ 2005-09-12 7:37 ` Giuseppe Bilotta
2005-09-12 8:40 ` Matrices LaTeX -> ContTeXt Jilani Khaldi
2005-09-12 11:04 ` Disappearing figures Hans Hagen
1 sibling, 1 reply; 7+ messages in thread
From: Giuseppe Bilotta @ 2005-09-12 7:37 UTC (permalink / raw)
Monday, September 12, 2005 Taco Hoekwater wrote:
> Same problem here, even with only this:
> \starttext
> \externalfigure[curves.1]
> \stoptext
> I've copied curves.1 from the "tests" dir to its parent,
> and I still get a 'not found' on the second run. Makes no
> sense.
Interestingly, it's even *much* slower (probably because it
goes looking for files trying every possible extension)
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 7+ messages in thread
* Matrices LaTeX -> ContTeXt
2005-09-12 7:37 ` Re[2]: " Giuseppe Bilotta
@ 2005-09-12 8:40 ` Jilani Khaldi
2005-09-12 16:36 ` Brooks Moses
0 siblings, 1 reply; 7+ messages in thread
From: Jilani Khaldi @ 2005-09-12 8:40 UTC (permalink / raw)
Hi All,
how tow write these matrices in Context?
% []
\begin{bmatrix}
1&2\\
3&4
\end{bmatrix}
% {}
\begin{Bmatrix}
1&2\\
3&4
\end{Bmatrix}
Thanks!
jk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Disappearing figures
2005-09-12 6:39 ` Taco Hoekwater
2005-09-12 7:37 ` Re[2]: " Giuseppe Bilotta
@ 2005-09-12 11:04 ` Hans Hagen
2005-09-12 11:45 ` Taco Hoekwater
1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2005-09-12 11:04 UTC (permalink / raw)
Taco Hoekwater wrote:
> Giuseppe Bilotta wrote:
>
>> Hello people,
>>
>> I think I spotted a bug either in ConTeXt or in my
>> capability comprehension.
>>
>> Take the following simple code:
>>
>> \placefigure[here][testfigs]{Test cases}{
>> \startcombination[3*3]
>
>
> ...
>
>>
>> It works --- on the first texexec run. On subsequent runs,
>> ConTeXt complains that
>>
>> figure tests/curves can not be found
>
>
> Same problem here, even with only this:
>
> \starttext
> \externalfigure[curves.1]
> \stoptext
>
> I've copied curves.1 from the "tests" dir to its parent,
> and I still get a 'not found' on the second run. Makes no
> sense.
in core-fig.tex, locate:
#1[#4][#5][#6]%
% prefix in runs > 1
and add the conversion test:
\doifsomething\@@efconversion % add test
{\doifnotmode{\systemmodeprefix\v!first}
{\doifsomething\@@efprefix
{\edef\@@effilename{\@@efprefix\@@effilename}}%
\let\@@effiletype\empty}}% add }
what you run into is a side effect of new code (runtime conversion based on resource loggiles)
some day i need to rewrite the figure code (the oldest part of context; but i will do that when i replace texutil.tuf support by the more generic resourse handling)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Disappearing figures
2005-09-12 11:04 ` Disappearing figures Hans Hagen
@ 2005-09-12 11:45 ` Taco Hoekwater
0 siblings, 0 replies; 7+ messages in thread
From: Taco Hoekwater @ 2005-09-12 11:45 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 327 bytes --]
Hi there,
Hans Hagen wrote:
> Taco Hoekwater wrote:
>
>> Giuseppe Bilotta wrote:
>
> in core-fig.tex, locate:
>
> #1[#4][#5][#6]%
> % prefix in runs > 1
>
> and add the conversion test:
Yup, this works! I attach patch file, I had some problem getting
the line breaks right, so this may be easier for Giuseppe.
Taco
[-- Attachment #2: core-fig.patch --]
[-- Type: text/x-patch, Size: 887 bytes --]
--- /home/taco/context/20050831/tex/context/base/core-fig.tex 2005-08-01 16:26:18.000000000 +0200
+++ /home/taco/texmf/tex/context/base/core-fig.tex 2005-09-12 13:43:51.718018034 +0200
@@ -1053,9 +1053,11 @@
#1[#4][#5][#6]%
% prefix in runs > 1
% prefix in runs > 1
- \doifnotmode{\systemmodeprefix\v!first}
- {\doifsomething\@@efprefix{\edef\@@effilename{\@@efprefix\@@effilename}}%
- \let\@@effiletype\empty}% beware, walks over the whole suffixlist
+ \doifsomething\@@efconversion % add test
+ {\doifnotmode{\systemmodeprefix\v!first}
+ {\doifsomething\@@efprefix
+ {\edef\@@effilename{\@@efprefix\@@effilename}}%
+ \let\@@effiletype\empty}}%
% new, somehow needed when \textwidth is used:
\doifsomething\@@efmaxwidth {\freezedimenmacro\@@efmaxwidth }%
\doifsomething\@@efmaxheight{\freezedimenmacro\@@efmaxheight}%
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Matrices LaTeX -> ContTeXt
2005-09-12 8:40 ` Matrices LaTeX -> ContTeXt Jilani Khaldi
@ 2005-09-12 16:36 ` Brooks Moses
0 siblings, 0 replies; 7+ messages in thread
From: Brooks Moses @ 2005-09-12 16:36 UTC (permalink / raw)
At 01:40 AM 9/12/2005, Jilani Khaldi wrote:
>Hi All,
>how tow write these matrices in Context?
>
>% []
>\begin{bmatrix}
>1&2\\
>3&4
>\end{bmatrix}
ConTeXt uses Plain TeX syntax for math, mostly. Thus, you use Plain TeX's
\matrix command to create the matrices:
\left[\matrix{
1&2 \cr
2&4 \cr
}\right]
>% {}
>\begin{Bmatrix}
>1&2\\
>3&4
>\end{Bmatrix}
\left\lbrace\matrix{
1&2 \cr
3&4 \cr
}\right\rbrace
Hope that helps,
- Brooks
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-09-12 16:36 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-10 16:38 Disappearing figures Giuseppe Bilotta
2005-09-12 6:39 ` Taco Hoekwater
2005-09-12 7:37 ` Re[2]: " Giuseppe Bilotta
2005-09-12 8:40 ` Matrices LaTeX -> ContTeXt Jilani Khaldi
2005-09-12 16:36 ` Brooks Moses
2005-09-12 11:04 ` Disappearing figures Hans Hagen
2005-09-12 11:45 ` Taco Hoekwater
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).