Re: [NTG-context] How to display source in ConTeXt?

2012-11-13 Thread Pontus Lurcock
On Tue 13 Nov 2012, Martin Schröder wrote:

 PLEASE switch of Comic Sans!
 http://bancomicsans.com/

Yang Zhao's message did include a text/plain version too.
Unfortunately it seems it may be impossible to display this by default
in Gmail:
http://webapps.stackexchange.com/questions/4289/how-to-disable-content-type-html-in-gmail
 . Another reason to use Mutt :-).

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] \chapter{} vs \startchapter..\stopchapter

2012-11-10 Thread Pontus Lurcock
On Sat 10 Nov 2012, Alan BRASLAU wrote:

 Given our interest in pdf production, perhaps we ought to be (more)
 involved in opensource pdf viewer development? But I suppose that
 acrobat and adobe reader remain the tools having the most widespread
 use. 

It would certainly be nice to have an open-source PDF viewer
approaching Adove Reader's capabilities. I've never seen any moves in
this direction, though. The impression I have is that 99% of people
only need very basic PDF viewer functionality, and regard most of
Adobe Reader's features as bloat.

Personally I find this worrying: I'm using Adobe Reader 9 on Linux,
Adobe aren't going to release any newer Linux versions, and at some
point I will run into a feature I need which is not supported either
by AR9 or any open-source viewer.

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] scripts

2012-11-01 Thread Pontus Lurcock
On Thu 01 Nov 2012, Alan BRASLAU wrote:

 Whats more, bash is found under /usr/local/bin/bash on FreeBSD so
 #! /bin/bash
 is bound to FAIL.

One traditional solution is to use

#!/usr/bin/env bash

This of course assumes the path to env, but I believe that the env
path is more standardized than the bash path. (/usr/bin/env is
valid on FreeBSD, for example.)

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] scripts

2012-10-30 Thread Pontus Lurcock
On Tue 30 Oct 2012, Bill Meahan wrote:

 On 10/30/2012 01:20 PM, Hans Hagen wrote:
  filename 21
 
 This has been the correct Bourne shell (POSIX) syntax for many
 years. I think it goes all the way back to Bell Labs V7 IIRC
 
 instead of filename.
 
 is a bash-ism

FWIW, Debian and Ubuntu have a package ‘devscripts’ which includes a
program ‘checkbashisms’ to catch such things (Ubuntu started using
dash as the default sh back in 2006). Ubuntu also has some advice
on strict-POSIX shell scripting: 
https://wiki.ubuntu.com/DashAsBinSh#I_am_a_developer._How_can_I_avoid_this_problem_in_future.3F

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] scripts

2012-10-30 Thread Pontus Lurcock
On Tue 30 Oct 2012, Hans Hagen wrote:

 FWIW, Debian and Ubuntu have a package ‘devscripts’ which includes a
 program ‘checkbashisms’ to catch such things (Ubuntu started using
 dash as the default sh back in 2006). Ubuntu also has some advice
 
 hm, so i wonder why setuptex fails on that box then (not that i care
 much as i can set the path)

I was briefly confused as to why I (and other Ubuntu users) have never
had a problem with setuptex... then I remembered that while sh links
to dash (because it's fast), bash is still used explicitly as the
default *login* shell (because it's featureful). So ‘source setuptex’
has always worked for me but would presumably give trouble in a
non-login shell. Don't know how Debian does it.

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] Search path.

2012-09-10 Thread Pontus Lurcock
On Mon 10 Sep 2012, Andre Caldas wrote:

  Do you really need to use context mkii? As it's a new project,
  using context mkiv might be a better idea.
 
 No, I don't. I want to use always the preferred solution. I want to
 follow your guidelines and be enlightened... :-)
 How did you know I was using one and not the other? I didn't know it
 myself!!!

Probably from the name of the binary -- ‘texexec’ runs mkii,
whereas ‘context’ gives you mkiv.

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] Marking a textfragment for later reference

2012-08-07 Thread Pontus Lurcock
On Tue 07 Aug 2012, Robert Blackstone wrote:

 Here follows my minimal example. I reasoned that the identifier [topica] 
 might act as a label, or an anchor, or whatever the correct ConTeXt name is, 
 for a reference.
 ---
 
 \definedelimitedtext[topica]
 \setupdelimitedtext[topica][left=,right=] %maybe superfluous? I do not need a 
 layout different from the rest of the text.
 \starttext
 
  Some text.
 
 \starttopica
 Some text to explain a certain topic, called topica.
 \stoptopica
 
 Some more text about topica. (See discussion on \at{page}[topica])
 
 \stoptext
 
 ---
 To avoid any misunderstanding: this is no longer a problem since I have been 
 given excellent advice. But it intrigues me. Why can some identifiers, for 
 example of figures, be used for internal references and others not?

In this case, I'd say it's because you're defining a delimited text
style which can be used in multiple places. Your document could have
five hundred \starttopica...\stoptopica blocks on different pages.
A figure identifier, on the other hand, is meant to be unique.

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] Check brackets and parentheses

2012-07-06 Thread Pontus Lurcock
On Thu 05 Jul 2012, Gilbert Houtekamer wrote:

 I sometimes find myself looking for misplaced and missing brackets for a long 
 time, as context may given errors about a completely different location.
 
 For example this one took me a while
\goto{\url[localhost20381}[url(localhost20381)]
  
 (missing ] after this localhost20381).
 
 Is there a SciTE or Notepad++ or command line script that anyone wrote to 
 help with this?  It can be more or less sophisticated, but I found that 
 missing / mismatched { [ ] } give the most confusing errors.  

I wrote the attached Python script a while ago to catch cases like
this, where an opening bracket accidentally ‘contains’ the whole rest
of the file. The script just keeps a running count of the nesting
level, and gives the number of the last line where the nesting level
was zero. Usually the offending bracket is at or very close to that
line. It does that same for \start... and \stop..., in a very stupid 
way (i.e. just counts them without identifying them, wouldn't
catch e.g. \startonething \stopsomeotherthing).

Hope it's helpful,

Pont
#!/usr/bin/python

import sys

'''Count opening and closing braces in a file.'''

def count(filename, opening, closing):
print opening, closing
f = open(sys.argv[1], 'r')
braces = 0
i = 1
last_zero = -1
for line in f.readlines():
braces += line.count(opening)
braces -= line.count(closing)
if braces==0: last_zero = i
i += 1
f.close()
print last_zero

count(sys.argv[1], '{', '}')
count(sys.argv[1], '[', ']')
count(sys.argv[1], '\\start', '\\stop')
___
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] Check brackets and parentheses

2012-07-06 Thread Pontus Lurcock
On Fri 06 Jul 2012, Hongwen Qiu wrote:

 def count(filename, opening, closing):
  print opening, closing
  f = open(sys.argv[1], 'r')
 Shouldn't this line be
  f = open(filename, 'r')
 otherwise the 'filename' parameter will not be used

Oops, you're quite correct. Of course it makes no difference at
present, but one day some unlucky person will try to use the function
elsewhere. The script was written in a hurry, as you may guess.

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] Confused again :-)

2012-06-07 Thread Pontus Lurcock
On Thu 07 Jun 2012, Bill Meahan wrote:

 Gosh this list is nice! Reminds me of the good old days when we
 used UUCP, bang-paths and C-News to communicate (or the early
 ARPANET days): polite, expert, very willing to share knowledge c.

Wolfgang is ConTeXt's natural language interface.

In fact, with careful use of the filter module and a couple of mail
programs, it should be possible to create something like:

--8--

\usemodule[filter]

\defineexternalfilter
[wolfgang]
[filtercommand={ ... code to send email and fetch reply ... },
 cache=yes]

\startwolfgang
Hello list,

I wonder if anyone could tell me how to implement the following in
ConTeXt.

... description goes here ...
\stopwolfgang

--8--

It's important to include the cache=yes, so Wolfgang only has to reply
once.

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 sample file and possible bibtex bug

2012-05-30 Thread Pontus Lurcock
On Wed 30 May 2012, Andy Thomas wrote:

 I apologize to bumb my own post, but does anyone know, where to put
 sample.bib? Or did the default search path for bibtex change? The
 basic example on http://wiki.contextgarden.net/Bibliography_mkiv
 does not work as well, because of the same reason. I would then try
 to update the wiki.

I'm fairly sure that at some point sample.bib was automatically found
in its default place in the ConTeXt tree. I noticed last year that it
had stopped working (see
http://archive.contextgarden.net/message/20110922.215858.812822eb.en.html
) but I'm not sure if this is a bug or a deliberate change. The only
way I know of to include it reliable is to copy it to the same
directory as the document source.

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] Apology

2012-05-29 Thread Pontus Lurcock
On Tue 29 May 2012, yuji sakai wrote:

 Cheating, I believe, has a connotation of one bypassing the norms to
 gain undue advantage over others. To that, I refuse to admit that
 what I did earlier was cheating. As I have said, I had no intention
 of disrupting this message board. It was a careless mistake on my
 part.

Don't worry: I don't think Mojca was accusing you of deceit.
‘Cheating’ is sometimes used in a looser sense to mean doing something
the easy way rather than the official way. I'm sure that that's what
was meant here.

Using reply-to for new messages is an understandable mistake that I've
seen on many mailing lists. For people not using threaded
mail-readers, it doesn't make any apparent difference. For the rest of
us, however, it messes up the conversations quite noticeably. I'll add
something to http://wiki.contextgarden.net/ConTeXt_Mailing_Lists about
it, since it seems we already have some useful guidelines there.

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] standard for bibliographies

2012-05-10 Thread Pontus Lurcock
On Thu 10 May 2012, Thomas A. Schmitz wrote:

  one glaring omission to me was the lack of support for
 cross-references within bibliographical lists (e.g., you have a
 chapter in a book and want to refer back to item X in your list).
 This has been asked again and again on the zotero forums. Answer
 2007: yes, this is coming real soon now. 2008: Well, it needs
 support from CSL, and may be a bit longer. 2009-2011: more requests,
 no reply. 2012, one of the developers: not any time soon... This
 makes CSL worthless to me, I'm afraid.

