[NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2009-12-13 Thread Tad Ashlock
As noted at 
http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, 
the embedded formatting commands in verbatim text don't work in MkIV.


Are there any plans to fix this capability soon?  I'm planning on 
working on a project on over the holiday break that will need it.


I'm not pushing to change your priorities.  If it's not going to be 
fixed soon, then I'll implement a simple verbatim module that supports 
embedded formatting commands that will do until the official module 
works.  I just don't want to waste that effort if verbatim is going to 
be fixed soon anyway.


Thanks,
Tad Ashlock
___
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] Overfull \hbox in Every Footnote

2009-12-13 Thread Tad Ashlock
As you can see in the results of processing the ConTeXt code below, the 
footnote gives an Overfull \hbox warning.  And the overflow is always 
exactly 426.78743pt too wide (at least in my documents).


---
\starttext
A test\footnote{Just testing.} of footnotes.
\stoptext
---


Running `ConTeXt Full' on `test' with ``context --autopdf test''
This is LuaTeX, Version beta-0.46.0-2009112722
\write18 enabled.
(test.tex

ConTeXt  ver: 2009.12.03 00:41 MKIV  fmt: 2009.12.12  int: english/english

system  : cont-new loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(C:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(C:/context/tex/texmf-context/tex/context/user/cont-sys.rme 
(C:/context/tex/texmf-context/tex/context/base/type-lua.tex) 
(C:/context/tex/texmf-context/tex/context/base/type-tmf.tex 
(C:/context/tex/texmf-context/tex/context/base/type-tmf.mkiv)) 
(C:/context/tex/texmf-context/tex/context/base/type-siz.tex 
(C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv)) 
(C:/context/tex/texmf-context/tex/context/base/type-otf.tex 
(C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv)))

system  : test.top loaded
(test.top)
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
systems : begin file test at line 1

Overfull \hbox (426.78743pt too wide) in paragraph at lines 2--2
[]
fonts   : resetting map file list
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts   : using map file: original-base
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts   : using map file: original-ams-base
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts   : using map file: original-ams-euler
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts   : using map file: original-public-lm
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
fonts   : using map file: lm-math
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts   : using map file: lm-rm
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
system  : xmp data not flushed (needs luatex upgrade)
!pages  : flushing page, realpage 1, userpage 1
systems : end file test at line 3
system  : cont-err loaded
(C:/context/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) 
)C:/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otfC:/context/tex/texmf/fonts/opentype/public/lm/lmroman6-regular.otfC:/context/tex/texmf/fonts/opentype/public/lm/lmroman8-regular.otfC:/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats : used config path  - 
C:/context/tex/texmf/web2c/texmf.cnf

mkiv lua stats : used cache path   - C:/context/tex/texmf-cache
mkiv lua stats : input load time   - 0.016 seconds
mkiv lua stats : stored bytecode data  - 196 modules, 48 tables, 244 
chunks
mkiv lua stats : node list callback tasks  - 4 unique tasks, 3 created, 
26 calls

mkiv lua stats : cleaned up reserved nodes - 25 nodes, 9 lists of 1408
mkiv lua stats : node memory usage - 20 glue_spec, 2 dir
mkiv lua stats : used backend  - pdf (backend for directly 
generating pdf output)

mkiv lua stats : loaded patterns   - en:us:pat:exc:2
mkiv lua stats : startup time  - 0.438 seconds (including 
runtime option file processing)
mkiv lua stats : callbacks - direct: 542, indirect: 
3664, total: 4206

mkiv lua stats : interactive elements  - 0 references, 1 destinations
mkiv lua stats : loaded fonts  - 49 files: 
lmmono10-regular.otf lmmono12-regular.otf lmmono8-regular.otf 
lmmono9-regular.otf lmroman10-bold.otf lmroman10-regular.otf 
lmroman12-bold.otf lmroman12-regular.otf lmroman5-bold.otf 
lmroman5-regular.otf lmroman6-regular.otf lmroman7-bold.otf 
lmroman7-regular.otf lmroman8-regular.otf lmroman9-bold.otf 
lmroman9-regular.otf lmsans10-regular.otf lmsans12-regular.otf 
lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm 
eufm5.tfm eufm7.tfm msam10.tfm msam5.tfm msam7.tfm msbm10.tfm msbm5.tfm 
msbm7.tfm lmex10.tfm lmmi10.tfm lmmi12.tfm lmmi5.tfm lmmi7.tfm lmmi9.tfm 
lmmib10.tfm lmmib5.tfm lmmib7.tfm lmsy10.tfm lmsy5.tfm lmsy7.tfm 
lmsy9.tfm rm-lmr10.tfm rm-lmr12.tfm rm-lmr5.tfm rm-lmr7.tfm rm-lmr9.tfm

mkiv lua stats : fonts load time   - 0.547 seconds
mkiv lua stats : result saved in file   

[NTG-context] info on fonts in MKIV

2009-12-13 Thread Willi Egger

Hello,

after running

mtxrun --script fonts --list --info --pattern=heros*

I get only the following line:

texgyreherosbold   texgyreherosbold   texgyreheros-bold.otf

I would expect more heros-fonts and also info on the features in the  
fonts.


What am I missing?

KR

Willi
___
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] info on fonts in MKIV

