[NTG-context] Two questions related with bibliography

2012-07-29 Thread Wei-Wei Guo
Dear all,

I have a self-made bst file in the same folder with the main tex file. I
cannot figure out how to enable it. I tried 

\setuppublications[alternative=mybst]

and 

\bibstyle[mybst]

Both do not work. How should I do?


Another question is how to set the citations in main text to be
subscript? 


BTW, will ConTeXt drop BibTeX one day?


Best regards,
Wei-Wei

___
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] Font recognition with command context, but not with command texexec

2012-07-29 Thread Martin Rimmler

Hi,

this might be a very simple problem, but I tried to figure it out for 
some time now without success. Reading manuals, searching with Google, 
etc. did not help. So if it actually is very simple, I herewith 
apologize. I really tried to solve it without the mailing list.


Here is the Problem:
The command texexec ignores the bodyfont setup. When I process the 
following code


\setupbodyfont[gentium]

\starttext
This little text is enough to demonstrate the problem.
\stoptext

with the command texexec /filename/, the default font is used. Only 
when i use the command context/filename/.tex, context uses the font 
gentium.
The gentium font is a truetype font and stored on my system under 
/usr/share/fonts.
I use Linux Mint Debian Edition 201204. My .bashrc file contains the 
following line:


export OSFONTDIR=/usr/local/share/fonts;$HOME/.fonts;/usr/share/fonts

I use the standalone version of context with pdftex. The command 
\contextversion returns 2012.07.27 16:41, i.e. the time I last updated it.


Using the mkiv switch did not help.

texexec mkiv /filename/


Any comments are welcome.
Best,

martin

___
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] Font recognition with command context, but not with command texexec

2012-07-29 Thread Wolfgang Schuster

Am 28.07.2012 um 21:11 schrieb Martin Rimmler martin.rimm...@googlemail.com:

 Hi,
 
 this might be a very simple problem, but I tried to figure it out for some 
 time now without success. Reading manuals, searching with Google, etc. did 
 not help. So if it actually is very simple, I herewith apologize. I really 
 tried to solve it without the mailing list.
 
 Here is the Problem:
 The command texexec ignores the bodyfont setup. When I process the 
 following code
 
 \setupbodyfont[gentium]
 
 \starttext
 This little text is enough to demonstrate the problem.
 \stoptext
 
 with the command texexec filename, the default font is used. Only when i 
 use the command context filename.tex, context uses the font gentium. 
 The gentium font is a truetype font and stored on my system under 
 /usr/share/fonts.
 I use Linux Mint Debian Edition 201204. My .bashrc file contains the 
 following line:
 
 export OSFONTDIR=/usr/local/share/fonts;$HOME/.fonts;/usr/share/fonts
 
 I use the standalone version of context with pdftex. The command 
 \contextversion returns 2012.07.27 16:41, i.e. the time I last updated it.
 
 Using the mkiv switch did not help.
 
 texexec mkiv filename
 
 
 Any comments are welcome.

For MkII you have to load the typescript file and the typescript yourself while 
for MkIV these two steps are done together with the \setupbodyfont command when 
the name for the typeface, typescript and file is the same (e.g. gentium and 
type-gentium).

\usetypescriptfile[type-gentium]
\usetypescript[gentium][texnansi]
\setupbodyfont[gentium]

\starttext
This little text is enough to demonstrate the problem.
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] SVG?

2012-07-29 Thread luigi scarso
On Sat, Jul 28, 2012 at 6:33 PM, Bill Meahan wmeaha...@gmail.com wrote:

 Do recent versions of MKIV (specifically, the one in TeXLive 2012) support
 SVG graphics directly or is it still necessary to convert to PDF as in the
 wiki example?

 I've created a couple of items in Inkscape and can save them to PDF
 directly without the automatic background conversion but native SVG
 support would be better if it exists.

 No, mkiv still uses inkscape. Some time ago I've seen rsvg I've also tried
a kind of native support with a lua binding for librsvg, but the rsvg
converter is not good as the inkscape program.
-- 
luigi
___
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] TeXlive 2012 and letter module

2012-07-29 Thread Wolfgang Schuster

Am 28.07.2012 um 19:53 schrieb Martin 'golodhrim' Scholz 
scholz@googlemail.com:

 Hi followers of ConTeXt,
 
 does something in the lettermodule in the texlive version and the
 minimal version of ConTeXt has changed, as both no longer recognize the 
 
 \useletterextension[addrentry,label]
 \useaddressfile[addrfile]
 
 lines and complain about an unknown command, if yes, what would be the
 way to fix this, or is this functionallity finally droped?

I haven’t added this function to the new version because I don’t need it.

When you really need it I can add it but context itself has a similar function 
with the \setvariables and \getvariable which takes only a few more lines than 
\addressentry does.

Below you can see how the example from the KOMA-Script manuals looks with 
\setvariables (you’re free to use different keys) but it’s no problem to write 
a simple \addressentry wrapper around this and provide it with the letter 
module when you want to share your data with LaTeX.

