Re: [NTG-context] letter module: different first page for multiple letters in one file

2009-10-09 Thread Wolfgang Schuster


Am 10.10.2009 um 01:48 schrieb Michael Green:

I have one file containing several letters that I process using  
Wolfgang's letter module.


I have a special background for the first page of a letter. I define  
and set three layers: PCLogo, PCDept, and PCAddress. Here is a  
representative example:

\definelayer
 [PCLogo]
 [width=\paperwidth,
  height=\paperheight,
  preset=lefttop,
  y=20pt,
  state=start]

Then I make these layers backgrounds like so:

\setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}]

The result I *get* is that the first letter in the file gets the  
background on its first page as normal. But the subsequent letters  
do not. Their first pages are plain.


The result I *want* is for each letter to have the background on its  
first page, like the first letter in the file gets.


How can I achieve that?


Are your graphics for stationary or logos and headers etc.

Wolfgang

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

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


[NTG-context] letter module: different first page for multiple letters in one file

2009-10-09 Thread Michael Green
I have one file containing several letters that I process using  
Wolfgang's letter module.


I have a special background for the first page of a letter. I define  
and set three layers: PCLogo, PCDept, and PCAddress. Here is a  
representative example:

\definelayer
  [PCLogo]
  [width=\paperwidth,
   height=\paperheight,
   preset=lefttop,
   y=20pt,
   state=start]

Then I make these layers backgrounds like so:

\setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}]

The result I *get* is that the first letter in the file gets the  
background on its first page as normal. But the subsequent letters do  
not. Their first pages are plain.


The result I *want* is for each letter to have the background on its  
first page, like the first letter in the file gets.


How can I achieve that?

Thank you!
Michael


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

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


Re: [NTG-context] Installing minimals

2009-10-09 Thread Vyatcheslav Yatskovsky

Hello,

\syntex=1 gives and error

\synctex=1 compiles but gives nothing (no additional files, not SyncTeX 
recognizible data for TeXWorks viewer)


What's wrong with it?

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


Re: [NTG-context] Installing minimals

2009-10-09 Thread Hans Hagen

Yury G. Kudryashov wrote:

В сообщении от 9 октября 2009 21:10:19 автор Hans Hagen написал:

Alain Delmotte wrote:
just add

\syntex=1

SyncTeX docs say \synctex=1


sure, i didn't test 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing minimals

2009-10-09 Thread Yury G. Kudryashov
В сообщении от 9 октября 2009 21:10:19 автор Hans Hagen написал:
> Alain Delmotte wrote:
> just add
> 
> \syntex=1
SyncTeX docs say \synctex=1
> 
> in your source

-- 
Yury G. Kudryashov,
mailto: urkud.ur...@gmail.com


signature.asc
Description: This is a digitally signed message part.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Installing minimals

2009-10-09 Thread Hans Hagen

Alain Delmotte wrote:

I am using MarkIV, so the call is not directly to texexec but mtxrun.cmd

In TeXworks the parameters for MarkIV are

Program: mtxrun.cmd
Arguments:
--autogenerate
--script
context
$fullname

and "mtxrun.cmd" in "..\context\tex\texmaf-mswin\bin" is
@echo off
setlocal
set ownpath=%~dp0%
texlua "%ownpath%mtxrun.lua" %*
endlocal

Should I add "--synctex" in "mtxrun.cmd" after "texlua".
When I add as argument of the command in TeXworks, it doesn't work.


just add

\syntex=1

in your source

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


Re: [NTG-context] Installing minimals

2009-10-09 Thread Alain Delmotte

I am using MarkIV, so the call is not directly to texexec but mtxrun.cmd

In TeXworks the parameters for MarkIV are

Program: mtxrun.cmd
Arguments:
--autogenerate
--script
context
$fullname

and "mtxrun.cmd" in "..\context\tex\texmaf-mswin\bin" is
@echo off
setlocal
set ownpath=%~dp0%
texlua "%ownpath%mtxrun.lua" %*
endlocal

Should I add "--synctex" in "mtxrun.cmd" after "texlua".
When I add as argument of the command in TeXworks, it doesn't work.

Thanks for the help!

Alain

Jakub Piotr Cłapa a écrit :

On 09-10-09 16:05, Alain Delmotte wrote:

Is synctex taken into account in context?


Works for me on recent ConTeXt minimals. I have no menton of SyncTeX 
in the source tex file but I run TeX by


texexec --synctex mgr.tex

I get a mgr.synctex.gz(busy) file while TeXing and a mgr.synctex.gz 
file afterwards.




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

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


