Re: [NTG-context] terrible png placement

2011-11-11 Thread Meer, H. van der
Sofar I received 2 reactions.

(1) 
Can't reproduce here; I get a 70KB pdf with your file and image.
ConTeXt standalone, 32-bit Linux, mkiv, version 2011.10.01 10:48.

(2)
I've encountered the same problem. The PDF is 1.8MB big. Compressed with qpdf 
(qpdf --stream-data=compress) its only 60KB!
Latest beta on OS-X 10.7.2

Further search for the cause:

My system is also OS-X 10.7.2 and latest beta.
To find the culprit I reverted to an older version of ConTeXt.

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.11.11  int: english/english
Now the filesize becomes 72KB instead of 1.8 MB.
This one seems OK.

CONCLUSION: This must have been introduced in one of the  beta's later than 
2011.10.14 and in or before the current one: ConTeXt  ver: 2011.11.04 14:15 
MKIV.

I kindly suggest Hans takes a look into the matter.

Hans van der Meer


On 10 nov. 2011, at 21:22, Hans van der Meer wrote:

 Something terrible must be done to png pictures, either in ConTeXt or in 
 luatex.
 I have the following minimal sample code and picture. I include the png for 
 those who want to check.
 
 % Test png addition.
 \starttext
 Place png figure.\par
 \placefigure{Test figure}{\externalfigure[test.png]}
 \stoptext
 
 Without the png-picture it makes an 8KB pdf.
 But with the png-picture the pdf swells to 1.8MB.
 And that for a png-picture of only 48KB.
 Moreover making a zip of all this stuff brought the size back to 110KB.
 In the log: 
 ConTeXt  ver: 2011.11.04 14:15 MKIV  fmt: 2011.11.10  int: english/english
 mkiv lua stats   graphics processing time  - 0.001 seconds including tex, 1 
 processed images




___
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] Fonts in Mk IV -- \definefontalternative documentation?

2011-11-11 Thread Christian
Hello and welcome to the world of ConTeXt!

I was in you place about one year ago :)

The best way to get started with fonts is probably the simplefonts module. I 
haven't used anything since I started and was able to do everything I wished 
for, so far. 

Installation:
Run
first-setup.sh --modules=t-simplefonts
if you use Context standalone (if not, refer to 
http://wiki.contextgarden.net/Modules for installation and download links).

Then this file should get you started:

%%% BEGIN
\usemodule[simplefonts]
\definefontfeature[default][default][mode=node,script=latn,kern=yes,palt=yes,tlig=yes,trep=yes,init=yes,size=yes]
 %some default features
\definefontfeature[frac][default][frac=yes] % opentype 'frac' feature for nice 
fractions
\definefontfeature[sups][default][sups=yes]
\definefontfeature[onum][default][onum=yes] % old-style figures
\definefontfeature[lnum][default][lnum=yes]
\setupsimplefonts[expansion=quality, protrusion=quality] % sort of microtype 
thing. makes things look better =)
\setmainfont[Myriad Pro] % set Myriad as main font
\definesimplefonttypeface[sb][Myriad Pro][regularfont=myriadprosemibold, 
italicfont=myriadprosemiboldit] % define a second font called 'sb' for semibold

\starttext

Test normal\\
{\sb Test semibold}\\
{\sb \it Test semibold}\\
{\bf Test bold}\\

