[NTG-context] URL wrapping

2008-03-10 Thread Adam Duck
Hello list,

I'm writing my diploma thesis and have gotten into a problem with URLs
in my references.  As you can see in my example, \useURL and \biburl
don't wrap...  also, using \hyphenatedurl doesn't help much.  I've read
through the archives, but all postings there don't help.  Alan Bowen
has/had the same problem described in
http://archive.contextgarden.net/message/20070125.173931.a70b45d3.en.html

The problem is getting worse by the fact that I'm using BibTeX to
produce the references.  So, I don't have that many tweaking
possibilities.

Help...


cu, Adam.

\usemodule[bib]
\setupinteraction[state=start]
\setuppublications[alternative=apa-de]

\startpublication[k=BMPINTERBC,
  t=misc,
  a={{Wikipedia}},
  y=2008e,
  u={http://en.wikipedia.org/wiki/Image:Thisisaveryveryveryverylongurlthatisnotwrapped.png},
  n=11,
  s=Wik08e]
  \author[]{}[]{}{Wikipedia}
  \pubyear{2008\maybeyear{e}}
  \title{{Image:BicubicInterpolationExample.png} --- {W}ikipedia{,} the free encyclopedia}
  \month{3}
  \biburl{http://en.wikipedia.org/wiki/Image:Thisisaveryveryveryverylongurlthatisnotwrapped.png},
\stoppublication

\starttext

The URL in the publications doesn't warp: \cite[BMPINTERBC].  And this one, too, doesn't
wrap: \useURL{http://en.wikipedia.org/wiki/Image:Thisisaveryveryveryverylongurlthatisnotwrapped.png}.
And this one, isn't better: \hyphenatedurl{http://en.wikipedia.org/wiki/Image:Thisisaveryveryveryverylongurlthatisnotwrapped.png}

\section{References}
\placepublications[criterium=all]
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] eqnalign

2006-09-26 Thread Adam Duck
Hello list,

Is it possible to break eqalign across pages?  If not, is there any
other possibility to have math formulas aligned and broken across
pages?

cu, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] FLOWcharts

2006-09-21 Thread Adam Duck
Hello list,

I have some FLOWcharts in my presentation; due to the RawSteps module,
they get rendered too many times pointlessly.  Is it possible to
"prerender" a FLOWchart -- or any other part of a text -- and reuse it
later?  \startbuffer \stopbuffer doesn't do this.

cu, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Presentation help

2006-08-18 Thread Adam Duck
Yes, it turns out, this was somehow my fault.  I had spaces in my
section titles, and somehow this doesn't turn out right.  Anyways,
with this command:

#v+
\def\mycontext#1{
\edef\stringa{\ignorespaces\fetchmark[section][current]}
\edef\stringb{\ignorespaces#1}
\strut\ifx\stringa\stringb
\color[red]{#1}
\else
#1
\fi}
#v-

I get it right even with spaces in them.  But this doesn't work if I
have an exclamation mark in a section title -- I don't say it's a good
idea to have an exclamation mark in the section title, but...  Is
there any way to solve this?

cu, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Presentation help

2006-08-18 Thread Adam Duck
Thanks, all works out nicely.  So, I have another problem.  According
to my friend, every good presentation should highlight the current
section in the table of contents.  So I defined this:

#v+
\def\mycontext#1{%
\edef\stringa{\fetchmark[section][current]}
\edef\stringb{#1}
\strut
\ifx\stringa\stringb
\color[red]{#1}
\else
#1
\fi
}
#v-

This works with

\mycontext{a subject}

and even

\mycontext{\fetchmark[section][current]}

but doesn't work with placelist[section] with this setup:

#v+
\setuplist[section][criterium=all,
symbol=none,
numbercommand=$\bullet$,
textcommand=\mycontext,
pagenumber=no,
width=\baselineskip]
#v-

I think it's because textcommand gets more then just the text as
parameter.  But there is no deeptextcommand in setuplist.

cu, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Presentation help

2006-08-17 Thread Adam Duck
So, I showed ConTeXt to a friend of mine.  He said he wanted to try it
and now -- well, you don't want to know how he swears :).  We're
trying to do a presentation...

Anyways, I'm trying to help him...  But I (we) have some problems:

I managed to write something like this (it's never been so hard to
write a newline!):

#v+
\startsetups{myhead}
\vbox{%
\getmarking[sectionnumber]\crlf\getmarking[section]\par
\hskip12pt\getmarking[subsectionnumber]\crlf\getmarking[subsection]}
\stopsetups

\setupheadertexts[]
\setupheadertexts[\setups{myhead}][pagenumber]
#v-

That does, what it should: display section and subsection atop of each
other.  So, but now, he wants to have an "Introduction", which should
show up in the header but without a number.  I tried "\subject" but
"\getmarking[section]" only returns the section, not the subject (I
thought they were interlinked somehow, but...).  So, is there any way
to do this apart from "\ifx\getmarking[sectionnumber]{-1}" or so?


Next question: is it possbible to align the text of, well, "text",
i.e. the body text, vertically centered on every page?
"\setupbackgrounds" won't work here.  On a side note: why does it have
an align-parameter, then?


This one is "a bonus" for me: can someone point me in a direction
where to start to build a "progress meter"?  beamerstyle has a nice
template where it shows the section as text and the subsections as
open dots (all of them) with the current subsection as a filled dot.

Well, that would be all, thanks for listening,

Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Reg. fonts and math

2006-01-14 Thread Adam Duck
Just to give you some hints what's already there...

Aditya Mahajan <[EMAIL PROTECTED]> writes:

< 63 lines deleted by Adam Duck >
> 1. Have align support with variable number of columns.
>  a &= b
>&= c &+ d
>&&+ e
>
> should be typeset as
>
>  a = b
>= c + d
>+ e

At least this should be possible with \wall and \return (using the
"nath" module), like this:

#v+
a \wall = b \\
= c \wall + d \\
+ e
\return\return
#v-

< 20 lines deleted by Adam Duck >
> 5. have a splitformula environment that allows
>
>  a =& b
> & + c \\
> & + d
>
> to come out as
>
>   a = b
>   + c
>   + e(1)
>
> with only one formula number. The formula number should be at the last
> line or the center of the whole formula, configurable by an option.
< 142 lines deleted by Adam Duck >

Again, this is a \wall-\return thingy, but \placeformula places the
number vertically centered...

#v+
\usemodule[nath]
\starttext

\placeformula
\startformula
a \wall = b \\
+c \\
+e \return
\stopformula

\startformula
a \wall = b \\
= c \wall + d \\
+e \return\return
\stopformula

\stoptext
#v-

cu, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] interaction in \cite

2005-09-26 Thread Adam Duck
Hello ConTeXters,

I do not want to ask too much, especially as Taco already mentioned
he'll be doing a patch for the BibTeX-module...  But how do I setup
interaction in \cite?  \setupinteraction[state=true] works for \at,
\in and in the contents but not for \cite.  As I weren't able to find
it in the documentation nor in the archives, I'll try here.

Thx in advance,
Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] i18n in BibTeX

2005-09-26 Thread Adam Duck
Hello R. :),