example source=scrguide.pdf
\usemodule[letter]

\setvariables
  [addressentry:frodo]
  [lastname={Beutlin},
   firstname={Frodo},
   address={Der Bühl\\ Beutelsend/Hobbingen im Auenland},
   1={Bilbo Beutlin},
   2={Rauchen von Pfeifenkraut},
   3={der Ringträger},
   4={Bilbos Erbe}]

\setvariables
  [addressentry:sam]
  [lastname={Gamdschie},
   firstname={Samweis},
   address={Beutelhaldenweg 3\\Hobbingen im Auenland},
   1={Rosie Kattun},
   2={Knullen},
   3={des Ringträgers treuester Gefährte}]

\setvariables
  [addressentry:tom]
  [lastname={Bombadil},
   firstname={Tom},
   address={Im Alten Wald},
   1={Goldbeere},
   2={trällern von Nonsensliedern},
   3={Meister von Wald, Wasser und Berg}]

\startletter
  
[toname={\getvariable{addressentry:tom}{firstname}~\getvariable{addressentry:tom}{lastname}},
   toaddress={\getvariable{addressentry:tom}{address}},
   opening={Lieber \getvariable{addressentry:tom}{firstname} 
\getvariable{addressentry:tom}{lastname},},
   closing={„O Frühling und Sommerzeit und danach wieder Frühling!\\O Wind auf 
dem Wasserfall und Lachen des Laubes!“}]

oder \getvariable{addressentry:tom}{3}, wie Dich Deine geliebte 
\getvariable{addressentry:tom}{1} nennt. Kannst Du Dich noch an einen Herrn 
\getvariable{addressentry:frodo}{lastname}, genauer gesagt 
\getvariable{addressentry:frodo}{firstname}~\getvariable{addressentry:frodo}{lastname},
 denn es gab ja auch noch den Herrn \getvariable{addressentry:frodo}{1}, 
erinnern. Er war \getvariable{addressentry:frodo}{3} im dritten Zeitalter und 
\getvariable{addressentry:frodo}{3}. Begleitet wurde er von 
\getvariable{addressentry:sam}{firstname}~\getvariable{addressentry:sam}{lastname},
 \getvariable{addressentry:sam}{3}.

Beider Vorlieben waren sehr weltlich. Der 
\getvariable{addressentry:frodo}{firstname} genoss das 
\getvariable{addressentry:frodo}{2}, sein Gefährte schätzte eine gute Mahlzeit 
mit \getvariable{addressentry:sam}{2}.

Weißt du noch? Mithrandir hat Dir bestimmt viel von ihnen erzählt.

\stopletter
/example

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] SVG?

2012-07-29 Thread Bill Meahan

On 07/29/2012 04:25 AM, luigi scarso wrote:



On Sat, Jul 28, 2012 at 6:33 PM, Bill Meahan wmeaha...@gmail.com
mailto:wmeaha...@gmail.com wrote:




No, mkiv still uses inkscape. Some time ago I've seen rsvg I've also
tried a kind of native support with a lua binding for librsvg, but the
rsvg converter is not good as the inkscape program.
--


No problem! Just looking to see if I needed to take that extra step 
while I'm still in Inkscape.


Not an issue just a curiosity.


--
Bill Meahan, Westland, Michigan USA

“Writing is a combination of intangible
  creative fantasy and appallingly
  hard work.”

  —Anthony Powell


This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic Signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Font recognition with command context, but not with command texexec

2012-07-29 Thread Bill Meahan

On 07/29/2012 03:34 AM, Wolfgang Schuster wrote:


For MkII you have to load the typescript file and the typescript
yourself while for MkIV these two steps are done together with the
\setupbodyfont command when the name for the typeface, typescript and
file is the same (e.g. gentium and type-gentium).

\usetypescriptfile[type-gentium]
\usetypescript[gentium][texnansi]
\setupbodyfont[gentium]

\starttext
This little text is enough to demonstrate the problem.
\stoptext

Wolfgang



Just curious: will ConTeXt use the fontconfig mechanism some day or are 
there technical/philosophical reasons not to?



--
Bill Meahan, Westland, Michigan USA

“Writing is a combination of intangible
  creative fantasy and appallingly
  hard work.”

  —Anthony Powell


This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic Signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] 2 columns: 1 language per column

2012-07-29 Thread Peter Münster
Hi,

Is it possible today with mkiv, to automatically typeset one text
(german) on the left column and the translation (french) on the right
column (perhaps with streams)?

And if yes, how?

TIA for any help!
-- 
   Peter
___
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] notes placed left, right aligned

2012-07-29 Thread Steffen Wolfrum
Hi,

my footnotes don't behave as they did three months ago ...

I wanted the footnote's number left from the footnote's text,
but these numbers should be right aligned:
so that the ones (eg. in 1 and 21 and 201) are exactly on top of each 
other

any idea how to achieve this?

Thanks, Steffen

