Re: [NTG-context] MLA Bibliography
On 2012-04-12 14:32, Kip Warner wrote: > > I am a little surprised because I would > think that the people who use ConTeXt tend to be more from the sciences > than the humanities, and so I wouldn't have expected APA style as the > default. APA is used in the humanities‽ > (1) I'd like it such that each time I use \cite, the full citation and > not just "(Some One, 1967)" appears in a footnote, rather than inline. You need to clarify two things here: 1 You want to map the “\cite” macro to something like “\footcite”? Have you tried something along the lines of this \let \goodoldcite \cite \unexpanded\def\cite#1{\footnote{\goodoldcite{#1}}} (untested)? 2 You want “\cite” to retrieve full citations? Assuming this requires that they contain the complete names of authors, editors and stuff, you might be out of luck. Last time I checked this was impossible to realize within the constraints of the bib module: http://archive.contextgarden.net/message/20100212.073108.f4699471.en.html Hth. Anyways, you’re right, the native Context bib support is not really fulfilling. Philipp > I'm thinking this is done with one of the setup commands, but not sure > how to do this. My *tex is fairly weak. > (2) I'd like to do the above, but also in some cases be able to specify > a specific page number or anecdote to add to the footnote. > > > (3) I'd like any entry in the BibTeX database that has a url to have the > title clickable such that the browser is invoked to that url. Which > brings me to the next question. > > > (4) Since my database is specified in the .bib format, what is the > preferred way of specifying a URL where there is one? I've seen a bunch > of different suggestions ranging from using the 'note' tag to wrapping > in a \def. > > > (5) Is there any way to dump a list of all the references, similar to > \placepublications command that just lists references that contain a > certain keyword or something? e.g. organized by a category? > > Take care Pont, > > -- > Kip Warner -- Software Engineer > OpenPGP encrypted/signed mail preferred > http://www.thevertigo.com > ___ > 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 > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpEvcWJZVn6g.pgp Description: PGP signature ___ 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 ___
Re: [NTG-context] MLA Bibliography
On Thu 12 Apr 2012, Kip Warner wrote: > Indeed, that is unfortunate. I am a little surprised because I would > think that the people who use ConTeXt tend to be more from the > sciences than the humanities, and so I wouldn't have expected APA > style as the default. Most of the scientific journals I've seen use something fairly close to APA style -- although it's worth noting that ConTeXt's ‘APA’ diverges from the official standard at various points. > But surely someone must have found a way by now? I had a quick google before writing my previous mail, but only turned up http://archive.contextgarden.net/message/20100208.170849.f874f701.hu.html , which implies that at least as of two years ago MLA bibliographies were still an unsolved problem. > Agreed. But when I change it to anything other than apa, even to > something allegedly supported, like num, I just see a [[error 2]] > typeset. Sounds like a bug, but never having used the other styles I don't really know. > > Hope this helps, > > Very. I'm glad to find someone who knows about the bibliography module, > since discussion and documentation seems to be scant. The aforementioned bibmod-doc.pdf file by Taco is the best documentation I've found, though it's a little out of date. But it's worth reading to get the idea of how ConTeXt interacts with BibTeX. As you say, discussion is a little scant too. I'm a user with a fairly limited understanding of the bibliography system, but I try to do what I can with bibliography questions if nobody else is answering. I'm afraid I don't have good answers to any of your questions, but as to URLs I can at least tell you what I do: > (3) I'd like any entry in the BibTeX database that has a url to have the > title clickable such that the browser is invoked to that url. Which > brings me to the next question. > > (4) Since my database is specified in the .bib format, what is the > preferred way of specifying a URL where there is one? I've seen a bunch > of different suggestions ranging from using the 'note' tag to wrapping > in a \def. Here's a sample entry from my PhD bibliography: % TODO is there a better way to cite a webpage? @manual{acton2011zplotit, author = {Acton, Gary}, title = {{ZPLOTIT} Software Users' Guide, version 2011-01}, year = {2011}, address = {\hyphenatedurl{http://paleomag.ucdavis.edu/software-Zplotit.html}}, note = {Retrieved 1 February 2011} } ... as the TODO shows, I don't consider this a perfect solution :-). With APA style, this produces an acceptable-looking entry, although semantically ‘address’ is probably the wrong key for the URL. \hyphenatedurl allows the url to be split nicely, but doesn't make it clickable; for that the tricks detailed at http://wiki.contextgarden.net/url should work. I'd guess that something like address = {\useURL[dummy][http://www.example.com]\from[dummy]} should make a clickable bibliography URL. Pont ___ 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 ___
Re: [NTG-context] Comma separating multiple footnotes
On Tue, 2012-04-10 at 11:21 +0200, Wolfgang Schuster wrote: > Am 10.04.2012 um 03:14 schrieb Kip Warner: > > > Hey list, > > > > Is there any means of setting up footnotes such that whenever they are > > tangential, they are automatically separated by a comma delimiter? > > No there isnt but its not hard hard to add a separator because its already > possible to change the distance between the numbers. Would that be done with \setupnotation or maybe \setupfootnotes? Either way, I'm not sure how to do this. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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 ___
Re: [NTG-context] MLA Bibliography
On Thu, 2012-04-12 at 19:57 +1200, Pontus Lurcock wrote: > On Tue 10 Apr 2012, Kip Warner wrote: > > > I'd like to use an MLA style bibliography with MKIV. The style is > > available here: > > > > www.reed.edu/cis/help/latex/bibtexstyles.html > > > > Actually, it doesn't matter to me whether it is that one or any that > > supports MLA already that ships with ConTeXt. > > Unfortunately I don't think that either option is viable: ConTeXt > doesn't come with an MLA style as far as I know, and you can't just > drop in a BST because ConTeXt doesn't use BibTeX to typeset > bibliographies (it just uses it as a preprocessor to convert .bib > files into its own \startpublication ... \stoppublication format). Indeed, that is unfortunate. I am a little surprised because I would think that the people who use ConTeXt tend to be more from the sciences than the humanities, and so I wouldn't have expected APA style as the default. But surely someone must have found a way by now? > The available styles are listed in bibmod-doc.pdf and you can also > find them in tex/texmf-context/tex/context/bib ; MLA isn't amongst > them. Agreed. But when I change it to anything other than apa, even to something allegedly supported, like num, I just see a [[error 2]] typeset. > Unfortunately you'll probably have to define the style yourself using > \setupcite and \setuppublicationlayout -- see bibmod-doc.pdf for > details and the existing bibliography styles for guidance. I wonder if someone has already done that? > Hope this helps, Very. I'm glad to find someone who knows about the bibliography module, since discussion and documentation seems to be scant. I have a few other bibliography related questions that you or Hans might be able to answer: (1) I'd like it such that each time I use \cite, the full citation and not just "(Some One, 1967)" appears in a footnote, rather than inline. I'm thinking this is done with one of the setup commands, but not sure how to do this. My *tex is fairly weak. (2) I'd like to do the above, but also in some cases be able to specify a specific page number or anecdote to add to the footnote. (3) I'd like any entry in the BibTeX database that has a url to have the title clickable such that the browser is invoked to that url. Which brings me to the next question. (4) Since my database is specified in the .bib format, what is the preferred way of specifying a URL where there is one? I've seen a bunch of different suggestions ranging from using the 'note' tag to wrapping in a \def. (5) Is there any way to dump a list of all the references, similar to \placepublications command that just lists references that contain a certain keyword or something? e.g. organized by a category? Take care Pont, -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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 ___
Re: [NTG-context] Paragraph width in table of contents
Le 10/04/2012 17:32, Wolfgang Schuster a écrit : Am 10.04.2012 um 15:59 schrieb Marco: On 2012-04-10 Charles wrote: With an older version of Context […] the paragraphs with the section title were shorter and not overlapping with the page number. I don't see any overlapping here. Maybe you use an older version or the example was too minimal. There was a beta which had this problem but it’s fixed since a while. Wolfgang You are right, it's fixed now. Thanks Charles ___ 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 ___
Re: [NTG-context] placefigure adds break
Hello, A follow-up on the solution \startpostponing [+0] \startplacefigure … \stopplacefigure \stoppostponing As a side effect, one then needs to be careful to surround ALL placefigures with \startpostponing[+0]\stoppostponing, even those that occur after a paragraph end (where one is not concerned about adding a paragraph break), else the floating figures may get placed out of order, e.g. figure 4 before figure 3. As this makes for somewhat sloppy tex files, should not placefigure/table/other get FIXED so as not to introduce a paragraph break? Alan On Thu Apr 5 15:38:05 CEST 2012 Alan BRASLAU wrote: > On Thu, 5 Apr 2012 13:39:42 +0200 > Steffen Wolfrum wrote: > > > > > Am 05.04.2012 um 13:25 schrieb luigi scarso: > > > > > On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan > > > wrote: > > >> (Untested) > > >> > > >> \startpostponing[+1] > > >> \placefigure[top]{}{...} > > >> \stoppostponing > > >> > > >> Rest of the text > > >> > > >> > > >> Aditya > > > \starttext > > > > > > \switchtobodyfont[rm,10pt] > > > > > > \input tufte \input ward \input zapf \input tufte \input ward \input > > > zapf \input tufte \input ward % > > > \input zapf \input tufte \input ward % > > > \input zapf HERE% > > > \startpostponing[+1] > > > \placefigure[top]{}{\vskip3pt\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]} > > > \stoppostponing% > > > AND HERE \input tufte \input ward % > > > \input zapf \input tufte \input ward \input zapf \input tufte \input > > > ward \input zapf \input tufte % > > > \input ward \input zapf \input tufte \input ward \input zapf > > > > > > \stoptext > > > > > > seems ok > > > > > > > > indeed, a great result. > > (searching for this command now, I saw that it's a quite old > > command ... only I never knew it) > > > > thanks a lot Aditya and Luigi! > > > I have been looking for a trick to place figures near their reference > in the text, without imposing a paragraph break. > This trick works (so thanks again to Aditya and Luigi): > > \starttext > > Some text is described \in{figure}[fig:reference]. > \startpostponing[+0] > \startplacefigure[location=here,reference=fig:reference, > title={This figure gets placed somewhere near its reference.}] > \externalfigure[cow][width=\textwidth] > \stopplacefigure > \stoppostponing > The text continues here without a paragraph break. > > \stoptext > > A few comments: > > 1. The \startpostponing...\stoppostponing is necessary, > although some other wrapper around the placefigure might also work. > > 2. The % at the end of the lines in the above examples is not necessary > unless one seeks to kill the spacing between {HERE}{AND HERE}. > > 3. One should preferably be using \startplacefigure\stopplacefigure > (rather than \placefigure). Besides being cleaner, as a bonus > one gets to use title={},list={} for the figure caption and > list of figure entry. > > Should placefigure be "fixed" somehow so as to hide its paragraph > break itself? ___ 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 ___
Re: [NTG-context] gnuplot not working
On 2012-04-12 Mojca Miklavec wrote: > > Oh, indeed. It seems that a recent change in ConTeXt core broke > > functionality of the module (the version I tested on earlier worked > > fine). > > Can you please update and try again? Works perfectly. Thanks for the fix. Marco ___ 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 ___
Re: [NTG-context] gnuplot not working
Mojca Miklavec writes: > On Wed, Apr 11, 2012 at 14:07, Mojca Miklavec wrote: >> >> Oh, indeed. It seems that a recent change in ConTeXt core broke >> functionality of the module (the version I tested on earlier worked >> fine). > > Can you please update and try again? > > Wolfgang suggested to replace \setcounter with \newcounter. Hi Mojca, That seems to work for me - thanks! -- John Devereux ___ 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 ___
Re: [NTG-context] \startitemize[columns] in a figure caption
On Thu, 12 Apr 2012 01:27:33 -0400 Aditya Mahajan wrote: > On Thu, 12 Apr 2012, Wolfgang Schuster wrote: > > > > > Am 11.04.2012 um 22:29 schrieb Alan Braslau: > > > >> Hello, > >> > >> \startitemize [columns] > >> does not work in a figure caption (for example). > >> > >> [I can already hear Hans saying "of course it doesn't".] > > > > \startsimplecolumns > > \startitemize > > … > > \stopitemize > > \stopsimplecolumns > > > > For explanations search the list archive. > > and add it to the wiki :) > > Aditya I've read on the mailing list how columns is a mess and that we have different mechanisms available to us. The point here is that in using item lists, one should NOT have to think or know about this at all: either item list options work or not - in that case it is a bug. My suggestion is the following: 1 - either I've read on the mailing list how columns is a mess and that we have several different mechanisms available to us. The point here is that in using item lists, one should NOT have to think or know about this AT ALL: either item list options work or they do not - that they do not always work is a bug. My suggestion is the following: \startitemize[n] \startitem either item columns be fixed (such as by using the simple column mechanism); \stopitem \startitem or the column option be removed entirely. To get the desired result, one can then explicitly include the start/stop itemized within a start/stop simplecolumns, this becoming the standard operating procedure; \stopitem \stopitemize Adding a caveat to the wiki is a sort of band-aid, not a solution. Describing the correct usage, once the desired behavior be determined, does have its place on the wiki. Alan (I thank Wolfgang, as always, for the suggestion - I will, in my usage, for now and maybe forever unless itemized columns gets fixed, forget about the column option and systematically use start/stop simplecolumns.) ___ 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 ___
Re: [NTG-context] gnuplot not working
On Wed, Apr 11, 2012 at 14:07, Mojca Miklavec wrote: > > Oh, indeed. It seems that a recent change in ConTeXt core broke > functionality of the module (the version I tested on earlier worked > fine). Can you please update and try again? Wolfgang suggested to replace \setcounter with \newcounter. Mojca ___ 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 ___
Re: [NTG-context] \ref not working in current Ctx?
... OK, thank you. I also found your piece of code at http://www.mail-archive.com/ntg-context@ntg.nl/msg62816.html where usage is shown. But I still have a question: Is it possible to create a "point" (or anchor) which would know about the current section, so to retrieve this information later? See the code: \setupinteraction[state=start] \starttext See: \at[MyRef1] \about[MyRef1] \getreference[page][MyRef1] \getreference[title][MyRef1] \getreference[text][MyRef1] \getreference[number][MyRef1] \page \section{Sec1} \subsection{SSec1} \reference[MyRef1]{MyRef1} This is the first reference. \stoptext Gives: " See: 2 “” 2 MyRef1 " And I'm looking for a way to obtain: See: ... SSec1 ... - the current deepest (current) section name, or See: ... "SSec1" ... - quoted current deepest (current) section name, like \about does, and See: ... 1.1 ... - the current section number. How to achieve this? Best regards, Lukas On Thu, 12 Apr 2012 13:53:05 +0200, Wolfgang Schuster wrote: In MkIV you can use the \getreference command for this, see this mail for the arguments. The \ref command is now only a synonym for \getreference and needs the same arguments. Wolfgang -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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 ___
Re: [NTG-context] \ref not working in current Ctx?
Am 12.04.2012 um 08:48 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Hello, > > the wiki example doesn't work on my computer, although the wiki result seems > OK: > > > \starttext > See page \ref[p][myref 1] and \ref[p][myref 2]. > \page > \reference[myref 1]{MyRef1} This is the first reference. > \page > \reference[myref 2]{MyRef2} This is the second one. > \stoptext > > > The result is: "See page and .", i.e. missing numbers of referred pages. > > Maybe versions of Ctx on wiki and on my computer differ. > > The mine: ConTeXt ver: 2012.04.07 14:42 MKIV fmt: 2012.4.9 int: > english/english > > A patch needed? In MkIV you can use the \getreference command for this, see this mail for the arguments. http://news.gmane.org/gmane.comp.tex.context The \ref command is now only a synonym for \getreference and needs the same arguments. Wolfgang ___ 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 ___
Re: [NTG-context] MLA Bibliography
On Tue 10 Apr 2012, Kip Warner wrote: > I'd like to use an MLA style bibliography with MKIV. The style is > available here: > > www.reed.edu/cis/help/latex/bibtexstyles.html > > Actually, it doesn't matter to me whether it is that one or any that > supports MLA already that ships with ConTeXt. Unfortunately I don't think that either option is viable: ConTeXt doesn't come with an MLA style as far as I know, and you can't just drop in a BST because ConTeXt doesn't use BibTeX to typeset bibliographies (it just uses it as a preprocessor to convert .bib files into its own \startpublication ... \stoppublication format). > In my environment file, I tried the following: > > \setuppublications[alternative=mla] The available styles are listed in bibmod-doc.pdf and you can also find them in tex/texmf-context/tex/context/bib ; MLA isn't amongst them. > How can I use an MLA bibliography? Unfortunately you'll probably have to define the style yourself using \setupcite and \setuppublicationlayout -- see bibmod-doc.pdf for details and the existing bibliography styles for guidance. Hope this helps, Pont ___ 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 ___
Re: [NTG-context] \BibTeX usage
On Thu, 2012-04-12 at 06:48 +0200, Wolfgang Schuster wrote: > \usemodule[abr-01] > %\usemodule[abr-02] > %\usemodule[abr-03] > %\usemodule[abr-04] > \starttext > \BIBTEX > \stoptext > > Wolfgang That works, but it is a dummy macro that isn't actually tied to BibTeX. That's fine, except I need version info as well which the macro doesn't provide. It isn't critical and if this isn't possible, it isn't a big deal. Thanks Wolfgang, -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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 ___