[NTG-context] caption on the inner side

2010-04-05 Thread Hubertus
Hello all,
I was wondering if it possible to do something of this sort:
  \setupcaptions[location=low]
  \placefigure[outer][]{ Caption }
  {\externalfigure[test.jpg][width=0.5\textwidth]}
So what I try is to get the caption not on the left side of the image but
inner. From the location pramametar there seems not to be an obvious solution,
neither in the mail archive.

Cheers,

Hubertus
___
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: how to make autohang work?

2010-04-02 Thread Hubertus
Dear Taco,
 autohang mode is (should be) using the 'samplesize' key from
 \setuppublicationlist in the bbl data to measure the required width.
 If altering that doesn't work, we will need a test file.
Well, RTFM... but still it's not the way it probably should be. This is to be 
found in my bbl-file:
  \setuppublicationlist[samplesize={NDVRT{\etalchar{+}}02},totalnumber=224]
but it has no effect what so ever. If I copy:
  \setuppublicationlist[samplesize={NDVRT{\etalchar{+}}02}]
to my tex-file, however, it works. More RTFM?

Here an entry from my bbl-file:

\startpublication[k=N.D.Vieira2002,t=article,
a={{N.~D.~Vieira},{}},y=2002,o={10.1016/S0925-8388(02)00359-6},
n=137,s=NDVRT{\etalchar{+}}02]
\artauthor[]{Jr.}[J.]{}{N.~D.~Vieira}
\artauthor[]{I.~M.}[I.~M.]{}{Ranieria}
\artauthor[]{L.~V.~G.}[L.~V.~G.]{}{Tarelhoa}
\artauthor[]{N.~U.}[N.~U.]{}{Wettera}
\artauthor[]{S.~L.}[S.~L.]{}{Baldochia}
\artauthor[]{L.}[L.]{}{Gomesa}
\artauthor[]{P.~S.~F.}[P.~S.~F.]{de}{Matosa}
\artauthor[]{W.}[W.]{de}{Rossia}
\artauthor[]{G.~E.~C.}[G.~E.~C.]{}{Nogueiraa}
\artauthor[]{L.~C.}[L.~C.]{}{Courrolb}
\artauthor[]{E.~A.}[E.~A.]{}{Barbosab}
\artauthor[]{E.~P.}[E.~P.]{}{Maldonadoc}
\artauthor[]{S.~P.}[S.~P.]{}{Morato}
\pubyear{2002}
\arttitle{Laser development of rare-earth doped crystals}
\journal{Journal of Alloys and Compounds}
\volume{344}
\issue{1-2}
\pages{231-239}
\month{Oct}
\stoppublication

Thanks

Hubertus
___
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: how to make autohang work?

2010-04-02 Thread Hubertus
 That is clearly a bug. Mkiv or mkii?
I think I use texlive (current debian unstable).
I also think I found the problem :)
I've been using the http://pmrb.free.fr/work/OS/ConTeXt/e-phd.tex + project file
and it seems that there's something wrong with the order of the commands. The 
original verion:

\startproduct prd_phd
\project project_phd
\starttext
  \setuppublications[alternative=apa,
  refcommand=short,
  autohang=yes,
  numbering=short,
  sorttype=bbl,
  criterium=all]


  \placepublications[criterium=all]

\stoptext
\stopproduct

This does not work. This, however, works:

\setuppublications[alternative=apa,
refcommand=short,
autohang=yes,
numbering=short,
sorttype=bbl,
criterium=all]

\starttext
\startproduct prd_phd
\project project_phd

  \chapter{Bibliography}
  \placepublications[criterium=all]

\stopproduct
\stoptext

So, I don't know if it's a bug or not or if it's the way it should be and was
just an inattention by the one who wrote the original product-file.

Cheers,

Hubertus
___
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: how to make autohang work?

2010-04-02 Thread Hubertus
Dear Peter,
 e-phd.tex is an environment file. Since it's about 5 years old, it's
 unlikely that it works with current context out of the box.
 It's just on the web-site, to show what settings I've used to get the
 resulting pdf-file.
