Re: [NTG-context] ConTeXt + BibTeX problem

2008-12-02 Thread Taco Hoekwater


Mohamed Bana wrote:
 Hi Taco,
 
 1.  How do I get coloured citations?  E.g., \cite[jacky:critial] should
 produce a coloured link.

  \setupinteraction[state=start]
  \setupcolors[state=start]
  \setupcite[compress=no]


 2.  If is possible to get the list of pages an item was cited at?  

Sorry, no. The backreferences are in saved in the tuo file, but
I never got around to writing the integration code for it.

In case someone is interested in writing that, it needs a loop like
this one:


\unprotect
\def\getpagelist#1%
  {\let\pagelist \empty
   \def\currentbibitem{#1}%
   \doloop
 {\doifdefinedelse{\r!cross cite-\jobname-\recurselevel}
{\doifreferencefoundelse
 {cite-\jobname-\recurselevel}
 {\ifx\currenttextreference\currentbibitem\relax
 \doglobal\addtocommalist
  {cite-\jobname-\recurselevel}\pagelist
  \fi }
  {}}
{\exitloop}}%
   % \pagelist is now the list of backreferences for #1
   \message{\pagelist}%
  }
\protect



Best wishes,
Taco

___
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
___


Re: [NTG-context] Gedit in Ubuntu as a ConteXt editor

2008-12-02 Thread Khaled Hosny
On Tue, Dec 02, 2008 at 11:41:12AM +0100, Jan-Erik Hägglöf wrote:
 
 * Some learning curve to learn how to create special ConTeXt plugin like
 this http://live.gnome.org/Gedit/LaTeXPlugin

I spent some time porting LaTeXPlugin to ConTeXt, but I never finished
it. It is some how usable, but some functionality is missing. The code
is here if any one is interested:
http://code.google.com/p/raqm/source/browse/#svn/trunk/code/gedit

Regards,

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


signature.asc
Description: Digital 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] acroread shows error msg 'Could not find the XObject named 'Fm1'

2008-12-02 Thread joshua lee
It works, thank you.

On Tue, Dec 2, 2008 at 4:26 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 joshua lee wrote:

 Hi All,
 Attached file is the sample test file which can not be viewed by acroread,
 any advice?


 move \starttext to the right place, above the \startstandardmakeup;
 otherwise resouces are not flushed the right way



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




-- 
Best Regards,
Joshua
___
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] definepagebreak: problem at the end of front, body backmatter

2008-12-02 Thread Bart C. Wise
In the sample code below, I defined the document to be doublesided and that 
chapters should open on the right.  If the chapter ends on an odd page, I want 
to leave the even page completely blank (no headers, footers, page numbers, 
etc.).  The code below works except for the last chapter in the frontmatter, 
bodymatter, and backmatter.  For the last chapter in those divisions, the page 
is not blank, but has the header  footers.  How do I get definepagebreak to 
work at the end of a division?

\setupheadertexts[][chapter][Deluxe Header][]

\definepagebreak
[ChapterPageBreak]
[yes,header,footer,right]% works! except for last page in a division

\setuphead[chapter][
header=empty,
footer=empty,
number=yes,
page=ChapterPageBreak,
]

\setuplayout[location=doublesided]
\setuppagenumbering[
location={footer,middle},
alternative=doublesided,
option=doublesided,
style=\em\tfx,
way=bytext,
]

\starttext
\startfrontmatter
\completecontent
\chapter {Introduction} \dorecurse{10}{\input tufte }
\chapter {Second Introduction} \dorecurse{10}{\input tufte }
\stopfrontmatter
\startbodymatter
\chapter {First Chapter} \dorecurse{10}{\input tufte }
\chapter {Second Chapter} \dorecurse{9}{\input tufte }
\chapter {Third Chapter} \dorecurse{8}{\input tufte }
\chapter {Fourth Chapter} \dorecurse{10}{\input tufte }
\stopbodymatter
\startbackmatter
\chapter {First Appendix} \dorecurse{10}{\input tufte }
\chapter {Second Appendix} \dorecurse{10}{\input tufte }
\stopbackmatter
\stoptext

Thanks,
Bart
___
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] Gedit in Ubuntu as a ConteXt editor

2008-12-02 Thread Jan-Erik Hägglöf
HI ConTeXt friends!

I've been using Gedit on my ubuntu system for quite some time and is
very much happy with it.

Here are some advantages:

* UTF-8 encoding by default (which is in mind for LuaTeX).

* highly configurable code snippets. reading xml-files.

* Defining your own typesetting commands and associate it with some
keycombination.



Drawbacks

* Syntax highlighting for LaTeX but works for context-specific also

* I'm not sure if it is portable to windows

* Some learning curve to learn how to create special ConTeXt plugin like
this http://live.gnome.org/Gedit/LaTeXPlugin

I've recently tested texworks but it seems missing the snippets
capabilities. 

Is it someone out there who has experience in Gedit?

Janneman
-- 
TeX Engine : LuaTeX

current version: 2008.10.31 17:32

OS : Ubuntu 8.10 Intrepid Ibex
___
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] muse, pandoc and context

2008-12-02 Thread Jörg Hagmann
Dear list members,

Despite using a text editor (emacs) and context almost exclusively, I 
need a way to communicate with other members of the institute. I'm 
evaluating two possibilities:
1. Writing in markdown and using pandoc for conversion to either context 
or something openable by a word processor.
2. Writing in emacs muse and publishing to -- see above.

I would like to know the following:
- Has anybody done the same and come to a conclusion? Reasons?
- Is my impression correct that with muse one has fewer possibilities 
such as sub/superscripts?

I'm aware of the threads in the archive, but would like to have an 
updated, concise opinion.

Slightly off topic, but thanks for your answers, Jörg
___
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
___


Re: [NTG-context] acroread shows error msg 'Could not find the XObject named 'Fm1'

2008-12-02 Thread Hans Hagen
joshua lee wrote:
 Hi All,
 Attached file is the sample test file which can not be viewed by 
 acroread, any advice?

move \starttext to the right place, above the \startstandardmakeup; 
otherwise resouces are not flushed the right way



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] UTF-8 Problems with the minimals

2008-12-02 Thread Florian M. Baudach
Hi,
after reinstalling the minimals (my HD crashed), I have got the
following problem:

texexec doesn't recognize UTF-8 any more :-(.
I didn't change my tex-files and enabled UTF-8 with:
\enableregime[utf-8]

Surprisingly context file.tex works. I have no idea what is wrong with
my MKII.

Any suggestions? Thx.

Greetings FloMo
___
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
___


Re: [NTG-context] Gedit in Ubuntu as a ConteXt editor

2008-12-02 Thread vafa

 You even can use LaTeX Plug-in of Gedit but it only recognises LaTeX commands 
so if you write in ConTeXt or plain TeX, it will think that you have got a 
master document.

But without the plug-in, you can do anything.

I agree with you. Gedit is the best editor. I wished that TeXworks also would 
include some of Gedit's features.



 


 

-Original Message-
From: Jan-Erik Hägglöf [EMAIL PROTECTED]
To: ntg-context@ntg.nl
Sent: Tue, 2 Dec 2008 9:41 pm
Subject: [NTG-context] Gedit in Ubuntu as a ConteXt editor










HI ConTeXt friends!

I've been using Gedit on my ubuntu system for quite some time and is
very much happy with it.

Here are some advantages:

* UTF-8 encoding by default (which is in mind for LuaTeX).

* highly configurable code snippets. reading xml-files.

* Defining your own typesetting commands and associate it with some
keycombination.



Drawbacks

* Syntax highlighting for LaTeX but works for context-specific also

* I'm not sure if it is portable to windows

* Some learning curve to learn how to create special ConTeXt plugin like
this http://live.gnome.org/Gedit/LaTeXPlugin

I've recently tested texworks but it seems missing the snippets
capabilities. 

Is it someone out there who has experience in Gedit?

Janneman
-- 
TeX Engine : LuaTeX

current version: 2008.10.31 17:32

OS : Ubuntu 8.10 Intrepid Ibex
___
If your question is of interest to others as well,20please 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
___



 


Get a FREE AOL Email account with unlimited storage. Experience Email and 
instant messaging together - chat while you mail and mail while you chat! 
Register for your free email account at http://free.aol.com.au
___
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
___


Re: [NTG-context] UTF-8 Problems with the minimals

2008-12-02 Thread Hans Hagen
Florian M. Baudach wrote:
 Hi,
 after reinstalling the minimals (my HD crashed), I have got the
 following problem:
 
 texexec doesn't recognize UTF-8 any more :-(.
 I didn't change my tex-files and enabled UTF-8 with:
 \enableregime[utf-8]
 
 Surprisingly context file.tex works. I have no idea what is wrong with
 my MKII.