Opentype font feature demonstration:\\
{\addff{onum} 1234} 1234\\
{\addff{frac} 1/17}
\stoptext
%%% END


 Hello, I am coming to ConTeXt from LaTeX and have a typescript question. I
 was searching for information on the mailing list about defining semibold and
 other font variants, and found the following. Can you tell me if further
 information is only available in the book context mkiv -- Fonts or can I 
 find it
 somewhere else? I have searched through the revised Fonts chapter of the
 ConTeXt manual but the \definefontalternative macro and the approach
 described here are not documented there.
 
 The approach below works for me if I adapt it to Adobe Garamond Premier
 Pro, but I am attempting to build a typescript for that handles optical 
 weights,
 small caps, etc and I have not been able to make it work yet.
 
 Before I try posting a minimal example, I would like to be sure that I am
 looking at the right documentation. I have looked at the Fonts in LuaTeX
 page on Contextgarden as well, but I don't think I have a full understanding
 of typescripts using OSFONTDIR fonts yet. If there is something I am missing
 please let me know.
 
 Thanks,
 PPN
 
 
 
 Based on ideas from the forthcoming book context mkiv -- Fonts:
 
 % note: I have deleted all lines except the relevant ones for defining
 % the semi bold alternatives
 
 \definefontalternative [sb]
 \definefontalternative [si]
 
 \definebodyfont [default] [ss]
   [sb=SansSemiBold sa 1,
si=SansSemiBoldItalic sa 1]
 
 \starttypescript [sans] [myriadpro]
\definefontsynonym [MyriadPro-SemiBold]  [name:myriadprosemibold]
\definefontsynonym [MyriadPro-SemiBoldIt][name:myriadprosemiboldit]
 \stoptypescript
 
 \starttypescript [sans] [myriadpro]
\definefontsynonym [SansSemiBold] [MyriadPro-SemiBold]
 [features=default]
\definefontsynonym [SansSemiBoldItalic]   [MyriadPro-SemiBoldIt]
 [features=default]
 \stoptypescript
 
 \starttypescript [myriadpro]
 \definetypeface [myriadpro] [ss] [sans] [myriadpro] [default]
 \stoptypescript
 
 \usetypescript[myriadpro]
 
 \starttext
 
 \switchtobodyfont[myriadpro,ss]
 
 \sb Hello
 \si Italic
 
 \stoptext
 
 
 --
 Peter Park Nelson
 peter.park.nel...@gmail.com


___
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] footnotes and linenumbering

2011-11-11 Thread Martin Fechner

Hi all,

is it possible to have a linenumbering also in the footnotes? I tried it 
with


--
\setuplinenumbering[method=page]
\setupfootnotedefinition[location=serried]
\setupfootnotes[before={\startlinenumbering[continue]},after={\stoplinenumbering}]

\starttext
\startlinenumbering
\input knuth

some text\footnote{the first footnote}
more text\footnote{\dorecurse{10}{a very long footnote }}
\stoplinenumbering
\stoptext
--

but only the whole footnotefigure has one linenumber and it doesn't 
continue right if method=page is set.

Is there any solution to this?

Greetings, Martin
___
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] Simplefonts question

2011-11-11 Thread Lutz Haseloff
Hi Wolfgang,

I'm looking for documentation for your handy module.

Particularly i'd like to know all the options i can use for
the commands \setmainfont and \setupsimplefonts.

My goal is to use a font in my document in
different sizes (say 12, 17 and 35pt) with adequate
line spacing.

I only found  \setmainfont[...][..,..=..,..] in README.
Reading the source was not too helpful for me :-)


Greetings Lutz
___
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] Help on centering text inside the standard makeup

2011-11-11 Thread Marco Pessotto

Hello!

I have some problem centering the text inside the standardmakeup.  The
resulting alignment is centered, yes, but relative to the text block of
the defined layout, and being a doublesided document, the left space is
lesser then the right space (which is not what I wanted, as it's
supposed to be the cover of a booklet).

For example:

%
\setuppagenumbering[alternative=doublesided]
\showframe

\starttext

\startstandardmakeup
  \raggedcenter
  This should be the long title
\stopstandardmakeup

\input tufte

\stoptext
%


The \showframe still shows the defined layout for the whole document.

I'm reading from Layouts in Context that the standard makeup should
“exclude text from the standard pagebody and its layout”.

The other solution could using frames, layers and the backgrounds, but
I'm pretty sure I'm missing something here and that using the makups is
the right thing to do.