This is certainly a limitation for Zotero (I noticed it as well when I
tried it out a little while ago) but I'm not sure that it's a problem
for CSL. As I understand it, CSL defines formatting for typeset
citations and bibliography entries. It's not meant to handle tasks
such as cross-referencing chapter entries to their book entries --
that should be the job of the software (Zotero, Mendeley, etc.) which
is using CSL for its formatting. My experience with CSL is limited,
though, so I could be wrong about this.

At any rate, CSL seems to be achieving a critical mass of usage and
support, and there's a huge number of predefined, publicly available
styles ( https://github.com/citation-style-language/styles/wiki ).

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] Metapost/Metafun Q: using variables and building blocks?

2012-05-06 Thread Pontus Lurcock
On Sun 06 May 2012, Wolfgang Schuster wrote:

 
 Am 06.05.2012 um 11:16 schrieb luigi scarso:
 
  On Sun, May 6, 2012 at 10:53 AM, Mari Voipio mari.voi...@iki.fi wrote:
  http://www.lucet.fi/textiles/
  
  ConTeXt, developed by the Dutch company Pragma Advanced Document
  Engineering, is not open source software,
  
  Hm, I'm not sure that it's correct.
 
 ConTeXt is licensed under the GPL, you can find the information in this 
 document: http://pragma-ade.com/general/manuals/mreadme.pdf

There was previous discussion and clarification on this at
http://tex.stackexchange.com/questions/12431/using-context-commercially
and
http://archive.contextgarden.net/message/20110301.213750.c7a55835.en.html .

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] MLA Bibliography

2012-04-12 Thread Pontus Lurcock
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] MLA Bibliography

2012-04-12 Thread Pontus Lurcock
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] I want cited bib items only in my bibliography

2012-04-05 Thread Pontus Lurcock
On Thu 05 Apr 2012, Mikael P. Sundqvist wrote:

 Dear list,
 
 What is the right way today to get only the cited items in the
 bibliography?

I think that what you want is \placepublications[criterium=text] .
(Some recent messages suggest that citations are broken in the latest
beta, so also make sure you're using a slightly earlier version.)

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] Citation of two books with extra information

2012-04-03 Thread Pontus Lurcock
On Tue 03 Apr 2012, Steffen Fritzsche wrote:

 Hi all,
 
 is it possible to cite two books and include page information for each of 
 them. To give an example I'm looking for something like
 
 \cite[extras={, p. 123}, extras={, p. 456}][BookOne:2000, BookTwo:1900]
 
 which should be processed as
 
 (BookOne Authors, 2000, p. 123 and BookTwo Authors, 1900, p. 456)
 
 This does not work because the first extras is overridden with the second. 
 It's possible to append Information to the second citation but not to the 
 first or to both. Any suggestions how I might achieve this?

I don't know if there's a ‘proper’ solution, but you can work around it
by building it up manually from bare citations -- something like

\def\nakedcite[#1]%
{\cite[alternative=authoryears,left={},right={}][#1]}
...
(\nakedcite[BookOne:2000], p. 123 and \nakedcite[BookTwo:1900], p. 456)

That's a starting point at least -- if you need more convenience you can
think about defining your own macro in terms of \nakedcite .

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] Cross-document referencing not working!

2012-02-08 Thread Pontus Lurcock
On Wed 08 Feb 2012, Verhaag, G.C.H.M. wrote:

 When I for example use \useexternaldocument[tst][test][A test
 external] together with \from[tst] the test.pdf file is correctly
 opened in Acrobat Reader.
 
 But the \in{section}[tst::crossref] doesn't open the test.pdf file
 at all?! The jump to the 'crossref' section doesn't seem to work!
 Please take a look at the two included test files.
 
 I first compile test.tex followed by the compilation of
 crossref.tex. Currently I use: ConTeXt  ver: 2012.01.25 14:16 MKIV
 fmt: 2012.2.7  int: english/english.

I get the same behaviour as you (context MkIV 2011.10.01, Adobe Reader
9.4, Linux) -- reference to file works, reference to section doesn't.
But I don't know how to fix it.

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] Questions on Table of Contents

2012-02-07 Thread Pontus Lurcock
On Tue 07 Feb 2012, Kip Warner wrote:

 One other thing, Pont. How do I add a title such as Contents at a
 Glance without the actual table of contents including that in the
 list it generates?

Sorry, don't know about this -- I've never needed it, and I a google
of the contextgarden hasn't turned anything up. I have a feeling
that there should be an argument for \chapter or \section that does 
this, but I can't find the relevant documentation.

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] Questions on Table of Contents

2012-02-06 Thread Pontus Lurcock
On Mon 06 Feb 2012, Kip Warner wrote:

 I am familiar with the \completecontent command, but was wondering if
 there is a way to also typeset just a summary of the table of contents
 (e.g. just chapters and no sections, sub sections, etc.)?

\placelist[chapter] should do it (untested).

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
___


[NTG-context] Question marks in bibliography entries [solved]

2012-02-04 Thread Pontus Lurcock
Hello all,

I am presenting an answer rather than a question, for a change.
(Though as usual it's about bibliographies.) Last November, Renald
Buter posted a question about how to suppress the full stop which
follows a publication title in the case where the publication title
itself ends in a question mark -- this produces entries like

  Authorname, A. (1990) A rhetorical question?. Journal of etc. etc.

which doesn't look nice. At the time I gave some untested suggestions.
Now (due to a sharp-eyed thesis examiner) I've actually had to test
and implement a solution. For anyone else with this problem, I've
written it up at
http://wiki.contextgarden.net/Question_marks_in_bibliography_entries .

As usual with BibTeX-y things, it's a hack, but it does the job.
I hope this will save time and effort for somebody.

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
___


[NTG-context] Bibliography problem

2012-02-01 Thread Pontus Lurcock
Hello,

Here's a long-standing problem I have with BibTeX databases in ConTeXt
Mk IV (I'm currently using version 2011.10.01). If there are multiple
publications with the same authors and year, they get suffixes a, b,
etc. as is usually expected in bibliographies. Unfortunately these
suffixes appear even if only one of the works is actually cited.
Minimal example:

== test.bib ==
@book{book2,
  title = {The second book},
  author = {Ann Author},
  year = {2000},
}

@book{book1,
  title = {The first book},
  author = {Ann Author},
  year = {2000},
}

== test.tex ==
\setupbibtex[database={test},sort=author]
\setuppublications[sorttype=bbl,refcommand=authoryear]
\starttext
% \cite[book1] % uncomment to demonstrate ordering problem
\cite[book2]
\placepublications[criterium=text]
\stoptext

This gives a citation of Author (2000a) despite there being no Author
(2000b). A related problem is that even when both suffixes are used,
they are applied in the order of the original .bib file rather than in
the order of the typeset bibliography. So if \cite[book1] is
uncommented in the above example, the bibliography contains Author
(2000b) followed by Author (2000a).

I'm guessing that problem is that the whole BibTeX file is processed
into ConTeXt's \startpublication...stoppublication syntax, not just
the cited works. I can't see a way around the this, other than
creating a custom .bib file for each document with the problematic
entries removed or re-ordered. Does anyone have any suggestions?

Thanks,

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] \cite fails with “Extra ...”

2012-01-29 Thread Pontus Lurcock
On Mon 30 Jan 2012, Philipp Gesang wrote:

 Hi all,
 
 when updating some module documentation I came across this one:
 
 ·
 
 \startpublication [
   k=mt,
   t=book,
   a={Bodoni},
   y=1818,
   n=1,
   s={Manuale},
 ]
   \author[]{Giambattista}[]{}{Bodoni}
   \pubyear{1818}
   \title{Manuale Tipografico, 2~vols}
   \city{Parma}
 \stoppublication
 
 \starttext
 
 foo \cite[authoryear][mt] bar
 
 \stoptext
 
 ·
 
 This definitely works with the beta from 2011-11-04, but not with
 the one from 2012.01.25. Has there been a change?

I confirm that this works for me with v2011.10.01. This seems to be
the same bug that was reported three days ago by Michel Green:
http://archive.contextgarden.net/message/20120127.202303.001f5202.en.html
(his example also works with my v2011.10.01). Unfortunately I don't
know how to fix it or work around it.

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] Documentation for Bibliography on MKIV

2012-01-21 Thread Pontus Lurcock
On Sat 21 Jan 2012, Wagner Macedo wrote:

 Hello,
 
 In http://wiki.contextgarden.net/Bibliography_mkiv, it's little talked
 about bibliography support on MKIV.
 
 Does yet exist a documentation about how to use it?

Although the code has been rewritten, the user interface is largely
the same as far as I know, so the Mk II documentation in
http://modules.contextgarden.net/bibman still applies. (It is no
longer necessary to include the \usemodule[bib] and \usemodule[bibltx]
commands, however.)

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] Documentation for Bibliography on MKIV

2012-01-21 Thread Pontus Lurcock
On Sat 21 Jan 2012, Wagner Macedo wrote:

 I will read bib module manual. And, additionally, do you know if
 this MkIV support brings some facilities to interact with
 bibliography via Lua?

I'm not sure. The impression I have is that the new bibliography code
is still under development, so using anything other than the official
‘old’ interface might break in future versions. Hans can probably give
a more definitive answer on this.

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] \externalfigure and file size

2012-01-19 Thread Pontus Lurcock
On Thu 19 Jan 2012, Kip Warner wrote:

 Hey Peter. The original SVG is about 7KB. With rasterize off and
 exported to PDF, its under 2KB. With rasterize on, its still only 78KB.
 Whatever ConTeXt is doing with it, that 7KB SVG gets bloated to nearly a
 meg at 976KB. This happens as Logo.svg is transformed into intermediate
 m_k_i_v_Logo.pdf. Something's up.

What happens if you convert it directly using inkscape --export-pdf?

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] \externalfigure and file size

