ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: What is wrong here?
Date: Mon, 20 Jun 2016 14:30:22 +0200	[thread overview]
Message-ID: <CAG5iGsDQQC_A2Pmh6-YnzZzP-oDwdouwNECdKkz39fK=ofU1OA@mail.gmail.com> (raw)
In-Reply-To: <000001d1caec$dfd6e470$9f84ad50$@univie.ac.at>


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

      parent reply	other threads:[~2016-06-20 12:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-20 12:11 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG5iGsDQQC_A2Pmh6-YnzZzP-oDwdouwNECdKkz39fK=ofU1OA@mail.gmail.com' \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).