2009-12-13 Thread Hans Hagen

Willi Egger wrote:

Hello,

after running

mtxrun --script fonts --list --info --pattern=heros*

I get only the following line:

texgyreherosbold   texgyreherosbold   texgyreheros-bold.otf

I would expect more heros-fonts and also info on the features in the fonts.

What am I missing?


--all


-
  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] Verbatim Text with Embedded Formatting Commands (MkIV)

2009-12-13 Thread Wolfgang Schuster

Am 13.12.2009 um 12:26 schrieb Tad Ashlock:

 As noted at 
 http://wiki.contextgarden.net/Verbatim_text#Embedded_formatting_commands, the 
 embedded formatting commands in verbatim text don't work in MkIV.
 
 Are there any plans to fix this capability soon?  I'm planning on working on 
 a project on over the holiday break that will need it.
 
 I'm not pushing to change your priorities.  If it's not going to be fixed 
 soon, then I'll implement a simple verbatim module that supports embedded 
 formatting commands that will do until the official module works.  I just 
 don't want to waste that effort if verbatim is going to be fixed soon anyway.

When you don't need syntax highlighting you can use \startlines

\setuplines[space=on]

\startlines\tt
IF A==B THEN
  do this
ELSE
  do that
END
\stoplines

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] ppctex + pstricks on texlive2009

2009-12-13 Thread Mojca Miklavec
On Sat, Dec 12, 2009 at 17:18, Hans Hagen wrote:
 Patrice Mégret wrote:

 Dear all,

 I have installed texlive2009 in place of texlive2007 and I can no longer
 compile programmes combining pstricks and ppchtex.

 The following example gives me an error (it is still working on
 texlive2007 on another pc)

 \documentclass{article}
 \usepackage{pstricks}
 \usepackage[pstricks]{m-ch-en}

 \listfiles
 \begin{document}
 \chemical{O_2}
 \startchemical
 \chemical[SIX,B1..6,R1..6,RZ1..3][CH_3,CH_3,OH]
 \stopchemical
 \end{document}

 can you check if the latest context distribution fixes this?

It seems to work with ConTeXt 2009.12.01 17:09.

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


Re: [NTG-context] info on fonts in MKIV

2009-12-13 Thread Wolfgang Schuster

Am 13.12.2009 um 12:44 schrieb Willi Egger:

 Hello,
 
 after running
 
 mtxrun --script fonts --list --info --pattern=heros*
 
 I get only the following line:
 
 texgyreherosbold   texgyreherosbold   texgyreheros-bold.otf
 
 I would expect more heros-fonts and also info on the features in the fonts.
 
 What am I missing?

As Hans already told you need --all but there are many more option, when you 
call
the script without arguments (mtxrun --script font) you get the following list

MTXrun | TDS Runner Tool 1.24 | ConTeXt Font Database Management 0.21
MTXrun |
MTXrun | --savesave open type font in raw table
MTXrun | 
MTXrun | --reload  generate new font database
MTXrun | --reload --simple generate 'luatex-fonts-names.lua' (not for 
context!)
MTXrun | 
MTXrun | --list --name list installed fonts, filter by name [--pattern]
MTXrun | --list --spec list installed fonts, filter by spec [--filter]
MTXrun | --list --file list installed fonts, filter by file [--pattern]
MTXrun | 
MTXrun | --pattern=str filter files using pattern
MTXrun | --filter=list key-value pairs
MTXrun | --all show all found instances
MTXrun | --infogive more details
MTXrun | --track=list  enable trackers
MTXrun | 
MTXrun | examples of searches:
MTXrun | 
MTXrun | mtxrun --script font --list somename (== --pattern=*somename*)
MTXrun | 
MTXrun | mtxrun --script font --list --name somename
MTXrun | mtxrun --script font --list --name --pattern=*somename*
MTXrun | 
MTXrun | mtxrun --script font --list --spec somename
MTXrun | mtxrun --script font --list --spec somename-bold-italic
MTXrun | mtxrun --script font --list --spec --pattern=*somename*
MTXrun | mtxrun --script font --list --spec --filter=fontname=somename
MTXrun | mtxrun --script font --list --spec 
--filter=familyname=somename,weight=bold,style=italic,width=condensed
MTXrun | 
MTXrun | mtxrun --script font --list --file somename
MTXrun | mtxrun --script font --list --file --pattern=*somename*

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] Bug with overprinting in Mark II/IV?

2009-12-13 Thread Peter Rolf

Am 12.12.2009 16:41, schrieb Oliver Heins:

Hi Peter,

Peter Rolfindi...@gmx.net  writes:

   

I get the same 'kind of knockedout' text as in the other example...
but the black text is set as /DeviceGray and not /DeviceCMYK
(k-component). You can make this visible by using
'Vorschau: Separiert' with the option 'Einblenden: Nicht-DeviceCMYK'.

I think this is just a limitation of the previewer. You can define
your own cmyk black with \definecolor[myblack][k=1]. I bet that the
knockedout effect will vanish with cmyk black (untested).
 