fallback names have a problem, for the moment use

\enableregime[utf]

(problem fixed in alpha release)

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] muse, pandoc and context

2008-12-02 Thread Jean Magnan de Bornier
Le 02 décembre à 16:02:28 Jörg Hagmann [EMAIL PROTECTED] écrit notamment:

| Dear list members,

| Despite using a text editor (emacs) and context almost exclusively, I 
| need a way to communicate with other members of the institute. I'm 
| evaluating two possibilities:
| 1. Writing in markdown and using pandoc for conversion to either context 
| or something openable by a word processor.
| 2. Writing in emacs muse and publishing to -- see above.

| I would like to know the following:
| - Has anybody done the same and come to a conclusion? Reasons?
| - Is my impression correct that with muse one has fewer possibilities 
| such as sub/superscripts?

| I'm aware of the threads in the archive, but would like to have an 
| updated, concise opinion.

Does it mean you are aware of the context publishing style in muse? If so,
did you encounter any problem?

Otherwise, have a look at:

http://wiki.contextgarden.net/ConTeXt_and_emacs-muse

and (in french):

http://jm.bornier.free.fr/muse/muse.html

cheers,
-- 
Jean
___
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
___


Re: [NTG-context] muse, pandoc and context

2008-12-02 Thread Jörg Hagmann


Jean Magnan de Bornier wrote:
 Does it mean you are aware of the context publishing style in muse? If so,
 did you encounter any problem?
   
Yes, I'm aware of it and no, no problems so far.
But before committing myself to either markdown/pandoc or muse, I would 
like to have opinions. For example: subscripts would be CO~2~, 
superscripts Ca^2+^ in markdown, what would you write in muse? Inclose 
it between math tags? Wouldn't be convenient.
 and (in french):

 http://jm.bornier.free.fr/muse/muse.html
   
Thanks, I didn't know this one.

Cheers, Jörg
___
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
___


Re: [NTG-context] vertical alignment in footer

2008-12-02 Thread Wolfgang Schuster

Am 23.11.2008 um 19:20 schrieb Zoho Vignochi:

 Hello:

 I am a recent convert from LaTeX to conTeXt. kudos to all the  
 developers!
 I have read through the wiki and as many tutorials/manuals as I can  
 find.

 My problem is that I have a footer which includes a logo. I would like
 all the elements in the footer to be vertically centred, where as now
 they are aligned along the bottom.

 Here is my code:

 \startsetups footer
   \hfill
   \pagenumber
   \hfill
   \llap{\externalfigure[logo]}
 \stopsetups

\setupfooter
   [before=\vss,
after=\vss]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] UTF-8 Problems with the minimals

2008-12-02 Thread Florian M. Baudach
Hans Hagen schrieb:
[ ...]
 fallback names have a problem, for the moment use
 
 \enableregime[utf]
 
 (problem fixed in alpha release)

It works. Thank you.



___
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
___


Re: [NTG-context] muse, pandoc and context

2008-12-02 Thread Jean Magnan de Bornier
Le 02 décembre à 17:44:02 Jörg Hagmann [EMAIL PROTECTED] écrit notamment:

| Jean Magnan de Bornier wrote:
|  Does it mean you are aware of the context publishing style in muse? If so,
|  did you encounter any problem?
|
| Yes, I'm aware of it and no, no problems so far.
| But before committing myself to either markdown/pandoc or muse, I would 
| like to have opinions. For example: subscripts would be CO~2~, 
| superscripts Ca^2+^ in markdown, what would you write in muse? Inclose 
| it between math tags? Wouldn't be convenient.

Well this is chemical notation I guess? On the muse list I never saw
anything about it, I believe something exists in context. Some interface
might probably be written but I don't believe it exists now.

Cheers,
-- 
Jean
___
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] widow/orphan control in columns?

2008-12-02 Thread Lars Huttar
Hello,

We have a document with a 2-column layout where we have section headers
that keep ending up at the bottom of columns.
E.g.

\startsectionheading{2. Foo bar baz}\stopsectionheading

where \startsectionheading is defined by:

\definestartstop
  [sectionheading]
  [before={ \startalignment[middle]},
   after={\stopalignment \bigskip},
   style={\switchtobodyfont[...,...]}]

