ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* What is wrong here?
@ 2016-06-20 12:11 Ursula Hermann
  2016-06-20 12:24 ` Thomas A. Schmitz
  2016-06-20 12:30 ` luigi scarso
  0 siblings, 2 replies; 5+ messages in thread
From: Ursula Hermann @ 2016-06-20 12:11 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2714 bytes --]

Hello !

 

I have  problem with an PDF-File. 

 

In the  Editor i wrote: 

 

\setupinteraction[state=start]%don't forget this line

% make chapter, section bookmarks visible when opening document

\placebookmarks[title, chapter,section,subsection][title,chapter,section]

\setupinteractionscreen[option=bookmark]

 

\starttext

\input Sigmund Freud Band1.pdf

\stoptext

 

Then i got this : 

 

Command Line:   context.exe --synctex=-1 "Bookmarks1.tex"

Startup Folder: D:\My Documents

 

 

mtx-context     | warning: synctex is enabled

mtx-context     | run 1: luatex
--fmt="C:/TeXlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514b
a966a1fac9/formats/luatex/cont-en" --jobname="Bookmarks1"
--lua="C:/TeXlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514b
a966a1fac9/formats/luatex/cont-en.lui" --no-parse-first-line --synctex=-1
--c:currentrun=1 --c:directives="system.synctex=-1"
--c:fulljobname="./Bookmarks1.tex" --c:input="./Bookmarks1.tex"
--c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" "cont-yes.mkiv"

This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/W32TeX) (rev 5238)

\write18 enabled.

 

system          > synctex functionality is enabled (-1)!

open source     > 1 > 1 >
C:/TeXlive/2015/texmf-dist/tex/context/base/cont-yes.mkiv

 

ConTeXt  ver: 2015.05.18 12:26 MKIV current  fmt: 2015.7.21  int:
english/english

 

system          > 'cont-new.mkiv' loaded

open source     > 2 > 2 >
C:/TeXlive/2015/texmf-dist/tex/context/base/cont-new.mkiv

close source    > 2 > 2 >
C:/TeXlive/2015/texmf-dist/tex/context/base/cont-new.mkiv

system          > files > jobname 'Bookmarks1', input './Bookmarks1', result
'Bookmarks1'

fonts           > latin modern fonts are not preloaded

languages       > language 'en' is active

open source     > 2 > 3 > D:/My Documents/Bookmarks1.tex

fonts           > preloading latin modern fonts (second stage)

fonts           > 'fallback modern-designsize rm 12pt' is loaded

 

tex error       > error on line 7 in file D:/My Documents/Bookmarks1.tex: !
I can't find file `Sigmund'.

 

l.7 \input Sigmund

                 Freud Band1.pdf

 

1     \setupinteraction[state=start]%don't forget this line

2     % make chapter, section bookmarks visible when opening document

3     \placebookmarks[title,
chapter,section,subsection][title,chapter,section]

4     \setupinteractionscreen[option=bookmark]

5

6     \starttext

7 >>  \input Sigmund Freud Band1.pdf

8     \stoptext

 

Please type another input file name:

 

I have first saved  the files on my computer, then I put them together,
because I had loaded the files before. 

 

I don't understand, what is wrong here. Can somebody help me? 

 

Thansk 

 

Uschi


[-- Attachment #1.2: Type: text/html, Size: 7265 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: What is wrong here?
  2016-06-20 12:11 What is wrong here? Ursula Hermann
@ 2016-06-20 12:24 ` Thomas A. Schmitz
  2016-06-20 12:42   ` Ursula Hermann
  2016-06-20 12:59   ` Hans Hagen
  2016-06-20 12:30 ` luigi scarso
  1 sibling, 2 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2016-06-20 12:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 06/20/2016 02:11 PM, Ursula Hermann wrote:
> \starttext
>
> \input Sigmund Freud Band1.pdf
>
> \stoptext


\input is used for including ConTeXt source files. If you want to 
include a pdf, you have to use \externalfigure. Difficult to give 
further advice as we don't know what you are trying to achieve - you 
won't be able to get any interaction or bookmarks by including an 
external pdf file.

Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: What is wrong here?
  2016-06-20 12:11 What is wrong here? Ursula Hermann
  2016-06-20 12:24 ` Thomas A. Schmitz
@ 2016-06-20 12:30 ` luigi scarso
  1 sibling, 0 replies; 5+ messages in thread
From: luigi scarso @ 2016-06-20 12:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3742 bytes --]

On Mon, Jun 20, 2016 at 2:11 PM, Ursula Hermann <ursula.hermann@univie.ac.at
> wrote:

