From: Csikos Bela <bcsikos425@freemail.hu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: alternative numerical \cite command
Date: Tue, 5 May 2015 12:52:41 +0200 (CEST) [thread overview]
Message-ID: <freemail.20150505125241.80733.1@fmxmldata05.freemail.hu> (raw)
In-Reply-To: <20150504181446.19bdb7b8@iram-ha-003840.extra.cea.fr>
[-- Attachment #1: Type: TEXT/plain, Size: 1904 bytes --]
Alan BRASLAU írta:
>On Mon, 4 May 2015 17:54:31 +0200
>Csikos Bela wrote:
>
>> I could set up superscript citation for numerical citation based on
>> contextgarden bibliography page example.
>
>A MKII hack...
>
>> >Let me understand, though.
>> >Do you want to mix\high{1} citations with [1] citations?
>> >That would be rather strange, stylistically.
>>
>> Yes, but in tables I don't want to put superscript citations.
>
>OK, thanks for explaining this use.
>
>
>> >There is a predefined second num cite variant \cite[textnum][tag].
>> >It's use is intended to produce something like ref. 1, to be used
>> >syntactically in a sentence, in conjunction with standard num
>> >references. [1] This is just num setup with
>> >[left={ref.\nbsp},right=].
>>
>> I guess this command would fit my needs after some editing.
>> Unfortunately my context version doesn't have this command.
>>
>> Using \cite[textnum][tag] simply outputs "[tag]".
>>
>> Either I should update my context to newer (beta?), which I don't
>> know how to do, or define the command in the document. I'd prefer the
>> latter one, if feasible.
>
>You are using the MKII code. It takes the syntax
>\cite[alternative]{key} which is very intolerant of spacing
>and the newer module has abandoned this LaTeX style in favor of
>\cite[key] and \cite[alternative][key]
>
>I recommend that you stick with the MKII module/code for now as we have
>not yet entirely stabilized the new dataset code.
Thanks. But there's no any indication in the log file of using mkII, unless mkiv uses the same code. All \cite[alternative][key] variants work for me except the \cite[textnum][key]
variant. See the attached example tex file with its pdf output and log file.
My question still is how I could define an alternative \cite command for numerical citations,
e.g. \cite[textnum].
Thanks,
bcsikos
[-- Attachment #2: cite.tex --]
[-- Type: APPLICATION/x-tex, Size: 509 bytes --]
[-- Attachment #3: cite.pdf --]
[-- Type: APPLICATION/pdf, Size: 14762 bytes --]
[-- Attachment #4: cite.log --]
[-- Type: APPLICATION/octet-stream, Size: 7179 bytes --]
(/usr/local/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.01.03 00:40 MKIV current fmt: 2015.4.1 int: english/english
system > 'cont-new.mkiv' loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system > files > jobname 'cite', input './cite', result 'cite'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
(/home/test/context/cite.tex
publications > wrote a new auxiliary file 'cite.aux'
publications > loading formatting style from 'bibl-apa'
(bibl-apa.tex){/usr/local/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
fonts > typescripts > unknown library 'loc'
{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > 'fallback modern rm 12pt' is loaded
fonts > treatment > fixing some wrong widths
publications > loading database from 'cite.bbl'
(cite.bbl)
backend > xmp > using file '/usr/local/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1
structure > sectioning > chapter @ level 2 : 0.1 -> \headtext {pubs}
pages > flushing realpage 2, userpage 2
))</usr/local/context/tex/texmf/fonts/opentype/public/lm/lmroman12-italic.otf></usr/local/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf></usr/local/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf></usr/local/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
system > structure > start used structure
used structure > text: cite
system > structure > stop used structure
system > files > start used files
used file > 1: filename=cont-yes.mkiv filetype=tex foundname=/usr/local/context/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used file > 2: filename=cont-new.mkiv filetype=tex foundname=/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used file > 3: filename=lang-us.lua filetype=lua foundname=/usr/local/context/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used file > 4: filename=/home/test/context/cite.tex foundname=/home/test/context/cite.tex usedmethod=direct
used file > 5: filename=bibl-apa.tex foundname=bibl-apa.tex usedmethod=direct
used file > 6: filename=mkiv-base.map filetype=map format=map foundname=/usr/local/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used file > 7: filename=lm.lfg filetype=tex foundname=/usr/local/context/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used file > 8: filename=lm-math.lfg filetype=tex foundname=/usr/local/context/tex/texmf-context/tex/context/fonts/lm-math.lfg usedmethod=database
used file > 9: filename=lm-math.map filetype=map format=map foundname=/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-math.map usedmethod=database
used file > 10: filename=lm-rm.map filetype=map format=map foundname=/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used file > 11: filename=lmroman12-regular filetype=otf format=otf foundname=/usr/local/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file > 12: filename=latinmodern-math.otf filetype=opentypefonts foundname=/usr/local/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file > 13: filename=latinmodern-math.otf filetype=otf format=otf foundname=/usr/local/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file > 14: filename=lmmono12-regular filetype=otf format=otf foundname=/usr/local/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf usedmethod=database
used file > 15: filename=cite.bbl foundname=cite.bbl usedmethod=direct
used file > 16: filename=lpdf-pdx.xml filetype=tex foundname=/usr/local/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database
used file > 17: filename=lmroman10-regular filetype=otf format=otf foundname=/usr/local/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf usedmethod=database
used file > 18: filename=lmroman12-italic filetype=otf format=otf foundname=/usr/local/context/tex/texmf/fonts/opentype/public/lm/lmroman12-italic.otf usedmethod=database
system > files > stop used files
system > options > start commandline options
used option > currentrun="1"
used option > fulljobname="./cite.tex"
used option > input="./cite.tex"
used option > kindofrun="1"
used option > maxnofruns="8"
used option > no-parse-first-line="true"
system > options > stop commandline options
system > options > start commandline files
used file > 1: ./cite.tex
system > options > stop commandline files
mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path: readable: '/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e' | readable+writable: '/tmp/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e'
mkiv lua stats > resource resolver: loadtime 0.010 seconds, 1 scans with scantime 0.001 seconds, 5 shared scans, 18 found files, scanned paths: /home/test/texmf
mkiv lua stats > stored bytecode data: 338 modules (0.160 sec), 69 tables (0.000 sec), 407 chunks (0.160 sec)
mkiv lua stats > cleaned up reserved nodes: 42 nodes, 9 lists of 442
mkiv lua stats > node memory usage: 2 glue, 2 penalty, 12 attribute, 36 glue_spec, 3 attribute_list
mkiv lua stats > node list callback tasks: 6 unique task lists, 5 instances (re)created, 122 calls
mkiv lua stats > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats > loaded patterns: en::2, load time: 0.000
mkiv lua stats > jobdata time: 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats > callbacks: 344 direct, 635 indirect, 979 total
mkiv lua stats > randomizer: resumed with value 0.4584025514584
mkiv lua stats > interactive elements: 0 references, 1 destinations
mkiv lua stats > result saved in file: cite.pdf, compresslevel 3, objectcompreslevel 3
mkiv lua stats > loaded fonts: 5 files: latinmodern-math.otf, lmmono12-regular.otf, lmroman10-regular.otf, lmroman12-italic.otf, lmroman12-regular.otf
mkiv lua stats > fonts load time: 0.244 seconds for 7 fonts, 2 shared in backend, 2 common vectors, 0 common hashes
mkiv lua stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats > luatex banner: this is luatex, version beta-0.80.0 (tex live 2015/dev) (rev 5195)
mkiv lua stats > control sequences: 38454 of 65536 + 100000
mkiv lua stats > current memory usage: 52 MB (ctx: 52 MB)
mkiv lua stats > runtime: 0.671 seconds, 2 processed pages, 2 shipped pages, 2.981 pages/second
[-- Attachment #5: 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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-05-05 10:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-04 13:10 Csikos Bela
2015-05-04 13:51 ` Alan BRASLAU
2015-05-04 14:02 ` Otared Kavian
[not found] ` <CALBOmsYOyx9ckrrYovn-OJHXqwrBzL4gozV10rgvyuaietT4EQ@mail.gmail.com>
2015-05-04 17:03 ` Otared Kavian
2015-05-04 18:26 ` Thomas A. Schmitz
2015-05-04 15:54 ` Csikos Bela
2015-05-04 16:14 ` Alan BRASLAU
2015-05-04 16:22 ` Thomas A. Schmitz
2015-05-05 10:52 ` Csikos Bela [this message]
2015-05-05 11:32 ` Alan BRASLAU
2015-05-05 16:19 ` Csikos Bela
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=freemail.20150505125241.80733.1@fmxmldata05.freemail.hu \
--to=bcsikos425@freemail.hu \
--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).