ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bibtex and context?
@ 1999-06-10 12:55 Matthew Baker
  1999-06-11 20:08 ` Hans Hagen
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Matthew Baker @ 1999-06-10 12:55 UTC (permalink / raw)


Hi,

Does Context have a bibliography mechanism?  I don't recall reading
anything about it in the doco.  More specifically, is there any way of
getting my bibtex entries in?  I think this is the last requirement for
my total replacement of latex with context (apart from more mathematics
macros, which has already been discussed.)

I've done a bit of bst file editing before.  I guess appropriate bst
files
are all that are needed to put bibtex-generated entries into context
files. 
I could have a crack at this, if it hasn't been done already.  It's
probably about time I put something back in ;P

- Matthew

--
Dr. Matthew Baker           matthew.baker@gmd.de
GMD - FIT.MMK              
http://fit.gmd.de/hci/pages/matthew.baker.html


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

* Re: Bibtex and context?
  1999-06-10 12:55 Bibtex and context? Matthew Baker
@ 1999-06-11 20:08 ` Hans Hagen
  1999-06-14 10:37 ` Taco Hoekwater
  1999-06-15 12:03 ` Gnuplot Taco Hoekwater
  2 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 1999-06-11 20:08 UTC (permalink / raw)
  Cc: ntg-context

Hi Matthew,

> Does Context have a bibliography mechanism?  I don't recall reading
> anything about it in the doco.  More specifically, is there any way of
> getting my bibtex entries in?  I think this is the last requirement for
> my total replacement of latex with context (apart from more mathematics
> macros, which has already been discussed.)
> 
> I've done a bit of bst file editing before.  I guess appropriate bst
> files
> are all that are needed to put bibtex-generated entries into context
> files.
> I could have a crack at this, if it hasn't been done already.  It's
> probably about time I put something back in ;P

Some time ago I defined a general mechanism for collection sof sorted
things, using existing mechanisms. I'll send you the test file (which
defines some macros you need)

It comes down to something:

% definition with two sort keys

\definesortset
  [somepublication]
  [author,title]
  [    type=article,
     author=,title=,
    journal=,volume=,number=,pages=,year=,
    edition=,
       note=,URL=]

% when called by author or title:

\definesortsetitem
  [publication][somepublication][author]
  [(\field{author})]

\definesortsetitem
  [publication][somepublication][title]
  [(\field{title}, by \field{author})]

% or by number as typeset in the list

\definesortsetreference
  [someone][somepublication][{[\fieldnum]}]
  [\FinalPublicationList]

% using a macro:

\def\FinalPublicationList%
  {[\fieldnum]\spatie
   \doif{\field{type}}{article}
     {\doifsomething{\field{author}}{\field{author},\spatie}%
      \doifsomething{\field {title}}{{\sl\field{title}}.\spatie}%
      \doifsomething{\field  {year}}{(\field{year}).\spatie}}
   \par}

% the list itself

\definesortsetlist
  [publicationsbyauthor][somepublication][author][criterium=alles]

% some definitions

\somepublication
  [hagenj-tt,thisthat]
  [author={Hagen, J},
    title={This or That}]

\somepublication
  [ottenaf-ss,suchso]
  [author={Otten, A.F.},
    title={Such and So}]

\somepublication
  [hagenj-ht,herethere]
  [author={Hagen, J},
    title={Here and There}]

\somepublication
  [ottenaf-tt,thickthin]
  [author={Otten, A.F.},
    title={Thick and Thin}]

% a sample

\starttekst

test \publication[author][ottenaf-tt]

test \publication[title][hagenj-tt]

test \someone[ottenaf-ss]

test \someone[hagenj-ht]

\publicationsbyauthor

\stoptekst

So, what we need is a few perl scripts converting existing bib things
into this scheme. 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


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

* Re: Bibtex and context?
  1999-06-10 12:55 Bibtex and context? Matthew Baker
  1999-06-11 20:08 ` Hans Hagen
@ 1999-06-14 10:37 ` Taco Hoekwater
  1999-06-14 17:43   ` Tobias Burnus
  1999-06-15 12:03 ` Gnuplot Taco Hoekwater
  2 siblings, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 1999-06-14 10:37 UTC (permalink / raw)
  Cc: ntg-context