2012-01-19 Thread Pontus Lurcock
On Thu 19 Jan 2012, Kip Warner wrote:

 On Thu, 2012-01-19 at 21:13 -0300, Wagner Macedo wrote:
  It would be good if you attach the svg file.
  
  Could you do this?
 
 Hey Wagner. No problem.
 
 http://www.thevertigo.com/temp/Pic.svg

My PDF file sizes (using 2011.10.01 10:48):

  ConTeXt : 978k
  inkscape -A : 75k
  inkscape --export-dpi=600 -A : 978k

So it seems that the dpi parameter passed by ConTeXt to Inkscape is
responsible for the huge size increase.

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] \externalfigure and file size

2012-01-19 Thread Pontus Lurcock
On Fri 20 Jan 2012, Mojca Miklavec wrote:

 None of my tools are able to export this into an usable PDF (I didn't
 try to install Inkscape though). But it is also true that I'm not 100
 % sure if PDF knows anything about the gaussian blur.

I think this is the root of the problem: inkscape rasterizes it to
reproduce the blur in PDF, and explicitly setting the DPI to a high
value produces the huge file. Discussed at:

http://www.inkscapeforum.com/viewtopic.php?f=6t=9551
http://wiki.inkscape.org/wiki/index.php/Release_notes/0.47#PDF.2C_PostScript.2C_and_EPS_export

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] idea for a ConTeXt keyboard

2012-01-10 Thread Pontus Lurcock
On Tue 10 Jan 2012, rvhassel wrote:

 Prepare with ConTeXt a number of keys, for instance parts of
 mathematical formulas and functions, or parts of molecules out of
 the chemistry. Put them in the keys of one the keyboards, mentioned
 above and there can be given a lecture with readable formulas.

At least for formulae, it would probably be cheaper and more flexible
to use a graphics tablet or tablet computer, and something like the
Freehand Formula Entry System: http://research.cs.queensu.ca/drl/ffes/
. There is also http://jequation.sourceforge.net/ and JMathNotes (
http://page.mi.fu-berlin.de/tapia/projects.php , near bottom of page),
though I haven't tried any of them.

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] Citation Error 2 using BibTeX db

2011-12-19 Thread Pontus Lurcock
On Sun 18 Dec 2011, Chris Lott wrote:

 I was testing citation capability with a BibTeX db based on the
 Context Garden bibliography page:
 http://wiki.contextgarden.net/Bibliography
 
 The example code using the xampl.bib from my distribution didn't work
 at all. So I've tried to make a very small example, which results in
 an in-text citation that says [[error 2]] and no citations listed in
 the References section:
 
 CONTEXT --VERSION
 mtx-context | main context file:
 /Users/chrislott/context/tex/texmf-context/tex/context/base/context.mkiv
 mtx-context | current version: 2011.12.18 15:57
 
 CTXBIBTEST.TEX (I've tried with and without the bibltx module, which
 isn't found on my system)
 \usemodule[bib]
 \usemodule[bibltx]
 \setupbibtex[database=bibtest]
 \starttext
 Oh No, he said \cite[lott].
 \completepublications
 \stoptext
 
 BIBTEST.BIB
 @book{lott,
 author  = Chris Lott,
 title   = FUBARed,
 publisher  = NonExistent Press,
 year= 2011,
 address = Timbuktu
 }

Looks as though it might be a bug in \completepublications, since I
get correct output by changing your tex file to:

\setupbibtex[database=bibtest]
\starttext
Oh No, he said \cite[lott].
\chapter{Publications}
\placepublications[criterium=text]
\stoptext

(MkIV, ConTeXt suite 2011.10.01 10:48 on Ubuntu 32-bit)

If you're using MkIV, neither of the \usemodules should be necessary.

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] ConTeXt-- does it make sense for my needs?

2011-12-14 Thread Pontus Lurcock
Welcome to ConTeXt! I'm a relatively new user so my answers will be
brief and partial, but I'm sure others will be able to expand on them.

On Tue 13 Dec 2011, Chris Lott wrote:

 1) My work is primarily in the humanities and end-user technologies,
 with small amounts of coding. So mathematics isn't an issue. I do a
 fair amount of highly academic writing (aka: many sections, citations
 [handling this in a sensible way is really important], footnotes) with
 the occasional need for charts, graphs, and photos. In other words,
 I'm not doing the kind of layout one might associate with InDesign or
 the like. I also write many paper letters (personal), poetry, fiction,
 essays, and the like.

This looks to me like a good use case for ConTeXt. I've used it for a
380-page dissertation with the full complement of academic
paraphernalia: footnotes, appendices, table of figures, citations etc.
which all worked well for me. I believe that many others are using
it for similar work.

 2) That said, I (obviously) have a keen interest in typography, and
 that includes wanting to use some particular typefaces... I've paid
 good money for many of them, so why not?

I've found ConTeXt to be more pleasant than LaTeX for setting up the
layout and typography according to my wishes. (When I used LaTeX I
generally just went with the default layout and accepted that things
would be a little ugly.) ConTeXt is also good about letting you
use your own typefaces -- particularly if they're in OpenType format.

 3) PDF is my primary medium of exchange, though I would like to
 efficiently exchange docs with colleagues, which might mean getting
 them into something they can open with their beloved Microsoft Word...
 is there an RTF output for ConTeXt? this isn't super-high on my list,
 but it would be nice.
 
 4) How about X/HTML? this is my lowest level need but, again, it
 would be nice.

I know that ConTeXt supports direct XHTML output but I'm not sure how
mature it is -- I think someone else will be able to provide a more
complete answer to this.

 So, do you think ConTeXt makes more sense than LaTeX? And *what* is
 the deal with xetex? It seems to be the easiest way for accessing all
 my fonts, but it also hasn't been updated for years and, since it is
 tied to an old version of ConTeXt (as far as I can tell) it doesn't
 seem like much of a winner.

In short, there are two versions of ConTeXt: Mk II (stable, and frozen
for some time now) and Mk IV (actively developed, new betas more than
once a month). Mk II can use pdftex or xetex as the engine; Mk IV uses
luatex, which provides the ‘it just works’ font handling of xetex
alongside a number of other features (chiefly the integration of the
lua scripting language). Despite the worries that may be occasionaed
by the word ‘beta’, Mk IV is pretty stable and definitely the
recommended option these days.

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] Bibliography: Any styles including URL?

2011-12-10 Thread Pontus Lurcock
On Sat 10 Dec 2011, Paul Menzel wrote:

 type setting my thesis with ConTeXt I still use BibTeX to manage my
 references. Since a lot of references are available online I want to
 include the URL if they are available.
 
 I read the ConTeXt publication module documentation [1] and as far as I
 can see, there are some predefined layouts included in ConTeXt but none
 of them seem to include the URL when passed.
 
 The Bibliography documentation [1] also mentions that setting this up is
 tedious. So I am hoping I can profit from someone else’s work and use
 it. Could someone share such a style please for a mathematical thesis in
 German? That would be much appreciated.

My workaround for this was to include the URL wrapped in a
\hyphenatedurl{...} in the ‘note’ field of the bibtex record. Not
really the ‘right’ way to do it but it was sufficient for my needs.

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] Copyright Symbol

2011-12-07 Thread Pontus Lurcock
On Thu 08 Dec 2011, Malte Stien wrote:

 How do I get a copyright symbol in ConTeXt, you know the circle with
 the 'C' in the centre? I expected it to be \textcopyright as in
 LaTeX, but that does not seem to work.

If you're using a font which contains the symbol, and if you're using
MkIV, you can just enter © directly as a UTF-8 character in the input
file and it should Just Work. (© may be in your keyboard layout, or
you may need to use some kind of character chooser utility. On the
US-international layout of an Ubuntu Linux system, I get it with
[Right Alt]-c.)

 Rather than just telling me the answer, where would I look that up?
 Sooner or later I will need other symbols. The special characters
 listed in the manual are quite limited. Is there a list somewhere?

For anything you can't get as a unicode character in your main font,
http://wiki.contextgarden.net/Symbols is probably a good place to
start.

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] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-24 Thread Pontus Lurcock
On Thu 24 Nov 2011, Romain Diss wrote:

 - again in french, the liter symbol is lowercase l (althought the
 uppercase L is also temporarly accepted).

Not only in French, but in most of Europe, I think:
http://en.wikipedia.org/wiki/Litre#Symbol . Should probably be
explicitly configurable.

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] pagenumbering and part options [CORRECTED]

2011-11-21 Thread Pontus Lurcock
On Mon 21 Nov 2011, Idris Samawi Hamid ادريس   سماوي حامد wrote:

 2. The other, less sophisticated option: How do I get
 \setuppagenumbering to simply just reset the current pagenumber to
 1 and start from 1 again?

I think that what you want (untested) is \setuppagenumber[number=1]
rather than \setuppagenumbering[number=1] (as I understand it
\setuppagenumbering controls the way in which page numbers are
displayed and \setuppagenumber controls the numbers themselves).

 Let me explain the big picture. I have two (rather large) structured
 documents. I need to

 a) compile both at the same time to manage cross-references between each;

Could the recent work on cross-document referencing (
http://www.pragma-ade.com/general/magazines/mag-1103.pdf ) remove this
requirement?

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] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-18 Thread Pontus Lurcock
On Fri 18 Nov 2011, Hans Hagen wrote:

 so, best is that those asking for it come up with a list of issues:
 which symbols need this option, is it language related or whatever,
 so that i can do them all at once. We can already have different
 mapping sets so spacing could be part of that.

I don't personally have a need for units in the foreseeable future (I
was just nitpicking with Robin about spacing) so feel free to ignore
any of my suggestions, but I think the summary so far would be:

1. Spacing for almost all SI units should be the same and doesn't
   need special cases.

2. Geographical degrees/minutes/seconds should have no spaces.

3. Spacing for degrees temperature varies according to different style 
   guides -- both before and after the ° -- so ideally it would be
   possible to set these independently of the rest of the units.

For my own part I would add:

4. SI unit abbreviations are mostly capital letters, and look (to me)
   strange with old-style figures. I have seen books which used 
   old-style figures for page numbers, years, etc. but switched to
   lining figures when a unit was involved; this is also what I did
   in my thesis. So I think it would be useful to allow an automatic
   switch to lining figures to be configured when typesetting a unit.

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] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-17 Thread Pontus Lurcock
On Fri 18 Nov 2011, Robin Kirkham wrote:

  Degrees, minutes and seconds of arc (also degrees Celsius) are an
  exception and are not supposed to have any space between the 
  digits and the degree symbol [1], so to be correct, I think 
  Context should by default veto any space between digits and 
  numbers, in these cases only.
 
 Correction, I should have written (but not degrees Celsius),
 apologies.

Conventions for setting the degrees of temperature symbol vary; see
http://en.wikipedia.org/wiki/Degree_symbol#Typography and references
therein. In most professionally published works that I've seen, there
is no space between the number and the °, or between the ° and the C.

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] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-17 Thread Pontus Lurcock
On Fri 18 Nov 2011, Robin Kirkham wrote:

  Conventions for setting the degrees of temperature symbol vary; see
  http://en.wikipedia.org/wiki/Degree_symbol#Typography and references
  therein. In most professionally published works that I've seen, there
  is no space between the number and the °, or between the ° and the C.
 
 I agree they vary, and no space before the °C is quite common (and
 frequently my own practice too). However in setting default
 behaviour for Context I am inclined to favour conforming to
 international standards, where they exist (but a \setupunits
 override it probably called for).

I have no opinion as to what the default behaviour should be, but it
would certainly be useful to have spacing for ° temperature
configurable separately from that for other units.

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] Help with citation layout.

2011-11-16 Thread Pontus Lurcock
On Wed 16 Nov 2011, Christian wrote:

 I need the help of a BibTeX/citation module expert. I want to modify the 
 appearance of @INBOOK entries.
 Currently they look like this (apa-de style):
 
 author (year) _booktitle_, Chapter chaptertitle, pages, publisher, edition.
 
 What I'm aming for is this:
 
 author (year) _chaptertitle_, In editor (Edt.): _booktitle_, pages, 
 publisher, edition.
 
 Where chaptertitle refers to the title of the chapter (usually some sort of 
 article or essay), very similar to arttitle.

I encountered the same problem a while ago and discovered that using
@incollection solves it. (The documentation at
http://www.kfunigraz.ac.at/~binder/texhelp/bibtx-12.html implies that
@inbook only supports a chapter number or page range, rather than a
titled section.) Example:

@incollection{ernst1989anisotropy,
  title = {Averaging of anisotropy of magnetic susceptibility data},
  author = {Ernst, R. E. and Pearce, G. W.},
  booktitle = {Statistical Applications in the Earth Sciences},
  editor = {Agterberg, F. P. and Bonham-Carter, G. F.},
  note = {Paper 89-9},
  pages = {297--305},
  year = {1989},
  publisher = {Geological Survey of Canada}
}

With the default bibliography style this typesets to:

Ernst, R. E. and Pearce, G. W. (1989). Averaging of anisotropy of magnetic
susceptibility data. In Agterberg, F. P. and Bonham-Carter, G. F., editors,
_Statistical Applications in the Earth Sciences_, pages 297–305. Geological
Survey of Canada. Paper 89-9.

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] Omit part of a caption in a list

2011-11-10 Thread Pontus Lurcock
On Fri 11 Nov 2011, Christian wrote:

 Dear all,
 
 is the following possible?
 
 List of figures
 1.1 Figure caption . . . . . . 2
 
 page break
 *imagine figure here
 Figure 1.1: Figure caption is a lot longer than it appears in the list of 
 figures.
 
 I'd like to shorten the captions in the list of figures that I
 produce using \placelist[figure] (preferably cut off clean, no
 ellipsis or the like). I know about \nomarking{} but it seems to
 apply only to chapter, section etc. titles.

This is indeed possible, using \select; see
http://archive.contextgarden.net/message/20060501.171706.24b88466.en.html .

Example usage:

\defineselector[caption][max=2,n=2]
\starttext
\setupselector[caption][n=1]
\completelistoffigures
\setupselector[caption][n=2]
\placefigure[][]
 {\select{caption}
  {A short caption}
  {A rather longer caption which will appear below the figure itself}}
  {This is the content of the actual figure}
\stoptext

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] terrible png placement

2011-11-10 Thread Pontus Lurcock
On Thu 10 Nov 2011, Hans van der Meer wrote:

 Something terrible must be done to png pictures, either in ConTeXt or in 
 luatex.
 I have the following minimal sample code and picture. I include the png for 
 those who want to check.
 
 % Test png addition.
 \starttext
 Place png figure.\par
 \placefigure{Test figure}{\externalfigure[test.png]}
 \stoptext
 
 Without the png-picture it makes an 8KB pdf.
 But with the png-picture the pdf swells to 1.8MB.
 And that for a png-picture of only 48KB.
 Moreover making a zip of all this stuff brought the size back to 110KB.
 In the log: 
 ConTeXt  ver: 2011.11.04 14:15 MKIV  fmt: 2011.11.10  int: english/english
 mkiv lua stats   graphics processing time  - 0.001 seconds including tex, 1 
 processed images

Can't reproduce here; I get a 70KB pdf with your file and image.
ConTeXt standalone, 32-bit Linux, mkiv, version 2011.10.01 10:48.

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] Configure \setuppublicationlayout[article] to not insert a '.' after a title ending with a '?'

2011-11-08 Thread Pontus Lurcock
On Mon 07 Nov 2011, Renald Buter wrote:

 Possibly people can give me a pointer into the proper direction? 
 
 What I am after is probably something like:
 
 \setuppublicationlayout[article]{%
 ...
   \insertarttitle{\bgroup }{\egroup\optionallyinsertdot }{}%
 ...
 }
 
 I am not very knowledgeable about TeX, but would this be possible?

I am far from being an expert, but here are a couple of ideas:

1. The useful document ‘Tame the BeaST’ mentions that BST-language has
the function add.period$ , which seems to do what you want (see
ftp://ftp.dante.de/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf ,
p. 33). So you could rewrite cont-au.bst (or whichever BST file you
are using) to optionally add the full stop while formatting it for
ConTeXt, and then never add punctuation after \insertarttitle .

2. A quick google turned up a similar question and answer at
http://www.tug.org/pipermail/texhax/2009-November/013714.html .
That message presents two magical pieces of hackery which are claimed
to do the job, but I haven't tried them and don't understand them.

My own solution in your situation was to ignore it and hope that my
thesis examiners don't notice, or at least don't mind :-(. This
problem is becoming more common: see
http://www.springerlink.com/content/uh466q5p3722n37l/ -- good luck
finding a better solution than mine.

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] Figure Help

2011-11-07 Thread Pontus Lurcock
On Mon 07 Nov 2011, Kip Warner wrote:

  \externalfigure[Images/Figure.svg][width=2.5cm] 
 
 Thanks Hans, but all I see is a grey box with the following in it where
 I expected to see the image:
 
 name: dummy
 file:
 figure:Figure
 state: unknown
 
 I've checked the path and it looks correct.

See if it works with a PDF file. SVG support is not 100% -- on MkII it
can only be done using Inkscape for preprocessing, and on MkIV support
is ‘via preprocessing and limited’ according to
http://wiki.contextgarden.net/File_Formats .

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] placelist

2011-11-04 Thread Pontus Lurcock
On Fri 04 Nov 2011, Willi Egger wrote:

 it sound strange but how do I get a TOC where only the sections are
 placed but not the subsections? The document contains exclusively
 sections and subsections. With \placecontent[level=section] I get as
 well the sections as also the subsections. Looking at examples on
 the wiki I think this should be the right command?

\placelist[section] should do what you want -- see
http://www.mail-archive.com/ntg-context@ntg.nl/msg59165.html .

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] Figure Help

2011-11-03 Thread Pontus Lurcock
On Thu 03 Nov 2011, Kip Warner wrote:

 Two questions. Is it possible to define / declare a figure with one
 command instead of having to do something like...
 
 \useexternalfigure[SomeFigure][Images/Figure.svg]
 \externalfigure[SomeFigure][width=2.5cm]

Sure, \externalfigure[Images/Figure.svg] should do it.

 Also, how do I shift the figure right a few centimetres in from the
 left side?

I guess the most direct way would be

\hskip 3cm \externalfigure[Images/Figure.svg]

but other solutions may be more appropriate depending on your overall
requirements.

HTH,

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] Rearranging existing A5 = A4

2011-11-02 Thread Pontus Lurcock
On Wed 02 Nov 2011, Markus Finke wrote:

 I have a ready document in A5 and want to rearrange selected pages next  
 to each other on A4 (homeprinter, proofreading).

 In LaTeX I was using »pdfpages«, e.g.:

 \usepackage[final]{pdfpages}
 \begin{document}
 \includepdf[pages={42,1-41},landscape,nup=1x2,scale=1.005]{my.pdf}
 \end{document}

 Is something like this possible in ConTeXt?

I don't have the knowledge to translate your specific \includepdf
to the ConTeXt equivalent, but good places to start are probably

http://wiki.contextgarden.net/Imposition
http://wiki.contextgarden.net/Including_pages_from_PDF_document

HTH,

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] Recommended table environment?

2011-10-28 Thread Pontus Lurcock
On Fri 28 Oct 2011, Patrick Gundlach wrote:

 I have a project where I think ConTeXt really fits well, so I have a
 first question (after a looong period of absence). Is there a
 recommended table environment?

Indeed there is -- see http://wiki.contextgarden.net/Tables_Overview :

* Tabulate (tabulation, recommended for simple requirements)
* TABLE (natural tables, HTML tables, recommended)

I tend to use TABLE for everything, and I believe it will meet all
your stated requirements.

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] Galleries with photos from ConTeXt meetings: any ideas?

2011-10-26 Thread Pontus Lurcock
On Tue 25 Oct 2011, Mojca Miklavec wrote:

 - In either case I need suggestions about the best option to store
 photos on new server. (Which software to run?)

I've been using Gallery ( http://gallery.menalto.com/ ) to host my
personal photos for years, and I've found it user-friendly, stable,
well-documented, and very flexible -- I haven't tried version 3 yet
but I haven't read anything negative about it.