I think I got those files from renojrl.lrv.uvsq.fr ages ago.
I've been using it as a draft and have been changing it quite a lot but 
got some good ideas from it. There's always to learn something new.

Thanks for the support

Hubertus
___
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] Bibtex: how to make autohang work?

2010-04-01 Thread Hubertus
Hello again,
I'm using this setup for my bibliography:
\setuppublications[alternative=apa,
refcommand=short,
autohang=yes,
numbering=short,
sorttype=bbl,
criterium=cited]

So the keys are sometimes 7 characters long and thus overwrite the actual
bibliography. That's way I thought I should use autohang=yes. Yet, there's not
any change. Did I miss anything?

Thanks for advice

Hubertus
___
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 change short key

2010-03-26 Thread Hubertus
Dear Taco,
 Oh boy, I am sorry! My fault! The *correct* recipe is: run once, so the
 bbl exists, then delete the \setupbibtex line from your source, then
 edit the bbl, then recompile.
Thanks. This works now. I wrote a little python script now to save time and
thought maybe someone else might need it as well. It works for me but it was 
just a quick shot. There was not much time to think about all possibilities, 
and may be the regular expressions need to be modified. I first need to get this
thesis finished. So no guarantee.

All the best

Hubertus
#!/usr/bin/python
# -*- coding: utf-8 -*-

import re
import shutil

fileName= 'filename.bbl'# Change here the filename
fileNameOld = fileName + '-old' 
shutil.copyfile(fileName, fileNameOld)  # Make a copy of the file
f = open(fileNameOld)
out = open(fileName, 'w')

author  = re.compile('a={+( [^}]* ) }', re.VERBOSE) # Find author
author3 = re.compile('(\w{2,3})')   # Get the first 3 letters
year= re.compile('y=\d{2,} (\d{2,}\w?)', re.VERBOSE) # Get the year e.g. 09a
shortRe = re.compile('(s=)(.*)\]')  # Substitute the short key 
while True:
tmp = [] # Array where from \startpulication[...] ... is saved
line = f.readline()
# Look for the start of a new publication
if line.find('startpublication') = 0:
tmp.append(line)
# Go the end of that publication \startpulication[...]
while True:
a = f.readline()
tmp.append(a)
if a.find(']') = 0:
break
# Go through tmp to get the needed information
short = ''
for i in range(len(tmp)):
a = tmp[i]
if author.search(a):
short = ''
short = author3.findall(author.findall(a)[0])[0]
if year.search(a):
short += year.findall(a)[0]
if shortRe.search(a):
a = shortRe.sub(r'\1%s]', a) % short
out.write(a)
# If no entry in \startpulication[...] just write it again to the file
else:
out.write(line)

# reached end of file
if line == '':
break

f.close()
out.close()
___
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 change short key

2010-03-25 Thread Hubertus
Dear Taco,
  I use the excellent BibTex module with this setup:
  \setupbibtex[database=biblio,sort=author]
  \setuppublications[alternative=apa,refcommand=short,sorttype=bbl,criterium=cited]
  So if I have something like this
  @ARTICLE{Akimoto2005,
  author = {R. Akimoto and B. S. Li and K. Akita and T. Hasama},
  ...
  }
  in my *.bib file, the \cite[Akimoto2005] results in [ALAH05]. Is there a way
  to
  get only the first author with three letters and the year ([Aki05]) in the
  citation?
 
 Patch the generated .bbl file by hand. after its initial creation, it
 will not be modified by context itself anymore.
May be I should have tried it first, before editting about 200 entries as you
suggested. As far as I can judge from the timestamp, at my system the bbl file 
is generatet every time I run texexec. Have I missed something?

Thanks
Hubertus
___
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] Bibtex change short key

2010-03-24 Thread Hubertus
Dear Mailinglist,
I use the excellent BibTex module with this setup:
  \setupbibtex[database=biblio,sort=author]
  