[EMAIL PROTECTED] writes:

> Hello Adam,
>
> Why not save the document as cont.au-de.bst and use it when you write
> German. When you need the English version, you simply switch back to
> cont.au.bst?
Oh yes...  That's so obvious I haven't thought of it :).

> The adaptations in the bst file are not many, unless you want to change
> the commas and periods as well.
No, the standards in typesetting are not that different from English.
Perhaps there's even an include-command...

> The only serious problem I encounter now is the language of the notes that
> are printed in the bibliography.
< 72 lines deleted by Adam Duck >
There are notes in the bibliography? ... Hmm...

cu, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] i18n in BibTeX

2005-09-25 Thread Adam Duck
Mojca Miklavec <[EMAIL PROTECTED]> writes:

> Adam Duck wrote:
>
>> So, I've stumbled across a problem: if you have only two authors in a
>> BibTeX entry, cont-au.bst sets "AuthorA and AuthorB" which is -- IMHO
>> -- unaccaptable for a german document.  I had to manually edit
>> cont-au.bst and change a line in
> /.../
>> from "and" to "und".  Is there a cleaner way?  If I typeset an english
>> document now, I'll get an "und"...
>
> Take a look at bibl-apa.tex and bibl-aps.tex.
>
> Depending on what kind of citing you use, you may say something like
>   \setupcite[authoryear][lastpubsep={ und }]
> and for all the other citing modes the same.
>
< 38 lines deleted by Adam Duck >

