ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Robert Blackstone <blackstone.robert@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Conditional float references
Date: Tue, 24 Sep 2013 13:37:40 +0200	[thread overview]
Message-ID: <CAA870EE-292A-44F3-B427-050290BC4BE0@gmail.com> (raw)
In-Reply-To: <mailman.222.1379923068.18665.ntg-context@ntg.nl>


On 23 Sep 2013, at 09:57 , Marco Patzer <lists@homerow.info> wrote:

> Subject: [NTG-context] Conditional float references
> 
> a couple of times the question came up??? how to create more
> intelligent referencing. 
> [….]
> I don't know if there's interest in integrating such functionality
> into the core. I attached some code, a new macro \smartref, which
> takes the same arguments as \in.
> 
Hi Marco, 
I would be very interested in being able to use this macro, integrated or not, since in my project there are numerous figures with lots of references to them throughout the entire text, and \at{page}[] is not satisfactory for me.

I tried the code you supplied by pasting the whole lot into a TeXShop-file, and, when that did not work, in Alphax, processing  the latter from Terminal, but in both cases I received an error message that I do not know what to do with. Strangely enough it complains about an error in line 1 even if that contains a commented out comment.

I reproduce the error message  here, hoping that you, or somebody elsm, can see what I did wrong. 
(I apologize on behalf of TeXShop and Alhax for the length of this message.)

Thanks in advance for any help.

Robert Blackstone

Error message:
------------------------------------------------------------------------------------------------------------
Last login: Tue Sep 24 09:02:03 on ttys000
sh: /Users/robertblackstone/context/tex/setuptex: No such file or directory
iMac-Bergen-R-5:context-minimal-24-09 robertblackstone$ . /Users/robertblackstone/context-minimal-24-09/tex/setuptex
Setting "/Users/robertblackstone/context-minimal-24-09/tex" as ConTeXt root.
iMac-Bergen-R-5:context-minimal-24-09 robertblackstone$ context /Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex

mtx-context     | run 1: luatex --fmt="/Users/robertblackstone/context-minimal-24-09/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="Referencing-Smart_referencing-test1" --lua="/Users/robertblackstone/context-minimal-24-09/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex" --c:input="/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.76.0-2013040508 (rev 4627) 
 \write18 enabled.
(/Users/robertblackstone/context-minimal-24-09/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.09.21 13:53 MKIV beta  fmt: 2013.9.24  int: english/english

system          > 'cont-new.mkiv' loaded
(/Users/robertblackstone/context-minimal-24-09/tex/texmf-context/tex/context/base/cont-new.mkiv)
system          > files > jobname 'Referencing-Smart_referencing-test1', input '/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1', result 'Referencing-Smart_referencing-test1'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
(/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex
! Parameters must be numbered consecutively.

system          > tex > error on line 1 in file /Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex: Parameters must be numbered consecutively ...

 1 >>  \unprotect
 2     \unexpanded\def\strc_references_smart
 3     {\strc_references_start_goto
 4     \let\currentreferencecontent\currentreferencedefault
 5     \strc_references_pickup_smart_goto}
 6     \def\strc_references_pickup_smart_goto
 7     {\dodoublegroupempty\strc_references_pickup_goto_smart_indeed}
 8     \starttexdefinition strc_references_pickup_goto_smart_indeed #left#right#dummy[#label]
 9     \leftreferencetoks
10     \iffirstargument
11     {#left}

<to be read again> 
l
l.1 ...ferences_pickup_goto_smart_indeed\endcsname#l
                                                  eft#right#dummy[#label]
\ctxcommand #1i-\directlua {commands.#1}
                                        
\syst_helpers_start_tex_definition_two ...n("#1")}
                                                  {#2}
l.32 \stoptexdefinition
                     
? 

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


       reply	other threads:[~2013-09-24 11:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.222.1379923068.18665.ntg-context@ntg.nl>
2013-09-24 11:37 ` Robert Blackstone [this message]
2013-09-24 11:48   ` Marco Patzer
     [not found] <mailman.236.1380044639.18665.ntg-context@ntg.nl>
2013-09-24 19:52 ` Robert Blackstone
2013-09-22 21:02 Marco Patzer
2013-09-23 16:46 ` Hans Hagen
2013-09-23 22:24   ` Marco Patzer
2013-09-25  3:46 ` Otared Kavian
2013-09-25  7:29   ` Marco Patzer
2013-09-25 14:40     ` Otared Kavian
2013-09-25 15:28       ` Marco Patzer
2013-10-08 21:23 ` Marco Patzer

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=CAA870EE-292A-44F3-B427-050290BC4BE0@gmail.com \
    --to=blackstone.robert@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).