>>>>> "Matthew" == Matthew Baker <matthew.baker@gmd.de> writes:

    Matthew> Hi, Does Context have a bibliography mechanism?  I don't
    Matthew> recall reading anything about it in the doco.  More
    Matthew> specifically, is there any way of getting my bibtex
    Matthew> entries in?  I think this is the last requirement for my
    Matthew> total replacement of latex with context (apart from more
    Matthew> mathematics macros, which has already been discussed.)

We could do a quick hack that would allow you to use current bst
files, but those are not all that flexible. Instead, I've been working 
on a module (soon to be released) that accepts input like this:

\startpublicationlist
\startpublication [key=bib1, % reference key
                authordata=Du Plessis \& Koen, % for apa
                yeardata=1992, % for apa
                type=article] % layout style selection
\arttitle{Leaf analysis norms for lemons [{\it Citrus limon} (L.) Burm.]}
% firstnames prefix lastname
\artauthor {S.F.}{}{Du Plessis}
\artauthor {T.J.}{von}{Koen}
% firstpage lastpage
\pages{551}{552}
% volume issue
\volissue{2}{}
\journal{Proc. Int. Soc. Citriculture}
\pubyear{1992}
\stoppublication

...
\stoppublicationlist

It's syntax is not completely mature yet, but I'm sure you get the
idea. This does not need a .bst file, but something like

	 texutil --bib2tex

Greetings,

Taco
    Matthew> I've done a bit of bst file editing before.  I guess
    Matthew> appropriate bst files are all that are needed to put
    Matthew> bibtex-generated entries into context files.  I could
    Matthew> have a crack at this, if it hasn't been done already.
    Matthew> It's probably about time I put something back in ;P

    Matthew> - Matthew

    Matthew> -- Dr. Matthew Baker matthew.baker@gmd.de GMD - FIT.MMK
    Matthew> http://fit.gmd.de/hci/pages/matthew.baker.html

-- 
Taco Hoekwater                                 taco.hoekwater@wkap.nl
Kluwer Academic Publishers                            -- Pre Press --
Achterom 119, 3311 KB Dordrecht, The Netherlands  tel.  31-78-6392550
---------------------------------------------------------------------


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

* Re: Bibtex and context?
  1999-06-14 10:37 ` Taco Hoekwater
@ 1999-06-14 17:43   ` Tobias Burnus
  1999-06-15  9:21     ` Hans Hagen
  0 siblings, 1 reply; 11+ messages in thread
From: Tobias Burnus @ 1999-06-14 17:43 UTC (permalink / raw)


Hallo Taco, Hi all Hoekwater wrote:

> It's syntax is not completely mature yet, but I'm sure you get the
> idea. This does not need a .bst file, but something like
> 
>          texutil --bib2tex

It might be also nice, if a tex2bib would exist, especially when working
together with LaTeX users.

Looking forward to try this module and the math module.
(I'm also looking forward to use a new version of texwork)

Groeten, Grüße and Regards,

Tobias

PS: A while ago (so in February) I ask for the best possibility to include the
output of Gnuplot, well they now support MetaPost in their recent betas :-)
--
"This above all: To thine own self be true / And it must follow as the day the
night / Thou canst not then be false to anyone." -- Polonius to Laertis (Hamlet)


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

* Re: Bibtex and context?
  1999-06-14 17:43   ` Tobias Burnus
