[NTG-context] Bibtex doubt

2008-11-05 Thread Xan

Hi,

I'm a beginner with ConText. Before I used LaTeX and I want to switch to 
try


Now I'm preparing a simple document: resum-recerca.contex (I attach it) 
and I have a bibtex bibliography, but when I run texexec 
resum-recerca.tex, I get the References empty.


What fails?

Thanks a lot,
Xan.

PS: I attach too running.txt that outputs the texexec.
% interface=en output=pdftex

% Regime
\enableregime[utf]

% Choose a font
%\usetypescript [palatino][\defaultencoding]
\setupbodyfont [palatino,12pt]

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
\language [ca]

% Page number
\setuppagenumbering [location={footer}]

% White space between paragraphs
\setupwhitespace [big]

% Paper size
\setuppapersize [a4]

% On the grid please
\setuplayout
  [grid=yes,
   footer=0.5\footerheight,
   header=0.5\headerheight]

% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
\setupinteraction [state=start, color=lightBlue]
\setupurl[style=small, space=yes]

% Enumerate the URLs
\useURL [pragma] [{www.pragma-ade.com}]
\useURL [contextgarden] [{contextgarden.net}]
\useURL [ntg-context] [{www.ntg.nl/mailman/listinfo/ntg-context}]
\useURL [literatesolutions] 
[{literatesolutions.com/Members/guravage/tpj/askNelly/context.tex}]
\useURL [mge] [{mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

% Modules
\usemodule[bib]
\usemodule[bibltx]

% Bibliography options
%\setupbibtex[database=llibres]
\setuppublications [numbering=yes, sort=author]

% Start the text
\starttext

\midaligned{\tfb De què faré l'article?}

\midaligned{\tfx Xavier Bordoy}

%\midaligned{\tfx \currentday}

Posar el problema de Dehn.

{\bf Automatic group}: 


Bibliografia
Posar el llibre de Word processing in groups
El llibre d'en Meier
El curs de Bellaterra sobre el problema de la paraula.

\jobname

\placepublications

\completepublications

\stoptext

% Finish de text

@Book{abramowitz+stegun,
  author =	 Milton Abramowitz and Irene A. Stegun,
  title = 	 Handbook of Mathematical Functions with
  Formulas, Graphs, and Mathematical Tables,
  publisher = 	 Dover,
  year = 	 1964,
  address =	 New York,
  edition =	 ninth Dover printing, tenth GPO printing
}

@Book{HPL2000,
  editor =	 {John D. Barnsford and Ann L. Brown and Rodney R. Cocking},
  title = 	 {{How people learn: Brain, mind, experience, and school}},
  publisher = 	 {National Academy Press},
  year = 	 2000,
  address =	 {Washington, DC},
  edition =	 {expanded},
  url =		 {http://www.nap.edu/}
}
TeXExec | processing document 'resum-recerca.contex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file resum-recerca.top
TeXExec | using randomseed 956
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
 (/usr/share/texmf/web2c/natural.tcx)
entering extended mode
(./resum-recerca.contex

ConTeXt  ver: 2007.09.28 16:52 MKII  fmt: 2008.5.11  int: english/english

language: language en is active
system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkii)
(/usr/share/texmf/tex/context/base/cont-mtx.tex))
system  : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/etc/texmf/tex/context/user/cont-sys.rme
(/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-one.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3 de-texnansi:tex
nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3 fr-ec:ec-6-2:3
 es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3 it-texnansi
:texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3 nl-ec:ec-
13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3 sk-ec:ec
-17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded
specials: tex,postscript,rokicki loaded
system  : resum-recerca.top loaded
(./resum-recerca.top
specials: loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
(/usr/share/texmf/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are disabled
(/usr/share/texmf/tex/context/base/type-pre.tex)
color   : mpcmyk color space is supported
color   : mpspot color 

[NTG-context] Scite automatic compling

2008-11-05 Thread mattia schirosa
Hi,
i start use context to write my master thesis, i chose Scite tex editor how was 
advised in context wiki. I can't found a command or a tool to compile the tex 
file by Scite, is there any possibility or i have to pass by prompt control 
everytimes? When i try different layout solution is a bit annoying.
Thaks a lot.
Mattia



  Unisciti alla community di Io fotografo e video, il nuovo corso di 
fotografia di Gazzetta dello sport:
http://www.flickr.com/groups/iofotografoevideo___
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] MkII vs. MkIV

2008-11-05 Thread Wolfgang Schuster
On Wed, Nov 5, 2008 at 4:00 AM, Aditya Mahajan [EMAIL PROTECTED] wrote:
 On Tue, 4 Nov 2008, Wolfgang Schuster wrote:


 Am 04.11.2008 um 21:20 schrieb Aditya Mahajan:

 On Tue, 4 Nov 2008, Marcin Borkowski wrote:

 Hi,

 Is it normal that output from MkII and MkIV are different in terms of
 page breaks?

 Yes. In MKII the interline space is hard coded. MKIV gets the
 interline
 space from the font. So, you will get different page breaks. I
 experienced
 around 2-5 pages difference in a 100 page document.

 The interlinespace in MkII and MkIV is the same and both use a distance
 of 2.8ex between the lines.

 Yes, but ex means different dimensions in pdftex and luatex. For example

 \starttext

 1ex = \the\dimexpr1ex\relax \crlf
 2.8ex = \the\dimexpr2.8ex\relax

 \stoptext

 gives in MKII

 1ex = 5.16667pt
 2.8ex = 14.46669pt

Interesting!

\font\palatino=texnansi-uplr8a at 12pt

\starttext

1ex = \the\dimexpr\exheight\relax\crlf
2.8ex = \the\dimexpr2.8\exheight\relax

\blank

1ex = \the\dimexpr\fontdimen5\palatino\relax \crlf
2.8ex = \the\dimexpr2.8\fontdimen5\palatino\relax

\stoptext

 and in MKIV gives

 1ex = 5.172pt
 2.8ex = 14.4816pt

 The reason is that what ex means is hardcoded in MKII but MKIV gets this
 info from the font. For example, if I use palatino at 12pt, the result in
 MKII does not change, but MKIV gives

 1ex = 5.388pt
 2.8ex = 15.08641pt

 So, depending on the font, MKII and MKIV can have considerably different
 lines per page.

Thanks for the example, another point to use LuaTeX.

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] Scite automatic compling

2008-11-05 Thread Diego Depaoli
2008/11/5 mattia schirosa [EMAIL PROTECTED]:
 Hi,
 i start use context to write my master thesis, i chose Scite tex editor how
 was advised in context wiki. I can't found a command or a tool to compile
 the tex file by Scite, is there any possibility or i have to pass by prompt
 control everytimes? When i try different layout solution is a bit annoying.
Look at
http://www.pragma-ade.com/general/manuals/mscite-s.pdf

Auguri per la tesi


-- 
Diego Depaoli
___
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 avoid a page break?

2008-11-05 Thread Marcin Borkowski
Hi!

And yet another question on this topic: how to avoid a page break after

\chapter[...]

?

(I decided to define a new head, derived from chapter, which does not
begin on a page of its own, but the heading should never be at the page
bottom alone!)

Greets

-- 
Marcin Borkowski (http://mbork.pl)

- Gandalf!  A ja myślałem, że nie żyjesz.  Co prawda o sobie też byłem
tego zdania.
Sam Gamgee
___
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 avoid a page break?

2008-11-05 Thread Wolfgang Schuster
On Wed, Nov 5, 2008 at 10:57 AM, Marcin Borkowski
[EMAIL PROTECTED] wrote:
 Dnia Tue, Nov 04, 2008 at 11:25:17PM +0100, Wolfgang Schuster napisa#322;(a):
 \def\doPutTitle#1%
{\framed[frame=offwidth=\textwidth,align=middle]{#1}%
 \blank[nobreak,line]}

 And what to do if I want to use a similar to above command in

\def\doPutTitle#1#2%
  {\framed[frame=offwidth=\textwidth,align=middle]{#1\space#1}}

 \setuphead[chapter][command=\doPutTitle]

 to avoid a page break right after the title?

ConTeXt already tries to avoid page breaks after headers.

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] How to avoid a page break?

2008-11-05 Thread Marcin Borkowski
Dnia Wed, Nov 05, 2008 at 11:13:47AM +0100, Wolfgang Schuster napisa#322;(a):
 On Wed, Nov 5, 2008 at 10:57 AM, Marcin Borkowski
 [EMAIL PROTECTED] wrote:
  Dnia Tue, Nov 04, 2008 at 11:25:17PM +0100, Wolfgang Schuster 
  napisa#322;(a):
  \def\doPutTitle#1%
 {\framed[frame=offwidth=\textwidth,align=middle]{#1}%
  \blank[nobreak,line]}
 
  And what to do if I want to use a similar to above command in
 
 \def\doPutTitle#1#2%
   {\framed[frame=offwidth=\textwidth,align=middle]{#1\space#1}}

That I knew, sorry:(.

 
  \setuphead[chapter][command=\doPutTitle]
 
  to avoid a page break right after the title?
 
 ConTeXt already tries to avoid page breaks after headers.

OK.  The problem was a bit different: I started the chapter with an
itemize without [intro].  Now it works, thanks!

 
 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Najkrótszy dowcip matematyczny:
Obierzmy epsilon ujemne.
___
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] Bibtex doubt

2008-11-05 Thread Taco Hoekwater


Xan wrote:
 Hi,
 
 I'm a beginner with ConText. Before I used LaTeX and I want to switch to 
 try
 
 Now I'm preparing a simple document: resum-recerca.contex (I attach it) 
 and I have a bibtex bibliography, but when I run texexec 
 resum-recerca.tex, I get the References empty.
 
 What fails?

You have to fix this line:

%\setupbibtex[database=llibres]

Remove the % sign, and change the database to resum-reserca. by
the \setupbibtex command  you tell the bib module to use bibtex,
and bibtex to use a specific .bib file.

There is no implied magic, you have to be explicit.

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] How to avoid a page break?

2008-11-05 Thread Wolfgang Schuster
2008/11/5 Marcin Borkowski [EMAIL PROTECTED]:
 Hi!

 And yet another question on this topic: how to avoid a page break after

 \chapter[...]

 ?

 (I decided to define a new head, derived from chapter, which does not
 begin on a page of its own, but the heading should never be at the page
 bottom alone!)

\definehead[marcin][chapter]

\setuphead
  [marcin]
  [page=no]

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
___


[NTG-context] ConTeXt problem with page layout

2008-11-05 Thread Robert Blackstone
Hi list,

I am having a problem setting up the layout of my document with
\setuplayout, following the instructions in ConTeXt an excursion, p 72 and
112.

Since I want margin notes I want to specify both the margins and the edges,
which I  tried to do as follows:


\setuplayout[location=middle,leftedge=1cm,rightedge=1cm,leftmargin=3cm,rightmargin=2cm,width=13cm,height=23cm]


What I get is: no left edge, left margin 2cm right on the edge of the paper,
text 13 cm, right margin 2 cm, right edge 1 cm, empty space 16 mm.

Moreover, whatever I change in the parameters, the layout stays the same.

Has the command changed?

I am using MkII as supplied with MacTeX2008, (not updated because that
didn't work either).

Can anyone help me out?

Thanks in advance.

Robert Blackstone
___
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 avoid a page break?

2008-11-05 Thread Wolfgang Schuster
On Wed, Nov 5, 2008 at 11:50 AM, Marcin Borkowski
[EMAIL PROTECTED] wrote:
 Hi,

 one more problem with pagebreaks: I'd like to prohibit a pagebreak
 before a \startformula ... \stopformula.  What do I do?

\defineblankmethod [nobreak] {\nobreak}

\setupformulas[spacebefore=nobreak]

Not sure if this did work, try it or send a test file.

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] How to avoid a page break?

2008-11-05 Thread Marcin Borkowski
Hi,

one more problem with pagebreaks: I'd like to prohibit a pagebreak
before a \startformula ... \stopformula.  What do I do?

Greets

-- 
Marcin Borkowski (http://mbork.pl)

IHS
___
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] Minimals - problems with format: metafun.mp

2008-11-05 Thread Taco Hoekwater


Hi,

Meanwhile we found there is a timing issue inside \everyjob.
Hans is thinking really hard about a solution.

Just for verification purposes, you could try the attached,
patched t-openoffice.tex. That one should work, but it is
not a solution, just to verify the bug.

Best wishes,
Taco

luigi scarso wrote:



On Tue, Nov 4, 2008 at 1:28 PM, Hans Hagen [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Johannes Graumann wrote:
  No changes in error message. I attach the code that doesn't work
like so:
 
  context --ctx=t-openoffice Attempt.odt

runs ok here


hmm
not here


minimals-beta
Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 
2008 i686 GNU/Linux

This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.11.03 09:22

minimalsBIRTHDAY
Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 
2008 i686 GNU/Linux

This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.10.31 13:58

--
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
%context --ctx=t-openoffice BoldAndItalicContent.xml

\startenvironment t-openoffice.tex

\checknotes 
\initializeMPgraphics 
\MPLIBregister 
\the \everysetupxml
\ctxlua {input.stoptiming(ctx)}
\checkpreprocessor


  \startluacode
document.commands = document.commands or { }
function document.commands.somehexcolor(str)
  local r, g, b = str:match(#(..)(..)(..))
  r, g, b = tonumber(r,16) or 0, tonumber(g,16) or 0, tonumber(b,16) or 0
  tex.sprint(string.format(\\colored[r=%s,g=%s,b=%s],r/255,g/255,b/255))
end
  \stopluacode

  \startxmlsetups office
\xmlsetsetup{main}{text:p|text:span}{*}
  \stopxmlsetups
  \xmlregistersetup{office}

  \startxmlsetups text:p
\xmlflush{#1}\endgraf
  \stopxmlsetups

  \startxmlsetups text:span
\bgroup
  \let\leftofspan \relax
  \let\rightofspan\relax
  \xmlfilter{main}{office:automatic-styles/style:[EMAIL PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
  \leftofspan
  \xmlflush{#1}
  \rightofspan
\egroup
  \stopxmlsetups

  \startxmlsetups do:style:text-properties
\xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes
\xmlval{fo:font-style} {\xmlatt{#1}{font-style}}{}
%\xmlval{fo:color}  {\xmlatt{#1}{color}}{}
\getvalue{fo:color}{\xmlatt{#1}{color}}
\xmlval{style:text-position}   {\xmlatt{#1}{text-position}}{}
\xmlval{style:text-underline-style}{\xmlatt{#1}{text-underline-style}}{}
  \stopxmlsetups

  \xmlmapvalue{fo:font-weight}{bold}{\bf}
  \xmlmapvalue{fo:font-style}{italic}{\em}

  \xmlmapvalue{fo:color}{#ff}{\colored[h=ff]}
  \setvalue{fo:color}#1{\expandafter\colored\expandafter[h=#1]}
  %\setvalue{fo:color}#1{\edef\temp{\noexpand\ctxlua{document.commands.somehexcolor(\letterhash\uppercase{#1})}}\temp}

  \catcode`\%=11
  \xmlmapvalue{style:text-position}{sub 58%}  {\def\leftofspan##1\rightofspan{\low {##1}}}
  \xmlmapvalue{style:text-position}{super 58%}{\def\leftofspan##1\rightofspan{\high{##1}}}
  \catcode`\%=14

  \definetextbackground
[underline]
[location=text,
 alternative=1,
 background=,
 framecolor=black,
 frame=off]

  %\xmlmapvalue{style:text-underline-style}{solid}{\def\leftofspan##1\rightofspan{\startunderline##1\stopunderline}}
  \xmlmapvalue{style:text-underline-style}{solid}{\let\leftofspan\startunderline\let\rightofspan\stopunderline}

  \setupcolors[state=start]
  
  \starttext
%\xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
\usezipfile[\inputfilename.odt]
\xmlprocess{main}{*/content.xml}{}
  \stoptext
  
\stopenvironment



___
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 avoid a page break?

2008-11-05 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 11:25:17PM +0100, Wolfgang Schuster napisa#322;(a):
 \def\doPutTitle#1%
{\framed[frame=offwidth=\textwidth,align=middle]{#1}%
 \blank[nobreak,line]}

And what to do if I want to use a similar to above command in

\setuphead[chapter][command=\doPutTitle]

to avoid a page break right after the title?

 
 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

- Is it a Perl program or a Perl script?
- Well, a script is what you give the actors.
  A program is what you give the audience.

(Larry Wall)
___
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] cz - cs language abbreviation change

2008-11-05 Thread Vit Zyka
Dear Hans,

I have noticed that the abbreviation for Czech language has changed from 
'cz' to 'cs'. Perhaps due to ISO 639-2 compliance.

May be the norm is a good reason; but this backward incompatible 
solution makes all Czech document wrong! Silently without any warning or 
any error message. Moreover, it makes Czech version of the context 
beginners manual wrong.

I strongly ask you to solve this problem, e.g. to create some synonym 
mechanism, which enable again
   \mainlanguage[cz]
   \language[cz
to work.

Thank you
Vit

___
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 avoid a page break?

2008-11-05 Thread Marcin Borkowski
Dnia Wed, Nov 05, 2008 at 12:12:40PM +0100, Wolfgang Schuster napisa#322;(a):
 On Wed, Nov 5, 2008 at 11:50 AM, Marcin Borkowski
 [EMAIL PROTECTED] wrote:
  Hi,
 
  one more problem with pagebreaks: I'd like to prohibit a pagebreak
  before a \startformula ... \stopformula.  What do I do?
 
 \defineblankmethod [nobreak] {\nobreak}
 
 \setupformulas[spacebefore=nobreak]
 
 Not sure if this did work, try it or send a test file.

Wow, it does!  However, it also tries to squeeze too much stuff
(vertically) to avoid the break.  I guess that this is one of these
things one has to tweak manually anyway.

What would probably help (since I have lots of \items and lots of math -
it's a number of problem sets in analysis;) - btw, available at
http://mbork.pl/?action=browse;id=Mathematical_Analysis_for_Computer_Science_2)
would be an automatic \page[bigpreference] before each \item.  Is that
possible?

 
 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Jest tak. Friedman ma weksel Schapira z żyrem Glasa i windykator jest
Balenstein. On daje dwadzieścia pięć procent franko loko, towar jest u
Lutmana, tylko ten towar jest zajęty przez Honigmana z powodu weksel
Roitberga. Za ten weksel Roitberga można dostać gwarancję od jego
teścia Rozenzweiga, tylko on jest przepisany na Rozenzweigową, a
Rozenzweigowa jest chora.
(Kabaret Dudek)
___
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] Yet another IDE

2008-11-05 Thread Marcin Borkowski
I stumbled across this:

http://www.geany.org/

I'm going to give it a try.  Maybe someone else would like it, too?

Greets

-- 
Marcin Borkowski (http://mbork.pl)

If Microsoft ever makes anything which doesn't suck,
it will be a vacuum cleaner.
___
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 avoid a page break?

2008-11-05 Thread Wolfgang Schuster
On Wed, Nov 5, 2008 at 1:13 PM, Marcin Borkowski
[EMAIL PROTECTED] wrote:
 Dnia Wed, Nov 05, 2008 at 12:12:40PM +0100, Wolfgang Schuster napisa#322;(a):
 On Wed, Nov 5, 2008 at 11:50 AM, Marcin Borkowski
 [EMAIL PROTECTED] wrote:
  Hi,
 
  one more problem with pagebreaks: I'd like to prohibit a pagebreak
  before a \startformula ... \stopformula.  What do I do?

 \defineblankmethod [nobreak] {\nobreak}

 \setupformulas[spacebefore=nobreak]

 Not sure if this did work, try it or send a test file.

 Wow, it does!  However, it also tries to squeeze too much stuff
 (vertically) to avoid the break.  I guess that this is one of these
 things one has to tweak manually anyway.

 What would probably help (since I have lots of \items and lots of math -
 it's a number of problem sets in analysis;) - btw, available at
 http://mbork.pl/?action=browse;id=Mathematical_Analysis_for_Computer_Science_2)
 would be an automatic \page[bigpreference] before each \item.  Is that
 possible?

\setupitemize[inbetween=\allowbreak\blank]

or

\setupitemize[inbetween=\goodbreak\blank]

or

...

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] ctx files

2008-11-05 Thread Alan STONE
On Mon, Nov 3, 2008 at 2:39 PM, Alan STONE [EMAIL PROTECTED]wrote:

 Hi Hans,

 You wrote ctx:include name='whatever.ctx/ should work

 Given the above example, I'd really like to learn how to make it work.  :O)

 texmfstart texexec --ctx=ctx-main ctx-test



Should I conclude, by the lack of response, that this feature doesn't work ?

-- 
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2008.10.31 13:58 MKIV  fmt: 2008.10.31  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
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] Minimals - problems with format: metafun.mp

2008-11-05 Thread luigi scarso
On Wed, Nov 5, 2008 at 12:24 PM, Taco Hoekwater [EMAIL PROTECTED] wrote:


 Hi,

 Meanwhile we found there is a timing issue inside \everyjob.
 Hans is thinking really hard about a solution.

 Just for verification purposes, you could try the attached,
 patched t-openoffice.tex. That one should work, but it is
 not a solution, just to verify the bug.


it works
minimalsBIRTHDAY
Linux john 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686
GNU/Linux
MtxRun | current version: 2008.10.31 13:58
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown

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


Re: [NTG-context] MkII vs. MkIV

2008-11-05 Thread Hans Hagen
Aditya Mahajan wrote:
 On Tue, 4 Nov 2008, Wolfgang Schuster wrote:
 
 Am 04.11.2008 um 21:20 schrieb Aditya Mahajan:

 On Tue, 4 Nov 2008, Marcin Borkowski wrote:

 Hi,

 Is it normal that output from MkII and MkIV are different in terms of
 page breaks?
 Yes. In MKII the interline space is hard coded. MKIV gets the
 interline
 space from the font. So, you will get different page breaks. I
 experienced
 around 2-5 pages difference in a 100 page document.
 The interlinespace in MkII and MkIV is the same and both use a distance
 of 2.8ex between the lines.
 
 Yes, but ex means different dimensions in pdftex and luatex. For example
 
 \starttext
 
 1ex = \the\dimexpr1ex\relax \crlf
 2.8ex = \the\dimexpr2.8ex\relax
 
 \stoptext
 
 gives in MKII
 
 1ex = 5.16667pt
 2.8ex = 14.46669pt
 
 and in MKIV gives
 
 1ex = 5.172pt
 2.8ex = 14.4816pt
 
 The reason is that what ex means is hardcoded in MKII but MKIV gets this 
 info from the font. For example, if I use palatino at 12pt, the result in 
 MKII does not change, but MKIV gives
 
 1ex = 5.388pt
 2.8ex = 15.08641pt
 
 So, depending on the font, MKII and MKIV can have considerably different 
 lines per page.

- for type 1, mkiv gets the info from the afm file and has some 
heuristics if it's not in there; in mkii it's set in the tfm and such 
values can depends on decisions made while making the tfm file

- for otf again the info is taken from the font file

in both cases, there is no longer the limitations imposed by the tfm 
format (like discrete number of ht/dp) and as such there can be 
differences between mkii and mkiv

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] cz - cs language abbreviation change

2008-11-05 Thread Hans Hagen
Vit Zyka wrote:
 Dear Hans,
 
 I have noticed that the abbreviation for Czech language has changed from 
 'cz' to 'cs'. Perhaps due to ISO 639-2 compliance.
 
 May be the norm is a good reason; but this backward incompatible 
 solution makes all Czech document wrong! Silently without any warning or 
 any error message. Moreover, it makes Czech version of the context 
 beginners manual wrong.
 
 I strongly ask you to solve this problem, e.g. to create some synonym 
 mechanism, which enable again
\mainlanguage[cz]
\language[cz
 to work.

i though that i had done so

\installlanguage [cz] [cs]

should do the trick


-
   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] Scite automatic compling

2008-11-05 Thread luigi scarso
On Wed, Nov 5, 2008 at 10:57 AM, Diego Depaoli [EMAIL PROTECTED] wrote:

 2008/11/5 mattia schirosa [EMAIL PROTECTED]:
  Hi,
  i start use context to write my master thesis, i chose Scite tex editor
 how
  was advised in context wiki. I can't found a command or a tool to compile
  the tex file by Scite, is there any possibility or i have to pass by
 prompt
  control everytimes? When i try different layout solution is a bit
 annoying.
 Look at
 http://www.pragma-ade.com/general/manuals/mscite-s.pdf

 Auguri per la tesi

naah,
qui si dice
in bocca al lupo


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


Re: [NTG-context] ctx files

2008-11-05 Thread Hans Hagen
Alan STONE wrote:
 On Mon, Nov 3, 2008 at 2:39 PM, Alan STONE 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:
 
 Hi Hans,
 
 You wrote ctx:include name='whatever.ctx/ should work
 
 Given the above example, I'd really like to learn how to make it
 work.  :O)
 
 texmfstart texexec --ctx=ctx-main ctx-test
 
 
 
 Should I conclude, by the lack of response, that this feature doesn't work ?

it's more that i have no time now to look into it


-
   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] No italian traslantion in reference

2008-11-05 Thread mattia schirosa
Hi,
i put this command in my doc
\mainlanguage    [it]  
then when i try to call a figure regefence with
\in{figure}[fig:cartoonmodel]
in pdf doc i see figure instead of figura (it).

I need more setup to allow the italian mainlanguage?

Thanks,
Mattia  



  Unisciti alla community di Io fotografo e video, il nuovo corso di 
fotografia di Gazzetta dello sport:
http://www.flickr.com/groups/iofotografoevideo___
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] No italian traslantion in reference

2008-11-05 Thread Wolfgang Schuster

Am 05.11.2008 um 18:17 schrieb mattia schirosa:

 Hi,
 i put this command in my doc
 \mainlanguage[it]
 then when i try to call a figure regefence with
 \in{figure}[fig:cartoonmodel]
 in pdf doc i see figure instead of figura (it).

\in{figura}[fig:cartoonmodel]

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
___


[NTG-context] Multicolumn itemizations - again...

2008-11-05 Thread Marcin Borkowski
Hi,

I have

\setupitemize[2][a,paragraph,intro,columns,two][stopper=)]

in the environment.  In one place, however, I want to have a one-column
itemization.  What do I do?  I thought that

\startitemize[columns,one]

would override the environment setting - but it didn't work.

I tried to do something like this:

\defineitemgroup[onecolumnitemize]
\setuponecolumnitemize[2][a,paragraph,intro][stopper=)]

but it didn't work - still the settings from \setupitemize[2][...] were
in use.

What's going on?

Greets

-- 
Marcin Borkowski (http://mbork.pl)

- Why are vim users so terribly egocentric?
- Because they begin every sentence with `I'.
___
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] Cyrillic filenames

2008-11-05 Thread Vyatcheslav Yatskovsky
Hi,

This is a question to dear developers: why can't I use cyrillic 
filenames, and even spaces in filenames? It is weird to name Russian 
texts using Latin transliteration.

For example, I'd rather have песня про зайцев. tex instead of 
pesnya_pro_zaicev.tex. Is this possible?

Best,
Vyatcheslav
___
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] Multicolumn itemizations - again...

2008-11-05 Thread Marcin Borkowski
Dnia Wed, Nov 05, 2008 at 09:09:06PM +0100, Marcin Borkowski napisa#322;(a):
 Hi,
 
 I have
 
 \setupitemize[2][a,paragraph,intro,columns,two][stopper=)]
 
 in the environment.  In one place, however, I want to have a one-column
 itemization.  What do I do?  I thought that
 
 \startitemize[columns,one]
 
 would override the environment setting - but it didn't work.
 
 I tried to do something like this:
 
 \defineitemgroup[onecolumnitemize]
 \setuponecolumnitemize[2][a,paragraph,intro][stopper=)]
 
 but it didn't work - still the settings from \setupitemize[2][...] were
 in use.
 
 What's going on?

Before anyone asks me for an example, here it is:
http://wiki.contextgarden.net/User:Mbork
(the last part)

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Jest tak. Friedman ma weksel Schapira z żyrem Glasa i windykator jest
Balenstein. On daje dwadzieścia pięć procent franko loko, towar jest u
Lutmana, tylko ten towar jest zajęty przez Honigmana z powodu weksel
Roitberga. Za ten weksel Roitberga można dostać gwarancję od jego
teścia Rozenzweiga, tylko on jest przepisany na Rozenzweigową, a
Rozenzweigowa jest chora.
(Kabaret Dudek)
___
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 problem with page layout

2008-11-05 Thread Willi Egger
Hi Robert,

Edges are meant for screen versions of documents.
There are other dimensions you can use: backspace, cutspace

Kind regards

Willi
On Nov 5, 2008, at 12:01 PM, Robert Blackstone wrote:

 Hi list,
 I am having a problem setting up the layout of my document with  
 \setuplayout, following the instructions in ConTeXt an excursion,  
 p 72 and 112.
 Since I want margin notes I want to specify both the margins and  
 the edges, which I  tried to do as follows:

 \setuplayout 
 [location=middle,leftedge=1cm,rightedge=1cm,leftmargin=3cm,rightmargin 
 =2cm,width=13cm,height=23cm]

 What I get is: no left edge, left margin 2cm right on the edge of  
 the paper, text 13 cm, right margin 2 cm, right edge 1 cm, empty  
 space 16 mm.
 Moreover, whatever I change in the parameters, the layout stays the  
 same.
 Has the command changed?
 I am using MkII as supplied with MacTeX2008, (not updated because  
 that didn't work either).
 Can anyone help me out?
 Thanks in advance.
 Robert Blackstone
 __ 
 _
 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
 __ 
 _

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