> Hello !
>
>
>
> I have  problem with an PDF-File.
>
>
>
> In the  Editor i wrote:
>
>
>
> \setupinteraction[state=start]%don't forget this line
>
> % make chapter, section bookmarks visible when opening document
>
> \placebookmarks[title, chapter,section,subsection][title,chapter,section]
>
> \setupinteractionscreen[option=bookmark]
>
>
>
> \starttext
>
> \input Sigmund Freud Band1.pdf
>
> \stoptext
>
>
>
> Then i got this :
>
>
>
> Command Line:   context.exe --synctex=-1 "Bookmarks1.tex"
>
> Startup Folder: D:\My Documents
>
>
>
>
>
> mtx-context     | warning: synctex is enabled
>
> mtx-context     | run 1: luatex
> --fmt="C:/TeXlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
> --jobname="Bookmarks1"
> --lua="C:/TeXlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
> --no-parse-first-line --synctex=-1 --c:currentrun=1
> --c:directives="system.synctex=-1" --c:fulljobname="./Bookmarks1.tex"
> --c:input="./Bookmarks1.tex" --c:kindofrun=1 --c:maxnofruns=9
> --c:synctex="-1" "cont-yes.mkiv"
>
> This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/W32TeX) (rev 5238)
>
> \write18 enabled.
>
>
>
> system          > synctex functionality is enabled (-1)!
>
> open source     > 1 > 1 >
> C:/TeXlive/2015/texmf-dist/tex/context/base/cont-yes.mkiv
>
>
>
> ConTeXt  ver: 2015.05.18 12:26 MKIV current  fmt: 2015.7.21  int:
> english/english
>
>
>
> system          > 'cont-new.mkiv' loaded
>
> open source     > 2 > 2 >
> C:/TeXlive/2015/texmf-dist/tex/context/base/cont-new.mkiv
>
> close source    > 2 > 2 >
> C:/TeXlive/2015/texmf-dist/tex/context/base/cont-new.mkiv
>
> system          > files > jobname 'Bookmarks1', input './Bookmarks1',
> result 'Bookmarks1'
>
> fonts           > latin modern fonts are not preloaded
>
> languages       > language 'en' is active
>
> open source     > 2 > 3 > D:/My Documents/Bookmarks1.tex
>
> fonts           > preloading latin modern fonts (second stage)
>
> fonts           > 'fallback modern-designsize rm 12pt' is loaded
>
>
>
> tex error       > error on line 7 in file D:/My Documents/Bookmarks1.tex:
> ! I can't find file `Sigmund'.
>
>
>
> l.7 \input Sigmund
>
>                  Freud Band1.pdf
>
>
>
> 1     \setupinteraction[state=start]%don't forget this line
>
> 2     % make chapter, section bookmarks visible when opening document
>
> 3     \placebookmarks[title,
> chapter,section,subsection][title,chapter,section]
>
> 4     \setupinteractionscreen[option=bookmark]
>
> 5
>
> 6     \starttext
>
> 7 >>  \input Sigmund Freud Band1.pdf
>
> 8     \stoptext
>
>
>

\input "Sigmund Freud Band1.pdf"
%% or
\input {Sigmund Freud Band1.pdf}



> Please type another input file name:
>
>
>
> I have first saved  the files on my computer, then I put them together,
> because I had loaded the files before.
>
>
>
> I don’t understand, what is wrong here. Can somebody help me?
>
>
>
(at least) one blank space in the filename that acts as separator between
 the filename (to load) and the rest of the text (Band1.pdf) to typeset.
Context sees \input Sigmund
and it tries to load a file named Sigmund,
as the error message shows.
Of course loading a pdf in this way is almost useless, if you are lucky you
will see garbage, but on 99.99% of cases context will emit an error message
like "invalid char" or so.
The canonical way to load a pdf is
\externalfigure[Sigmund Freud Band1.pdf]
(no need to use {} or "" in this case)

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 7158 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: What is wrong here?
  2016-06-20 12:24 ` Thomas A. Schmitz
@ 2016-06-20 12:42   ` Ursula Hermann
  2016-06-20 12:59   ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Ursula Hermann @ 2016-06-20 12:42 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Hello Thomas!

Thanks for helping me. This was the right command. 

Uschi

-----Ursprüngliche Nachricht-----
Von: ntg-context [mailto:ntg-context-bounces@ntg.nl] Im Auftrag von Thomas A. Schmitz
Gesendet: Montag, 20. Juni 2016 14:24
An: mailing list for ConTeXt users
Betreff: Re: [NTG-context] What is wrong here?

On 06/20/2016 02:11 PM, Ursula Hermann wrote:
> \starttext
>
> \input Sigmund Freud Band1.pdf
>
> \stoptext


\input is used for including ConTeXt source files. If you want to include a pdf, you have to use \externalfigure. Difficult to give further advice as we don't know what you are trying to achieve - you won't be able to get any interaction or bookmarks by including an external pdf file.

Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: What is wrong here?
  2016-06-20 12:24 ` Thomas A. Schmitz
  2016-06-20 12:42   ` Ursula Hermann
@ 2016-06-20 12:59   ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2016-06-20 12:59 UTC (permalink / raw)
  To: ntg-context

On 6/20/2016 2:24 PM, Thomas A. Schmitz wrote:
> On 06/20/2016 02:11 PM, Ursula Hermann wrote:
>> \starttext
>>
>> \input Sigmund Freud Band1.pdf
>>
>> \stoptext
>
>
> \input is used for including ConTeXt source files. If you want to
> include a pdf, you have to use \externalfigure. Difficult to give
> further advice as we don't know what you are trying to achieve - you
> won't be able to get any interaction or bookmarks by including an
> external pdf file.

actually already there for years ...

\externalfigure[...][...,interaction=yes,...]

yes | all | {reference,bookmark,layer}

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-06-20 12:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-20 12:11 What is wrong here? Ursula Hermann
2016-06-20 12:24 ` Thomas A. Schmitz
2016-06-20 12:42   ` Ursula Hermann
2016-06-20 12:59   ` Hans Hagen
2016-06-20 12:30 ` luigi scarso

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