Re: [NTG-context] formula, bookmarks and misc

2006-11-01 Thread Sebastian Rooks
Thank you !
Any tip for getting numbered bookmarks (question 3) ?
Regards,

  Seb

Wolfgang Schuster wrote:
 
 Hi Sebastian,
 
  
 2006/10/29, Sebastian Rooks [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:
 
 Dear ConTeXters,
 
 1/ I would like to use a named formula with a reference containing
 several subformulae each with a reference. The closer I can get to
 is to
 add an empty namedformula followed by subformulae (see test file below).
 How can I get rid of the empty line with a number in the pdf ?
 
 2/ I'm using bookmarks but abbreviations in heads do not work properly.
 I've used a workaround some 3 years ago but I cannot remember which. Any
 suggestion ? (see test file below)
 
  
 
 \setupinteraction[state=start]
 
 \appendtoks \def\UK{UK} \to \simplifiedcommands
 
 \placebookmarks[chapter,section,subsection]
 
 \abbreviation [UK] {UK} {United Kingdom of Great Britain and Northern
 Ireland}
 
 \starttext
 
 \chapter{Weather in the \UK}
 \dorecurse {2} {\input dawkins \par}
 
 \stoptext
 
 
 3/ What should I do to get the bookmarks numbered with their
 chapter/section/ etc. number ? (see test file below)
 
 4/ How can I redefine the \vec command in my formulae without having a
 warning system  : command \vec is already defined
 
 5/ I do like a lot the minimum distribution so easy to install. It
 would
 be even better if bibtex can be added. It's only 82.8 KiB
 
 Thanks for ConTeXt (special thanks to Hans and Taco of course), it's
 really a pleasure to work with it.
 
 Regards,
 
 Seb
 
 
 test.tex
 %%%%%
 
 \setupinteraction[state=start]
 
 \placebookmarks[chapter,section,subsection]
 
 \abbreviation [UK]  {UK}{United Kingdom of Great Britain and
 Northern
 Ireland}
 
 \starttext
 \placelist[formula]
 \chapter{Math formulae}
 
\placenamedformula
  [eq:well_known]
  {Well known equalities}
  \startformula
  \stopformula
\placesubformula[eq:first]{a}
\startformula
  1+0=1
\stopformula
 
\placesubformula[eq:second]{b}
\startformula
  1+1=2
\stopformula
 
 
 \chapter{Weather in the \UK}
 \dorecurse {2} {\input dawkins \par}
 
 \stoptext
 ___
 ntg-context mailing list
 ntg-context@ntg.nl mailto:ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 
 Wolfgang
  
 
 
 
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] formula, bookmarks and misc

2006-10-29 Thread Sebastian Rooks
Hi Aditya,

Aditya Mahajan wrote:
 1/ I would like to use a named formula with a reference containing
 several subformulae each with a reference. The closer I can get to is to
 add an empty namedformula followed by subformulae (see test file below).
 How can I get rid of the empty line with a number in the pdf ?
 
 I took a different approach to this. I had written some macros that do 
 automatic subformula numbering, and I added a macro there to do have a 
 named subformulas. See the code at the end. 
Works very well thank you.
Can I add this to the wiki ?


 5/ I do like a lot the minimum distribution so easy to install. It would
 be even better if bibtex can be added. It's only 82.8 KiB
 
 bibtex is part of the minimal distribution for windows. It is in 
 texmf-mswin/bin/
It's not in texmf-linux for the stable release.

Thank you for your help. Regards,

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


[NTG-context] formula, bookmarks and misc

2006-10-28 Thread Sebastian Rooks
Dear ConTeXters,

1/ I would like to use a named formula with a reference containing
several subformulae each with a reference. The closer I can get to is to
add an empty namedformula followed by subformulae (see test file below).
How can I get rid of the empty line with a number in the pdf ?

2/ I'm using bookmarks but abbreviations in heads do not work properly.
I've used a workaround some 3 years ago but I cannot remember which. Any
suggestion ? (see test file below)