As ever, Wikipedia has a useful checklist:
http://en.wikipedia.org/wiki/Photo_gallery_comparison

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] TOC struggles

2011-10-20 Thread Pontus Lurcock
On Thu 20 Oct 2011, Willi Egger wrote:

 Hm, i

 s there a problem with placing the TOC with restrictions to the
 typeset levels? Please refer to the attached example.

Hi,

I'm afraid I don't have time to run your example, but looking at it I
note that you're using ‘\placecontent[level=section]’. If you're using
MkIV, the level parameter no longer works: see e.g.
http://archive.contextgarden.net/message/20100217.135437.92543d63.ca.html
Try something like \placelist[chapter,section] instead.

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] Two bibmod questions: first initials and points after question marks, etc. in reference list

2011-10-19 Thread Pontus Lurcock
On Wed 19 Oct 2011, Renald Buter wrote:

   author = {Hirsch, J.E.},
 ...
  - Notice that only the first initial appears? How to get both/all initials?

Should be
author = {Hirsch, J. E.},
with a space between initials, otherwise bibtex thinks that Hirsch's
first name is ‘J.E.’.

 - There is a point after the question mark, which is ugly. The same
would go for a title ending in a '!', btw. How to get rid of it?

I don't know how to do this, and I fear that it may be non-trivial --
the first place I'd look is the documentation for
\setuppublicationlayout in bibmod-doc.pdf, but I don't know if it has
the capability to conditionally change the layout based on the content
of the fields.

 \usemodule[bibltx]

This is unnecessary, and as far as I know has no effect in recent
ConTeXt versions.

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] \cite doesn't work correctly

2011-10-12 Thread Pontus Lurcock
On Wed 12 Oct 2011, Steffen Wolfrum wrote:

 the \cite command behaves strange, when used in projects:
 
 The expected output would be:
 
 Me and You; 
 Name, P..Test..
 
 but it is only
 
 ; 
 Name, P..Test..
 
 
 And this result is the same when run from product or from component.

Hmm. When I comment out your

\setupcite
  [author]
  [left={},right={}]

and process the chapter with context 2011.10.01, it seems to work. I
don't know why setting left and right should kill the author citation
type, and then only when in a project structure -- I haven't run into
this since I don't use that citation type.

Sorry, not much help, but maybe it's a start...

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] Inits without space in bibliography

2011-10-06 Thread Pontus Lurcock
On Wed 05 Oct 2011, Charles wrote:

 I would like (the journal actually) to remove the spaces between  
 initials (C.E. instead of C. E.). in the bibliography.

 It seems initials are created during the .bib to .bbl conversion but I  
 haven't find anything in the .bst style file. Can you please help ?

I've looked at doing something similar, but haven't had time to get to
the bottom of it. In my case I'm using the cont-au.bst file. I think
the magic happens in the format.names function, which in turn calls
bibtex's internal format.name$ function. This stuff is documented in
Patashnik's bibtex docs -- see
http://amath.colorado.edu/documentation/LaTeX/reference/faq/bibtex.pdf
section 5 (and especially 5.4) which explains what all the {vv}s and
{ll}s etc. do.

On a quick reading, it looks to me as though changing the line

 s nameptr {f} format.name$ add.period$ 't := 

to

 s nameptr {f{}} format.name$ add.period$ 't := 

should remove the spacing, but I haven't tested it.

Hope this helps, and good luck!

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] Float placement problem

2011-10-02 Thread Pontus Lurcock
On Sat 01 Oct 2011, Wolfgang Schuster wrote:

  I've recently updated my standalone (32-bit Linux) ConTeXT from
  2011.02.25 to 2011.09.20, and I'm now having some trouble with
  float placement. I'm using MkIV. I'm trying to have figures
  protruding into the outer margins with a double-sided layout, as
  described here:
  ...
  
  Does anyone have any ideas or insights?
 
 Should be fixed in the next beta.

Many thanks! I confirm that my original example works as expected with
ConTeXt 2011.10.01. However, for certain files (including my
dissertation) ConTeXt stops with the error ‘Argument of
\rootfloatparameter has an extra }’. Here's a minimal example which
causes the problem:

\starttext
\dorecurse{3}{
\placefigure[]{}{\externalfigure[cow.pdf]}
\input knuth
\placefigure[]{}{\externalfigure[cow.pdf]}
}
\stoptext

The example works if I comment out any of the three lines in the
\dorecurse, or if I change \dorecurse{3} to \dorecurse{2}. The example
also fails with 2011.09.20, but works with 2011.02.25.

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] Float placement problem

2011-10-02 Thread Pontus Lurcock
On Sun 02 Oct 2011, Wolfgang Schuster wrote:

  The example works if I comment out any of the three lines in the
  \dorecurse, or if I change \dorecurse{3} to \dorecurse{2}. The
  example also fails with 2011.09.20, but works with 2011.02.25.
 
 page-one.mkiv:
 ...

Thank you once more; this now works as expected for me, both on the
example and on my dissertation.

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] Float placement problem

2011-09-29 Thread Pontus Lurcock
On Sun 25 Sep 2011, Pontus Lurcock wrote:

 I've recently updated my standalone (32-bit Linux) ConTeXT from
 2011.02.25 to 2011.09.20, and I'm now having some trouble with float
 placement. I'm using MkIV. I'm trying to have figures protruding into
 the outer margins with a double-sided layout
  ...
 Does anyone have any ideas or insights?

Hmm, I guess not. I will put a note on the wiki page and revert to my
old ConTeXt version for now. If anyone has an idea for a workaround I
would be glad to know of it.

Regards,

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] Float placement problem

2011-09-29 Thread Pontus Lurcock
On Thu 29 Sep 2011, luigi scarso wrote:

 hm , it looks like a bad match with  between width=17cm and textwidth
 This extreme example seems to works
 \setuplayout[location=doublesided,width=20pc]
 \setuppagenumbering[alternative=doublesided,location={margin,header}]
 \setupfloat[figure][location=inner]
 \showframe
 \starttext
 % An extra page. \page[yes]
 \dorecurse{4}{
 \placefigure[]{caption}{\externalfigure[cow.pdf][width=30pc]}\page}
 \stoptext

Thanks! The \page after the figure certainly seems to fix it.
Unfortunately a page break after every figure is impractical in my
real document, but this might put me on the track of a solution (once
I've read the layout manual a couple more times).

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] Float placement problem

2011-09-29 Thread Pontus Lurcock
On Thu 29 Sep 2011, luigi scarso wrote:

 I 've put \page just to show quickly the effect, but maybe there are
 still problems
 
 \setuplayout[location=doublesided,width=20pc]
 \setuppagenumbering[alternative=doublesided,location={margin,header}]
 \setupfloat[figure][location=inner]
 \showframe
 \starttext
 % An extra page. \page[yes]
 \dorecurse{40}{
 \placefigure[here]{caption}{\externalfigure[cow.pdf][width=30pc]}}
 \stoptext

Yes, that's pretty bad... in subsequent tests I've found that
‘diluting’ the figures with sufficient text (like adding \page) fixes
the problem -- unfortunately mixing [here] and [page] placement (as I
need to do in my document) messes it up again. In addition, several of
my tests crash ConTeXt with the error ‘Argument of \rootfloatparameter
has an extra }’, for example:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided,location={margin,header}]
\setupfloat[figure][location=inner]
\showframe
\starttext
\input knuth
\dorecurse{4}{
\placefigure[here]{caption}{\externalfigure[cow.pdf][width=17cm]}
\input knuth
\placefigure[page]{caption}{\externalfigure[cow.pdf][width=17cm]}
\input knuth
% \input knuth % uncomment this line to make the file work
}
\stoptext

Again, this works with v2011.02.25 (although figure numbers are mixed
up).

I think I'll have to give up on this now and revert to the old version,
but I'll put a pointer to this thread on the Wiki in case anyone else
runs into similar problems.

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
___

[NTG-context] Float placement problem

2011-09-25 Thread Pontus Lurcock
Hello,

I've recently updated my standalone (32-bit Linux) ConTeXT from
2011.02.25 to 2011.09.20, and I'm now having some trouble with float
placement. I'm using MkIV. I'm trying to have figures protruding into
the outer margins with a double-sided layout, as described here:

http://wiki.contextgarden.net/Floating_Objects#Protruding_Floats_in_Double-Sided_Documents

Here is my minimal example:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided,location={margin,header}]
\setupfloat[figure][location=inner]
\showframe
\starttext
% An extra page. \page[yes]
\dorecurse{4}{
\placefigure[]{caption}{\externalfigure[cow.pdf][width=17cm]}}
\stoptext

With version 2011.02.25 this produces the desired result; with
2011.09.20, the first figure is placed correctly, and all subsequent
figures protrude in the same direction, whether they're on an even or
odd page. So in the given example they all protrude to the right. If
an extra page is inserted at the start so that the first figure is on
an even page, they all protrude to the left.

Does anyone have any ideas or insights?

Thanks in advance,

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] Missing booktitle in incollection bib-entries

2011-09-25 Thread Pontus Lurcock
On Sun 25 Sep 2011, Stefan Müller wrote:

 I have an @incollection-entry with booktitle set in a bib-file used in  
 a ConTeXt document.  Unfortunately there is no \title, generated from  
 booktitle, in the respective .bbl file.  Only \arttitle, generated  
 from the bib-key title, is present.  Guess it's a bug(?)

Hmm, can't reproduce here. Here's what I'm using:

file test.tex:

\setupbibtex[database=test]
\starttext
\cite[ernst1989anisotropy]
\placepublications[criterium=cite]
\stoptext

file test.bib:

@incollection{ernst1989anisotropy,
  title = {Averaging of anisotropy of magnetic susceptibility data},
  author = {Ernst, R. E. and Pearce, G. W.},
  booktitle = {Statistical Applications in the Earth Sciences},
  editor = {Agterberg, F. P. and Bonham-Carter, G. F.},
  note = {Paper 89-9},
  pages = {297--305},
  year = {1989},
  publisher = {Geological Survey of Canada}
}