---

\starttext

\setupbodyfont[times,6pt]

\setupnotation[footnote][alternative=left,width=12pt,distance=4.80pt]

\dorecurse{111}{test\footnote{\input ward\par}}

\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] notes placed left, right aligned

2012-07-29 Thread Peter Münster
On Sun, Jul 29 2012, Steffen Wolfrum wrote:

 but these numbers should be right aligned:
 so that the ones (eg. in 1 and 21 and 201) are exactly on top of each 
 other

 any idea how to achieve this?

\def\NumberCommand#1{\rightaligned{#1}} % or:
\def\NumberCommand#1{\hfill#1}

\setupnotation[footnote][alternative=left,width=12pt,distance=4.80pt,
numbercommand=\NumberCommand]

-- 
   Peter
___
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] notes placed left, right aligned

2012-07-29 Thread Steffen Wolfrum

Am 29.07.2012 um 18:27 schrieb Peter Münster:

 On Sun, Jul 29 2012, Steffen Wolfrum wrote:
 
 but these numbers should be right aligned:
 so that the ones (eg. in 1 and 21 and 201) are exactly on top of each 
 other
 
 any idea how to achieve this?
 
 \def\NumberCommand#1{\rightaligned{#1}} % or:
 \def\NumberCommand#1{\hfill#1}
 
 \setupnotation[footnote][alternative=left,width=12pt,distance=4.80pt,
numbercommand=\NumberCommand]


Yes numbercommand, that's it! 

I wanted command=\NumberCommand with \def\NumberCommand#1{\rightaligned{#1}} 
... and that failed.

Thanks a lot!
Steffen
___
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] notes placed left, right aligned

2012-07-29 Thread Wolfgang Schuster

Am 29.07.2012 um 19:11 schrieb Steffen Wolfrum cont...@st.estfiles.de:

 
 Am 29.07.2012 um 18:27 schrieb Peter Münster:
 
 On Sun, Jul 29 2012, Steffen Wolfrum wrote:
 
 but these numbers should be right aligned:
 so that the ones (eg. in 1 and 21 and 201) are exactly on top of each 
 other
 
 any idea how to achieve this?
 
 \def\NumberCommand#1{\rightaligned{#1}} % or:
 \def\NumberCommand#1{\hfill#1}
 
 \setupnotation[footnote][alternative=left,width=12pt,distance=4.80pt,
   numbercommand=\NumberCommand]
 
 
 Yes numbercommand, that's it! 
 
 I wanted command=\NumberCommand with \def\NumberCommand#1{\rightaligned{#1}} 
 ... and that failed.

Beware that this shouldn’t be more than a intermediate solution because 
normally “headalign=flushright” should work but a bug in the code prevents this.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font recognition with command context, but not with command texexec

2012-07-29 Thread Mojca Miklavec
On Sun, Jul 29, 2012 at 3:39 PM, Bill Meahan wrote:

 Just curious: will ConTeXt use the fontconfig mechanism some day or are
 there technical/philosophical reasons not to?

Do you mean MKII or MKIV? For MKII the answer is no. MKIV can - to a
certain extent - read and interpret fontconfig's XML configuration
file. The real question is whether ConTeXt finds the right file. On
windows there is fonts.conf used by XeTeX and it might be that MKIV
reads that file, but I'm not sure.

There is no seriously technical reason, it's more that developers
aren't too eager to have dependencies on external libraries. And the
fact that at least on Windows and Mac the system fonts are being
searched for on their standard locations.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Page floats

2012-07-29 Thread Wolfgang Schuster
Hi Hans,

page flots don’t work with the current beta.

\starttext

\dorecurse{6}{\input knuth\par}

%\placefigure{A dutch cow}{\externalfigure[cow]} % works
\placefigure[page]{A dutch cow}{\externalfigure[cow]} % doesn’t work

\dorecurse{6}{\input knuth\par}

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font recognition with command context, but not with command texexec

2012-07-29 Thread Hans Hagen

On 29-7-2012 22:36, Mojca Miklavec wrote:

On Sun, Jul 29, 2012 at 3:39 PM, Bill Meahan wrote:


Just curious: will ConTeXt use the fontconfig mechanism some day or are
there technical/philosophical reasons not to?


Do you mean MKII or MKIV? For MKII the answer is no. MKIV can - to a
certain extent - read and interpret fontconfig's XML configuration
file. The real question is whether ConTeXt finds the right file. On
windows there is fonts.conf used by XeTeX and it might be that MKIV
reads that file, but I'm not sure.


Last time I checked (more than a year ago) it did read that file. You 
can check that with


\enabletrackers[fonts.names]

when the database is generated.


There is no seriously technical reason, it's more that developers
aren't too eager to have dependencies on external libraries. And the
fact that at least on Windows and Mac the system fonts are being
searched for on their standard locations.


Or: the developers never check that as they don't depend on system 
fonts in projects (I always copy font files to known locations i.e. 
texmf-fonts).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___