3/ What should I do to get the bookmarks numbered with their
chapter/section/ etc. number ? (see test file below)

4/ How can I redefine the \vec command in my formulae without having a
warning system  : command \vec is already defined

5/ I do like a lot the minimum distribution so easy to install. It would
be even better if bibtex can be added. It's only 82.8 KiB

Thanks for ConTeXt (special thanks to Hans and Taco of course), it's
really a pleasure to work with it.

Regards,

  Seb


test.tex
%%%%%

\setupinteraction[state=start]

\placebookmarks[chapter,section,subsection]

\abbreviation [UK]  {UK}{United Kingdom of Great Britain and Northern
Ireland}

\starttext
  \placelist[formula]
  \chapter{Math formulae}

\placenamedformula
  [eq:well_known]
  {Well known equalities}
  \startformula
  \stopformula
\placesubformula[eq:first]{a}
\startformula
  1+0=1
\stopformula

\placesubformula[eq:second]{b}
\startformula
  1+1=2
\stopformula


\chapter{Weather in the \UK}
\dorecurse {2} {\input dawkins \par}

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


Re: [NTG-context] setupheadertexts + kap/uppercase

2006-01-21 Thread Sebastian Rooks

Hello,

Did you try with a \fetchmark[chapter][first] as explained on the wiki ?

http://wiki.contextgarden.net/Headers_and_Footers , section 2 Using 
capitals


Yours,

  SeB

Tobias Burnus a écrit :

Hello,

I think I have a expand problem.

I want to have
 
\setupheadertexts[pagenumber][{\getmarking[chapter][current]}][section][pagenumber]

with the chapter in \uppercase/\kaps. The problem is that
adding a \uppercase or  \kap before the {\getmarking} ends up with
nothing and all my attemps with expand* ended up with either the same
result or with a TeX error message.

Using \setupheader[style=kap] (or =cap) does not work - as TeX bails out:
! Undefined control sequence.
\p!doifinstringelse ...ifinstringelse #2#1}@@\war

Any idea how to solve this?

Tobias

PS: I just saw that I asked the same question two years ago (15 January
2004):
http://www.mail-archive.com/ntg-context@ntg.nl/msg02175.html
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



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


Re: [NTG-context] Newbie question: background color in single table row

2005-09-19 Thread Sebastian Rooks

Welcome !

The Wizard wrote:

All -
   I have a simple table which looks like this:


skipped some code


I would like to add a background color to the first row only.

Try this minimal example (tested on live.contextgarden.net):

\starttext
\setupcolors[state=start]
\placetable[here]{none}
\starttable[|c w(3.0cm)|c|c w(2.75cm)|c w(7.0cm)|]
\HL
\CL[green]\AR
\VL \bf Name \VL \bf Location \VL \bf Date \VL \bf Signature \VL \AR
\HL
\VL
\VL
\VL
\VL
\VL
\AR
\HL
\stoptable
\stoptext



I have only just started using ConTeXT, never used TeX or LaTeX before,
so I'm still trying to understand everything I read in the manuals, and
searching the list archive. I can not seem to make the more HTML-ish
tables work the way I want (e.g, \bTABLE...\eTABLE) so I'd like to be
able to get where I want to go using the table I have.


You missed the wiki:
  http://wiki.contextgarden.net

and in particular Guiseppe Bilotta contribution on TaBlE, less than one 
day old :-) :

  http://wiki.contextgarden.net/Table

Happy ConTeXting,

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


Re: [NTG-context] New context Release notes

2004-12-07 Thread sebastian . rooks
Hello,

In http://contextgarden.net/Context_2004.12.06 :
ctxtools.rb: no understands a new option, --jeditinterface (generates syntax
 descriptions for 'jedit')

Great news for a jedit user. How could I use it ?

Thanks,

  Seb