[NTG-context] \setupquotation affecting \quote

2009-10-09 Thread Matthijs Kooijman
Hi,

I've been trying to use \setupquotation, but it seems it doesn't just affect
\quotation, but also \quote. In particular, setting style to tfb enlarges the
font used by \quote and somehow removes the quotes from around it.

Seeing that there is also a \setupquote, and from looking at the code, I think
this is not supposed to happen. This happens with MkII as well as MkIV, it
seems.

The following example shows the problem:

  \starttext
  \quote{Foo}
  \setupquotation[style=tfb]
  \quote{Bar}
  \stoptext


Gr.

Matthijs


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


[NTG-context] Float captions with hanging indentation

2009-10-09 Thread Jakub Piotr Cłapa

Hello,

I am a new ConTeXt user recently switched from LaTeX (with small amounts 
of raw TeX macrosity) which I used for several years.


I was searching the internet, this mailing list and finally the ConTeXt 
sources to find some information about achieving hanging indentation in 
captions. The 'hang' option for the 'caption' LaTeX package [1] was my 
inspiration (you can see an example on the 3 page of the linked manual). 
The only thing I could find was an old reply from Taco Hoekwater [2] but 
as he mentions this does not work well.


After digging inside the source code of both ConTeXt and caption.sty
I managed to hack the \putcompletecaption macro to do what I need. (see 
below)


The changes required are minimal (capture the caption head into a box, 
remember its width and later set \hangindent and \hangafter while 
typessing the caption body) so maybe this could go into the main ConTeXt 
tree? Unfortunately I do not know how to make use of the setup macros so 
this currently hardcodes the hanging indentation.


\unprotect
\newdimen\captionhang
\def\putcompletecaption#1#2%

