[NTG-context] Prime and overbar

2014-08-20 Thread Xan
Hi,

$\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one for 
$A'$. Is there any way for putting overbar just on top of the expression?

Thanks,
Xan

PS: Please CCme
___
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] Fancybreak - no hope?

2014-08-20 Thread Werner Hintze



On 19 Aug 2014, at 19:02, Hans Hagen wrote:

I see no message that the module is loaded which is weird. But your 
format is from may, so are you sure you use the latest versions of 
all?


I installed TexLive some days before from scratch because I made a 
reinstall for my Mac. This moment I looked for updates, but there was 
nothing So I think, it is the newest version.



Can you try the version from the contextgarden?


You mean the stand alone version? This one works without problems. 
It’s just the TextLive version which makes problems.

___
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] Fancybreak - no hope?

2014-08-20 Thread Werner Hintze

On 19 Aug 2014, at 19:16, Wolfgang Schuster wrote:

It’s a bug in the commands.usemodules function in file-mod.lua which 
sets a wrong status value

when you try to load a notexsitend file.


With your minimal example I get the message »file not found«. Does 
this mean, that context doesn’t find the module fancybreak? And what 
can I do? It’s in the right place – I believe...

___
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] weird interference in xml processing

2014-08-20 Thread Thomas A. Schmitz
Hi, 

I encounter a weird interference when setting xml entities. Minimal example:

\startbuffer[test]
a
  test sim; test
/a
\stopbuffer

\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{a}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups

\xmltexentity{sim}{\getglyph{name:texgyretermesmath}{\char223C}}

\starttext
\xmlprocessbuffer{main}{test}{}

\stoptext

Instead of the expected symbol, I get a grave accent with recent context betas 
(it works with betas until mid-June). When I try the command 
\getglyph{name:texgyretermesmath}{\char”223C} in a normal context document, I 
get the expected output. What is happening here? 

All best

Thomas
___
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] weird interference in xml processing

2014-08-20 Thread Hans Hagen

On 8/20/2014 1:28 PM, Thomas A. Schmitz wrote:

Hi,

I encounter a weird interference when setting xml entities. Minimal example:

\startbuffer[test]
a
   test sim; test
/a
\stopbuffer

\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{a}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups

\xmltexentity{sim}{\getglyph{name:texgyretermesmath}{\char223C}}

\starttext
\xmlprocessbuffer{main}{test}{}

\stoptext

Instead of the expected symbol, I get a grave accent with recent context betas 
(it works with betas until mid-June). When I try the command 
\getglyph{name:texgyretermesmath}{\char”223C} in a normal context document, I 
get the expected output. What is happening here?


So what is the expected symbol?

 [0x223C]={
  adobename=tildeoperator,
  description=TILDE OPERATOR,

Hans



All best

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




--

-
  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] Prime and overbar

2014-08-20 Thread Hans Hagen

On 8/20/2014 9:38 AM, Xan wrote:

Hi,

$\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one for $A'$. Is 
there any way for putting overbar just on top of the expression?


Can you be more explicit? I get the attached.


Thanks,
Xan

PS: Please CCme
___
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
___




--

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


test.pdf
Description: Adobe PDF document
___
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] Prime and overbar

2014-08-20 Thread Xan
On Wed, 20 Aug 2014 09:38:49 +0200
Xan dxpubl...@telefonica.net ha escrit:

 Hi,
 
 $\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one 
 for $A'$. Is there any way for putting overbar just on top of the 
 expression?
 
 Thanks,
 Xan
 
 PS: Please CCme

Yes.




x.pdf
Description: Adobe PDF document
\starttext
\overbar{$A'B'$}
\stoptext___
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] Prime and overbar

2014-08-20 Thread Aditya Mahajan

On Wed, 20 Aug 2014, Xan wrote:


On Wed, 20 Aug 2014 09:38:49 +0200
Xan dxpubl...@telefonica.net ha escrit:


Hi,

$\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one for $A'$. Is 
there any way for putting overbar just on top of the expression?

Thanks,
Xan



Yes.


That is a very old version of ConTeXt that you are using: ConTeXt - 
2013.05.28 00:36. Have you tried with a more recent version?


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
___


Re: [NTG-context] Prime and overbar

2014-08-20 Thread Aditya Mahajan

On Wed, 20 Aug 2014, Aditya Mahajan wrote:


On Wed, 20 Aug 2014, Xan wrote:


On Wed, 20 Aug 2014 09:38:49 +0200
Xan dxpubl...@telefonica.net ha escrit:


Hi,

$\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one 
for $A'$. Is there any way for putting overbar just on top of the 
expression?


Thanks,
Xan



Yes.


That is a very old version of ConTeXt that you are using: ConTeXt - 
2013.05.28 00:36. Have you tried with a more recent version?