produces the following test.bbl:

\setuppublicationlist[samplesize={EP89},totalnumber=1]

\startpublication[k=ernst1989anisotropy,t=incollection,
a={{Ernst},{Pearce}},y=1989,
n=1,s=EP89]
\artauthor[]{R.~E.}[R.~E.]{}{Ernst}
\artauthor[]{G.~W.}[G.~W.]{}{Pearce}
\pubyear{1989}
\arttitle{Averaging of anisotropy of magnetic susceptibility data}
\editor[]{F.~P.}[F.~P.]{}{Agterberg}
\editor[]{G.~F.}[G.~F.]{}{Bonham-Carter}
\title{Statistical Applications in the Earth Sciences}
\pages{297--305}
\pages{297--305}
\pubname{Geological Survey of Canada}
\note{Paper 89-9}
\stoppublication

... and the PDF shows both the article and book title. This works with
MkIV 2011.02.25 and 2011.09.20.

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] Bibliography related questions

2011-09-23 Thread Pontus Lurcock
On Fri 23 Sep 2011, Alexandre Krispin wrote:

 The setup pagecite of Pontus Lurcock is exactly what I needed, but
 even with a minimal example, it does not produce a reference at the
 end with \completepublications.

For \completepublications, as for \placepublications, you need
to use \completepublications[criterium=text] .

 Also, I had to remove compress=no in
 \setupcite[interaction=start,compress=no] to make your setup work.
 Is it related to my distribution ? I use an up-to-date TeXlive 2011
 distribution.

compress=no is necessary for interaction to work (see
http://archive.contextgarden.net/message/20080714.132145.26782c1f.en.html
) -- after a couple of tests I see that using compress=no and
\completepublications without criterium=text makes the citation itself
disappear. However, adding the [criterium=text] should allow you
also to keep the compress=no without problems.

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] Bibliography related questions

2011-09-23 Thread Pontus Lurcock
On Fri 23 Sep 2011, Christian wrote:

 The only flaw of this workaround (besides not being the 'proper
 way') is that the first '(' is not part of the link and therefore
 not green (but then again, I'll probably set the color of the link
 to black, anyway).

 A Fix of linked \cite[alternative=authoryears][reference] still
 would be nice ;)

I've figured out what the problem was: the \setupcite only affects the
default authoryear citation style, so if using authoryears (or any
others) they need to be explicitly specified. Changing the \setupcite to

\setupcite[authoryear,authoryears][interaction=start,compress=no]

makes links work for authoryears citations as well. In this case only
the author and year are linkified, not the parentheses or page
numbers, but at least it's symmetrical.

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] Bibliography related questions

2011-09-22 Thread Pontus Lurcock
On Thu 22 Sep 2011, Alexandre Krispin wrote:

 I am trying to get references working with Context as well as it did
 with Biblatex. Since I didn't find anything helpful in the documentation
 and the mailing-list, I ask here.

It's true that bibliography documentation can be hard to find. The best
source is the manual at http://modules.contextgarden.net/bibman ,
but it is not entirely up to date.

In the following I'm going to assume that you're using MkIV.

 \usemodule[bib]
 \usemodule[bibltx]

These are unnecessary. The bib module has been integrated into the
core. The bibltx module used to define a \newcommand command for
compatibility with some old LaTeX databases, but I don't think it even
exists any more. Unless you use \newcommand in your bib file, this
should not be a problem.

Here's a minimal example which should do what you want:

---8---

\setupbibtex[database=sample,sort=author]
\setuppublications[alternative=apa-fr,sorttype=bbl,refcommand=authoryear]
\setupinteraction[state=start,color=darkgreen,style=normal]
\setupcite[interaction=start,compress=no]
\def\pagecite[#1][#2]%
{(\cite[alternative=authoryear,left={},inbetween={ },extras={, p. #2}][#1]}

\starttext

\cite[alternative=authoryears,inbetween={ },extras={, p. 3}][Eijkhout1991]

\pagecite[Eijkhout1991][3]

\page[yes]

\placepublications[criterium=text]

\stoptext

---8---

This uses ConTeXt's included sample bib file. I'm sure this used 
to be found automatically in the ConTeXt tree, but in this case I had
to copy it into the same directory as the TeX file for it to be found.
You can find it in /tex/texmf-context/tex/context/bib/sample.bib .

You will see that I use two cite commands. The first is probably the
‘more correct’ way to do it, using the authoryears style. However,
this doesn't seem to produce a hyperlink, at least on my version of
ConTeXt (from February 2011). I suspect that this may be a bug. The
second cite (wrapped in a macro for convenience) modifies the
authoryear style instead, which (at least with my setup) does produce
a hyperlink.

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] ConTeXt Book: Request for help!

2011-08-15 Thread Pontus Lurcock
On Mon 15 Aug 2011, Thomas A. Schmitz wrote:

 On 08/15/2011 09:16 AM, luigi scarso wrote:
 Under linux Wine sometimes does a great job.

 *If* the linux user happens to have 150 bucks and thinks it's a good  
 idea to give that to Microsoft.

Huh? I've been using Wine for a while (though not for Notepad++) and
have not yet received a bill from Microsoft...

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] How to get the chapter number

2011-07-06 Thread Pontus Lurcock
On Wed 06 Jul 2011, Cecil Westerhof wrote:

 What I mean. I have something like:
 
 \chapter{General description}
 .
 .
 This is explained in chapters 7 to 12.
 .
 .
 \chapter{another}
 .
 .
 \chapter{first explaining}  % this is (now) chapter 7
  .
 .
 \chapter{last explaining} % this is (now) chapter 12
 
 When chapters are added, moved or removed. The chapter numbers in the above
 sentence have to be changed manually. As a real programmer I am lazy and
 want the computer do it for me. :-D

See http://wiki.contextgarden.net/References .

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] Bibliography entries not showing up

2011-07-06 Thread Pontus Lurcock
On Wed 06 Jul 2011, Christian wrote:

 Also, if anybody thinks mkiv is not ready for productive work,
 please scream and stop me. But as far as I've heard it has been used
 to typeset books and theses already, so... yeah.

I've been writing my thesis in MkIV and haven't hit any serious
problems so far. I use minimals and only update when I need a new
feature, since I don't want to risk any unanticipated changes.
(I started out on MkII, but was seduced by LuaTeX's combination of
microtypography and OTF support.)

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] Bibliography is not working

2011-06-25 Thread Pontus Lurcock
On Sat 25 Jun 2011, yoraxe wrote:

  Sounds  like  you need to run mktexlsr. Bibtex uses LS-R to find these
  files. (afaik; at least it helped me when I got that error)
 
 Wow, thank you. That really worked. :)
 Sorry, that I didn't find that in the archives.

Please make a note in the wiki!

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] justify

2011-06-24 Thread Pontus Lurcock
On Fri 24 Jun 2011, Hans Hagen wrote:

 newspaper: spacing between letters and words are increased or decreased  
 as necessary. The IE reference says “it is the most sophisticated form  
 of justification for Latin alphabets.”

This appears to be the original source:
http://msdn.microsoft.com/en-us/library/ms531172(v=vs.85).aspx

According to http://www.cs.tut.fi/~jkorpela/www/justify.html
text-justify is a Microsoft extension, and it's not listed in
http://www.w3.org/TR/CSS/ . So only Internet Explorer users can
experience the incredible sophistication of having their text
letterspaced :-).

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] ConTeXt support for DjVu backend

2011-06-22 Thread Pontus Lurcock
On Wed 22 Jun 2011, Kip Warner wrote:

 Are there any plans to eventually support the DjVu format as an
 additional backend alternative to PDF? DjVu is a free standard promoted
 as an alternative to PDF. It is allegedly a superior format.

There's always http://code.google.com/p/pdf2djvu/ in lieu of a direct
backend...

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] Bibliography is not working

2011-06-22 Thread Pontus Lurcock
On Wed 22 Jun 2011, yoraxe wrote:

 \setupbibtex[database=bib]
 
 \starttext
 \completepublications
 \stoptext

You want \completepublications[criterium=all], if you wish to list
publications even when they're not referenced in the text. Perhaps you
were misled by the name -- \completepublications (as opposed to
\placepublications) just means you get the title ‘References’
at the top of the page. The ‘criterium’ argument controls which
publications are actually included.

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] ConTeXt support for DjVu backend

2011-06-22 Thread Pontus Lurcock
On Wed 22 Jun 2011, Hans Hagen wrote:

 btw, it would be interesting to have a good open source jbig2
 producer

I believe https://github.com/agl/jbig2enc is open source, but I don't
know whether it fulfils your other criterion of being good.

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] Bibliography is not working

2011-06-22 Thread Pontus Lurcock
On Wed 22 Jun 2011, yoraxe wrote:

 Thanks for the information. I really didn't know that. But
 unfortunately this does not change anything.

Strange, works here for me (ConTeXt MkIV version: 2011.02.25 22:03,
Ubuntu Linux 32-bit) -- files attached. At this point I don't
know what else to advise.

Pont
\setupbibtex[database=bib]
\starttext
\completepublications[criterium=all]
\stoptext
@BOOKLET{booklet,
  title = {Something here},
  year = {2005},
  publisher = {Something here},
}


bib2.pdf
Description: Adobe PDF document
___
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] Editors

2011-06-21 Thread Pontus Lurcock
On Tue 21 Jun 2011, Mojca Miklavec wrote:

  TeXworks is configured to use MkII, but there are instructions on
  the wiki to configure it for MkIV.
 
 The latest TeXworks should have this fixed, but I have no idea how to
 build texworks on linux (for Windows and Mac one can download a
 binary).

For Ubuntu, stable binaries are at
https://launchpad.net/~texworks/+archive/stable and development builds
at https://launchpad.net/~texworks/+archive/ppa .
http://www.tug.org/texworks/ has a link to openSUSE binaries too.
Haven't tried any of them myself, though.

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] Change the appearance of a list of bibliography (\placepublications)