\setuppublications[alternative=apa,refcommand=short,sorttype=bbl,criterium=cited]
So if I have something like this
  @ARTICLE{Akimoto2005,
author = {R. Akimoto and B. S. Li and K. Akita and T. Hasama},
...
  }
in my *.bib file, the \cite[Akimoto2005] results in [ALAH05]. Is there a way to
get only the first author with three letters and the year ([Aki05]) in the
citation?

Help would be much appreciated.

Thanks

Hubertus
___
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] How to use vim's syntax folding

2009-12-12 Thread Hubertus
Hello,
I was wondering it there's an easy way how I can use vim's syntax-folding. I've
checked the context syntax files, but there doesn't seem to be anything there. I
also had a brief look at the folding.vim from the LatextSuite, but alas could
not adapt it easily. Is there anyone using this feature?

thx
Hubertus
___
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] how to do something like ^1/_2 with frac?

2007-01-26 Thread Hubertus
Hi all again,
I try to do something like 1/2 with an upper 1 and a lower 2. The code below
still doesn't quite work. 

\def\nfrac#1#2{\leavevmode\kern.1em%
  \raise.5ex\hbox{\scriptsize #1}%
  \kern-.1em/\kern-.15em%
  \lower.25ex\hbox{\scriptsize #2}}

Help would be very much appreciated!

Hubertus

P.S. Is there a good pdf around to get some insight's of this tex-magic?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] a German umlaut is broken

2006-12-18 Thread Hubertus
  Hi,
 
  in the new version (7.12.2006) one of the special German characters is
  broken:
 
 
  \enableregime   [il1]
  \mainlanguage   [de]
  \setupbodyfont[sansserif]
  \starttext
 
  German Umlauts: ?
 
  \stoptext
 
  the result:
 
  German Umlauts: ??SS

 hm, can you check if regi-8859-1 is loaded ? 
I do the following:
  \setupoutput[pdftex]
  \installlanguage[german][de]
  \mainlanguage[de]
  \enableregime[il1]
  \setupencoding[default=ec]
and ß gives me also SS. I run 
  ConTeXt  ver: 2006.12.12 23:46 MK II  fmt: 2006.12.13  int: english/english
My logfile tells me:
  regime  : regime 8859-1 is loaded
  (/home/???/tex/texmf-local/tex/context/base/regi-8859-1.tex
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  )

Hope that helps you.

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


Re: [NTG-context] \placeformula and $$ doesn't work anymore

2006-12-15 Thread Hubertus
Hello again,
I've been offline for the last week, so I could'nd write. Thanks for your 
answers!
Well my problem is, that I'm just some kind of ordinary user. I've no clue about
tex. I've had a look into the conre-mat.tex and tried to compare it with your
posts. But, alas, no success.
Is this a bug which is going to be fixed, or do I have to do it myself? If that
is the case, please give me more detailed informations about what I have to do.
Have a good weekend

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


[NTG-context] setuphead and command

2006-07-22 Thread Hubertus Schmidt
Hi all,
I'm stuck. I try to something like this:

\def\CommandHeader#1#2#3{
  {\framed[frame=off,bottomframe=on, topframe=on,align=right,width=\textwidth]
{\tbox{\hskip14pt\indent{\type{#2}}\index{#2}\hskip3cm{\it #3}  }}
  }
\definehead[Command][subject]
\setuphead[Command][command=\CommandHeader]
\starttext
\Command{{def}{Define Variable}}
\Command{{tsolve}{solve differential equation}}
\stoptext

It's supposed to look like
--
  def  Define Variable
--
whereas def should be indexed and Define Variable should be indented...
The document is supposed to become a program manual and I wanted it to look like
this one:
http://cran.r-project.org/doc/manuals/fullrefman.pdf

How would you do the alphabetic sorting of the commands? Manually like the
solution above or with something like definesorting?
Is there a good way doing this?

Thanks a lot
Hubertus
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context