ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [pdf] erroneous pdf output
@ 2001-12-16  6:13 Sanjay Vohra
  2001-12-16 16:00 ` David Antos
  2001-12-17 11:27 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: Sanjay Vohra @ 2001-12-16  6:13 UTC (permalink / raw)


Hi all

I tried running this file with
texexec --pdf test.tex
and the pdf file cannot be read by acroread.
I have also included the log <apologies for that>.
Another thing the texexec stops due to something about
units and doesnt complain if no background thing is used.

------
\setupbackground[background=screen,corner=round]

\starttext

\startbackground
Name : ME101 \crlf
Title : Introduction to Mechanical Engineering \crlf
Hours : 3 \crlf
Description : Basic Introduction to mechanincal Engineering. \crlf
\stopbackground

\stoptext

------

 more test.log
This is pdfeTeX, Version 3.14159-13d-2.1 (Web2C 7.3.1) (format=cont-en
2001.12.11)  16 DEC 2001 00:51
entering extended mode
**&cont-en test.tex
(test.tex[/usr/local/teTeX/share/texmf/pdftex/config/pdftex.cfg]

ConTeXt  ver: 2001.12.10  fmt: 2001.12.11  int: english  mes: english

language       : language en is active
system         : cont-new loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
)
system         : cont-old loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
bodyfont       : 12pt rm is loaded
language       : patterns 2-en-2 2-uk-2 2-de-2 2-fr-2 2-nl-2 loaded
specials       : tex,postscript,rokicki loaded
\openout2 = `test.tui'.

system         : test.top loaded
(./test.top) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(./test.tuo)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(./test.tuo)
\openout0 = `mpgraph.mp'.

\openout0 = `mprun.mp'.

\openout0 = `mpgraph.mp'.

\openout0 = `mprun.mp'.

(./test.tuo) (./test.tuo)
systems        : begin file test at line 5

Underfull \hbox (badness 10000) in paragraph at lines 8--12

\hbox(0.0+0.0)x414.78743
.\glue(\rightskip) 0.0

! Illegal unit of measure (pt inserted).
<to be read again>
                   \advance
\dosomeovalcalc #1#2#3->\dimen 2=#1\advance
                                            \dimen 2
#2\PointsToBigPoints {\...

\dosomeovalbox ...omeovalcalc {0}{+\dimen 0}\xmin
                                                  \dosomeovalcalc
{#1}{-\dim...

\doovalbox ...ovalbox {#1}{#2}{#3}{#4}{#5}{#6}{#7}
                                                  \egroup
\ovalbox ...in }{\ovalrad } {\ovalstr }{\ovalfil }
                                                  \egroup
<argument> ... {\@@framed \c!achtergrondstraal }\\
                                                  \fi
...
l.12 \stopbackground

?
[1.1]
systems        : end file test at line 14
 )
Here is how much of TeX's memory you used:
 228 strings out of 26869
 3116 string characters out of 320631
 344230 words of memory out of 1100001
 26656 multiletter control sequences out of 10000+25000
 9049 words of font info for 28 fonts, out of 400000 for 1000
 22 hyphenation exceptions out of 1000
 47i,16n,55p,192b,257s stack positions out of
1500i,500n,1500p,50000b,5000s

Output written on test.dvi (1 page, 1032 bytes).


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pdf] erroneous pdf output
  2001-12-16  6:13 [pdf] erroneous pdf output Sanjay Vohra
@ 2001-12-16 16:00 ` David Antos
  2001-12-17 11:27 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: David Antos @ 2001-12-16 16:00 UTC (permalink / raw)
  Cc: NTG ConTeXt Mailing List

On Sun, Dec 16, 2001 at 01:13:27AM -0500, Sanjay Vohra wrote:
> Hi all
> 
> I tried running this file with
> texexec --pdf test.tex
> and the pdf file cannot be read by acroread.

Hi,

an error occurred, therefore the pdf has not been finished. The result is not
a correct pdf file, that's why acroread refuses it.

> I have also included the log <apologies for that>.

Don't apologize, we wouldn't have how to solve it otherwise.

> Another thing the texexec stops due to something about
> units and doesnt complain if no background thing is used.

My a bit older stable ConTeXt compiles it, BTW the pdfetex is quite old.

> This is pdfeTeX, Version 3.14159-13d-2.1 (Web2C 7.3.1) (format=cont-en
> 2001.12.11)  16 DEC 2001 00:51
> entering extended mode
> ConTeXt  ver: 2001.12.10  fmt: 2001.12.11  int: english  mes: english
> 
...
> 1500i,500n,1500p,50000b,5000s
> 
> Output written on test.dvi (1 page, 1032 bytes).

Does it really write a pdf?

D.A.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pdf] erroneous pdf output
  2001-12-16  6:13 [pdf] erroneous pdf output Sanjay Vohra
  2001-12-16 16:00 ` David Antos
@ 2001-12-17 11:27 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2001-12-17 11:27 UTC (permalink / raw)
  Cc: ntg-context

At 01:13 AM 12/16/2001 -0500, you wrote:
>Hi all
>
>I tried running this file with
>texexec --pdf test.tex
>and the pdf file cannot be read by acroread.
>I have also included the log <apologies for that>.
>Another thing the texexec stops due to something about
>units and doesnt complain if no background thing is used.

you need to change this in spec-ps.tex

\def\dosomeovalbox#1#2#3#4#5#6#7%
   {\bgroup
    \dimen0=#4\divide\dimen0 2
    \dosomeovalcalc{0pt}{+\dimen0}\xmin    %%%%%%%%%%%% add pt after 0
    \dosomeovalcalc{#1}{-\dimen0}\xmax

[this is due to the fact that from now on the drivers work with dimens 
instead of numbers (was a left over from yandy driver support) which is 
more efficient for pdftex.

BTW, there is a more advanced background mechanism, one that also obeys 
indentation and floats and alike:

% output=pdftex modes=show

\definetextbackground
   [whatever]
   [alternative=1,
    level=-1, % +1,
    background=color,
    backgroundcolor=green,
    frame=uit,
    framecolor=red,
    rulethickness=1pt]

\starttext

We thrive in \startwhatever information||thick worlds
because of our marvelous and everyday capacity to select,
edit, single out, structure, highlight, group, pair, merge,
harmonize, synthesize, focus, organize,
condense, reduce, boil down, choose, categorize, catalog,
classify, list, abstract, scan, look into, idealize,
isolate, discriminate, distinguish, screen, pigeonhole, pick
over, sort, integrate, blend, inspect, filter, lump, skip,
smooth, chunk, average, approximate, cluster, aggregate,
outline, summarize, itemize, review, dip into, flip through,
browse, glance into, leaf through, skim,
refine, enumerate, glean, synopsize, winnow the wheat from
the chaff and\stopwhatever\ separate the sheep from the
goats.

\stoptext

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-17 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-16  6:13 [pdf] erroneous pdf output Sanjay Vohra
2001-12-16 16:00 ` David Antos
2001-12-17 11:27 ` Hans Hagen

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).