Setting width=\paperwidth,height=\paperheight makes the thing
worse. It's like the width starts at the text block of the defined
layout.

%
\setuppagenumbering[alternative=doublesided]
\showframe

\definemakeup[titlepage][width=\paperwidth,
height=\paperheight,voffset=0mm,hoffset=0mm]

\starttext

\starttitlepagemakeup
  \raggedcenter
  \bfc This should be the long, long, very long title
\stoptitlepagemakeup

\input tufte

\stoptext
%

Thanks in advance.

Cheers

-- 
Marco

___
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] No colons with pxmath fonts

2011-11-11 Thread Andreas Harder
Hi,

there is (still) no colon if one uses the pxmath fonts. By the way, 
\setupTEXpage causes an error (Undefined control sequence).

\setupbodyfont[palatino] % no colon
% \setupbodyfont[asana] % OK

% \setupTEXpage[offset=1ex] % error

\startTEXpage % [offset=1ex] % OK
  $a$:\,$b$\par $a\colon b$
\stopTEXpage


Regards
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] Help on centering text inside the standard makeup

2011-11-11 Thread Andreas Harder

On 11.11.2011, at 13:27, Marco Pessotto wrote:

 
 Hello!
 
 I have some problem centering the text inside the standardmakeup.  The
 resulting alignment is centered, yes, but relative to the text block of
 the defined layout, and being a doublesided document, the left space is
 lesser then the right space (which is not what I wanted, as it's
 supposed to be the cover of a booklet).
 
 For example:
 
 %
 \setuppagenumbering[alternative=doublesided]
 \showframe
 
 \starttext
 
 \startstandardmakeup
  \raggedcenter
  This should be the long title
 \stopstandardmakeup
 
 \input tufte
 
 \stoptext
 %

Hi,

there is also a page makeup

\startpagemakeup[align=center]
  {\bfc This should be the long title}
\stoppagemakeup


Regards
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] Help on centering text inside the standard makeup

2011-11-11 Thread Wolfgang Schuster

Am 11.11.2011 um 13:27 schrieb Marco Pessotto:

 
 Hello!
 
 I have some problem centering the text inside the standardmakeup.  The
 resulting alignment is centered, yes, but relative to the text block of
 the defined layout, and being a doublesided document, the left space is
 lesser then the right space (which is not what I wanted, as it's
 supposed to be the cover of a booklet).
 
 For example:
 
 %
 \setuppagenumbering[alternative=doublesided]
 \showframe
 
 \starttext
 
 \startstandardmakeup
  \raggedcenter
  This should be the long title
 \stopstandardmakeup
 
 \input tufte
 
 \stoptext
 %
 
 
 The \showframe still shows the defined layout for the whole document.
 
 I'm reading from Layouts in Context that the standard makeup should
 “exclude text from the standard pagebody and its layout”.
 
 The other solution could using frames, layers and the backgrounds, but
 I'm pretty sure I'm missing something here and that using the makups is
 the right thing to do.
 
 Setting width=\paperwidth,height=\paperheight makes the thing
 worse. It's like the width starts at the text block of the defined
 layout.
 
 %
 \setuppagenumbering[alternative=doublesided]
 \showframe
 
 \definemakeup[titlepage][width=\paperwidth,
height=\paperheight,voffset=0mm,hoffset=0mm]
 
 \starttext
 
 \starttitlepagemakeup
  \raggedcenter
  \bfc This should be the long, long, very long title
 \stoptitlepagemakeup
 
 \input tufte
 
 \stoptext

As a new feature in MkIV there is also a layout with the same name as the makeup
environment and you can control the margins of your new title page environment
with \setuplayout[titlepage][…].

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] Help on centering text inside the standard makeup