In order to make sure this section heading gets followed by a line or
two of actual text, I saw on web pages [1] and [2] that you can use
\testpage[n] to check whether there is room for n more lines, and if
not, to produce a page break. I checked the manual [3] and command
reference [4] but couldn't find information about \testpage.
Is there a corresponding command to conditionally produce a column break?

Thanks,
Lars

[1] http://getfo.org/context_xml/page4.html
[2] http://wiki.contextgarden.net/Layout
[3] http://www.pragma-ade.com/general/manuals/cont-eni.pdf
[4] http://texshow.contextgarden.net/

___
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
___


Re: [NTG-context] widow/orphan control in columns?

2008-12-02 Thread Lars Huttar
On 12/2/2008 1:45 PM, Lars Huttar wrote:
 Hello,
 
 We have a document with a 2-column layout where we have section headers
 that keep ending up at the bottom of columns.
...
 I checked the manual [3] and command
 reference [4] but couldn't find information about \testpage.
 Is there a corresponding command to conditionally produce a column break?
 
 Thanks,
 Lars

I just looked at the implementation of \testpage in base/page-ini.tex
and found \testcolumn.
I imagine that should be analogous to \testpage, but hesitate to rely on
an undocumented feature, as it might be unused or obsolete code. I can't
find any examples of anyone using \testcolumn.

Yet it seems that keeping a section header with the following text in a
column would be a common layout requirement; even Microsoft Word does
it. Am I missing something?

Does anybody know if \testcolumn is intended for public use?

Thanks again,
Lars

___
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
___


Re: [NTG-context] widow/orphan control in columns?

2008-12-02 Thread Hans Hagen
Lars Huttar wrote:
 On 12/2/2008 1:45 PM, Lars Huttar wrote:
 Hello,

 We have a document with a 2-column layout where we have section headers
 that keep ending up at the bottom of columns.
 
 I checked the manual [3] and command
 reference [4] but couldn't find information about \testpage.
 Is there a corresponding command to conditionally produce a column break?

 Thanks,
 Lars
 
 I just looked at the implementation of \testpage in base/page-ini.tex
 and found \testcolumn.
 I imagine that should be analogous to \testpage, but hesitate to rely on
 an undocumented feature, as it might be unused or obsolete code. I can't
 find any examples of anyone using \testcolumn.
 
 Yet it seems that keeping a section header with the following text in a
 column would be a common layout requirement; even Microsoft Word does
 it. Am I missing something?

tex does not know about columns, so any implementation is kind of a 
hack; some time next year in mkiv we will have a more advanced 
skip/penalty model that might handle such cases

 Does anybody know if \testcolumn is intended for public use?

if it works for you ...

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] widow/orphan control in columns?

2008-12-02 Thread Hans Hagen
Lars Huttar wrote:
 Hello,
 
 We have a document with a 2-column layout where we have section headers
 that keep ending up at the bottom of columns.
 E.g.
 
 \startsectionheading{2. Foo bar baz}\stopsectionheading
 
 where \startsectionheading is defined by:
 
 \definestartstop
   [sectionheading]
   [before={ \startalignment[middle]},
after={\stopalignment \bigskip},
style={\switchtobodyfont[...,...]}]
 
 In order to make sure this section heading gets followed by a line or
 two of actual text, I saw on web pages [1] and [2] that you can use
 \testpage[n] to check whether there is room for n more lines, and if
 not, to produce a page break. I checked the manual [3] and command
 reference [4] but couldn't find information about \testpage.
 Is there a corresponding command to conditionally produce a column break?

using \testpage in one column mode is ok; i use it often (if you look in 
the source you will notice that there are several strategies related to it)

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Gedit in Ubuntu as a ConteXt editor

2008-12-02 Thread Jan-Erik Hägglöf
tis 2008-12-02 klockan 14:03 +0200 skrev Khaled Hosny:
 On Tue, Dec 02, 2008 at 11:41:12AM +0100, Jan-Erik Hägglöf wrote:
  
  * Some learning curve to learn how to create special ConTeXt plugin like
  this http://live.gnome.org/Gedit/LaTeXPlugin
 
 I spent some time porting LaTeXPlugin to ConTeXt, but I never finished
 it. It is some how usable, but some functionality is missing. The code
 is here if any one is interested:
 http://code.google.com/p/raqm/source/browse/#svn/trunk/code/gedit
 
 Regards,

 
I took the advantage and downloaded it.

Many Thanks!

Janneman
___
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
___


Re: [NTG-context] context minimals on OpenSolaris 2008.11

