Dear gang,
A couple of apparent bugs, apparently related:
[ConTeXt ver: 2005.08.15 fmt: 2005.8.20 int: english mes: english]
==================================================
% output=pdf interface=en
\starttext
Test.\footnote{Test}
Test.\footnote{Test}
\stoptext
==================================================
The footnote numeral `1' is indented further than the footnote numeral `2'.
Similarly:
==================================================
% output=pdf interface=en
\useURL
[Pragma1]
[http://www.pragma-ade.com/download-1.htm]
[]
[{\sc Pragma}]
\useURL
[Pragma2]
[http://www.pragma-ade.com/download-1.htm]
[]
[{\sc Pragma}]
\starttext
\Context\ can be downloaded from \from[Pragma1].
\Context\ can be downloaded from \from[Pragma2].
\stoptext
==================================================
The first `Pragma' is indented further than the second.
Please advise.
Best
Idris
============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
Dear gang,
Another apparent bug:
[ConTeXt ver: 2005.08.15 fmt: 2005.8.20 int: english mes: english]
==================================================
% output=pdf interface=en
\starttext
\Context\
\stoptext
==================================================
The first letter of the logo is roman; the rest of the logo is typewriter.
Why?
Best
Idris
============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
>can someone tell me, how to set the counter of footnotes (e.g., one back,
>or to zero)?
Play with this:
==============================================
% output=pdf interface=en
\starttext
Test.\footnote{Test}
Test.\footnote{Test}
\resetnumber[footnote]
Test.\footnote{Test}
Test.\footnote{Test}
\incrementnumber[footnote]
Test.\footnote{Test}
Test.\footnote{Test}
\decrementnumber[footnote]
\decrementnumber[footnote]
\decrementnumber[footnote]
Test.\footnote{Test}
Test.\footnote{Test}
\stoptext
==============================================
Hans, can one add an option like
\decrementnumber[2][footnote]
to subract 2 instead of declaring the command three times?
Best
Idris
============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
Hi Albrecht,
>is it possible to insert hyperlink references in ConTeXt, in analogy to
>the \href command in LaTeX?
You may play with this:
================================================
% output=pdf interface=en
\useURL
[Pragma]
[http://www.pragma-ade.com/download-1.htm]
[]
[{\sc Pragma}]
\useURL
[Pragma2]
[http://www.pragma-ade.com/download-1.htm]
[]
[{\tt http://www.pragma-ade.com/download-1.htm}]
\setupcolors[state=start]
\setupinteraction[state=start,color=darkgreen]
\starttext
\Context\ can be downloaded from \from[Pragma].
\Context\ can be downloaded from \from[Pragma2].
\stoptext
================================================
Best
Idris
============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
>===== Original Message From Albrecht Kauffmann <alkauffm(a)rz.uni-potsdam.de>
=====
>Hi all,
>
>is it possible to insert hyperlink references in ConTeXt, in analogy to
>the \href command in LaTeX?
>
>
>With many thanks in advance
>Albrecht
>
>
>_______________________________________________
>ntg-context mailing list
>ntg-context(a)ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
In article <43315a5f$0$19280$626a14ce(a)news.free.fr>,
Seb <s-loulou(a)laposte.net> wrote:
> Bonjour !
>
> je suis habitué à TeX, mais j'aimerais passer à LaTeX car certaines
> macros comme minipage me plaisent particuleirement ainsi que les liens
> hyperref, prosper ...
Si tu es habité à TeX, et que tu cherche quelque chose de plus évolué
(mais avec compatibilité ascendante),
qui conserve la philosophie TeX au niveau des commande
(commandes fréquentes courtes, pas d'abus d'accolades,...),
et qui soit à la fois plus puissant tout en restant cohérent et sans
devenir une usine à gaz de packages incompatibles entre eux,
je te conseille de regarder ConTeXt. C'est un format "concurrent" à
LaTeX.
ConTeXt qui représente à mon sens l'arlésienne "LaTeX3"...
Sauf que ConTeXt est plutot équivalent à "LaTeX" + "LaTeX compagnon"
+ "LaTeX graphique compagnon" (prosper + ...)
Pour donner une idée, les environnements latex
s'expriment par
\begin{toto)
\end{toto}
en context ça donne :
\starttoto
\stoptoto
sauf toutes les commandes hérite d'un comportement par défaut qui peut
être modifier par des option du type [key1=val1,..] (à la pstricks)
L'environnement toto ci-dessus dispose donc automatiquement
d'une commande :
\setuptoto[key1=val1,...]
Voilà, tout n'est pas rose cependant, et le bouquin de référence
n'est pas encore commercialisé.
Pour en savoir plus :
http://wiki.contextgarden.net/
Il y a aussi une mailing list très actives (et ractive)
Bonne lecture,
-- Maurice,
P.S. regarge aussi la doc de Metafun une extension de Metapost pour
faire les dessins qui est directement intégrée à ConTeXt)
> Maintenant, je trouve que c'est nettement moins souple que le TeX : par
> exemple ,
>
> --> comment changer l'entete et le pied de page ?
>
> --> comment changer le style d'un environnement par exemple si je veux
> que section ne soit plus en gras mais souligné ou en petites capitales ...
>
>
> merci de vos precisions,
>
> Seb.
Dear all,
I read an instruction of using a Chinese truetype font in the ConTeXt
wiki.
In the step 9, there is a mention about "test file from Lutz", but
there is no attached file.
(It is a mail from Xiao Jianfeng on 06/06/2005)
Does someone have this test file? I'd like to know how to define
typescript in this case.
Thank you.
Dalyoung
In case someone finds this experimental piece of code for highlighting
metapost inside ConTeXt useful, put:
" ConTeXt
augroup filetypedetect
au! BufRead,BufNewFile *.tex setfiletype context
augroup END
somewhere to your filetype.vim (probably after TeX) and move the
attached file to syntax\context.vim.
If you have something like
\startMPpage
draw ...
\stopMPpage,
it will do the syntax highligting for metapost inside the \start-\stop pair.
There are still some "bugs" present (see comments in file), but I don't
know how yet to get rid of them.
I downloaded SpellChecker and SuperTab (autocomplete) today from the vim
website and it works great! (see http://contextgarden.net/Vim and feel
free to add any useful stuff there)
I was astonished as I saw autocomplete work. There are only a couple of
lines with an extraordinary functionality. I think that if someone
writes a good script to convert texshow to vim syntax highlighting
script, than autocomplete will be able to provide good hints for all the
existing commands in ConTeXt and the corresponding parameters. I'll try
to see what I can do, but please don't excpect any results too soon.
Mojca
" Vim syntax file
" Language: ConTeXt
" Maintainer: Mojca Miklavec <mojca.miklavec(a)guest.arnes.si>
" Installation:
" To automatilcally load this file when a .tex file is opened, add the
" following lines to ~/.vim/filetype.vim:
"
" augroup filetypedetect
" au! BufRead,BufNewFile *.tex setfiletype context
" augroup END
"
" You will have to restart vim for this to take effect. In any case it
" is a good idea to read ":he new-filetype" so that you know what is going
" on, and why the above lines work.
" Adapted from eruby by Michael Brailsford (Thanks for the idea!)
"
" This is just a testing version.
" TODO:
" - adapt tex.vim for plain TeX + ConTeXt support only (no LaTeX!!!)
" - add MetaFun support on the top of Metapost
" - add all the possible \start ... \stop delimiters which switch the
" syntax highlighting to MetaFun, XML, JavaScript, ...
"
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
"Source the tex syntax file
runtime! syntax/tex.vim
"Set the filetype to tex to load the tex %??? ftplugins
set ft=tex
unlet b:current_syntax
" Put the metafun syntax file in @metafunTop
"
" TODO: should be changed to metafun once the support is there
" javascript should probably be adapted to PDF specification too, but it
" changes in every version anyway and doesn't work either
"
syn include @metafunTop syntax/mp.vim
" for some reason I can't make both metapost and javascript working at the same time
"syn include @javascriptTop syntax/javascript.vim
syn region metafunBlock matchgroup=metafunDelim start=#\\startMPpage# end=#\\stopMPpage# keepend contains=@metafunTop
" TODO: \startuseMPgraphic{the name} - "the name" has to be catched and
" typeset in ConTeXt, not in metapost!!!
" \start..MP.. may not be inside comments!!!
syn region metafunBlock matchgroup=metafunDelim start=#\\startMPinclusions# end=#\\stopMPinclusions# keepend contains=@metafunTop
syn region metafunBlock matchgroup=metafunDelim start=#\\startMPgraphic# end=#\\stopMPgraphic# keepend contains=@metafunTop
syn region metafunBlock matchgroup=metafunDelim start=#\\startuseMPgraphic# end=#\\stopuseMPgraphic# keepend contains=@metafunTop
syn region metafunBlock matchgroup=metafunDelim start=#\\startreusableMPgraphic# end=#\\stopreusableMPgraphic# keepend contains=@metafunTop
syn region metafunBlock matchgroup=metafunDelim start=#\\startuniqueMPgraphic# end=#\\stopuniqueMPgraphic# keepend contains=@metafunTop
syn region metafunBlock matchgroup=metafunDelim start=#\\startMPrun# end=#\\stopMPrun# keepend contains=@metafunTop
" comments have to be added, \startJScode{name}, "name" has to be catched and
" typeset in ConTeXt, not in javascript
syn region javascriptBlock matchgroup=javascriptDelim start=#\\startJScode# end=#\\stopJScode# keepend contains=@javascriptTop
syn region javascriptBlock matchgroup=javascriptDelim start=#\\startJSpreamble# end=#\\stopJSpreamble# keepend contains=@javascriptTop
hi link metafunDelim texSTatement
hi link javascriptDelim texSTatement
let b:current_syntax = "context"
" vim: set ts=4 sw=4:
Hello,
I'm wondering where to find documents about
\starttypescript and \definetypeface.
I searched in mtexfonts.pdf, mfonts.pdf,
mp-cb-en.pdf, cont-enp.pdf, no explainations,
only a few examples, so what are those
arguments for?
Regards,
Jjgod.
> - xml in not an input format but (a well structured) interchange
> format.
XML is a very good master format from which to derive all outputs. For
example, I receive wordprocessor files from academics and convert them
to XML by a combination of automated processes and hand-tagging. The XML
is then stored and maintained as the master version of that document,
and when we need to produce a new release in HTML, PDF or eBook, a new
style of PDF, a text version optimised for screen-readers, etc. we take
a snapshot of the latest XML and run it through batch production
processes - including ConTeXt for the typesetting side of things.
That might be overkill for small projects (we're currently holding 25
million words in XML), but the principle applies no matter what size of
content you have.
Duncan