2011-11-11 Thread Marco Pessotto
Andreas Harder ahar...@uni-koblenz.de writes:

 On 11.11.2011, at 13:27, Marco Pessotto wrote:

 
 Hello!
 
 I have some problem centering the text inside the standardmakeup.  The
 resulting alignment is centered, yes, but relative to the text block of
 the defined layout, and being a doublesided document, the left space is
 lesser then the right space (which is not what I wanted, as it's
 supposed to be the cover of a booklet).
 
 For example:
 
 %
 \setuppagenumbering[alternative=doublesided]
 \showframe
 
 \starttext
 
 \startstandardmakeup
  \raggedcenter
  This should be the long title
 \stopstandardmakeup
 
 \input tufte
 
 \stoptext
 %

 Hi,

 there is also a page makeup

 \startpagemakeup[align=center]
   {\bfc This should be the long title}
 \stoppagemakeup


 Regards
   Andreas

That did the trick! I've updated the wiki at 
http://wiki.contextgarden.net/Simple_Cover_Page

Thanks a lot

Best wishes


-- 
Marco

___
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] Simplefonts question

2011-11-11 Thread Wolfgang Schuster

Am 11.11.2011 um 13:01 schrieb Lutz Haseloff:

 Hi Wolfgang,
 
 I'm looking for documentation for your handy module.
 
 Particularly i'd like to know all the options i can use for
 the commands \setmainfont and \setupsimplefonts.
 
 My goal is to use a font in my document in
 different sizes (say 12, 17 and 35pt) with adequate
 line spacing.

Do you want a whole family in this size or only a single style of a font?

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] Omit part of a caption in a list

2011-11-11 Thread Christian
  Dear all,
 
  is the following possible?
 
  List of figures
  1.1 Figure caption . . . . . . 2
 
  page break
  *imagine figure here
  Figure 1.1: Figure caption is a lot longer than it appears in the list of
 figures.
 
  I'd like to shorten the captions in the list of figures that I
  produce using \placelist[figure] (preferably cut off clean, no
  ellipsis or the like). I know about \nomarking{} but it seems to
  apply only to chapter, section etc. titles.
 
  This is indeed possible, using \select; see
 
 http://archive.contextgarden.net/message/20060501.171706.24b88466.en.h
 tml .
 
  Example usage:
 
  \defineselector[caption][max=2,n=2]
  \starttext
  \setupselector[caption][n=1]
  \completelistoffigures
  \setupselector[caption][n=2]
  \placefigure[][]
  {\select{caption}
   {A short caption}
   {A rather longer caption which will appear below the figure itself}}
  {This is the content of the actual figure} \stoptext
 
 WIth the current beta you can write:
 
 \startplacefigure[title={A rather long caption …},list={A short caption}]
 \externalfigure[…] \stopplacefigure

Wow, that is even better! I updated to latest beta because of this and it works 
like a charm:)

P.S: Now I'also getting the 1.7MB pdf when including the png-file, like 
mentioned in the thread terrible png placement. (ConTeXt  ver: 2011.11.09 
20:58 MKIV, LuaTeX, Version beta-0.70.1-200321 (rev 4277), Win32)
But I don't have png's in my work file, so that's no biggie.

___
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] Fonts in Mk IV -- \definefontalternative documentation?

2011-11-11 Thread Wolfgang Schuster

Am 11.11.2011 um 11:13 schrieb Christian:

 Hello and welcome to the world of ConTeXt!
 
 I was in you place about one year ago :)
 
 The best way to get started with fonts is probably the simplefonts module. I 
 haven't used anything since I started and was able to do everything I wished 
 for, so far. 

Peter wants to use a font with optical sizes and this isn’t yet supported by 
the simplefonts module.

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] Fonts in Mk IV -- \definefontalternative documentation?

2011-11-11 Thread Christian
  Hello and welcome to the world of ConTeXt!
 
  I was in you place about one year ago :)
 
  The best way to get started with fonts is probably the simplefonts module.
 I haven't used anything since I started and was able to do everything I wished
 for, so far.
 
 Peter wants to use a font with optical sizes and this isn’t yet supported by
 the simplefonts module.
 
 Wolfgang