(Untested): With the older version, you can try \overline instead of 
\overbar.


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
___


[NTG-context] Heading followed by itemize: how to keep them together?

2014-08-20 Thread Gerben Wierda
When I have:

\subsubsection{Foo}
\startitemize[joinedup,packed]
\item Bar
\item Bar
\item Bar
\stopitemize

TeX may put a page break between the heading and the paragraph. Is there a way 
to prevent this? I tried

\subsubsection{Foo}\page[no]
\startitemize[joinedup,packed]
\item Bar
\item Bar
\item Bar
\stopitemize

and 

\subsubsection{Foo}
\startitemize[joinedup,packed]\page[no]
\item Bar
\item Bar
\item Bar
\stopitemize

but both did not work. I can of course force with

\page[yes]\subsubsection{Foo}
\startitemize[joinedup,packed]
\item Bar
\item Bar
\item Bar
\stopitemize

but that is not ribust under change in the document.

G___
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] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda
On 20 Aug 2014, at 01:22, Aditya Mahajan adit...@umich.edu wrote:

 
 
 On Wed, 20 Aug 2014, Gerben Wierda wrote:
 
 On 19 Aug 2014, at 16:33, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 19.08.2014 um 16:27 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I’d like to get \startitemize\stopitemize to indent the first level items 
 already with the equal amount of indentation as the start of a paragraph 
 (which is indented). Is there a way to do that?
 
 \setupindenting[yes,medium]
 
 \starttext
 
 \input knuth
 
 \startitemize[margin=standard]
 
 Does the margin thing, but incapacitates packed and joinedup, which are 
 ignored if the margin statement is there. So, I get indented items, but at 
 the price of losing joinedup and packed.
 
 \setupindenting[yes,medium]
 
 \starttext
 Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
 \startitemize[joinedup,packed]
 \item Foo bar
 \item Foo bar
 \stopitemize
 Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
 
 Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
 \startitemize[joinedup,packed,margin=standard]
 
 You need to separate keywords with assignments:
 
 \startitemize[joinedup, packed][margin=standard]

Thanks. I used

\setupitemize[each][margin=standard]

and this works. However, I've noticed that the normal pararaph indent is just a 
little bit more than the itemize margin. The bullets of the list are not 
aligned perfectly with the indented line. They are indented slightly less. 
Anything I can do about that?

G


 
 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
 ___

___
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] How do I tell \completecontent not to include anything below the \chapter level?

2014-08-20 Thread Gerben Wierda
See subject. Same question for other levels.

G
___
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] Rotate does not work on externalfigure

2014-08-20 Thread Gerben Wierda
\placefigure [] [foo] {Bar}
{\externalfigure[foo.pdf][rotation=90]}

Does not rotate my figure. It just remains as is. Am I forgetting something?

G___
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] Heading followed by itemize: how to keep them together?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 16:01 schrieb Gerben Wierda gerben.wie...@rna.nl:

 When I have:
 
 \subsubsection{Foo}
 \startitemize[joinedup,packed]
 \item Bar
 \item Bar
 \item Bar
 \stopitemize
 
 TeX may put a page break between the heading and the paragraph. Is there a 
 way to prevent this? I tried
 
 \subsubsection{Foo}\page[no]
 \startitemize[joinedup,packed]
 \item Bar
 \item Bar
 \item Bar
 \stopitemize
 
 and 
 
 \subsubsection{Foo}
 \startitemize[joinedup,packed]\page[no]
 \item Bar
 \item Bar
 \item Bar
 \stopitemize
 
 but both did not work. I can of course force with
 
 \page[yes]\subsubsection{Foo}
 \startitemize[joinedup,packed]
 \item Bar
 \item Bar
 \item Bar
 \stopitemize
 
 but that is not ribust under change in the document.

\startitemize[…,intro]

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] How do I tell \completecontent not to include anything below the \chapter level?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 16:14 schrieb Gerben Wierda gerben.wie...@rna.nl:

 See subject. Same question for other levels.

Method 1 (MkII only):

\starttext

\completecontent[level=chapter]