@ 1999-06-15  9:21     ` Hans Hagen
  0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 1999-06-15  9:21 UTC (permalink / raw)
  Cc: NTG-ConTeXt

Tobias Burnus wrote:

> > It's syntax is not completely mature yet, but I'm sure you get the
> > idea. This does not need a .bst file, but something like
> >
> >          texutil --bib2tex
> 
> It might be also nice, if a tex2bib would exist, especially when working
> together with LaTeX users.

Shouldn't be to hard, once I know the syntax. 

> Looking forward to try this module and the math module.
> (I'm also looking forward to use a new version of texwork)

I'm currently using it (on windows that is, because my linux machine is
constantly segfaulting, spoiled all the disks, and installing suse 6.1
fails hopelessly due to some kind of unability to write to some null
thing). I'll send you an update later.   

> PS: A while ago (so in February) I ask for the best possibility to include the
> output of Gnuplot, well they now support MetaPost in their recent betas :-)

Sounds good!

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


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

* Gnuplot
  1999-06-10 12:55 Bibtex and context? Matthew Baker
  1999-06-11 20:08 ` Hans Hagen
  1999-06-14 10:37 ` Taco Hoekwater
@ 1999-06-15 12:03 ` Taco Hoekwater
  2 siblings, 0 replies; 11+ messages in thread
From: Taco Hoekwater @ 1999-06-15 12:03 UTC (permalink / raw)


    >> PS: A while ago (so in February) I ask for the best possibility
    >> to include the output of Gnuplot, well they now support
    >> MetaPost in their recent betas :-)

    Hans> Sounds good!

Tried this and it actually seems to work. Thanks for the pointer.

Taco


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

* Re: gnuplot
  2011-08-19  7:47   ` gnuplot Xenia
  2011-08-19 13:07     ` gnuplot George N. White III
@ 2011-08-19 13:16     ` Mojca Miklavec
  1 sibling, 0 replies; 11+ messages in thread
From: Mojca Miklavec @ 2011-08-19 13:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Aug 19, 2011 at 09:47, Xenia wrote:
>
> But then I got:
> ---------------------
> $ ./prepare
>
> ./prepare: 47: aclocal: not found

I guess that a package "autotools/autoconf" or something similar is missing.

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
___________________________________________________________________________________


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

* Re: gnuplot
  2011-08-19  7:47   ` gnuplot Xenia
@ 2011-08-19 13:07     ` George N. White III
  2011-08-19 13:16     ` gnuplot Mojca Miklavec
  1 sibling, 0 replies; 11+ messages in thread
From: George N. White III @ 2011-08-19 13:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Aug 19, 2011 at 4:47 AM, Xenia <yoraxe@googlemail.com> wrote:
>[...]
> I tried following this instruction:
> http://wiki.contextgarden.net/Gnuplot#Unix_or_Mac
>
> But then I got:
> ---------------------
> $ ./prepare
>
> ./prepare: 47: aclocal: not found
>
> Some part of the preparation process failed.
> Please refer to INSTALL for details.
> ---------------------
>
> And in "INSTALL" and "INSTALL.gnu" the first step is to do
> $ ./configure
> but I only have a configure.in and configure.vms -file.
> I'm quite confused.

Most likely you are missing some of the "build" tools.   Look
for a package called "build-essential".  You may need to add
some -dev packages for various libraries needed by gnuplot.
You might check the dependencies for debian gnuplot and
make sure you have the -dev versions of all the libraries.

-- 
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
___________________________________________________________________________________
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] 11+ messages in thread

* Re: gnuplot
  2011-08-18 21:31 ` gnuplot Mojca Miklavec
@ 2011-08-19  7:47   ` Xenia
  2011-08-19 13:07     ` gnuplot George N. White III
  2011-08-19 13:16     ` gnuplot Mojca Miklavec
  0 siblings, 2 replies; 11+ messages in thread
From: Xenia @ 2011-08-19  7:47 UTC (permalink / raw)
  To: ntg-context

Am 18.08.2011 23:31, schrieb Mojca Miklavec:
> On Thu, Aug 18, 2011 at 22:39, Xenia wrote:
>> Hi list,
>>
>> I'm having some problems with gnuplot.
>>
>> I tried the minimal example from http://wiki.contextgarden.net/Gnuplot ,
>> but I recieve just a .plt-file.
>>
>> I hope some of you do also use gnuplot and can help me easily.
> 
> Dear Xenia,
> 
> 1.) What operating system are you using?

debian-wheezy (testing)