{\doifsomething{\floatcaptionparameter\c!spacebefore}{\blank[\floatcaptionparameter\c!spacebefore]}%
% \floatcaptionparameter\c!before % test for side effects first
   \noindent
   \xdef\lastcaptiontag{\strut#1}%
   \dostartattributes{\??kj\currentfloat}\c!style\c!color\empty
 \setbox0\hbox{%
   \ifnofloatnumber
   \else

\hbox{\doattributes{\??kj\currentfloat}\c!headstyle\c!headcolor{\strut#1}}%
 \ifnofloatcaption \else \ifemptyfloatcaption \else
   \doifelsenothing{\floatcaptionparameter\c!spaceinbetween}
 {\scratchskip\floatcaptionparameter\c!distance\relax
  \dotfskip\scratchskip\emergencystretch.5\scratchskip}
 {\blank[\floatcaptionparameter\c!spaceinbetween]}%
 \fi \fi
   \fi
 }%
 \captionhang=\wd0\unhbox0%
 \ifnofloatcaption
   \globallet\lastcaptionht\!!zeropoint
   \globallet\lastcaptiondp\!!zeropoint
 \else
   \doattributes{\??kj\currentfloat}\c!textstyle\c!textcolor
 {\hangindent=\captionhang\hangafter=1%
  \xdef\lastcaptionht{\strutheight}%
  \xdef\lastcaptiondp{\strutdepth}%
  \begstrut#2\endstrut\endgraf}%
 \fi
   \dostopattributes
% \floatcaptionparameter\c!after % test for side effects first

\doifsomething{\floatcaptionparameter\c!spaceafter}{\blank[\floatcaptionparameter\c!spaceafter]}}
\protect


[1]: http://www.dd.chalmers.se/latex/Docs/PDF/caption.pdf
[2]: http://thread.gmane.org/gmane.comp.tex.context/21675/focus=21676

--
regards,
Jakub Piotr Cłapa
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Installing minimals

2009-10-09 Thread Jakub Piotr Cłapa

On 09-10-09 16:05, Alain Delmotte wrote:

Is synctex taken into account in context?


Works for me on recent ConTeXt minimals. I have no menton of SyncTeX in 
the source tex file but I run TeX by


texexec --synctex mgr.tex

I get a mgr.synctex.gz(busy) file while TeXing and a mgr.synctex.gz file 
afterwards.


--
regards,
Jakub Piotr Cłapa
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Installing minimals

2009-10-09 Thread Alain Delmotte

Hi!

On the 16th of September I mentioned that I had problems to install the 
minimals.


Further, on my portable, the one I used during EuroTeX I could not 
connect to INTERNET anymore even after changing the connection parameters!!


I then decide to un-install the firewall program I use (COMODO -- which 
I disabled when I tried to install the minimals, but with no result) and...
everything is now OK: I could reconnect and more important install the 
minimals.


Still a problem using TeXworks: the synctex system is not working: 
neither adding -synctex=1 in Preferences or \synctex=1 at the start of 
the tex source.


Synctex appeared only in MikTeX 2.7 by a special (?) instruction in the 
pdftex (?) program.

Is synctex taken into account in context?

Alain


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

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


Re: [NTG-context] Letter Module: backaddress

2009-10-09 Thread Wolfgang Schuster


Am 09.10.2009 um 10:11 schrieb Andreas Harder:


When I think about the default setup this would make more sense:

\setupletterstyle[backaddress=no]
\setupletterstyle[backaddress][alternative=auto]

WHat do you think?


I think it would be more intuitive that way.


I will change this then in the next release, you could then enable the  
backaddress with \setupletterstyle[backaddres=yes]


One more question: it would be nice if the rule under the back- 
address would have the same length an the back-addres. Is there a  
convenient way? I tried something with \textbackgrounds (example  
below) but without success.


\setupletterstyle
 [backaddress]
 [frame]
 [width=fit]


Thank you! I tried to set width=fit, but without the frame-option …  
Now one have to care of the width (I think there is no maxwidth- 
option for frame setups?),


autowidth=force

so I tried to set the backgroundaddress-style to style={\ifdim 
\framedwidth<85mm \tfx \else \tfxx \fi}. But the problem is, that  
\framedwidth measures with the default font size … Or do you know a  
solution? ;)


Let me think about this (no time at the moment).

Wolfgang

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

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


Re: [NTG-context] Letter Module: backaddress

2009-10-09 Thread Andreas Harder


Am 09.10.2009 um 06:45 schrieb Wolfgang Schuster:


When I think about the default setup this would make more sense:

\setupletterstyle[backaddress=no]
\setupletterstyle[backaddress][alternative=auto]

WHat do you think?


I think it would be more intuitive that way.

One more question: it would be nice if the rule under the back- 
address would have the same length an the back-addres. Is there a  
convenient way? I tried something with \textbackgrounds (example  
below) but without success.


\setupletterstyle
 [backaddress]
 [frame]
 [width=fit]


Thank you! I tried to set width=fit, but without the frame-option …  
Now one have to care of the width (I think there is no maxwidth-option  
for frame setups?), so I tried to set the backgroundaddress-style to  
style={\ifdim\framedwidth<85mm \tfx \else \tfxx \fi}. But the problem  
is, that \framedwidth measures with the default font size … Or do you  
know a solution? ;)


Bit by bit I get an idea of how to customize the letter-module settings.

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

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


Re: [NTG-context] Minimals

2009-10-09 Thread Jörg Hagmann

Hans Hagen wrote:
can you search your disk (path) for other occurences of mtxrun and 
luatools?
I have, in addition to the new attempt (context), the working 
installation I'm presently using (/Applications/newtex) and an older 
version (Applications/mytex). Both have their mtxrun and luatools:


./Applications/mytex/bin/mtxrun
./Applications/mytex/tex/texmf-osx-intel/bin/mtxrun
./Applications/newtex/bin/mtxrun
./Applications/newtex/tex/texmf-osx-intel/bin/mtxrun
./Users/bonasia/context/bin/mtxrun
./Users/bonasia/context/tex/texmf-context/scripts/context/stubs/unix/mtxrun
./Users/bonasia/context/tex/texmf-osx-intel/bin/mtxrun

I tried the new installation under /Applications and then in my home 
directory, with the procedure "sh ./first-setup.sh" method ("simple 
instructions for installing on Unix-like systems"), and got the same 
result, namely:


- For mkii the formats have to be made, but then it works
- For mkiv, luatools --selfupdat, mtxrun --selfupdate and context give:

bonasia:test$ luatools --selfupdate
LuaTools | fileio: to be replaced old script 
/Users/bonasia/context/tex/texmf-osx-intel/bin/luatools

LuaTools | fileio: unable to locate new script
LuaTools |
LuaTools | runtime: 0.051 seconds

bonasia:test$ mtxrun --selfupdate
MTXrun | fileio: to be replaced old script 
/Users/bonasia/context/tex/texmf-osx-intel/bin/mtxrun

MTXrun | fileio: unable to locate new script

bonasia:test$ context
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

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


[NTG-context] [OT] Dutch LaTeX Forum founded

2009-10-09 Thread luigi scarso
http://www.frankputtemans.org/latexforum/index.php

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

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