Selon Taco Hoekwater [EMAIL PROTECTED]:

 Hi there,

 For those of you who are interested, Hans has released a new ConTeXt last
 week, and I've created a release notes pages for it here:

   http://contextgarden.net/Context_2004.12.06

 Highlights:
 * texfont.pl is now version 2.2.1. From now on, it uses internal filename
   globbing (using a new switch: --pattern=wildcard) instead of the shell
   wildcard expansion.
   Obviously, this means that the commandline has changed.

 * most other changes are bugfixes, follow the link for those.

 Greetings, Taco

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



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


Re: [NTG-context] unicode editor?

2004-07-26 Thread sebastian . rooks
Hello,
What about Mined http://towo.net/mined/ ?
It's utf-8 and right to left.
Untested ;).

 Seb.

Selon Giuseppe Bilotta [EMAIL PROTECTED]:

 Monday, July 26, 2004 ishamid wrote:

  [for forwarding to the list]
  Dear knights of the round table,

  I generally do my Arabic work in Aleph/eomega in Latin transcription mode,
 but
  things are at a point now where I would like to code TeX using unicode (and
 a
  unicode otp filter). Now I use WinEdT and really love it (I even designed
  buttons for for a few functions), but the maintainer has indicated that it
  will be quite some time before WinEdT supports unicode+right-to-left
  typesetting. Are any of you aware of a good multi-platform (thinking of
  switching to Linux again) unicode editor? (and no, at this time I'm not
 ready
  to spend months (re-)learning/fighting/cursing XEmacs;- (could never get
 MULE
  to work anyway...))


 I personally use ViM, even though its support for TeX  friends
 is very limited.

 --
 Giuseppe Oblomov Bilotta





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



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


[NTG-context] ConTeXt's CD

2004-04-03 Thread sebastian . rooks

Hello,
I'm trying ConTeXt on CD using
   http://www.pragma-ade.com/context/tex.iso.bz2

First of all: it is really amazing ! Everything needed for ContTeXt on one CD
and ready to use. I'll keep this CD in my pocket for now :-)

Since I'm a nasty user, here are a suggestion and some problems:
1/ What about adding a shortcut to cscite.bat under the CD's root or an
autorun.inf? It would be much more natural than usr/local/context/cscite.bat 

2/ With the last version, 29-Mar-2004 21:35, when I try to compile readme.tex
(copied on hard-disk and opened with scite) with Ctrl+F7 (concheck readme.tex)
I've got a file not found error.

3/ When I try to build the same file I've got the following error:
fonts  : [palatino] [texnansi] []
! I can't find file `.\type-syn'.
to be read again 
   \relax 
\dodoreadfile ...normalinput \readfilename \relax 
  \the \everyafterreadfile 
\dododousetypescript ...ile \donothing \donothing 
  \popmacro \currenttypefile...

\next1 #1,-\dododousetypescript {#1}
 \doprocesscommaitem 
argument \relax type-syn,
   type-enc,type-siz,type-map,type-spe,type-exa,type...

\doprocesscommalist ...aitem \gobbleoneargument #1
  ,]\relax \global \advance ...
...
l.5 \setupbodyfont
  [palatino,12pt]
Please type another input file name: 


If I replace 
   \usetypescript[palatino][\defaultencoding]
   \setupbodyfont[palatino,12pt]

with
   \setupbodyfont[12pt]

A readme.pdf file is produced.

4/ I can open the readme.pdf file with acrobat but Crtl+2 (Tools/View PDF file)
a message box pop up with the message:
Error while launching gsview32.exe with Params: readme.pdf The specified
file was not found.


Thank you once again Mr Hagen, for ConTeXt and now for its CD :-)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] The smallest instalation for work with ConTeXt and MetaFun (TeXLive8) ?

2003-10-06 Thread Sebastian Rooks
^Nitram^ wrote:

Hi,