2008-12-02 Thread Mojca Miklavec
On Mon, Nov 24, 2008 at 2:52 PM, Michael Krauß wrote:

 How should I proceed from here? What is the status of Solaris support for 
 context minimals?


Hello,

just to let the others know ... minimals should now work on both
Solaris Intel  Sparc (thanks to Michael Krauß, Apostolos  Vladimir
Volovich).

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to use Minion Pro

2008-12-02 Thread Fengnan Gao
Hi all,

I'm learning how to use ConTeXt recently, and I find difficulty using Minion 
Pro, which can  be fully accessed using XeTeX. Here is how I use Minion Pro, 
and as far as I can see, there is no problem with the setup.


\starttypescript[all][myfont][name]
\definefontsynonym[Minion][MinionPro-Regular]
\definefontsynonym[MinionBold][MinionPro-Bold]
\definefontsynonym[MinionItalic][MinionPro-It]
\definefontsynonym[MinionBoldItalic][MinionPro-BoldIt]
\definefontsynonym[Myriad][MyriadPro-Regular]
\definefontsynonym[MyriadBold][MyriadPro-Bold]
\definefontsynonym[MyriadItalic][MyriadPro-It]
\definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt]
\stoptypescript

\definefontfeature[minion][language=dflt, script=latn, mode=node,
   frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes,
   protrusion=quality, expansion=quality]
\definefontfeature[minionsmcp][language=dflt, script=latn, mode=node,
   frac=yes, onum=yes, kern=yes, liga=yes, 
dlig=yes, smcp=yes,
   protrusion=quality, expansion=quality]
\definefontfeature[myriad][language=dflt, script=latn, mode=node,
   frac=yes, onum=yes, kern=yes, liga=yes, zero=yes,
   protrusion=quality, expansion=quality]

\starttypescript[serif][myfont][name]
\definefontsynonym[Serif][Minion][features=minion]
\definefontsynonym[SerifBold][MinionBold][features=minion]
\definefontsynonym[SerifItalic][MinionItalic][features=minion]
\definefontsynonym[SerifBoldItalic][MinionBoldItalic][features=minion]
\definefontsynonym[SerifSlanted][MinionItalic][features=minion]
\definefontsynonym[SerifBoldSlanted][MinionBoldItalic][features=minion]
\definefontsynonym[SerifCaps][MinionBold][features=minionsmcp]
\stoptypescript


\starttypescript[sans][myfont][name]
\definefontsynonym[Sans][Myriad][features=myriad]
\definefontsynonym[SansBold][MyriadBold][features=myriad]
\definefontsynonym[SansItalic][MyriadItalic][features=myriad]
\definefontsynonym[SansBoldItalic][MyriadBoldItalic][features=myriad]
\definefontsynonym[SansSlanted][MyriadItalic][features=myriad]
\definefontsynonym[SansBoldSlanted][MyriadBoldItalic][features=myriad]
\definefontsynonym[SansCaps][Myriad][features=myriad]
\stoptypescript

\definetypeface [myfont] [rm] [serif] [myfont]   [default]
\definetypeface [myfont] [ss] [sans] [myfont]   [default]
\usetypescript[myfont]




And I found there problems with the font.

1).  Even though I tried to access the otf features (as you can see in my 
code), but I cannot access that (but I have successfully accessed the Minion 
Pro font)

2). I cannot use ``--'' to produce an *endash*.

3). I cannot use *``* to produce an leftquote and *''* an right quote.

Can someone help me?

Thanks.

---
Cheers

Fengnan Gao___
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
___


Re: [NTG-context] muse, pandoc and context

2008-12-02 Thread Gour
 Jörg == Jörg Hagmann [EMAIL PROTECTED] writes:

Hello,

Jörg Dear list members, 

Jörg Despite using a text editor (emacs) and context almost
Jörg exclusively, I need a way to communicate with other members of the
Jörg institute. 

I was in the similar boat - using Emacs with muse markup but wanting to
have something which is more 'standard'- it's not that everyone is using
Emacs (yet) :-)

Jörg I'm evaluating two possibilities: 1. Writing in markdown and using
Jörg pandoc for conversion to either context or something openable by a
Jörg word processor.  

I tried with markdown and gave it up - it's too limiting for my writing
needs.

Jörg I would like to know the following: - Has anybody done the same
Jörg and come to a conclusion? Reasons?  - Is my impression correct
Jörg that with muse one has fewer possibilities such as
Jörg sub/superscripts?