2011-06-21 Thread Pontus Lurcock
On Tue 21 Jun 2011, Jaroslav Hajtmar wrote:

 Is there any possibility to influence the appearance of a list of  
 bibliography when I make it in MKIV minimals using the command  
 \placepublications?

I've done some very limited hacking about with the bibliography
styles -- unfortunately I have now forgotten how the whole
thing hangs together, but Google plus a list archive makes a useful
spare brain. Take a look at these threads:

http://www.ntg.nl/pipermail/ntg-context/2011/059359.html
http://www.ntg.nl/pipermail/ntg-context/2011/057116.html

Sorry I don't have time to offer more assistance but I 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] Editors

2011-06-20 Thread Pontus Lurcock
On Mon 20 Jun 2011, H. Hodges wrote:

 I'm new to ConTeXt, coming from LaTeX. Are there any linux text
 editors that are at all useful for creating context documents?

There is a summary table in the wiki at
http://wiki.contextgarden.net/Text_Editors . Apart from the ones
listed there is also http://code.google.com/p/textadept/ , which I
believe has ConTeXt support.

For what it's worth, I use GNU emacs / AUCTeX, which works well for
me, though I don't really use many of the AUCTeX features.

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] Table Column Width

2011-06-18 Thread Pontus Lurcock
On Fri 17 Jun 2011, Kip Warner wrote:

 I have a table with four columns. The first three are fine as fixed
 width and fairly narrow, but I need the fourth one to be larger to
 accommodate text that can wrap for two or more lines.
 
 How would I go about doing this? I'm guessing something needs to said in
 the \starttable[|c|c|c|c|] last field, but I can't figure out what from
 the documentation. The syntax is a little elusive.

I'm afraid I can't help directly with the Table module you're using,
but you may want to consider using one of ConTeXt's newer table
modules: http://wiki.contextgarden.net/Tables_Overview lists the Table
module as ‘deprecated’. I tend to use ‘natural tables’ (
http://wiki.contextgarden.net/TABLE ) for most things -- they're
full-featured and well documented.

There is also Tabulate -- fewer features and less documentation,
but easier for quick jobs:

\starttext
\starttabulate[|l|p(5cm)|]
\NC short \NC \raggedright A rather lengthier piece of text which 
will require more than one line when typeset within a narrow table
column \NC\NR
\stoptabulate
\stoptext

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
___

[NTG-context] Automatic landscape figure rotation

2011-06-14 Thread Pontus Lurcock
Dear ConTeXters,

I have a full-page, landscape figure in my double-sided document which
I rotate 90° to fit the page. In all the books I've seen, such figures
are rotated ‘outward’ -- i.e. with the top towards the binding, so 90°
clockwise on verso pages and 90° anticlockwise on recto. Is there a
simple way to do this automatically in ConTeXt? At the moment I just
check where the figure ends up, then change it manually.

(Apologies if there is a documented answer -- I've searched the wiki
and docs, but it's the kind of question which is hard to reduce into
keywords.)

Thanks,

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] Automatic landscape figure rotation

2011-06-14 Thread Pontus Lurcock
Luigi, Wolfgang, Hans, Taco: thank you for the replies. I will update
the wiki later today.

Ulrike: I take your point about the inconvenience of such figures.
Fortunately I don't have any adjacent ones so at least readers
won't have to perform any 180° rotations. I'll play with the options
and see what seems most convenient (or least inconvenient).

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] undefined control sequence bug with German umlaut in bibliography

2011-06-06 Thread Pontus Lurcock
On Mon 06 Jun 2011, Arthur Reutenauer wrote:

  Well, there *is* more than one way to represent ä in UTF-8
 
 If you mean non-shortest forms such as 0xE0 0x83 0xA4 or 0xF0 0x80
 0x83 0xA4, then no, they have been forbidden since Unicode 3 in 2000
 (formally Corrigendum #1, see
 http://www.unicode.org/versions/corrigendum1.html).

I was actually thinking of precomposed vs. combining diacritics. I was
blissfully unaware of the non-shortest-form problem up until now...

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] undefined control sequence bug with German umlaut in bibliography

2011-06-04 Thread Pontus Lurcock
On Sat 04 Jun 2011, Julian Becker wrote:

 I'm not familiar with the intricacies and details of UTF8 encoding,
 but is it possible that there is a byte missing from the ä which
 has been cut off during the abbreviation process?

Well, there *is* more than one way to represent ä in UTF-8, but it's
my understanding that anything beyond ASCII is simply not supported by
BibTeX. You can get away with it in fields that just get pasted
verbatim into the output (usually), but the first three letters of the
first author's name are used to construct the key (which is why
‘Schräger’ worked) so there's no way around using the officially
sanctioned {\a} form.

  unfortunately, I'm using Mendeley Desktop for the management of my
  bibtex file and I can't seem to be able to influence the way in
  which it encodes the special characters.

This is one reason why I still use plain emacs as a bibliography
manager -- sooner or later you need a hack, and that's harder when the
raw BibTeX is hidden or generated. In this case you may need to
put the hack between Mendeley and BibTeX: pipe the file through 
‘sed -e 's/ä/{\\a}/g'’ or something similar. And/or ask in the Mendeley 
support forums, since this is a fairly well-known BibTeX ‘feature’
so perhaps someone else has had to deal with it there.

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] Wiki Topics Menu

2011-06-03 Thread Pontus Lurcock
On Fri 03 Jun 2011, Mathieu DUPONT wrote:

 Is there a menu page on the wiki to see all the topics/pages there
 are, such as these few examples :

Do you mean something like http://wiki.contextgarden.net/Special:AllPages ?
http://wiki.contextgarden.net/Special:SpecialPages has some
other resources of a similar nature.

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] undefined control sequence bug with German umlaut in bibliography

2011-06-03 Thread Pontus Lurcock
On Fri 03 Jun 2011, Thomas A. Schmitz wrote:

 But I admit it's not easy to know that, bibtex documentation is a
 real mess

Patience please! ‘This document will be expanded when BibTEX version
1.00 comes out’ -- BIBTEXing, February 8, 1988.

:-)

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] teletype style in type-win.mkiv

2011-06-02 Thread Pontus Lurcock
On Thu 02 Jun 2011, Richard Stephens wrote:

 \setupbodyfont[helvetica, 10pt]

 which is indistinguishable from Arial for 99% of the population, and
 it has the advantage that all the styles are already defined,
 including \tt.

Anyone who can distinguish Helvetica from Arial is likely to have
sufficient taste to realize that Helvetica is superior ;-).

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] newbie questions

2011-05-31 Thread Pontus Lurcock
On Tue 31 May 2011, Sanja C. wrote:

 a) Is the ConTeXt project alive? The newest PDF documentation I
 could find seems to be from 2007; most of it is dated 2003 or older.

Very much alive! See http://wiki.contextgarden.net/Release_Notes for a
list of recent releases (though betas come along much more
frequently). While the documentation is voluminous it can be hard to
navigate -- my order of searching tends to be wiki, manuals, mailing
list. The old reference manual is indeed a little dated, but there's a
new one under development at
http://foundry.supelec.fr/gf/project/contextman/scmsvn/?action=browsepath=%2Fcontext-reference%2F
.

   - Support for elaborate, colorful, graphics-heavy design, which I
 would preferably create in Inkscape and then export as vector
 graphics (or port to ConTeXt's own graphics language) as necessary.

If you're generating graphics externally they can be as elaborate as
you like -- just export as a PDF and include in your document. If you
have complex design that needs to be integrated with the text -- e.g.
non-rectangular columns or text flowing around arbitrary shapes -- I
think this is possible but it might take a lot of work.

  - Ability to write a style *once* (with reasonable effort), and
 outsource it to an external file (or files), so that for each new
 release of the newsletter, only a simple content TeX file (or files)
 with minimal amount of markup

I regard this as a major strength of ConTeXt, and I certainly found it
much easier to produce a ConTeXt style than to do the equivalent when
I was using LaTeX. See http://wiki.contextgarden.net/Project_structure
for the recommended way to structure such things.

  - Ability to easily include pictures in the content, and let the
 typesetting engine automatically position them (either in the main
 text area with text floating around them, or in special margin
 areas).

Yes.

 c) Are there any full-featured examples of design-heavy
 booklets/magazines/etc created with ConTeXt., for which the full
 source code is publicly available?

I think the sources for the manuals themselves are probably the
biggest publicly available example of ConTeXt in action. Magazines
seldom release their source code, alas.

You may want to look at
http://wiki.contextgarden.net/Biochemistry_textbook and the linked
example output for an idea of what a style file looks like and how it
is applied. Demonstrates figure positioning nicely too. The source
code for the book itself is not available, though.

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] checking mainlanguage setup

2011-05-27 Thread Pontus Lurcock
On Fri 27 May 2011, Jeong Dalyoung wrote:

 Is it possible to check what is the mainlanguage set in document?
 Now, I use \enablemode[kr] to do something A. But, I'd like to do it
 automatically if possible.

According to http://wiki.contextgarden.net/Modes#System_modes , 
the mode **kr should be automatically set if kr is the main language
(I haven't tried it, though).

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] Punctuation in bibliography

2011-05-24 Thread Pontus Lurcock
Yes, I get it too. It's because booklet expects a publisher name;
if you add a line

  publisher = {Publisher},

to the bibtex entry you can see this.

I think this can be fixed in
context/tex/texmf-context/tex/context/bib/bibl-apa.tex by changing
this function:

\setuppublicationlayout[booklet]{%
   \insertauthors{}{ }{\insertthekey{}{. }{}}%
   \insertpubyear{(}{). }{}%
   \inserttitle{\bgroup }{\egroup \insertseries{ (}{)}{}. }{}%
   \insertedition{ }{ edition.}{}%
   \insertpublisher{ }{.}{.}%
   \insertpages{}{p. }{}%
   \insertnote{ }{.}{}%
}

Alter the following line --

   \insertpublisher{ }{.}{.}%

to

   \insertpublisher{ }{.}{}%

-- then I think you'll need to remake the formats (see 
http://wiki.contextgarden.net/ConTeXt_Minimals#Remaking_formats ).