Huh, he wrote it works for GaramondPremPro and in his code he's using MyriadPro 
-- which, to my knowledge, does not come in optical sizes.

I thought he is struggling with the remaining weights besides regular and bold 
(light, semibold, black) for Myriad, so I posted a simplefonts solution to that.
Can't help with typescripts, though. 

Regards,
Chrisitan

___
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] Help on centering text inside the standard makeup

2011-11-11 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 As a new feature in MkIV there is also a layout with the same name as the 
 makeup
 environment and you can control the margins of your new title page environment
 with \setuplayout[titlepage][…].

 Wolfgang


This looks like the real right solution(tm). Thanks Wolfgang.

(Also updated http://wiki.contextgarden.net/Simple_Cover_Page)

Thanks again

Best wishes

-- 
Marco

___
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] Project structure and modes

2011-11-11 Thread Wolfgang Schuster
Hi Hans,

can you add the systemmodes for products, components etc. in MkIV because they 
are missing.

\startproduct test
\doifmodeelse{*product}{YES}{NO}
\stopproduct

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] feature request

2011-11-11 Thread Steffen Wolfrum
Hi Hans,

quite often I wish we could have a kind of in line comment:
Something like ¿this is my comment¡ this.

I assume it is not trivial due to catcode issues, to say the least.
But nevertheless, as it is getting close to christmas, I just wanted to mention 
this idea here.

Thanks,
Steffen
___
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] feature request

2011-11-11 Thread Andreas Harder

On 11.11.2011, at 16:34, Steffen Wolfrum wrote:

 Hi Hans,
 
 quite often I wish we could have a kind of in line comment:
 Something like ¿this is my comment¡ this.

Isn't there already \comment{…}?

\starttext
test \comment{comment} test
\stoptext

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] feature request

2011-11-11 Thread Wolfgang Schuster

Am 11.11.2011 um 16:53 schrieb Andreas Harder:

 
 On 11.11.2011, at 16:34, Steffen Wolfrum wrote:
 
 Hi Hans,
 
 quite often I wish we could have a kind of in line comment:
 Something like ¿this is my comment¡ this.
 
 Isn't there already \comment{…}?
 
 \starttext
 test \comment{comment} test
 \stoptext

The \comment command can be used to add PDF comments to your document, IIRC 
it’s documented in the widgets manual.

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] feature request

2011-11-11 Thread Wolfgang Schuster

Am 11.11.2011 um 16:34 schrieb Steffen Wolfrum:

 Hi Hans,
 
 quite often I wish we could have a kind of in line comment:
 Something like ¿this is my comment¡ this.
 
 I assume it is not trivial due to catcode issues, to say the least.
 But nevertheless, as it is getting close to christmas, I just wanted to 
 mention this idea here.

\usemodule[annotation]

\defineannotation[hide][alternative=none]

\starttext
Something like \hide{This is my comment!} this.
\stoptext

A simple definition of the hide which doesn’t require the annotation module is:

\define[1]\hide{\removeunwantedspaces}

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] Simplefonts: Font scaling problem

2011-11-11 Thread Christian
Good evening!
I want to scale a font loaded via the simplefonts so sans and serif have the 
same x-height.
But as soon as I use a font size larger than 12pt, the scaling is somehow off 
or ignored.
Example:

\usemodule[simplefonts]
\setupsimplefonts[expansion=quality, protrusion=quality] 
\setmainfont[Times New Roman]
\setsansfont[Arial][scale=0.863]
\starttext
\setupbodyfont[6pt]
06pt serif xx{\ss xx sans}\\ %fine
\setupbodyfont[12pt]
12pt serif xx{\ss xx sans}\\ %fine, too
\setupbodyfont[14pt]
14pt serif xx{\ss xx sans}\\ %here it starts to be off
\setupbodyfont[16pt]
16pt serif xx{\ss xx sans}\\
\stoptext