I've settled on reST which is richer markup (see
e.g. http://docutils.sourceforge.net/docs/ref/rst/roles.html#subscript)
which is more standard than 'muse' and it enables easy conversion to
*.html (e.g. sphinx produces nice output from *.reST), and there is even
direct conversion to pdf with rst2pdf. Of course, you can enjoy rst-mode
as well.

In regard to the ConTeXt side of the equation, I hope that Pandoc will
get full parser for reST and then it will be possible to use it produce
nice ConTeXt as well (see Pandoc' archive) or we should write and/or ask
(I did) for ConTeXt back-end in docutils ;)


Sincerely,
Gour

-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D



pgpO1x3dPc0RO.pgp
Description: PGP 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Centering an image in framed.

2008-12-02 Thread Bart C. Wise
I am using framed and externalfigure commands.  I want to put a rule around the 
image; however, the image has space around all sides.  It appears that the 
top, right, and left sides has the same gap.  However, the bottom side has a 
huge (by comparison) gap.  So I can't use a negative offset to fix the problem.
How do I center the image  place a border?

\framed[location=middle,height=fit,width=fit,rulethickness=1.0pt]{%
\externalfigure[image-01.png][maxwidth=3cm,maxheight=4cm]
}

Thanks,
Bart

___
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
___


Re: [NTG-context] Centering an image in framed.

2008-12-02 Thread Bart C. Wise
On Wednesday 03 December 2008 12:23:05 am Bart C. Wise wrote:
 I am using framed and externalfigure commands.  I want to put a rule around
 the image; however, the image has space around all sides.  It appears that
 the top, right, and left sides has the same gap.  However, the bottom side
 has a huge (by comparison) gap.  So I can't use a negative offset to fix
 the problem. How do I center the image  place a border?

 \framed[location=middle,height=fit,width=fit,rulethickness=1.0pt]{%
 \externalfigure[image-01.png][maxwidth=3cm,maxheight=4cm]
 }

 Thanks,
 Bart
Solved!

I figured it out (after 400 attempts).  By adding the strut=no, that centered 
the picture without differing offsets, then I added the offset=0pt.  Now the 
image is centered with a border.

\framed[
frameoffset=0pt,
height=fit,
location=middle,
rulethickness=1.0pt,
offset=0pt,
strut=no,
width=fit,
]{%
\externalfigure[image-01.png][maxwidth=3cm,maxheight=4cm]
}

___
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
___


Re: [NTG-context] Centering an image in framed.

2008-12-02 Thread Hans Hagen
Bart C. Wise wrote:
 I am using framed and externalfigure commands. I want to put a rule 
 around the image; however, the image has space around all sides. It 
 appears that the top, right, and left sides has the same gap. However, 
 the bottom side has a huge (by comparison) gap. So I can't use a 
 negative offset to fix the problem.

strut=no

 How do I center the image  place a border?
 
 \framed[location=middle,height=fit,width=fit,rulethickness=1.0pt]{%
 
 \externalfigure[image-01.png][maxwidth=3cm,maxheight=4cm]
 
 }

\framed[strut=no,offset=2mm,rulethickness=1.0pt]{...}

or just

\externalfigure[image-01.png][maxwidth=3cm,maxheight=4cm,frame=on]

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to use Minion Pro

2008-12-02 Thread Mohamed Bana
Feedback welcome.

Make sure you use LuaTeX, add % engine=luatex right at the beginning 
of the main file.

\starttypescript [serif] [minionpro]
   \definefontsynonym [MinionPro-Regular][name:minionproregular]
   \definefontsynonym [MinionPro-Bold]   [name:minionprobold]
   \definefontsynonym [MinionPro-Italic] [name:minionproit]
   \definefontsynonym [MinionPro-BoldItalic] [name:minionproboldit]
\stoptypescript

\starttypescript [serif] [minionpro]
   \definefontsynonym [Serif]   [MinionPro-Regular] 
[features=default]
   \definefontsynonym [SerifBold]   [MinionPro-Bold] 
[features=default]
   \definefontsynonym [SerifItalic] [MinionPro-Italic] 
[features=default]
   \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic] 
[features=default]
   % \definefontsynonym [SerifSlanted] [SerifItalic] 
[features=default]
   \definefontsynonym [SerifCaps]   [Serif] 
[features=smallcaps]
\stoptypescript