\dorecurse{10}
  {\chapter{Chapter #1}
   \dorecurse{2}
 {\section{Section #1.##1}
  \dorecurse{2}{\subsection{Subsection #1.##1.1

\stoptext


Method 2 (MkII and MkIV):

\definecombinedlist[content][chapter]

\starttext

\completecontent

\dorecurse{10}
  {\chapter{Chapter #1}
   \dorecurse{2}
 {\section{Section #1.##1}
  \dorecurse{2}{\subsection{Subsection #1.##1.1

\stoptext


Method 3 (MkIV only):

\starttext

\completecontent[list=chapter] % list={chapter,section}

\dorecurse{10}
  {\chapter{Chapter #1}
   \dorecurse{2}
 {\section{Section #1.##1}
  \dorecurse{2}{\subsection{Subsection #1.##1.1

\stoptext


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] Overriding figure number?

2014-08-20 Thread Gerben Wierda
I have a few \externalfigure statements where I need to override the 
automatically produced figure number. How do I do that?

G
___
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] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:

 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is just 
 a little bit more than the itemize margin. The bullets of the list are not 
 aligned perfectly with the indented line. They are indented slightly less. 
 Anything I can do about that?

Are you sure?

\setupindenting[yes,medium]

\definelayer[check][width=\paperwidth,height=\paperheight]

\setlayer[check][x=\dimexpr\backspace+1.5em\relax]{\blackrule[width=\linewidth,height=\paperheight]}

\setupbackgrounds[page][background=check]

\starttext

\input knuth

\startitemize[margin=standard]
\item \input ward
\stopitemize

\input tufte

\stoptext

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] Rotate does not work on externalfigure

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 17:09 schrieb Gerben Wierda gerben.wie...@rna.nl:

 \placefigure [] [foo] {Bar}
   {\externalfigure[foo.pdf][rotation=90]}
 
 Does not rotate my figure. It just remains as is. Am I forgetting something?

You’re using the wrong key.

\setupexternalfigures[location=default]

\starttext

\externalfigure[cow][width=4cm]

\externalfigure[cow][width=4cm,orientation=90]

\rotate[rotation=90]{\externalfigure[cow][width=4cm]}

\stoptext

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] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list are 
 not aligned perfectly with the indented line. They are indented slightly 
 less. Anything I can do about that?
 
 Are you sure?

Yes:

https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png

Your example works out fine.

G

___
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] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:

 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list are 
 not aligned perfectly with the indented line. They are indented slightly 
 less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png

Make a *working* minimal example.

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] Rotate does not work on externalfigure

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 17:26, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 17:09 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 \placefigure [] [foo] {Bar}
  {\externalfigure[foo.pdf][rotation=90]}
 
 Does not rotate my figure. It just remains as is. Am I forgetting something?
 
 You’re using the wrong key.
 
 \setupexternalfigures[location=default]
 
 \starttext
 
 \externalfigure[cow][width=4cm]
 
 \externalfigure[cow][width=4cm,orientation=90]

This one has an interesting side effect. My image is wider than high. It was 
scaled too small so i wanted to rotate it and make it bigger. With this one it 
seems the bounding box is not rotated, so the top of the rotated picture is off 
the page.

 \rotate[rotation=90]{\externalfigure[cow][width=4cm]}

This works better, but the figure's size is not changed. Apparently, the size 
is calculated before it is rotated. And these claculations stick in different 
ways.

 
 \stoptext
 
 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] Rotate does not work on externalfigure

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 17:39 schrieb Gerben Wierda gerben.wie...@rna.nl:

 
 On 20 Aug 2014, at 17:26, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 17:09 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 \placefigure [] [foo] {Bar}
 {\externalfigure[foo.pdf][rotation=90]}
 
 Does not rotate my figure. It just remains as is. Am I forgetting something?
 
 You’re using the wrong key.
 
 \setupexternalfigures[location=default]
 
 \starttext
 
 \externalfigure[cow][width=4cm]
 
 \externalfigure[cow][width=4cm,orientation=90]
 
 This one has an interesting side effect. My image is wider than high. It was 
 scaled too small so i wanted to rotate it and make it bigger. With this one 
 it seems the bounding box is not rotated, so the top of the rotated picture 
 is off the page.

The dimensions are correct when you use MkIV.

 \rotate[rotation=90]{\externalfigure[cow][width=4cm]}
 
 This works better, but the figure's size is not changed. Apparently, the size 
 is calculated before it is rotated. And these claculations stick in different 
 ways.

What do you expect, the width setting is for the unrotated figure.

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] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 17:34, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list 
 are not aligned perfectly with the indented line. They are indented 
 slightly less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png
 
 Make a *working* minimal example.

Having that part in a smaller bodyfont is what triggers it:

\starttext
\setupbodyfont[12pt]

\setupindenting[small]
\indenting[yes]
\setupitemize[each][margin=standard]

\start
\switchtobodyfont[8pt]

Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar.
(PSA) becomes the Project Architecture (PA). As of that moment:
\startitemize[joinedup,packed]
\item Foo
\item Foo
\item Foo
\item Foo
\stopitemize

Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar.
Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar.
Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar.

\stop
\stoptext___
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] Rotate does not work on externalfigure

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 17:47, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 17:39 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:26, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 17:09 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 \placefigure [] [foo] {Bar}
{\externalfigure[foo.pdf][rotation=90]}
 
 Does not rotate my figure. It just remains as is. Am I forgetting 
 something?
 
 You’re using the wrong key.
 
 \setupexternalfigures[location=default]
 
 \starttext
 
 \externalfigure[cow][width=4cm]
 
 \externalfigure[cow][width=4cm,orientation=90]
 
 This one has an interesting side effect. My image is wider than high. It was 
 scaled too small so i wanted to rotate it and make it bigger. With this one 
 it seems the bounding box is not rotated, so the top of the rotated picture 
 is off the page.
 
 The dimensions are correct when you use MkIV.

I'd rather not change my production work to a research product :-) Too risky. 
And officially mkii is still maintained (or that is what I read).

 \rotate[rotation=90]{\externalfigure[cow][width=4cm]}
 
 This works better, but the figure's size is not changed. Apparently, the 
 size is calculated before it is rotated. And these claculations stick in 
 different ways.
 
 What do you expect, the width setting is for the unrotated figure.

Actually, I was not using width at all, just \externalfigure[foo]

I expected that \externalfigure[foo][orientation=90] would first rotate the 
figure and then calculate its size. But it did not. It put in a figure of 4x8, 
while telling TeX the box was 8x4.

I do expect that \rotate[rotation=90]{\externalfigure[foo][width=4cm]} gets me 
a height of 4cm.

G

 
 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] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 17:53 schrieb Gerben Wierda gerben.wie...@rna.nl:

 
 On 20 Aug 2014, at 17:34, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list 
 are not aligned perfectly with the indented line. They are indented 
 slightly less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png
 
 Make a *working* minimal example.
 
 Having that part in a smaller bodyfont is what triggers it:
 
 \starttext
 \setupbodyfont[12pt]
 
 \setupindenting[small]
 \indenting[yes]

Don’t use \indenting, it’s a old command with the same meaning as 
\setupindenting.

 \setupitemize[each][margin=standard]

You ned absolute values for indentation and margin, e.g.

\setupindenting[yes,5mm]
\setupitemize[each][margin=5mm]

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] Rotate does not work on externalfigure

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 18:00 schrieb Gerben Wierda gerben.wie...@rna.nl:

 \rotate[rotation=90]{\externalfigure[cow][width=4cm]}
 
 This works better, but the figure's size is not changed. Apparently, the 
 size is calculated before it is rotated. And these claculations stick in 
 different ways.
 
 What do you expect, the width setting is for the unrotated figure.
 
 Actually, I was not using width at all, just \externalfigure[foo]
 
 I expected that \externalfigure[foo][orientation=90] would first rotate the 
 figure and then calculate its size. But it did not. It put in a figure of 
 4x8, while telling TeX the box was 8x4.

It’s a \framed bug in MkII but you can use \rotate to avoid it.

 I do expect that \rotate[rotation=90]{\externalfigure[foo][width=4cm]} gets 
 me a height of 4cm.

As you can see the figure has a height of 4cm.

\setupexternalfigures[location=default]

\starttext

\dontleavehmode\blackrule[height=4cm] 
\rotate[rotation=90]{\externalfigure[cow][width=4cm]}

\stoptext

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] Overriding figure number?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 17:22 schrieb Gerben Wierda gerben.wie...@rna.nl:

 I have a few \externalfigure statements where I need to override the 
 automatically produced figure number. How do I do that?

Can you give more information?

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] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 18:01, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 17:53 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:34, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list 
 are not aligned perfectly with the indented line. They are indented 
 slightly less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png
 
 Make a *working* minimal example.
 
 Having that part in a smaller bodyfont is what triggers it:
 
 \starttext
 \setupbodyfont[12pt]
 
 \setupindenting[small]
 \indenting[yes]
 
 Don’t use \indenting, it’s a old command with the same meaning as 
 \setupindenting.
 
 \setupitemize[each][margin=standard]
 
 You ned absolute values for indentation and margin, e.g.
 
 \setupindenting[yes,5mm]
 \setupitemize[each][margin=5mm]

Works ok at first level. Second level doesn't exactly align. But there is some 
startstopnarrower in play too. I'l try to create a minimal example.

 
 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] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 19:01 schrieb Gerben Wierda gerben.wie...@rna.nl:

 Works ok at first level. Second level doesn't exactly align. But there is 
 some startstopnarrower in play too. I'l try to create a minimal example.

The narrower environment does also use font dependent values for the left and 
right margins.

A good method to set a global value for all environments is to set the 
dimension with the
\definemeasure command and access it with the \measure command.

% engine=pdftex

\definemeasure[myindent][12pt]

\setupindenting[yes,\measure{myindent}]

\setupnarrower
  [  left=\measure{myindent},
right=\measure{myindent},
   middle=\measure{myindent}]

\setupitemize[each][margin=\measure{myindent}]%,width=\measure{myindent}]

\starttext

\input knuth

\startitemize
\item \input ward
\stopitemize

\startnarrower
\input zapf
\stopnarrower

\stoptext

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
___