> 2.) Did you compile gnuplot from https://github.com/mojca/gnuplot or
> did you use the default gnuplot as shipped with your system? (I should
> check again, but there is some slight chance that it also works with
> TikZ terminal; however I doubt that the latest version of TikZ
> terminal has been released, so that might not necessary help you.)

I tried following this instruction:
http://wiki.contextgarden.net/Gnuplot#Unix_or_Mac

But then I got:
---------------------
$ ./prepare

./prepare: 47: aclocal: not found

Some part of the preparation process failed.
Please refer to INSTALL for details.
---------------------

And in "INSTALL" and "INSTALL.gnu" the first step is to do
$ ./configure
but I only have a configure.in and configure.vms -file.
I'm quite confused.
So I installed it from the debian-repositories (for sure without any
context-implementation), but you could just tell me, how I can make your
version work. :-)

> 3.) You need to make sure that if you run gnuplot, selecting
>     set term context
> works. After then you could also check if
>     gnuplot your-document-gnuplot-1.plt
> will generate a tex file.
> 
> I suspect that your gnuplot doesn't know about ConTeXt terminal. In
> that case you may complain to the gnuplot mailing list :) :) :)

You're right and I did. :-)

Thanks

Xenia
___________________________________________________________________________________
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] 11+ messages in thread

* Re: gnuplot
  2011-08-18 20:39 gnuplot Xenia
@ 2011-08-18 21:31 ` Mojca Miklavec
  2011-08-19  7:47   ` gnuplot Xenia
  0 siblings, 1 reply; 11+ messages in thread
From: Mojca Miklavec @ 2011-08-18 21:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Aug 18, 2011 at 22:39, Xenia wrote:
> Hi list,
>
> I'm having some problems with gnuplot.
>
> I tried the minimal example from http://wiki.contextgarden.net/Gnuplot ,
> but I recieve just a .plt-file.
>
> I hope some of you do also use gnuplot and can help me easily.

Dear Xenia,

1.) What operating system are you using?
2.) Did you compile gnuplot from https://github.com/mojca/gnuplot or
did you use the default gnuplot as shipped with your system? (I should
check again, but there is some slight chance that it also works with
TikZ terminal; however I doubt that the latest version of TikZ
terminal has been released, so that might not necessary help you.)
3.) You need to make sure that if you run gnuplot, selecting
    set term context
works. After then you could also check if
    gnuplot your-document-gnuplot-1.plt
will generate a tex file.

I suspect that your gnuplot doesn't know about ConTeXt terminal. In
that case you may complain to the gnuplot mailing list :) :) :)

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
___________________________________________________________________________________


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

* gnuplot
@ 2011-08-18 20:39 Xenia
  2011-08-18 21:31 ` gnuplot Mojca Miklavec
  0 siblings, 1 reply; 11+ messages in thread
From: Xenia @ 2011-08-18 20:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi list,

I'm having some problems with gnuplot.
I installed it as an extra module (means I guess, it is already
installed via --modules="all").

Now, I want to use it directly in my ConTeXt-document, without
compiling/preprocessing it first.

In the gnuplot documentation I just found, how to create a pdf-document
(nothing about implementation in context).

I tried the minimal example from http://wiki.contextgarden.net/Gnuplot ,
but I recieve just a .plt-file.

I hope some of you do also use gnuplot and can help me easily.

Thanks.
___________________________________________________________________________________
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] 11+ messages in thread

end of thread, other threads:[~2011-08-19 13:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-10 12:55 Bibtex and context? Matthew Baker
1999-06-11 20:08 ` Hans Hagen
1999-06-14 10:37 ` Taco Hoekwater
1999-06-14 17:43   ` Tobias Burnus
1999-06-15  9:21     ` Hans Hagen
1999-06-15 12:03 ` Gnuplot Taco Hoekwater
2011-08-18 20:39 gnuplot Xenia
2011-08-18 21:31 ` gnuplot Mojca Miklavec
2011-08-19  7:47   ` gnuplot Xenia
2011-08-19 13:07     ` gnuplot George N. White III
2011-08-19 13:16     ` gnuplot Mojca Miklavec

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