\starttypescript [sans] [myriadpro]
   \setups[font:fallback:sans]
   % \definefontsynonym [MyriadPro-Regular][name:MyriadPro-Regular] 
[features=default]
   % \definefontsynonym [MyriadPro-Bold]   [name:MyriadPro-Bold] 
[features=default]
   % \definefontsynonym [MyriadPro-Italic] [name:MyriadPro-It] 
[features=default]
   % \definefontsynonym [MyriadPro-BoldItalic] [name:MyriadPro-BoldIt] 
[features=default]
   \definefontsynonym [MyriadPro-Regular][name:myriadproregular]
   \definefontsynonym [MyriadPro-Bold]   [name:myriadprobold]
   \definefontsynonym [MyriadPro-Italic] [name:myriadproit]
   \definefontsynonym [MyriadPro-BoldItalic] [name:myriadproboldit]
\stoptypescript

\starttypescript [sans] [myriadpro]
   \definefontsynonym [Sans] [MyriadPro-Regular] 
[features=historic]
   \definefontsynonym [SansBold] [MyriadPro-Bold] 
[features=historic]
   \definefontsynonym [SansItalic]   [MyriadPro-Italic] 
[features=historic]
   \definefontsynonym [SansBoldItalic]   [MyriadPro-BoldItalic] 
[features=historic]
   \definefontsynonym [SansCaps] [Sans] 
[features=latin-smallcaps]
\stoptypescript


%%% Then i've got this in the file i want to typeset %%%

\def\sc{\setfontfeature{smallcaps}}

\definefontfeature
 [default][default]
 [protrusion=quality,expansion=quality,mode=node,script=latn]

\definefontfeature
 [oldstyle][default]
 [protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes]

\definefontfeature
 [smallcaps][default]
 [protrusion=quality,expansion=quality,mode=node,script=latn,smcp=yes]

\usetypescript  [serif]   [hanging] [pure]
\setupalign [hanging]

\usetypescriptfile[type-folio]
\definetypeface[mainface][rm][serif][minionpro] [default] 
[features=default]
\definetypeface[mainface][ss][sans][myriadpro] [default] [features=default]
\definetypeface [mainface] [mm] [math]  [palatino] [default] 
[encoding=texnansi]
\setupbodyfont[mainface,12.5pt]

\setfontfeature{oldstyle}
...
text


%%% xetex %%%
\definefontfeature[default][deault][script=latn,onum=yes]
\definetypeface[myface][rm][Xserif][Minion Pro]
\definetypeface[myface][ss][Xsans][Myriad Pro]
\definetypeface[myface][tt][Xmono][Consolas]
\setupbodyfont[myface, 12pt]
...
text


Fengnan Gao wrote:
 Hi all,
  
 I'm learning how to use ConTeXt recently, and I find difficulty using 
 Minion Pro, which can  be fully accessed using XeTeX. Here is how I use 
 Minion Pro, and as far as I can see, there is no problem with the setup.
  
  
 \starttypescript[all][myfont][name]
 \definefontsynonym[Minion][MinionPro-Regular]
 \definefontsynonym[MinionBold][MinionPro-Bold]
 \definefontsynonym[MinionItalic][MinionPro-It]
 \definefontsynonym[MinionBoldItalic][MinionPro-BoldIt]
 \definefontsynonym[Myriad][MyriadPro-Regular]
 \definefontsynonym[MyriadBold][MyriadPro-Bold]
 \definefontsynonym[MyriadItalic][MyriadPro-It]
 \definefontsynonym[MyriadBoldItalic][MyriadPro-BoldIt]
 \stoptypescript
 
 \definefontfeature[minion][language=dflt, script=latn, mode=node,
frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes,
protrusion=quality, expansion=quality]
 \definefontfeature[minionsmcp][language=dflt, script=latn, mode=node,
frac=yes, onum=yes, kern=yes, liga=yes, 
 dlig=yes, smcp=yes,
protrusion=quality, expansion=quality]
 \definefontfeature[myriad][language=dflt, script=latn, mode=node,
frac=yes, onum=yes, kern=yes, liga=yes, zero=yes,
protrusion=quality, expansion=quality]
 
 \starttypescript[serif][myfont][name]
 \definefontsynonym[Serif][Minion][features=minion]
 \definefontsynonym[SerifBold][MinionBold][features=minion]
 \definefontsynonym[SerifItalic][MinionItalic][features=minion]