What is up with that?
attachment: FontScaling.JPG___
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] Simplefonts: Font scaling problem

2011-11-11 Thread Christian
 Good evening!
 I want to scale a font loaded via the simplefonts so sans and serif have the
 same x-height.
 But as soon as I use a font size larger than 12pt, the scaling is somehow off 
 or
 ignored.
 Example:
 
 \usemodule[simplefonts]
 \setupsimplefonts[expansion=quality, protrusion=quality]
 \setmainfont[Times New Roman]
 \setsansfont[Arial][scale=0.863]
 \starttext
 \setupbodyfont[6pt]
 06pt serif xx{\ss xx sans}\\ %fine
 \setupbodyfont[12pt]
 12pt serif xx{\ss xx sans}\\ %fine, too
 \setupbodyfont[14pt]
 14pt serif xx{\ss xx sans}\\ %here it starts to be off
 \setupbodyfont[16pt]
 16pt serif xx{\ss xx sans}\\
 \stoptext
 
 What is up with that?

Additional Information:
11pt - working fine
11.5pt - not working / not scaled
12pt- working fine

ConTeXt  ver: 2011.11.09 20:58 MKIV 

___
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] feature request

2011-11-11 Thread Idris Samawi Hamid ادريس سماوي حامد



On Fri, 11 Nov 2011 08:34:28 -0700, Steffen Wolfrum  
cont...@st.estfiles.de wrote:



quite often I wish we could have a kind of in line comment:
Something like ¿this is my comment¡ this.


I think the mechanism for fancy in-line comments is already there,  
developed one-or-two years ago as we were working on some  
critical-edition-related stuff ...


I saw the other answers: Could you elaborate more about exactly what  
you're looking for, just in case their suggestions don't quite hit the  
spot?


Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shiʿi Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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] Split option toggles caption font size

2011-11-11 Thread Andreas Harder
Hello Hans,

it seems that with the split option the body font setting from tabulate is also 
applied to the float caption.

\starttext
  \startbuffer
\setuptabulate[bodyfont=small]
\starttabulate
  \NC test \NC test \NC\NR
\stoptabulate
  \stopbuffer
  \placetable[split]{Should be in normal font size}{\getbuffer}
\stoptext


Regards
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] Omit part of a caption in a list

2011-11-11 Thread Hans Hagen

On 11-11-2011 14:35, Christian wrote:


P.S: Now I'also getting the 1.7MB pdf when including the png-file, like mentioned in the 
thread terrible png placement. (ConTeXt  ver: 2011.11.09 20:58 MKIV, LuaTeX, 
Version beta-0.70.1-200321 (rev 4277), Win32)
But I don't have png's in my work file, so that's no biggie.


strange, there's a \nopdfcompression in context.mkiv ... probably a left 
over from a test .. just remove that line and remake the format


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Project structure and modes

2011-11-11 Thread Hans Hagen

On 11-11-2011 16:02, Wolfgang Schuster wrote:

Hi Hans,

can you add the systemmodes for products, components etc. in MkIV because they 
are missing.

\startproduct test
\doifmodeelse{*product}{YES}{NO}
\stopproduct


I've added it but it needs checking as we need to push/pop modes (so 
there is now also \pushmode \popmode).


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Project structure and modes

2011-11-11 Thread Aditya Mahajan

On Fri, 11 Nov 2011, Hans Hagen wrote:


On 11-11-2011 16:02, Wolfgang Schuster wrote:

Hi Hans,

can you add the systemmodes for products, components etc. in MkIV because 
they are missing.


\startproduct test
\doifmodeelse{*product}{YES}{NO}
\stopproduct


I've added it but it needs checking as we need to push/pop modes (so there is 
now also \pushmode \popmode).


I have a hard time imagining a situation where push/pop modes will be 
useful. It it just so that we can avoid a group?


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