You're right.  With k=1, the 'kind of knockedout' vanishes.  Thank you
very much, Peter!

   

You are welcome!


So is it advisable to change all black to cmyk black or can I safely
rely on the DeviceGray black?

   

I donno. Best ask your printing house what they prefer in this case.

Just an additional comment about prepress. A very good and gratis pdf 
book (only in german!) about prepress basics can be found here:


http://www.cleverprinting.de/ratgeber2009.html

Simply press

Jetzt als kostenloses PDF herunterladen

at the end of the page to get a copy. If you like it, buy it (as it's 
also very cheap for technical literature).


Best wishes,  Peter


Can you test the following?  My Acrobat is on a machine without net, and
my usb stick broke within the experiments.

   

prepress mess + bad luck =  *have a break and enjoy your weekend* :)
 

Well, due to your kind help, I'm able to do so now :-)

Thanks again,
  olli

   


___
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] info on fonts in MKIV

2009-12-13 Thread Willi Egger

Thanks indeed, I was looking at the --help, but did not see the clue.

Still, also with the --all switch there is no info concerning the  
features, which I thought should be listed with the --info switch?


Willi
On Dec 13, 2009, at 3:05 PM, Wolfgang Schuster wrote:



Am 13.12.2009 um 12:44 schrieb Willi Egger:


Hello,

after running

mtxrun --script fonts --list --info --pattern=heros*

I get only the following line:

texgyreherosbold   texgyreherosbold   texgyreheros-bold.otf

I would expect more heros-fonts and also info on the features in  
the fonts.


What am I missing?


As Hans already told you need --all but there are many more option,  
when you call
the script without arguments (mtxrun --script font) you get the  
following list


MTXrun | TDS Runner Tool 1.24 | ConTeXt Font Database Management 0.21
MTXrun |
MTXrun | --savesave open type font in raw table
MTXrun |
MTXrun | --reload  generate new font database
MTXrun | --reload --simple generate 'luatex-fonts- 
names.lua' (not for context!)

MTXrun |
MTXrun | --list --name list installed fonts, filter by name  
[--pattern]
MTXrun | --list --spec list installed fonts, filter by spec  
[--filter]
MTXrun | --list --file list installed fonts, filter by file  
[--pattern]

MTXrun |
MTXrun | --pattern=str filter files using pattern
MTXrun | --filter=list key-value pairs
MTXrun | --all show all found instances
MTXrun | --infogive more details
MTXrun | --track=list  enable trackers
MTXrun |
MTXrun | examples of searches:
MTXrun |
MTXrun | mtxrun --script font --list somename (== -- 
pattern=*somename*)

MTXrun |
MTXrun | mtxrun --script font --list --name somename
MTXrun | mtxrun --script font --list --name --pattern=*somename*
MTXrun |
MTXrun | mtxrun --script font --list --spec somename
MTXrun | mtxrun --script font --list --spec somename-bold-italic
MTXrun | mtxrun --script font --list --spec --pattern=*somename*
MTXrun | mtxrun --script font --list --spec -- 
filter=fontname=somename
MTXrun | mtxrun --script font --list --spec -- 
filter=familyname=somename,weight=bold,style=italic,width=condensed

MTXrun |
MTXrun | mtxrun --script font --list --file somename
MTXrun | mtxrun --script font --list --file --pattern=*somename*

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
__ 
_


___
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] info on fonts in MKIV

2009-12-13 Thread Wolfgang Schuster

Am 13.12.2009 um 20:18 schrieb Willi Egger:

 Thanks indeed, I was looking at the --help, but did not see the clue.
 
 Still, also with the --all switch there is no info concerning the features, 
 which I thought should be listed with the --info switch?

indeed, the --info table was useful to see which features a certain font 
provides and what script/language setting you need to activate it

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] repeat option for itemize

2009-12-13 Thread Wolfgang Schuster
Hi Hans,

the repeat option for itemize is broken.

\starttext
\startitemize[n,repeat]
  \item Item 1 \startitemize[a] \item Item 1.a. \item Item 1.b. \stopitemize
  \item Item 2 \startitemize[a] \item Item 2.a. \item Item 2.b. \stopitemize
\stopitemize
\stoptext

One problem can be solved when you change

\def\checkforrepeatedlistitem
  {\ifconditional\repeatlistitem
  \ifx\currentrepeatstart\empty
\edef\currentrepeatstart{\the\numexpr\currentitemlevel-1}%
  \fi
  \setbox\itemgroupitembox\hbox to 
\wd\itemgroupitembox{\hskip-\itemgroupaskedwidth\box\itemgroupitembox}% what a 
hack !
   \fi}

to

\def\checkforrepeatedlistitem
  {\ifconditional\repeatlistitem
  \ifx\currentrepeatstart\empty
\let\currentrepeatstart\currentitemlevel
  \fi
  \setbox\itemgroupitembox\hbox to 
\wd\itemgroupitembox{\hskip-\itemgroupaskedwidth\box\itemgroupitembox}% what a 
hack !
   \fi}


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
___