Anybody has an experience with TeXLive (8 or 7) - what is the smallest
installation type for working with ConTeXt and (absolutely necessary)
MetaFun - I tried 'generic basic' and 'generic recommended' but I
can't make MP graphics - I have a problem with it again ;(
Of course 'full' installation works fine, but I have no idea what I
need in smaller installation to working fine...
Probably I forgot change something (again) in config files - in log I
have:
This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2) (format=cont-en 2003.10.6)  
6 OCT 2003 04:15
entering extended mode
%-line parsing enabled.
...
\openout0 = `_back-mpgraph.mp'.
\openout0 = `_back-mprun.mp'.
\openout0 = `mpgraph.mp'.
\openout0 = `mprun.mp'.
...
[MP to PDF] (./_back-mpgraph.1) [2.2]
\openout5 = `_back-mpgraph.mp'.
mpost  -progname=mpost -mem=metafun _back-mpgraph
system()...disabled.
...

and no graphic in pdf. But when I run mpost _back-mpgrapg.mp I have
_back-mpgraph.1 file and another run of context includes graphic (this
one) to pdf. What may be wrong ?
 

It seems you didn't enable system commands via \write18{...}.
In your texmf-local\web2c\texmf.cnf do you have (as stated page 9 of 
minstall.pdf):

* The WEB2C configuration *
Although not stricktly needed, ConTEXt will operate more smoothly when 
these features are set in the file texmf.cnf.
openout_any = a
shell_escape = t
allow_multiple_suffixes = f
The first line permits ConTEXt to open parent paths that can hold common 
styles.
The second line enables enables users to embed METAPOST code in their 
document.
As a result, METAPOST is called automatically. The last line makes sure 
that when
opening files like somefile.tuo, TEX will not try to open 
somefile.tuo.tex first.
When you embed TEX code in a METAPOST definition, using btex ... etex, 
the next
line will use TEXexec to process that fragment in the case of using 
METAPOST directly.
MPXCOMMAND=texexec ­mptex

Does it help you ?

 Seb.

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


Re: [NTG-context] Stumped on Field

2003-08-05 Thread Sebastian Rooks
[EMAIL PROTECTED] wrote:

All,

In s-mag-01.tex, I am completely baffled by:

\startusableMPgraphic{text}
StartPage ;
 for i=Header,Text,Footer:
  for j=LeftEdge,LeftMargin,Text,RightMargin,RightEdge:
   draw Field[i][j] withpen pencircle scaled 0.5pt;
  endfor;
 endfor;
StopPage;
setbounds currentpicture to Field[Text][Text] ;
\stopusableMPgraphic
I can find no references of Field anywhere, not in s-mag-01, nor in any
files in my texmf tree, nor in documentation, ...
Huh?

Hi,
See metapost\context\base\mp-page.mp
and the manuel metafun-s.pdf, pages 282 and following
 Seb.

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


Re: [NTG-context] Lucida again

2003-08-02 Thread Sebastian Rooks
David Arnold wrote:

Hi David,
With MikTeXt you have to install the font. The easiest way is to use 
texfont.
Have a look at the My Way Texfont Examined by Adam Lindsay at the 
ConTeXt Portal
http://www.pragma-ade.com:8080/context/MyWays
It's for texlive on linux but you should be able understand how to use 
texfont for MikTeX. (do not forget to read the part where it is said 
that the source and destination files should be in the same tree)
texfont type-tmf.dat --en=texnansi
will not be enought since lucida is not defined in type-tmf.dat
The sample file generated should help you write a proper typescript file.
It is just some hints since I installed some urw polices roughtly that 
way a few month ago.
I'm really sorry but I can't help you further right now (no time).
Anyway, I hope it will be helpful.
Good luck ;-)  ,

 Seb.



Hello,

I am using the latest version of Miktex. This compiles just fine using
pdflatex.
\documentclass{article}

\usepackage{lucidabr}

\begin{document}

Now is the time.
\begin{equation}
 \label{eq:1}
 f(x)=x^2-2x-3.
\end{equation}
\end{document}

But I don't understand how to use my Lucida YandY fonts in Context. I read
and reread mfonts.pdf and it makes no sense to me. I tried:
\setupoutput[pdf]

\usetypescript[lbr]
\setupbodyfont[lbr]
\starttext

Hello.

\stoptext

But I got this when I tried to compile.

) (F:\miktex\tex\context\base\type-spe.tex)
(F:\miktex\tex\context\base\type-exa.tex))makemf --verbose ec-lbr
cannot find ec-lbr source file.
hbf2gf -q -g ec-lbr 300
MAKETFM: don't know how to make ec-lbr
! Font \*12ptrmtf*=ec-lbr at 12.0pt not loadable: Metric (TFM) file not found.
to be read again
  \relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
 \let
\localrelativefontsiz...
\fontstrategy ...ame #1\csname #2#3#4#5\endcsname
 \tryingfontfalse \fi
inserted text ...yle \fontalternative \fontsize
 \fi \iftryingfont
\fontstr...
\synchronizefont ...strategy \the \fontstrategies
 \relax \fi
\ifskipfontchar...
argument \getvalue [EMAIL PROTECTED]@ \fontstyle }
  \edef \fontstyle {\fontstyle
}\if...
...
l.4 \setupbodyfont[lbr]
Can someone tell me how to proceed?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
 



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


Re: [NTG-context] Problem with math item in table of contents

2003-08-01 Thread Sebastian Rooks
Tobias Burnus wrote:

Hi,
what about \chapter{a\vert b} ?
 Seb.

PS: Did you get any answer for this one of your previous question :

Hello all,

(repost)

I have the following problem:
Using
 \setuppagenumbering[location={footer,right}]
 \startbodymatter
 \chapter{Hi}
 \stopbodymatter
I always get 3 pages, but I want to have two: The recto with Hi and its
verso, I don't want to have an extra recto!
Tobias
I would be pleased to know how to get rid of this extra page.

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


Re: [NTG-context] bodymatter and alternative=doublesided, XML documentation

2003-07-25 Thread sebastian . rooks
Selon Tobias Burnus [EMAIL PROTECTED]:

 Hi,

[...] 
 Is there a nice way to setup
 frontmatter to use roman numerals and bodymatter arabic numerals
 starting from 1?

 
 I know I can use \setupsectionblock[][before=\bgroup\setup...]
 but is there something nicer?
What's wrong with this :
\starttext

\setuppagenumbering[conversion=romannumerals]

\startfrontmatter
  \completecontent
\stopfrontmatter

% \setuppagenumber[number=1] % Uncomment to restart numbering
  \setuppagenumbering[conversion=numbers]

\startbodymatter
  \chapter{First}
\dorecurse{5}{\input tufte\par \input knuth\par}

  \chapter{Second}
\dorecurse{5}{\input tufte\par \input knuth\par}
\stopbodymatter

\stoptext

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


Re: [NTG-context] Downloading page

2003-07-07 Thread sebastian . rooks
Quoting [EMAIL PROTECTED]:

Hi,
 For some time now I've been checking for new beta. It's still 2003-04-29.
 Has the downloading URL changed recently?
No, it's the date which is wrong.
In fact it links to the latest beta: 2003-07-03(just checked).
Bye,

Seb.

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


Re: [NTG-context] Resetting an enumeration

2003-07-02 Thread Sebastian Rooks
Hi,
cont-eni.pdf  p222 (bottom) :
A number can be set and reset with the command:
   \setenumeration{value}
   \resetenumeration
Does it help ?
My 2 cents,
  Seb.

Adam Tee wrote:

Hi,

In my source I have defined a new enumeration using the following

\defineenumeration
  [mwfr]
  [location=left,
   text=MWFR]
what I want to do is reset the number and specify the number.

i.e.
MWFR 1 - text
MWFR 2 - text
MWFR 3 - text
MWFR 1
MWFR 2
MFWR 4
Is the solution straight forward.

Thanks

Adam

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

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