Yes, this I've done and it works.  But that's not the problem I was
referring to.  `lastpubsep' is used if you have more than one paper to
refer to in the same \cite-command (\cite[paperA,paperB]) but it is
_not_ used if a paper has only two authors (\cite[paperC]).

I've seen some language specific functions in geralpha.bst.  Perhaps I
should dive into it a bit...  But I don't really understand bst-syntax
:).

bye, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] i18n in BibTeX

2005-09-25 Thread Adam Duck
So, I've stumbled across a problem: if you have only two authors in a
BibTeX entry, cont-au.bst sets "AuthorA and AuthorB" which is -- IMHO
-- unaccaptable for a german document.  I had to manually edit
cont-au.bst and change a line in

FUNCTION {format.lab.names}
{ 's :=
  s #1 "{vv~}{ll}" format.name$
  s num.names$ duplicate$
  #2 >
{ pop$ " et~al." * }
{ #2 <
'skip$
{ s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
{ " et~al." * }
{ " and " * s #2 "{vv~}{ll}" format.name$ * }
  if$
}
  if$
}
  if$
  "{" swap$ * "}," *
}

from "and" to "und".  Is there a cleaner way?  If I typeset an english
document now, I'll get an "und"...

bye, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with Natural Tables

2005-08-15 Thread Adam Duck
Adam Duck <[EMAIL PROTECTED]> writes:

> Hans Hagen <[EMAIL PROTECTED]> writes:
>
> < 25 lines deleted by Adam Duck >
>> a next release will support:
> This is mighty cool!  I don't want to be impolite, but when will this
> be?  The deadline for my girlfriend's thesis is approaching fast ...

Sorry about this mail.  And thank you for the very fast response and
coding.

bye, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with Natural Tables

2005-08-15 Thread Adam Duck
Hans Hagen <[EMAIL PROTECTED]> writes:

< 25 lines deleted by Adam Duck >
> a next release will support:
This is mighty cool!  I don't want to be impolite, but when will this
be?  The deadline for my girlfriend's thesis is approaching fast ...

< 6 lines deleted by Adam Duck >

> \setupTABLE[c][1][distance=2em]
> \setupTABLE[c][2][distance=3em]
Will this be both: the distance to the left and the right frame?

< 28 lines deleted by Adam Duck >

bye, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with Natural Tables

2005-08-14 Thread Adam Duck
Eckhart Guthöhrlein <[EMAIL PROTECTED]> writes:

> Am Sonntag, den 14.08.2005, 17:17 +0200 schrieb Adam Duck:
>
>> - how do I set the spacing between a vertical line (between two
>>   columns) and the text inside that columns?  I already used
>>   "framedoffest=-3pt", but the output is unacceptable.
>
> Spacing is a weak point of natural tables. Afaik, there is no good way
> to tune spacing. I would try using dummy colums like
> \bTD[width=1em]\eTD.
OK, That sounds reasonable.  I'll try that.  On the other hand this
means many \bTD\eTD ... but one can write a macro for that,
I think.

>> - how do I center the whole table?  This one is really crucial: my GF
>>   also accepts hacks ;).
>
> \midaligned{..} works
Yep, but only if I don't split the table:



bin1Po1GsCz4s.bin
Description: application/tex

gives

ERROR: Missing } inserted.

--- TeX said ---
 
}
 
   \unvcopy 
\splittblboxa ...p \page \egroup \fi \fi \unvcopy 
  2 \ifcase \noftblnextlines...

\splittblbox ...tblsplitmethod }\splittblboxa {#1}
  \fi 
\eTABLE ...}}\eTBL }\removeunwantedspaces \endTBL 
  \stopTBLprocessing \egroup...
l.11 \eTABLE
}
and \startalignment[middle]...\stopalignment doesn't seem to do
anything in that case.

>> - why doesn't \splitfloat{\placetable...} work with Natural Tables?
>>   (They won't get splitted at all, but with tables and linetables it
>>   works...)
>
> \setupTABLE[split=yes] or \setupTABLE[split=repeat]
That's not what I meant:



bin66p3Vl615t.bin
Description: application/tex

doesn't split the table.  The output looks exactly like the
\midaligned{} one.

bye, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problems with Natural Tables

2005-08-14 Thread Adam Duck
Hello ConTeXters,

my girlfriend writes her dimploma thesis now and I talked her into
using ConTeXt, but now I'm not sure anymore that this was the right
thing to do.  So, the problems are numerous and some of them are:

- how do I set the spacing between a vertical line (between two
  columns) and the text inside that columns?  I already used
  "framedoffest=-3pt", but the output is unacceptable.
- how do I center the whole table?  This one is really crucial: my GF
  also accepts hacks ;).
- why doesn't \splitfloat{\placetable...} work with Natural Tables?
  (They won't get splitted at all, but with tables and linetables it
  works...)
- how do I refer to tables then?

I have chosen Natural Tables because they were the only one that
splitted correctly (tables and linetables let out 2/3 of a page).  So,
that's all for now.

bye, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] FLOWcharts

2005-03-13 Thread Adam Duck
Hello,


I'm having problems with the following chart (well, any chart, that
is):

--- ConTeXt code ---

\setupoutput[pdftex]
\usemodule[chart]
\starttext

\setupFLOWcharts[offset=50pt]

\startFLOWchart[test]

  \startFLOWcell
\name{one}
\location{1,1}
\text{one}
\connect[bt]{two}
\comment[r]{why}
\comment[l]{is}
\comment[l]{this}
  \stopFLOWcell

  \startFLOWcell
\name{two}
\location{1,2}
\text{two}
  \stopFLOWcell
  
\stopFLOWchart

\midaligned{\FLOWchart[test]}

\stoptext

--- end ---

It seems that every \comment-command pushes all text further down;
i.e. "two" in the secons cell but also the other comments.

version: 

 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
   context : ver: 2005.01.31
   cont-en : ver: 2005.01.31  fmt: 2005.3.8  mes: english

total run time : 1 seconds

and:

%D \module
%D   [   file=m-chart,
%Dversion=1998.10.10,

bye, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with uniqueMPgraphic

2004-12-18 Thread Adam Duck
Hans Hagen <[EMAIL PROTECTED]> writes:

[... stuff I didn't understand ...]

> alternative
>
> \startuniqueMPgraphic{underline}
>numeric w,h; w := OverlayWidth; h := ExHeight/6;
>path p; p := (0, -h)..(w/2,0 + (h/3 randomized h/3))..(w, -h);
>draw p withpen pencircle scaled 1 withcolor OverlayColor ;
>setbounds currentpicture to unitsquare xyscaled 
> (OverlayWidth,OverlayHeight); \stopuniqueMPgraphic
>
> \defineoverlay[underline][\uniqueMPgraphic{underline}]
>
> \def\aidul{\dosingleempty\doaidul}
> \def\doaidul[#1]{\inframed[background=underline,frame=off,#1]}
>
> \setupcolors[state=start]

Thanks for the fast response and the many lines you've written
(although I didn't understand everything).  The OverlayColor works
fine and as underlining is in the background, I'll take this aproach.

So, one last question remains: why doesn't this work?

\def\uli{backgroundcolor=peachpuff} \aidul[\uli]{test}

bye, Adam.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problems with uniqueMPgraphic

2004-12-17 Thread Adam Duck
I have this small test case:



test.tex
Description: TeX document

and it comes out with the wrong colors.  So, I think I know that this
is because of the same dimensions but I want to have different colors
for the same overlay-dimensions.  How do I do that?

bye, Adam.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context