See
http://dl.contextgarden.net/modules/bibmod-doc/doc/context/bib/bibmod-doc.pdf
section 6 for some explanation of what's going on here.

Sorry I don't have time to test any of this right now but it should point
you in the right diretion at least.

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] [bibliography] publications layout

2011-05-24 Thread Pontus Lurcock
On Tue 24 May 2011, Stefan Müller wrote:

 is the bibliograph style as mentioned in If your document design  
 specification requires a different style of capitalisation, you should  
 acquire a bibliography style that doesn’t enforce BibTeX’s default  
 rules. from the website you suggested, the same thing I set up with
   \setuppublications[alternative=...]

Yes, I believe so (though I get a bit confused with BibTeX, so I could
be wrong). Personally I use the suggested solution of wrapping
‘proper’ capital latters in {}. If you need a custom style that
doesn't decapitalize article titles, that's beyond my BibTeXpertise
but maybe there is someone else here who can help.

 ? I'm using ams there and realized that the title tag of @book is not  
 treated that way (so with @book there are caps inside the title without  
 extra {} in the bib-file).

This is the case for most bibliography styles: journal articles only
get capitals for the first letter, proper nouns, chemical symbols, etc.;
Book Titles get Capital Letters for Most Words.

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] OT: What reference management software do you use?

2011-05-23 Thread Pontus Lurcock
On Mon 23 May 2011, Stefan Müller wrote:

 Okay, then I should definitely take a look at JabRef. Anyhow, maybe I'm  
 naive here, but I don't see a reason why Zotero should support BibTeX  
 Strings. If I type the BibTeX file manually, sure. But Zotero reads the  
 (e.g.) Journal names from the corresponding websites, so there should be  
 no need to replace those with abbreviations. Is it because I don't  
 understand BibTeX strings?

I believe that one advantage is adding a level of indirection for
journal naming: you can have, for example, one definition file which
defines JISN as ‘Journal of Inconveniently Sesquepedalian
Nomenclature’, and another defining it as ‘J. Inc. Ses. Nom.’, and
switch between different definition files according to publisher
requirements, space restrictions, and so on.

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] [bibliography] publications layout

2011-05-23 Thread Pontus Lurcock
On Tue 24 May 2011, finkler wrote:

 in my publication list from the bibliography, every word, except the
 first starts in small case letters. How can I change this?

This might help: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=capbibtex

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] [OT] Street-Fighting Mathematics

2011-05-22 Thread Pontus Lurcock
On Sun 22 May 2011, luigi scarso wrote:

 Street-Fighting Mathematics
 The Art of Educated Guessing and Opportunistic Problem Solving
 Sanjoy Mahajan
 Foreword by Carver A. Mead
 
 The book is made with ConTeXt mkii
 (so it's not a 100% off-topic,  because we know that Sanjoy uses ConTeXt)

Saw this in the university library the other week, and almost postted
about it. I'd like to add: it is freely available avilable in PDF
(
http://mitpress.mit.edu/books/full_pdfs/Street-Fighting_Mathematics.pdf
) and (if I remember rightly) the author effusively thanks the authors
of ConTeXt (and the other free software used in the book's production)
in three different places :-).

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] bibliography: current status, Wiki page Bibliography, [[error 2]] and bibltx

2011-05-22 Thread Pontus Lurcock
On Sun 22 May 2011, yoraxe wrote:

 Besides the title is a german one, but all letters except for first
 one, are lower-case.

This might help: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=capbibtex

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] OT: What reference management software do you use?

2011-05-22 Thread Pontus Lurcock
On Sat 21 May 2011, Paul Menzel wrote:

 using ConTeXt and not LaTeX you maybe also use a nice reference
 management software the main stream does not know about. But
 probably it is not related to ConTeXt at all since it is BibTeX in
 the end.

As someone using stone-age reference management (i.e. a plain BibTeX
file maintained by hand), I found the emacs snippet at the bottom of
http://www.emacswiki.org/emacs/RefTeX incredibly useful. If you have
the cursor over a bibliography key, it lets you open the corresponding
pdf (or ps, dvi, djvu etc.) with a single keystroke.

I've tried JabRef, Referencer, Mendeley and various others but plain
emacs (I don't use RefTeX) and that snippet still seem to work best
for me.

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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Pontus Lurcock
On Sun 08 May 2011, Marco wrote:

 If we prefer TK over GTK why not use the lua Tk bindings?

When I saw this discussion starting I googled the Lua Tk bindings, and
it turned out [1] that they apparently haven't been updated since
1998. A shame, since Tk is usually a good bet for easy cross-platform
GUIs.

[1] http://www.tecgraf.puc-rio.br/~celes/tklua/

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] mtxrun fails after update to ubuntu 11.04

2011-05-08 Thread Pontus Lurcock
On Sun 08 May 2011, S Barmeier wrote:

 Is there any savvy way to update to a newer release of ConTeXt
 without meddling too much with the existing texlive installation?

The best way is to install the minimals; it's a complete stand-alone
ConTeXt system that can go anywhere (including your home directory),
so you don't risk any complex interactions with existing TeX
installations.

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] [garden] captcha: zip-code of Hasselt?

2011-05-05 Thread Pontus Lurcock
On Thu 05 May 2011, Patrick Gundlach wrote:

  the wiki just asked me to verify my humanity through Hasselt’s
  zip code. From [1] I inferred that it would be the string
  “8061GH”, which was promptly rejected -- the next quiz proved to
  be easier and I finally won another wiki commit. Nevertheless I’d
  appreciate this mystery to be solved ;-)

I've been caught by this too -- I googled the answer but evidently it
was wrong (I forget what my attempted answer was).

 The answer should be 8061. I have changed the question and made it
 clear that four digits are requested. I am happy to add a better
 question that should be obvious to ConTeXt users.

At the risk of kicking off a huge thread... how about ‘What is usually
the last command in a ConTeXt source file (without the backslash)?’
Anyone who has got as far as ‘Hello World’ should manage that one.

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] Pull quotes

2011-04-27 Thread Pontus Lurcock
On Wed 27 Apr 2011, mathew wrote:

 Has anyone implemented pull quotes using ConTeXt? What would be the
 best approach to take?

Why not just put it in a float?

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] The appendices envrionment and title in toc

2011-04-21 Thread Pontus Lurcock
On Thu 21 Apr 2011, Reviczky, Adam wrote:

 Why does this not work with
 \mainlanguage[uk]
 

Hmm, good point. It seems to work with several \mainlanguage settings
I've tried: en, fr, nl, sv, fi, cs, ru, de. But it fails for uk and
en-gb.

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] The appendices envrionment and title in toc

2011-04-21 Thread Pontus Lurcock
On Thu 21 Apr 2011, Pontus Lurcock wrote:

 On Thu 21 Apr 2011, Reviczky, Adam wrote:
 
  Why does this not work with
  \mainlanguage[uk]
  
 
 Hmm, good point. It seems to work with several \mainlanguage settings
 I've tried: en, fr, nl, sv, fi, cs, ru, de. But it fails for uk and
 en-gb.

I think I've got somewhere with this: Wolfgang's workaround seems to
fail when used with a language that has a ‘default’ parameter in the
\installlanguage command (see lang-def.mkiv). So en and de are fine,
but en-us, en-gb, de-at, de-ch etc. fail. My workaround was simply
to define a custom language from scratch without using ‘default’:

\installlanguage
  [mylang]
  [spacing=broad,
   leftsentence=---,
   rightsentence=---,
   leftsubsentence=---,
   rightsubsentence=---,
   leftquote=\upperleftsinglesixquote,
   rightquote=\upperrightsingleninequote,
   leftquotation=\upperleftdoublesixquote,
   rightquotation=\upperrightdoubleninequote,
   date={day,\ ,month,\ ,year},
   patterns=gb,
   lefthyphenmin=3,
   righthyphenmin=3]

\mainlanguage[mylang]
\setuplabeltext[chapter=Chapter ]
\setuplabeltext[appendix=Appendix ]

\definehead[appendix][chapter]

\setuphead[appendix][appendixlabel=appendix]

\setuplist[chapter,appendix][label=yes,width=6em]

\starttext

\startfrontmatter
\title{Contents}
\placelist[chapter,appendix,section,subsection]
\stopfrontmatter

\startbodymatter
\chapter{Bodypart}

\stopbodymatter

\startappendices
\appendix{Appendix}
\stopappendices

\stoptext
___
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] The appendices envrionment and title in toc

2011-04-20 Thread Pontus Lurcock
On Wed 20 Apr 2011, Wolfgang Schuster wrote:

 Am 20.04.2011 um 11:10 schrieb seasoul:
 
  Oh, thanks.
   
  But is there a by-pass to solve it? A thesis without any appenix seems not 
  that complete.
 
 Define a \appendix command.

Thank you. One pleasant thing about this list is that many of my
questions are answered before I get round to asking them.

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] OT: drawing graphs: Asymptote, Gnuplot, MetaFun, …

2011-04-18 Thread Pontus Lurcock
On Mon 18 Apr 2011, Paul Menzel wrote:

 I only have little experience using Gnuplot and I have never used
 Asymptote or MetaFun. These three seem to be well integrated with
 ConTeXt and I guess in the end I could just create the image files
 and include these in to my ConTeXt source.

If you don't mind using external figures, I personally would recommend
matplotlib (as used to create the example you linked to) -- in which
case you already have an example script for your graph :-). The
annotation and labelling facilities are extensive (see
http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo2.html
) and there is ample documentation. I used to be a happy Gnuplot user,
but I find that with matplotlib the easy things are just as easy, the
hard things are easier, and some of the impossible things become
possible.

I did give MetaFun a try before turning to matplotlib, but I found it
quite difficult to work with. That's strictly related to my personal
requirements and taste though -- there are many satisfied MetaFun
users on this list (and thus good support) and of course it is very
well integrated with ConTeXt.

Asymptote looks nice but I've never tried it. I think there have been
some issues with ConTeXt integration in the past (see
http://thread.gmane.org/gmane.comp.tex.context/54389 ) but am unsure
of the current state.

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
___


  1   2   >