[NTG-context] Re: blank line and \placefigure

2024-04-06 Thread Thomas Meyer

Here is a minimal example that better describes my problem.
It seems to depend on the size of the image. 30 mm and 40 mm width 
works, 35 mm does not.
I have not tested height, although the image I want to use would be 
portrait format.


\setuplayout[grid=yes]
\setupinterlinespace[line=15pt]
\starttext
\input{knuth}
\startlinecorrection
\placefigure[left, none]
[]{}\externalfigure[cow.pdf][width=40mm]
\input{knuth}
\stoplinecorrection
\stoptext

Thomas

Am 06.04.24 um 13:43 schrieb Wolfgang Schuster:

Henning Hraban Ramm schrieb am 06.04.2024 um 12:56:

Am 06.04.24 um 12:48 schrieb Thomas Meyer:
how can I suppress a blank line between a text paragraph and 
\placefigure?

I get one there, but I don't want it.


Did you try
\setupfloat[figure][spacebefore=,]
?
or "none" or "{disable,nowhite,back}"


You can set the space only for *all* floats, e.g.

    \setupfloat[spacebefore=...,spaceafter=...]

and not for a single float type only.

Wolfgang

___ 

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


maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net 
(mirror)

archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___ 

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: blank line and \placefigure

2024-04-06 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 06.04.2024 um 12:56:

Am 06.04.24 um 12:48 schrieb Thomas Meyer:
how can I suppress a blank line between a text paragraph and 
\placefigure?

I get one there, but I don't want it.


Did you try
\setupfloat[figure][spacebefore=,]
?
or "none" or "{disable,nowhite,back}"


You can set the space only for *all* floats, e.g.

    \setupfloat[spacebefore=...,spaceafter=...]

and not for a single float type only.

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: blank line and \placefigure

2024-04-06 Thread Henning Hraban Ramm

Am 06.04.24 um 12:48 schrieb Thomas Meyer:

how can I suppress a blank line between a text paragraph and \placefigure?
I get one there, but I don't want it.


Did you try
\setupfloat[figure][spacebefore=,]
?
or "none" or "{disable,nowhite,back}"

https://wiki.contextgarden.net/Command/setupfloat
https://wiki.contextgarden.net/Command/blank

HTH
Hraban

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] blank line and \placefigure

2024-04-06 Thread Thomas Meyer

Hi folks,

how can I suppress a blank line between a text paragraph and \placefigure?
I get one there, but I don't want it.

Thanks and greetings on a sunny weekend
Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-10 Thread Hans Hagen via ntg-context

On 12/9/2023 4:33 PM, Aditya Mahajan wrote:

On Sat, 9 Dec 2023, Wolfgang Schuster wrote:


\starttext

\startlines
\type{\frac{1}{3}}: \m{\frac{1}{3}}
\type{\xfrac{1}{3}}: \m{\xfrac{1}{3}}
\type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}}
\type{\tfrac{1}{3}}: \m{\tfrac{1}{3}}
\type{\sfrac{1}{3}}: \m{\sfrac{1}{3}}
\type{\frac{1}{3}}: \m{\frac{1}{3}}
\type{\dfrac{1}{3}}: \m{\dfrac{1}{3}}
\type{\cfrac{1}{3}}: \m{\cfrac{1}{3}}
\type{\vfrac{1}{3}}: \m{\vfrac{1}{3}}
\type{\hfrac{1}{3}}: \m{\hfrac{1}{3}}
\stoplines

\stoptext


Or, for inline math, $\sqrt{1/3}$.

radicals are somewhat special to deal with:

- multidimensional delimiter
- vertical spacing inside
- horizontal spacing oustside
- anchoring degrees
- left and right radicals
- more consistent rules (char based)
- size dependent additional spacing (avoid clash)
- normalize size across formula
- lack of granularity in variants sizes

by now we have dealt with all of that (some not in the current release), 
think of additional control in the engine, compensation for insufficient 
opentype math features, companion fonts with more sizes


there will always be suboptimal cases but the average is ok (we put 
radical - character kerning on hold because it is a lot of definitions) 
and we don't want to add hard to fight heuristics


so to inline: in most cases the solution that Adirya suggests will work 
out okay with respect toline spacing


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 09.12.2023 um 17:19:

Very clear !
In typography for Mathematics books, what choice should we make for 
the best possible result ?


A question better answered by Mikael or Aditya!

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Aditya Mahajan
On Sat, 9 Dec 2023, Wolfgang Schuster wrote:

> \starttext
> 
> \startlines
> \type{\frac{1}{3}}: \m{\frac{1}{3}}
> \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}}
> \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}}
> \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}}
> \type{\sfrac{1}{3}}: \m{\sfrac{1}{3}}
> \type{\frac{1}{3}}: \m{\frac{1}{3}}
> \type{\dfrac{1}{3}}: \m{\dfrac{1}{3}}
> \type{\cfrac{1}{3}}: \m{\cfrac{1}{3}}
> \type{\vfrac{1}{3}}: \m{\vfrac{1}{3}}
> \type{\hfrac{1}{3}}: \m{\hfrac{1}{3}}
> \stoplines
> 
> \stoptext

Or, for inline math, $\sqrt{1/3}$. 

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 09.12.2023 um 16:13:

Hi Wolfgang,
I'm reading this thread and I'm interested because I type a lot of 
text with mathematical formulas.
In fact, I find that \dfrac{} creates unsightly leading space and that 
\frac{} is too small. What is the difference between \frac{} and 
\tfrac{} ?


\frac switches the math style while \tfrac (textstyle), \dfrac 
(displaystyle) and \sfrac (scriptstyle) enforce a certain style.


 begin example
\startbuffer[frac]
\frac{1}{2} + \dfrac{1}{2} - \tfrac{1}{2} + \sfrac{1}{2}
\stopbuffer

\starttext

\startformula
\getbuffer[frac]
\stopformula

\m{\getbuffer[frac]}

\startformula
  \frac
    {\getbuffer[frac]}
    {\getbuffer[frac]}
\stopformula

\m{\frac
  {\getbuffer[frac]}
  {\getbuffer[frac]}}

\stoptext
 end example

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread anton . chigurh
Thanks :-)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Fabrice Couvreur
Hi Wolfgang,
I'm reading this thread and I'm interested because I type a lot of text
with mathematical formulas.
In fact, I find that \dfrac{} creates unsightly leading space and that
\frac{} is too small. What is the difference between \frac{} and \tfrac{} ?
Fabrice

Le sam. 9 déc. 2023 à 14:00, Henning Hraban Ramm  a écrit :

> Am 09.12.23 um 14:43 schrieb Wolfgang Schuster:
> > anton.chig...@mail.com schrieb am 09.12.2023 um 14:15:
> > \startlines
> > \type{\frac{1}{3}}: \m{\frac{1}{3}}
> > \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}}
> > \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}}
> > \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}}
> > \type{\sfrac{1}{3}}: \m{\sfrac{1}{3}}
> > \type{\frac{1}{3}}: \m{\frac{1}{3}}
> > \type{\dfrac{1}{3}}: \m{\dfrac{1}{3}}
> > \type{\cfrac{1}{3}}: \m{\cfrac{1}{3}}
> > \type{\vfrac{1}{3}}: \m{\vfrac{1}{3}}
> > \type{\hfrac{1}{3}}: \m{\hfrac{1}{3}}
> > \stoplines
>
> There’s also \vulgarfraction{1}{3} (but probably not suitable for your
> application).
>
> Hraban
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Henning Hraban Ramm

Am 09.12.23 um 14:43 schrieb Wolfgang Schuster:

anton.chig...@mail.com schrieb am 09.12.2023 um 14:15:
\startlines
\type{\frac{1}{3}}: \m{\frac{1}{3}}
\type{\xfrac{1}{3}}: \m{\xfrac{1}{3}}
\type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}}
\type{\tfrac{1}{3}}: \m{\tfrac{1}{3}}
\type{\sfrac{1}{3}}: \m{\sfrac{1}{3}}
\type{\frac{1}{3}}: \m{\frac{1}{3}}
\type{\dfrac{1}{3}}: \m{\dfrac{1}{3}}
\type{\cfrac{1}{3}}: \m{\cfrac{1}{3}}
\type{\vfrac{1}{3}}: \m{\vfrac{1}{3}}
\type{\hfrac{1}{3}}: \m{\hfrac{1}{3}}
\stoplines


There’s also \vulgarfraction{1}{3} (but probably not suitable for your 
application).


Hraban

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster

anton.chig...@mail.com schrieb am 09.12.2023 um 14:15:

I worked, ;-), thanks.
Let me ask you another thing, how can I avoid messing up the
line spacing by using \sqrt and \frac, the line that follows these has increased
line spacing in the pdf output

code:
Find the normal and shearing stresses on an oblique plane defined by
$l=\sqrt{\frac{3}{13}}$, $m=\sqrt{\frac{1}{13}}$, and $n=\sqrt{\frac{9}{13}}$.


Complete working minimal examples are preferred over code snippets.

To avoid single lines with different spacing you can either increase the 
line spacing for all
lines with \setupinterlinespace or you use a different fraction command 
which uses

smaller numbers or creates inline fractions.

\starttext

\startlines
\type{\frac{1}{3}}: \m{\frac{1}{3}}
\type{\xfrac{1}{3}}: \m{\xfrac{1}{3}}
\type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}}
\type{\tfrac{1}{3}}: \m{\tfrac{1}{3}}
\type{\sfrac{1}{3}}: \m{\sfrac{1}{3}}
\type{\frac{1}{3}}: \m{\frac{1}{3}}
\type{\dfrac{1}{3}}: \m{\dfrac{1}{3}}
\type{\cfrac{1}{3}}: \m{\cfrac{1}{3}}
\type{\vfrac{1}{3}}: \m{\vfrac{1}{3}}
\type{\hfrac{1}{3}}: \m{\hfrac{1}{3}}
\stoplines

\stoptext

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: \placefigure[location=here...] problem

2023-12-09 Thread anton . chigurh
I worked, ;-), thanks.
Let me ask you another thing, how can I avoid messing up the
line spacing by using \sqrt and \frac, the line that follows these has increased
line spacing in the pdf output

code:
Find the normal and shearing stresses on an oblique plane defined by
$l=\sqrt{\frac{3}{13}}$, $m=\sqrt{\frac{1}{13}}$, and $n=\sqrt{\frac{9}{13}}$.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: \placefigure[location=here...] problem

2023-12-09 Thread Wolfgang Schuster

anton.chig...@mail.com schrieb am 09.12.2023 um 11:50:

Hi all,
I am generating a quiz, with eight questions, each
with text and a figure following it. The output was fine till the
fifth question, but then the margin separating the  text of
each question disappeared and the figure got put on the
next page one after the other.
Can anyone suggest what I could be doing wrong?


Without a proper example it's difficult to give an answer.


Do I need to increase the buffer? how?


This is what I have used to place each figure
\startplacefigure[location=here,reference=fig:blah][]{}
  \externalfigure[blah.jpeg][scale=300]
\stopplacefigure


You can try the force option:

\startplacefigure[location=force,reference=fig:blah]
  \externalfigure[blah.jpeg][scale=300]
\stopplacefigure

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] \placefigure[location=here...] problem

2023-12-09 Thread anton . chigurh
Hi all,
I am generating a quiz, with eight questions, each
with text and a figure following it. The output was fine till the
fifth question, but then the margin separating the  text of
each question disappeared and the figure got put on the
next page one after the other.
Can anyone suggest what I could be doing wrong?
Do I need to increase the buffer? how?


This is what I have used to place each figure
\startplacefigure[location=here,reference=fig:blah][]{}
 \externalfigure[blah.jpeg][scale=300]
\stopplacefigure
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Bug (?) with \placefigure[right]

2022-08-16 Thread Wolfgang Schuster via ntg-context

Bruce Horrocks via ntg-context schrieb am 16.08.2022 um 18:11:

Things start to go awry after about 5 or 6 iterations, 12 shows it up clearly 
with three or so nearly blank (except for the subject) pages produced.

\setuppapersize [A5] [A5]
\starttext
\dorecurse{12}{
\subject{Some heading}
\placefigure[right] {} {\externalfigure[cow.pdf] [width=3cm]}
\input lorem
}
\stoptext

I actually want \placefigure[right,none] in my real doc but that also goes awry.
LMTX current version: 2022.08.05 11:44

My actual requirement is to have a set of short biographies, including a small 
'passport' photo, for each contributor to a book. So any suggestions on how to 
wrap text around the photo that avoids this issue would be welcome.


\setuppapersize [A5] [A5]

\starttext

\dorecurse{12}
  {\subject{Some heading}
   \starthanging[right]{\externalfigure[cow.pdf][width=3cm]}
   \samplefile{lorem}
   \stophanging}

\stoptext

Wolfgang

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Bug (?) with \placefigure[right]

2022-08-16 Thread Bruce Horrocks via ntg-context
Things start to go awry after about 5 or 6 iterations, 12 shows it up clearly 
with three or so nearly blank (except for the subject) pages produced.

\setuppapersize [A5] [A5]
\starttext
\dorecurse{12}{
\subject{Some heading}
\placefigure[right] {} {\externalfigure[cow.pdf] [width=3cm]}
\input lorem
}
\stoptext

I actually want \placefigure[right,none] in my real doc but that also goes awry.
LMTX current version: 2022.08.05 11:44

My actual requirement is to have a set of short biographies, including a small 
'passport' photo, for each contributor to a book. So any suggestions on how to 
wrap text around the photo that avoids this issue would be welcome.
—
Bruce Horrocks
Hampshire, UK

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-30 Thread Henning Hraban Ramm via ntg-context

Am 30.01.22 um 00:44 schrieb Bruce Horrocks via ntg-context:

On 29 Jan 2022, at 21:30, Joel via ntg-context  wrote:


When I used `\placefigure`, ConTeXt often puts the figure on a completely 
different page, my readership of young students is getting confused where the 
image is. How can I have all of my `\placefigure` in the entire document appear 
exactly where called, even if that means having to place it on a new page with 
lots of space before it or even a new page afterwards? I need it to show up in 
the order it was called. I think `\setupexternalfigures[location=]` should 
provide the solution, but cann't figure what is the correct location, I'm not 
seeing that in the manual anywhere.


Use the force Luke...

e.g.
\placefigure [force] [fig1] {Caption} {\externalfigure [filename.png]}

The location= option is for where on the page (e.g. in a margin, in the main 
text) the picture will go, the actual page it appears on is controlled by 
'here' or 'force' or the default which is to float along until it finds what it 
thinks is a good place.


Not really. "here" and "force" are just options for location, i.e.
location={here,force}
should mostly do what you want.

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Bruce Horrocks via ntg-context
On 29 Jan 2022, at 21:30, Joel via ntg-context  wrote:
> 
> When I used `\placefigure`, ConTeXt often puts the figure on a completely 
> different page, my readership of young students is getting confused where the 
> image is. How can I have all of my `\placefigure` in the entire document 
> appear exactly where called, even if that means having to place it on a new 
> page with lots of space before it or even a new page afterwards? I need it to 
> show up in the order it was called. I think 
> `\setupexternalfigures[location=]` should provide the solution, but cann't 
> figure what is the correct location, I'm not seeing that in the manual 
> anywhere.

Use the force Luke...

e.g.
\placefigure [force] [fig1] {Caption} {\externalfigure [filename.png]}

The location= option is for where on the page (e.g. in a margin, in the main 
text) the picture will go, the actual page it appears on is controlled by 
'here' or 'force' or the default which is to float along until it finds what it 
thinks is a good place.

—
Bruce Horrocks
Hampshire, UK

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Joel via ntg-context
When I used `\placefigure`, ConTeXt often puts the figure on a completely 
different page, my readership of young students is getting confused where the 
image is. How can I have all of my `\placefigure` in the entire document appear 
exactly where called, even if that means having to place it on a new page with 
lots of space before it or even a new page afterwards? I need it to show up in 
the order it was called. I think `\setupexternalfigures[location=]` should 
provide the solution, but cann't figure what is the correct location, I'm not 
seeing that in the manual anywhere.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] placefigure, usetikzlibrary and readfile

2021-08-02 Thread Hans Hagen via ntg-context

On 8/1/2021 10:27 PM, Jigé via ntg-context wrote:

Hello all.

It seems that \usetikzlibrary is sometimes read, sometimes not, and I don't 
understand why.

Rationale:

I would like, using one file, to use it to produce a picture, as with LaTeX's 
Standalone class,
but to be able to include it in a calling document as well, for better 
management of fonts, etc.
Thus this is most convenient. I have everything in the main document and I can 
quickly reuse any figure elsewhere.


What I did:

I use \readfile in a main ConTeXt file document.tex to include the file 
included.tex .
The file included.tex should contain *just* the TikZ picture and what is needed to 
compile it "standalone".


The issue:

It seems I can call the file with the TikZ picture description multiple times, 
with \readfile,
from within the very same \placefigure.

However, if I call it by using two successive \placefigure commands,
the \usetikzlibrary[blabla] in the included file doesn't seem to be recognised.
E.g. with the provided example below, the key "right angle" is not understood, 
as if \usetikzlibrary[angles] was not there.

One workaround would be to use 
\usetikzlibrary[allTheLibrariesISupposeMightEverBeNeeded]
in the calling file. But I don't like it. I would rather have only the TikZ 
libraries relevant to some picture included in the corresponding file.

I'm quite startled by the fact that :
   >  \placefigure[here][]{This is a figure}{
   >\readfile{included}{}{File not found.}
   >\readfile{included}{}{File not found.}
   >  }
compiles but
   >  \placefigure[here][]{This is a figure}{
   >\readfile{included}{}{File not found.}
   >  }
   >  \placefigure[here][]{This is a figure}{
   >\readfile{included}{}{File not found.}
   >  }
does not.
modules are loaded only once so you just have to call it in the main 
document (more efficient than reloading each time anyway)


loading some module inside a figure is actually problemantic because you 
can end up with a mix of global and local definitions depending on how a 
module is set up (and tikz being pretty large it might be that at some 
point you can expect problems, apart from loading taking time)


you can try to do \input {m-tikz.mlxl} or whatever but don't expect much 
help when there is an isseu due to multiple loading of tikz


if there's a lot of extra tikz stuff then you can put that in a privane 
module or environment (these are also loaded once) and load that one


if you use the project structure you can actually share environments and 
again these are then loaded once


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] placefigure, usetikzlibrary and readfile

2021-08-01 Thread Jigé via ntg-context
Hello all.

It seems that \usetikzlibrary is sometimes read, sometimes not, and I don't 
understand why. 

Rationale:

I would like, using one file, to use it to produce a picture, as with LaTeX's 
Standalone class,
but to be able to include it in a calling document as well, for better 
management of fonts, etc.
Thus this is most convenient. I have everything in the main document and I can 
quickly reuse any figure elsewhere.


What I did:

I use \readfile in a main ConTeXt file document.tex to include the file 
included.tex .
The file included.tex should contain *just* the TikZ picture and what is needed 
to compile it "standalone".


The issue:

It seems I can call the file with the TikZ picture description multiple times, 
with \readfile,
from within the very same \placefigure.

However, if I call it by using two successive \placefigure commands,
the \usetikzlibrary[blabla] in the included file doesn't seem to be recognised.
E.g. with the provided example below, the key "right angle" is not understood, 
as if \usetikzlibrary[angles] was not there.

One workaround would be to use 
\usetikzlibrary[allTheLibrariesISupposeMightEverBeNeeded]
in the calling file. But I don't like it. I would rather have only the TikZ 
libraries relevant to some picture included in the corresponding file.

I'm quite startled by the fact that :
  >  \placefigure[here][]{This is a figure}{
  >\readfile{included}{}{File not found.}
  >\readfile{included}{}{File not found.}
  >  }
compiles but
  >  \placefigure[here][]{This is a figure}{
  >\readfile{included}{}{File not found.}
  >  }
  >  \placefigure[here][]{This is a figure}{
  >\readfile{included}{}{File not found.}
  >  }
does not.


All the best!


Example:

 Begin document.tex

\usemodule[tikz]

\starttext

\usetikzlibrary[angles] % Doesn't compile if this is commented out.

%\placefigure[here][]{This is a figure}{
%  \readfile{included}{}{File not found.}
%  \readfile{included}{}{File not found.}
%}

\placefigure[here][]{This is a figure}{
  \ReadFile{included}{}
}
\placefigure[here][]{This is a figure}{
  \ReadFile{included}{}
}

\stoptext
 End document.tex

 Begin included.tex
\usemodule[tikz]
\usetikzlibrary[angles]
%\doifnotmode{*text,*bodypart}{ \startTEXpage[fit] }
\doifnotmode{*text,*bodypart}{ \startTEXpage[fit] \usemodule[tikz] 
\usetikzlibrary[angles] }
\hbox{\starttikzpicture[]
  \draw[]
   (0,0) coordinate (A) node[left] {$A$}
-- (4,0) coordinate (B) node[right] {$B$}
-- (0,3) coordinate (C) node[left] {$C$}
-- cycle
pic [draw, angle radius=0.5cm] {right angle = B--A--C} ;
\stoptikzpicture}
\doifnotmode{*text,*bodypart}{ \stopTEXpage }
 End included.tex

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] placefigure RTL

2021-03-05 Thread Mohammad Hossein Bateni
Hello,

Is there a way to make \placefigure[left,right] work in RTL documents?
Here's a MWE:


\starttext
\setupalign[r2l]
\placefigure[none,right]{}{\externalfigure[cow]}
\input knuth
\placefigure[none,left]{}{\externalfigure[cow]}
\input knuth
\page
\setupalign[l2r]
\placefigure[none,right]{}{\externalfigure[cow]}
\input knuth
\placefigure[none,left]{}{\externalfigure[cow]}
\input knuth
\stoptext


Thanks a lot,
--MHB
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] lmtx \placefigure and bizarre captions

2020-11-21 Thread Bertrand Masson

Hello

When I compile my file with ConText-Luatex from Texlive 2019 (linux 
debian) I get the right result. On the other hand with the last version 
of LMTX I have a 2nd caption above the image (see attached file). It's 
not on all the pictures, it's random.


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 18:05, Aditya Mahajan  wrote:

> On Tue, 10 Nov 2020, mf wrote:
>
> > Il 10/11/20 09:42, Sylvain Hubert ha scritto:
> > > Dear List,
> > >
> > > Does anyone know how to indent the paragraph beneath \placefigure in
> the
> > > following example?
> > >
> > >  \indenting[2em]
> > >  \setupindenting[yes]
> > >
> > >  \starttext
> > >
> > >  \dorecurse{50}{a b c }
> > >
> > >  \placefigure[here,none][indentnext=yes]{}{
> > >  \startMPcode
> > >  draw fullcircle scaled 1cm;
> > >  \stopMPcode
> > >  }
> > >
> > >  \dorecurse{50}{d e f } % not indented
> > >
> > >  \dorecurse{50}{g h i }
> > >  \stoptext
> > >
> >
> > The second bracket group of \placefigure is for references.
> > Instead of
> >
> > \placefigure[here,none][indentnext=yes]{}{...
> >
> > write
> >
> > \setupfloat[figure][indentnext=yes]
> > \placefigure[here,none]{}{...
> >
> > That way you enable indentation after every figure.
>
> If you want to change the behavior for a particular figure, you can also
> use the \start...stop variant:
>
> \startplacefigure[location={here,none}, indentnext=yes]
>
> \stopplacefigure
>

Thanks for the information, Aditya!

Sylvain
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Aditya Mahajan
On Tue, 10 Nov 2020, mf wrote:

> Il 10/11/20 09:42, Sylvain Hubert ha scritto:
> > Dear List,
> > 
> > Does anyone know how to indent the paragraph beneath \placefigure in the 
> > following example?
> > 
> >      \indenting[2em]
> >      \setupindenting[yes]
> > 
> >      \starttext
> > 
> >      \dorecurse{50}{a b c }
> > 
> >      \placefigure[here,none][indentnext=yes]{}{
> >      \startMPcode
> >      draw fullcircle scaled 1cm;
> >      \stopMPcode
> >      }
> > 
> >      \dorecurse{50}{d e f } % not indented
> > 
> >      \dorecurse{50}{g h i }
> >      \stoptext
> > 
> 
> The second bracket group of \placefigure is for references.
> Instead of
> 
> \placefigure[here,none][indentnext=yes]{}{...
> 
> write
> 
> \setupfloat[figure][indentnext=yes]
> \placefigure[here,none]{}{...
> 
> That way you enable indentation after every figure.

If you want to change the behavior for a particular figure, you can also use 
the \start...stop variant:

\startplacefigure[location={here,none}, indentnext=yes]
   
\stopplacefigure

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 10:05, mf  wrote:

> Il 10/11/20 09:42, Sylvain Hubert ha scritto:
> > Dear List,
> >
> > Does anyone know how to indent the paragraph beneath \placefigure in the
> > following example?
> >
> >  \indenting[2em]
> >  \setupindenting[yes]
> >
> >  \starttext
> >
> >  \dorecurse{50}{a b c }
> >
> >  \placefigure[here,none][indentnext=yes]{}{
> >  \startMPcode
> >  draw fullcircle scaled 1cm;
> >  \stopMPcode
> >  }
> >
> >  \dorecurse{50}{d e f } % not indented
> >
> >  \dorecurse{50}{g h i }
> >  \stoptext
> >
>
> The second bracket group of \placefigure is for references.
> Instead of
>
> \placefigure[here,none][indentnext=yes]{}{...
>
> write
>
> \setupfloat[figure][indentnext=yes]
> \placefigure[here,none]{}{...
>
> That way you enable indentation after every figure.
>
> Massi
>

Hi Massi,

It works! Thanks for the help!

Sylvain
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread mf

Il 10/11/20 09:42, Sylvain Hubert ha scritto:

Dear List,

Does anyone know how to indent the paragraph beneath \placefigure in the 
following example?


     \indenting[2em]
     \setupindenting[yes]

     \starttext

     \dorecurse{50}{a b c }

     \placefigure[here,none][indentnext=yes]{}{
     \startMPcode
     draw fullcircle scaled 1cm;
     \stopMPcode
     }

     \dorecurse{50}{d e f } % not indented

     \dorecurse{50}{g h i }
     \stoptext



The second bracket group of \placefigure is for references.
Instead of

\placefigure[here,none][indentnext=yes]{}{...

write

\setupfloat[figure][indentnext=yes]
\placefigure[here,none]{}{...

That way you enable indentation after every figure.

Massi
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
Dear List,

Does anyone know how to indent the paragraph beneath \placefigure in the
following example?

\indenting[2em]
\setupindenting[yes]

\starttext

\dorecurse{50}{a b c }

\placefigure[here,none][indentnext=yes]{}{
\startMPcode
draw fullcircle scaled 1cm;
\stopMPcode
}

\dorecurse{50}{d e f } % not indented

\dorecurse{50}{g h i }
\stoptext

Thanks!

Best,
Sylvain
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Wrong page number when placefigure spans full page in columnset

2020-09-09 Thread Charles Vejnar

Hi,

When I place a figure within a columnset and that figure takes a full 
page then the page number in the header is incorrect. Page number is the 
same as the previous page but on the next page it's correct. Please see 
example below and attached showing page 2 twice with pages numbered 1, 
2, 2, 4, 5. If I reduce the height of the figure (from 15 to 12cm for 
example), then some main text gets added on the page and page number (3) 
becomes correct. Is that a bug or am I doing something wrong?


Thanks for your help.

Charles


\setuppapersize[letter][letter]

\setuplayout[height=fit,grid=yes]
\showframe

\usemodule[newcolumnsets]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\dorecurse{16}{\input ward \par}

\placefigure[page]{Legend. \input ward 
}{\externalfigure[dummy][width=\makeupwidth,height=15cm]}


\section{Two section}

\dorecurse{2}{\input knuth \par}

\section{Three section}

\dorecurse{6}{\input knuth \par}

\stopcolumnset
\stoptext



page.pdf
Description: Adobe PDF document
\setuppapersize[letter][letter]

\setuplayout[height=fit,grid=yes]
\showframe

\usemodule[newcolumnsets]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\dorecurse{16}{\input ward \par}

\placefigure[page]{Legend. \input ward }{\externalfigure[dummy][width=\makeupwidth,height=15cm]}

\section{Two section}

\dorecurse{2}{\input knuth \par}

\section{Three section}

\dorecurse{6}{\input knuth \par}

\stopcolumnset
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] placefigure right or left error in ver: 2018.04.04 00:51 MKIV

2019-09-27 Thread Pablo Rodriguez
On 9/27/19 2:33 PM, Philippe Oechslin wrote:
> Hello there,
>
> I recently upgraded to  ConTeXt  ver: 2018.04.04 00:51 MKIV  and found that
> the following simple code gives an error, where as it compiled without
> complaining in ver: 2017.05.15 21:48.
> [...]
> I am running a freshly installed Ubuntu 19.04. Has anybody run into this 
> issues,
> is there a known workaround ?

Hi Philippe,

it works fine with latest ConTeXt Suite beta from 2019.09.10 20:03.

Since ConTeXt Suite is a portable distribution (you may have it with TeX
Live installed), I'd rather install the latest beta.

So you avoid dealing with already solved issues.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] placefigure right or left error in ver: 2018.04.04 00:51 MKIV

2019-09-27 Thread Philippe Oechslin
Hello there,

I recently upgraded to  ConTeXt  ver: 2018.04.04 00:51 MKIV  and found that
the following simple code gives an error, where as it compiled without
complaining in ver: 2017.05.15 21:48.


\setupexternalfigures[location={local,default}]

\starttext
\input ward

\placefigure[left,none]{}{\externalfigure[cow][width=3cm]}

\input ward
\stoptext

The error happens when the location of placefigure is left or right, but not
with center. The error is the following:

context test.tex
resolvers   | trees | analyzing 'home:.texlive2018/texmf-config'
mtx-context | run 1: luatex
--fmt="/home/philippe/.texlive2018/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/lua
tex/cont-en" --jobname="test"
--lua="/home/philippe/.texlive2018/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luate
x/cont-en.lui" --no-parse-first-line --c:currentrun=1
--c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1
--c:maxnofruns=9 "co
nt-yes.mkiv"

This is LuaTeX, Version 1.07.0 (TeX Live 2019/dev/Debian)
 system commands enabled.

resolvers   > trees > analyzing 'home:.texlive2018/texmf-config'
open source > level 1, order 1, name
'/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt: 2019.9.25  int:
english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name
'/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'test', input './test', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/philippe/test.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name
'/usr/share/texmf/tex/context/sample/common/ward.tex'
close source> level 3, order 4, name
'/usr/share/texmf/tex/context/sample/common/ward.tex'
floatblocks > '1' placed (left)

tex error   > tex error on line 6 in file /home/philippe/test.tex: !
Illegal unit of measure (pt inserted)


\global
\strc_floats_wrap_free_region ->\global
\setbox \floatbox \hpack {\ifconditi...
\strc_floats_mark_as_free ...ats_wrap_free_region
  \anch_mark_tagged_box_free...
\strc_floats_mark_par_as_free ...sides_bottomskip
  \or \strc_floats_mark_as_f...
\page_sides_push_float_inline ...mark_par_as_free
  \ifcase \c_page_sides_floa...
\page_sides_place_float ...des_place_float_normal
  \fi \par \kern -\d_page_si...
...
l.6 ...left,none]{}{\externalfigure[cow][width=3cm]}


 1 \setupexternalfigures[location={local,default}]
 2
 3 \starttext
 4 \input ward
 5
 6 >>  \placefigure[left,none]{}{\externalfigure[cow][width=3cm]}
 7
 8 \input ward


I am running a freshly installed Ubuntu 19.04. Has anybody run into this issues,
is there a known workaround ?

 thanks in advance,

   Philippe


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] indenting after placefigure

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 9:38 PM, Hans van der Meer wrote:
> Thanks, indeed this does the trick.
> But I wonder:  Has \placefigure then a default [indentnext=no] instead
> of abstaining from meddling with the indent setting?

This might be similar to indenting after headings. To get the paragraphs
indented after them, \setupheads[indentnext] is required.

The "indenting" key inherits its value from \setupindenting, but
"indentnext" doesn’t.

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] indenting after placefigure

2018-12-06 Thread Hans van der Meer
Thanks, indeed this does the trick.
But I wonder:  Has \placefigure then a default [indentnext=no] instead of 
abstaining from meddling with the indent setting?

dr. Hans van der Meer


> On 6 Dec 2018, at 21:25, Pablo Rodriguez  wrote:
> 
> On 12/6/18 6:10 PM, Hans van der Meer wrote:
>> I used \setupindenting[always,medium]. This works everywhere except
>> after a figure placed with \placefigure. Why does placing the figure
>> suppress the indent after it? And how can this behaviour be changed?
> 
> I wonder whehter \setupfloat[figure][indentnext=yes] would work here.
> 
> I hope it may help,
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] indenting after placefigure

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 6:10 PM, Hans van der Meer wrote:
> I used \setupindenting[always,medium]. This works everywhere except
> after a figure placed with \placefigure. Why does placing the figure
> suppress the indent after it? And how can this behaviour be changed?

I wonder whehter \setupfloat[figure][indentnext=yes] would work here.

I hope it may help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] indenting after placefigure

2018-12-06 Thread Hans van der Meer
I used \setupindenting[always,medium]. This works everywhere except after a 
figure placed with \placefigure. Why does placing the figure suppress the 
indent after it? And how can this behaviour be changed?

dr. Hans van der Meer


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Wrong section space after placefigure with newcolumnsets

2018-04-05 Thread Charles Vejnar

Hi,

I am placing figures in a columnset. The next header (section, 
subsection...) following the figure has always missing vertical space.


See the normal space after "One subsection" and "Four subsection" but 
reduced space after "Two subsection" and "Three subsection" in the 
example below.


Tested with ConTeXt  ver: 2018.04.04 and LuaTeX, Version 1.07.0.

This seems to be the opposite problem as the one described recently in 
the thread "Bug in wrapped placefigure".


Any solution or fix?

Thank you very much for your help.

Charles



\setuppapersize[letter][letter]

\usemodule[newcolumnsets]
\setuplayout[grid=yes]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\subsection{One subsection}

\dorecurse{16}{\input ward \par}

\section{Two section}

\subsection{Two subsection}

\placefigure[bots]{Legend.}{\hbox{\externalfigure[dummy][width=\makeupwidth,height=12cm]}}

\dorecurse{5}{\input knuth \par}

\subsection{Three subsection}

\placefigure[bots]{Legend.}{\hbox{\externalfigure[dummy][width=\makeupwidth,height=12cm]}}

\dorecurse{2}{\input knuth \par}

\subsection{Four subsection}

\dorecurse{7}{\input knuth \par}

\stopcolumnset
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug in wrapped placefigure

2018-03-29 Thread Hans Hagen

On 3/29/2018 11:17 PM, Henri Menke wrote:

On Thu, 2018-03-29 at 13:20 +0200, Hans Hagen wrote:

On 3/29/2018 12:50 PM, Henri Menke wrote:


Dear devs,

When a figure is wrapped in a paragraph and that paragraph is the first
in a section, ConTeXt adds spurious vertical space above the text
(eyeballing it, I'd say it is \topskip).  Find MWE with workaround below.

Found at https://tex.stackexchange.com/questions/423817

Cheers, Henri

---

\setupwhitespace[big]

\starttext

\startsection[title=section]

    \startmode[fix]
  % Set default whitespace
  \setupwhitespace[none]
    \stopmode

    \startplacefigure
  [location={right},
    title={just a dummy figure}]
  \externalfigure[dummy][width=.5\textwidth]
    \stopplacefigure

    \input lorem

    \startmode[fix]
  % Restore whitespace
  \setupwhitespace[big]
    \stopmode

    \input lorem

\stopsection

\stoptext

can you test with

\def\page_sides_wrapup
    {% we need to do this aftergroup
 \aftergroup\par
 \aftergroup\ignoreparskip
 \aftergroup\ignorespaces
 }


Interesting.  This fixes it in beta but not in TL17.


side floats are redone recently ... so partly incompatible code with TL17


BTW: What snapshot is going to be in TL18?


i might push a current





-
    Hans Hagen | PRAGMA ADE
    Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug in wrapped placefigure

2018-03-29 Thread luigi scarso
On Thu, Mar 29, 2018 at 11:17 PM, Henri Menke  wrote:
> BTW: What snapshot is going to be in TL18?

current (ie tags/1.07.0) with luatex lua 5.2.4


-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug in wrapped placefigure

2018-03-29 Thread Henri Menke
On Thu, 2018-03-29 at 13:20 +0200, Hans Hagen wrote:
> On 3/29/2018 12:50 PM, Henri Menke wrote:
> > 
> > Dear devs,
> > 
> > When a figure is wrapped in a paragraph and that paragraph is the first
> > in a section, ConTeXt adds spurious vertical space above the text
> > (eyeballing it, I'd say it is \topskip).  Find MWE with workaround below.
> > 
> > Found at https://tex.stackexchange.com/questions/423817
> > 
> > Cheers, Henri
> > 
> > ---
> > 
> > \setupwhitespace[big]
> > 
> > \starttext
> > 
> > \startsection[title=section]
> > 
> >    \startmode[fix]
> >  % Set default whitespace
> >  \setupwhitespace[none]
> >    \stopmode
> > 
> >    \startplacefigure
> >  [location={right},
> >    title={just a dummy figure}]
> >  \externalfigure[dummy][width=.5\textwidth]
> >    \stopplacefigure
> > 
> >    \input lorem
> > 
> >    \startmode[fix]
> >  % Restore whitespace
> >  \setupwhitespace[big]
> >    \stopmode
> > 
> >    \input lorem
> > 
> > \stopsection
> > 
> > \stoptext
> can you test with
> 
> \def\page_sides_wrapup
>    {% we need to do this aftergroup
> \aftergroup\par
> \aftergroup\ignoreparskip
> \aftergroup\ignorespaces
> }

Interesting.  This fixes it in beta but not in TL17.

BTW: What snapshot is going to be in TL18?

> 
> 
> 
> -
>    Hans Hagen | PRAGMA ADE
>    Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug in wrapped placefigure

2018-03-29 Thread Hans Hagen

On 3/29/2018 12:50 PM, Henri Menke wrote:

Dear devs,

When a figure is wrapped in a paragraph and that paragraph is the first
in a section, ConTeXt adds spurious vertical space above the text
(eyeballing it, I'd say it is \topskip).  Find MWE with workaround below.

Found at https://tex.stackexchange.com/questions/423817

Cheers, Henri

---

\setupwhitespace[big]

\starttext

\startsection[title=section]

   \startmode[fix]
 % Set default whitespace
 \setupwhitespace[none]
   \stopmode

   \startplacefigure
 [location={right},
   title={just a dummy figure}]
 \externalfigure[dummy][width=.5\textwidth]
   \stopplacefigure

   \input lorem

   \startmode[fix]
 % Restore whitespace
 \setupwhitespace[big]
   \stopmode

   \input lorem

\stopsection

\stoptext

can you test with

\def\page_sides_wrapup
  {% we need to do this aftergroup
   \aftergroup\par
   \aftergroup\ignoreparskip
   \aftergroup\ignorespaces
   }



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bug in wrapped placefigure

2018-03-29 Thread Henri Menke
Dear devs,

When a figure is wrapped in a paragraph and that paragraph is the first
in a section, ConTeXt adds spurious vertical space above the text
(eyeballing it, I'd say it is \topskip).  Find MWE with workaround below.

Found at https://tex.stackexchange.com/questions/423817

Cheers, Henri

---

\setupwhitespace[big]

\starttext

\startsection[title=section]

  \startmode[fix]
% Set default whitespace
\setupwhitespace[none]
  \stopmode

  \startplacefigure
[location={right},
  title={just a dummy figure}]
\externalfigure[dummy][width=.5\textwidth]
  \stopplacefigure

  \input lorem

  \startmode[fix]
% Restore whitespace
\setupwhitespace[big]
  \stopmode

  \input lorem

\stopsection

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug: Paragraph formatting on new page after placefigure

2018-01-12 Thread Hans Hagen

On 1/12/2018 6:44 PM, Rik Kabel wrote:

Bump.

This has come up a few times, but never resolved.

Is there the possibility of an option for placefigure to discard 
remaining depth at a page break?


it's more a aside effect of operating at the edge of the page (i'm 
reluctant to change this mechanism as at soem point we should stick to 
what we have ... it already changed a few times)


just move up the figure a bit:

\placefigure
  [right,high][]{caption}
  {\externalfigure[nop][width=0.5\textwidth,height=19cm]}

or limit the height


--
Rik

On 2015-08-25 10:14, Rik Kabel wrote:

On 2015-08-25 03:41, Andreas Becker wrote:

ConTeXt version: 2015.08.21 19:57

In the PDF output of the following code, the first text line on the second page 
only
spans half the textwidth. However, below the figure, the text should span the
whole width.

\starttext
\placefigure[right][]{caption}
{
\externalfigure[nop][width=0.5\textwidth,height=19cm]
}
\input lorem
\input lorem
\input lorem
\stoptext



Andreas,

This is a long-recognized issue that appears to have no resolution. It 
was previously raised by Gerhard Kugler in March 2007 (figure occupies 
space into next page 
<http://www.mail-archive.com/ntg-context%40ntg.nl/msg21273.html>) and 
by me in March 2014 (Caption whitespace overflows page 
<http://www.mail-archive.com/ntg-context%40ntg.nl/msg73904.html>) and 
possibly by others I did not come across.


The only resolution I have found is to reduce the size of the figure 
enough to prevent the reserved space from intruding on the text area 
of the next page.


--
Rik Kabel




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug: Paragraph formatting on new page after placefigure

2018-01-12 Thread Rik Kabel

Bump.

This has come up a few times, but never resolved.

Is there the possibility of an option for placefigure to discard 
remaining depth at a page break?


--
Rik

On 2015-08-25 10:14, Rik Kabel wrote:

On 2015-08-25 03:41, Andreas Becker wrote:

ConTeXt version: 2015.08.21 19:57

In the PDF output of the following code, the first text line on the second page 
only
spans half the textwidth. However, below the figure, the text should span the
whole width.

\starttext
\placefigure[right][]{caption}
{
\externalfigure[nop][width=0.5\textwidth,height=19cm]
}
\input lorem
\input lorem
\input lorem
\stoptext



Andreas,

This is a long-recognized issue that appears to have no resolution. It 
was previously raised by Gerhard Kugler in March 2007 (figure occupies 
space into next page 
<http://www.mail-archive.com/ntg-context%40ntg.nl/msg21273.html>) and 
by me in March 2014 (Caption whitespace overflows page 
<http://www.mail-archive.com/ntg-context%40ntg.nl/msg73904.html>) and 
possibly by others I did not come across.


The only resolution I have found is to reduce the size of the figure 
enough to prevent the reserved space from intruding on the text area 
of the next page.


--
Rik Kabel


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug with \underbar and \placefigure[right]

2016-09-08 Thread Wolfgang Schuster

Florian Leupold <mailto:fleup...@posteo.net>
8. September 2016 um 13:49
Dear list,

I would like to report a bug: When \underbar is used for the first 
word of a paragraph in conjunction with \placefigure[right], the text 
overwrites the figure.


MNWE:

\setupexternalfigures[order={pdf,png,jpg}, 
location={local,global,default}]

\starttext
\placefigure[right, none]{}{\externalfigure[mill]}
This paragraph is okay.
\input{tufte}
\placefigure[right, none]{}{\externalfigure[mill]}
\underbar{This paragraph has a problem.}

\dontleavehmode\underbar{...}

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] Bug with \underbar and \placefigure[right]

2016-09-08 Thread Florian Leupold
Dear list,

I would like to report a bug: When \underbar is used for the first word of a 
paragraph in conjunction with \placefigure[right], the text overwrites the 
figure.

MNWE:

\setupexternalfigures[order={pdf,png,jpg}, location={local,global,default}]
\starttext
\placefigure[right, none]{}{\externalfigure[mill]}
This paragraph is okay.
\input{tufte}
\placefigure[right, none]{}{\externalfigure[mill]}
\underbar{This paragraph has a problem.}
\input{ward}
\stoptext

Best regards,
Florian


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-06 Thread Florian Leupold

> On 06.09.16, at 02:55, Aditya Mahajan  wrote:
> 
> On Mon, 5 Sep 2016, Florian Leupold wrote:
> 
>> One problem, however, persists: The theorem environment gets misplaced when 
>> a figure is placed to its left:
>> 
>> \setupexternalfigures[location=default]
>> \setupenumerations[
>>  alternative=left,
>>  text=Theorem,
>>  title=no,
>>  stopper={:},
>>  distance=0ex,
>>  width=fit,
>>  right={~},
>>  style=normal,
>>  hang=fit]
> 
> I am not sure what visual layout you want, but how about using:
> 
> \setupenumerations[
>alternative=serried,
>text=Theorem,
>title=no,
>stopper={:},
>distance=0ex,
>width=fit,
>right={~},
>style=normal,
>  ]
> \defineenumeration[theorem]
> 
> 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
> ___

Dear Aditya,

thanks, that is indeed what I wanted to achieve. I don’t know why I got hung up 
with “alternative=left”.

Best,
Florian


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-05 Thread Florian Leupold
> On 04.09.16, at 21:54, Otared Kavian <ota...@gmail.com> wrote:
> 
> Hi Florian,
> 
> The following setup works fine here, I wonder whether this is what you want:
> 
> \defineenumeration[theorem]
>   [text={Theorem},
>   style=slanted,
>   title=yes,
>   alternative=hanging,
> % hang=2,
>   width=fit,
>   right={~},
>   way=bychapter,
> % way=bysection,
>   prefix=yes,
> % prefixsegments={chapter:section},
>   prefixsegments={chapter},
>   ]
> 
> Another more versatile solution is to define an enumeration like the 
> \proclaim definition of plain TeX, as follows:
> 
> \defineenumeration[proclaim]
>   [text=,
>   style=slanted,
>   title=yes,
>   titleleft=,
>   titleright={.},
>   alternative=hanging,
> % hang=2,
>   width=fit,
>   right={~},
>   way=bychapter,
> % way=bysection,
>   prefix=yes,
> % prefixsegments={chapter:section},
>   prefixsegments={chapter},
>   ]
> 
> and the use it as in the following example:
> 
> \startproclaim{Pythagoras Theorem}
> The square on the hypotenuse is equal to the sum of the squares on the other 
> two sides.
> \stopproclaim
> 
> You can play with other options in the setups above and tune them to your 
> taste.
> 
> Best regards: OK
> 
>> On 4 Sep 2016, at 19:37, Florian Leupold <fleup...@posteo.net> wrote:
>> 
>> Dear list,
>> 
>> I am trying to use enumerations with MKIV I am a bit at a loss when it comes 
>> to the documentation (see below for a few issues).
>> 
>> Working on a concrete example, I have come pretty close to what I want for 
>> my enumeration ‘theorem’:
>> 
>> \setupexternalfigures[location=default]
>> \setupenumerations[
>>  alternative=left,
>>  text=Theorem,
>>  headstyle=bold,
>>  title=no,
>>  way=bychapter,
>>  stopper={:},
>>  distance=1ex,
>>  width=fit,
>>  style=normal,
>>  hang=fit]
>> \defineenumeration[theorem]
>> \starttext
>> \chapter{First chapter}
>> \starttheorem
>> The square on the hypotenuse is equal to the sum of the squares on the other 
>> two sides.
>> \stoptheorem
>> \chapter{Second chapter}
>> \placefigure[right, none]{}{\externalfigure[mill]}
>> \starttheorem
>> The square on the hypotenuse is equal to the sum of the squares on the other 
>> two sides.
>> \stoptheorem
>> \stoptext
>> 
>> QUESTIONS:
>> 1) I would like to prefix the theorem counter with the chapter number, such 
>> that the number of the second theorem becomes 2.1. Can this be done?
>> 2) Is it possible to circumvent the misplacement of the second theorem due 
>> to the placed figure? Ideally, the theorem would just use the space to the 
>> left it.
>> 
>> Issues with the documentation:
>> - In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits 
>> from \setupcounter; but in “ConTEXt reference manual", it says on page 246 
>> that \setupenumerations inherits from \setupdescriptions.
>> - In “ConTEXt reference manual”, the key “location” for \defineenumeration 
>> should probably replaced by “alternative”. Right now, all examples on page 
>> 247 are unaffected by this setting and hence look the same.
>> - The wiki seems to use MKII, which makes a difference for the example on 
>> http://wiki.contextgarden.net/Command/enumeration, which compiles 
>> differently under ConTeXT online.
>> 
>> Thanks for your help!
>> 
>> Best regards,
>> Florian
>> ___
>> 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] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Wolfgang Schuster

Florian Leupold 
4. September 2016 um 19:37
Issues with the documentation:
- In “ConTeXt Commands”, it says on page 224 that \setupenumeration 
inherits from \setupcounter; but in “ConTEXt reference manual", it 
says on page 246 that \setupenumerations inherits from \setupdescriptions.
- In “ConTEXt reference manual”, the key “location” for 
\defineenumeration should probably replaced by “alternative”. Right 
now, all examples on page 247 are unaffected by this setting and hence 
look the same.
ConTeXt contains two different interface files, a) a old one 
(cont-en.xml) which was written for MkII and extended of the time with a 
few new command introduced by MkIV (e.g. \definefontfeature) and b) a 
new one (i-context.xml) which was rewritten with MkIV as its base.


Most of the existing documents use the old file which contains either 
wrong keys (e.g. location vs. alternative) or document no longer 
existing functions (compare counter related settings in both files).


The new file takes also into account internal changes for commands, e.g. 
in MkII note descriptions are based on enumerations which are itself a 
extension to the description commands. In MkIV notations (new name for 
note descriptions), enumerations and descriptions all use a internal 
mechanism called constructions with extra functions for each instance.


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] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Otared Kavian
Hi Florian,

The following setup works fine here, I wonder whether this is what you want:

\defineenumeration[theorem]
[text={Theorem},
style=slanted,
title=yes,
alternative=hanging,
%   hang=2,
width=fit,
right={~},
way=bychapter,
%   way=bysection,
prefix=yes,
%   prefixsegments={chapter:section},
prefixsegments={chapter},
]

Another more versatile solution is to define an enumeration like the \proclaim 
definition of plain TeX, as follows:

\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright={.},
alternative=hanging,
%   hang=2,
width=fit,
right={~},
way=bychapter,
%   way=bysection,
prefix=yes,
%   prefixsegments={chapter:section},
prefixsegments={chapter},
]

and the use it as in the following example:

\startproclaim{Pythagoras Theorem}
The square on the hypotenuse is equal to the sum of the squares on the other 
two sides.
\stopproclaim

You can play with other options in the setups above and tune them to your taste.

Best regards: OK

> On 4 Sep 2016, at 19:37, Florian Leupold <fleup...@posteo.net> wrote:
> 
> Dear list,
> 
> I am trying to use enumerations with MKIV I am a bit at a loss when it comes 
> to the documentation (see below for a few issues).
> 
> Working on a concrete example, I have come pretty close to what I want for my 
> enumeration ‘theorem’:
> 
> \setupexternalfigures[location=default]
> \setupenumerations[
>   alternative=left,
>   text=Theorem,
>   headstyle=bold,
>   title=no,
>   way=bychapter,
>   stopper={:},
>   distance=1ex,
>   width=fit,
>   style=normal,
>   hang=fit]
> \defineenumeration[theorem]
> \starttext
> \chapter{First chapter}
> \starttheorem
> The square on the hypotenuse is equal to the sum of the squares on the other 
> two sides.
> \stoptheorem
> \chapter{Second chapter}
> \placefigure[right, none]{}{\externalfigure[mill]}
> \starttheorem
> The square on the hypotenuse is equal to the sum of the squares on the other 
> two sides.
> \stoptheorem
> \stoptext
> 
> QUESTIONS:
> 1) I would like to prefix the theorem counter with the chapter number, such 
> that the number of the second theorem becomes 2.1. Can this be done?
> 2) Is it possible to circumvent the misplacement of the second theorem due to 
> the placed figure? Ideally, the theorem would just use the space to the left 
> it.
> 
> Issues with the documentation:
> - In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits 
> from \setupcounter; but in “ConTEXt reference manual", it says on page 246 
> that \setupenumerations inherits from \setupdescriptions.
> - In “ConTEXt reference manual”, the key “location” for \defineenumeration 
> should probably replaced by “alternative”. Right now, all examples on page 
> 247 are unaffected by this setting and hence look the same.
> - The wiki seems to use MKII, which makes a difference for the example on 
> http://wiki.contextgarden.net/Command/enumeration, which compiles differently 
> under ConTeXT online.
> 
> Thanks for your help!
> 
> Best regards,
> Florian
> ___
> 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] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Florian Leupold
Dear list,

I am trying to use enumerations with MKIV I am a bit at a loss when it comes to 
the documentation (see below for a few issues).

Working on a concrete example, I have come pretty close to what I want for my 
enumeration ‘theorem’:

\setupexternalfigures[location=default]
\setupenumerations[
alternative=left,
text=Theorem,
headstyle=bold,
title=no,
way=bychapter,
stopper={:},
distance=1ex,
width=fit,
style=normal,
hang=fit]
\defineenumeration[theorem]
\starttext
\chapter{First chapter}
\starttheorem
The square on the hypotenuse is equal to the sum of the squares on the other 
two sides.
\stoptheorem
\chapter{Second chapter}
\placefigure[right, none]{}{\externalfigure[mill]}
\starttheorem
The square on the hypotenuse is equal to the sum of the squares on the other 
two sides.
\stoptheorem
\stoptext

QUESTIONS:
1) I would like to prefix the theorem counter with the chapter number, such 
that the number of the second theorem becomes 2.1. Can this be done?
2) Is it possible to circumvent the misplacement of the second theorem due to 
the placed figure? Ideally, the theorem would just use the space to the left it.

Issues with the documentation:
- In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits 
from \setupcounter; but in “ConTEXt reference manual", it says on page 246 that 
\setupenumerations inherits from \setupdescriptions.
- In “ConTEXt reference manual”, the key “location” for \defineenumeration 
should probably replaced by “alternative”. Right now, all examples on page 247 
are unaffected by this setting and hence look the same.
- The wiki seems to use MKII, which makes a difference for the example on 
http://wiki.contextgarden.net/Command/enumeration, which compiles differently 
under ConTeXT online.

Thanks for your help!

Best regards,
Florian


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Marginrule levels after \placefigure[right]

2016-08-28 Thread Aditya Mahajan

On Sun, 28 Aug 2016, Aditya Mahajan wrote:


Hi,

This is based on a question on TeX.SE
https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule

All marginrules except those of level 1 stop working after 
\placefigure[right]. Here is a minimal example:


\useexternalfigure[ctanlion][http://www.ctan.org/lion/ctan_lion_350x350.png][width=4cm]
\starttext

\placefigure[here,none,right]{}{\externalfigure[ctanlion]}
\input knuth

\startmarginrule[2]
 \input ward
\stopmarginrule

\startmarginrule[1]
 \input ward
\stopmarginrule

\startmarginrule[3]
 \input ward
\stopmarginrule

\stoptext

The output is attached.


The attached patch seems to fix the bug.

Aditya*** /opt/context-minimals/tex/texmf-context/tex/context/base/mkiv/anch-bar.mkiv	2016-08-28 16:55:00.0 -0400
--- anch-bar.mkiv	2016-08-28 16:52:47.0 -0400
***
*** 111,118 
 \advance\d_anch_sidebars_distance\scratchdistance\relax
   \fi
 \else
   \ifnum\m_level=\plusone
-\scratchdimen\sidebarparameter\c!leftmargindistance\relax
 \ifdim\scratchdimen=\zeropoint
   \advance\d_anch_sidebars_distance\scratchdistance\relax
 \else
--- 111,118 
 \advance\d_anch_sidebars_distance\scratchdistance\relax
   \fi
 \else
+  \scratchdimen\sidebarparameter\c!leftmargindistance\relax
   \ifnum\m_level=\plusone
 \ifdim\scratchdimen=\zeropoint
   \advance\d_anch_sidebars_distance\scratchdistance\relax
 \else
___
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] Marginrule levels after \placefigure[right]

2016-08-28 Thread Aditya Mahajan

Hi,

This is based on a question on TeX.SE
https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule

All marginrules except those of level 1 stop working after 
\placefigure[right]. Here is a minimal example:


\useexternalfigure[ctanlion][http://www.ctan.org/lion/ctan_lion_350x350.png][width=4cm]
\starttext

\placefigure[here,none,right]{}{\externalfigure[ctanlion]}
\input knuth

\startmarginrule[2]
  \input ward
\stopmarginrule

\startmarginrule[1]
  \input ward
\stopmarginrule

\startmarginrule[3]
  \input ward
\stopmarginrule

\stoptext

The output is attached.

Aditya

min.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] columnset and placefigure

2016-08-20 Thread Wolfgang Schuster

Hans Hagen 
19. August 2016 um 23:51


best do your experiments with the new column sets (put this on top of 
your file for now:


\input page-cst.mkiv

The new code can also be loaded as a module with

\usemodule[newcolumnsets]

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] columnset and placefigure

2016-08-19 Thread Hans Hagen

On 8/19/2016 7:38 PM, Henri Menke wrote:

Bump

On 07/20/2016 11:24 AM, Henri Menke wrote:

Dear list,

I'm using columnsets to typeset stuff for a conference poster.  I can't
use paragraphs or columns, because these do not allow to set frames or
backgrounds.  Currently I do not use the column-spanning features, but I
might in the future.

The thing is, when I place a figure using `\placefigure` and the column
distance is too large (i.e. the columns too narrow), the figure is not
placed on spot but flushed to the next page.  I'm unsure what the exact
value for this threshold is and based on which criteria the figure is
flushed.  While this is not a problem in a normal document, it is for
sure for a poster (I have not seen any multi-page posters yet).

Please find below an example to illustrate my problem (with version
2016.05.17 19:20 from TL2016).

Cheers, Henri

---

\definecolumnset[threecolumn][n=3]
\startmode[bug]
  \setupcolumnset[threecolumn][each][distance=3cm,frame=on]
\stopmode
\startnotmode[bug]
  \setupcolumnset[threecolumn][each][distance=2.999cm,frame=on]
\stopnotmode
\setupcolumnset[threecolumn][1][distance=0pt]

\starttext

\startcolumnset[threecolumn]
  \placefigure[force,here]{}{\externalfigure[cow][width=\textwidth]}
\column
\stopcolumnset

\stoptext


best do your experiments with the new column sets (put this on top of 
your file for now:


\input page-cst.mkiv



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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] columnset and placefigure

2016-08-19 Thread Henri Menke
Bump

On 07/20/2016 11:24 AM, Henri Menke wrote:
> Dear list,
> 
> I'm using columnsets to typeset stuff for a conference poster.  I can't
> use paragraphs or columns, because these do not allow to set frames or
> backgrounds.  Currently I do not use the column-spanning features, but I
> might in the future.
> 
> The thing is, when I place a figure using `\placefigure` and the column
> distance is too large (i.e. the columns too narrow), the figure is not
> placed on spot but flushed to the next page.  I'm unsure what the exact
> value for this threshold is and based on which criteria the figure is
> flushed.  While this is not a problem in a normal document, it is for
> sure for a poster (I have not seen any multi-page posters yet).
> 
> Please find below an example to illustrate my problem (with version
> 2016.05.17 19:20 from TL2016).
> 
> Cheers, Henri
> 
> ---
> 
> \definecolumnset[threecolumn][n=3]
> \startmode[bug]
>   \setupcolumnset[threecolumn][each][distance=3cm,frame=on]
> \stopmode
> \startnotmode[bug]
>   \setupcolumnset[threecolumn][each][distance=2.999cm,frame=on]
> \stopnotmode
> \setupcolumnset[threecolumn][1][distance=0pt]
> 
> \starttext
> 
> \startcolumnset[threecolumn]
>   \placefigure[force,here]{}{\externalfigure[cow][width=\textwidth]}
> \column
> \stopcolumnset
> 
> \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
___

[NTG-context] Vertical space lost (\placefigure[right] before enumeration)

2016-08-15 Thread Mikael P. Sundqvist
Hi!

If I put a float in the right before an enumeration, the
"before={\blank[line]}" seem to be lost. Please have a look at the
example file below (pdf attached), where

* Example 1 is set as I want it,
* Example 2 is not (I would like to have a blank line before it, and
* Example 3 is set as I want it, but I look for a solution where I do
not have to inser the \blank[line] manually.
* Example 4 is certainly not what I want.

Any idea on how I can do to get the result of Example 3 automatically?

/Mikael

\defineenumeration[example][
text=Example,
alternative=serried,
width=fit,
before={\blank[line]},
after={\blank[line]},
]

\starttext
\input knuth

\startexample
\input tufte
\stopexample

\page[yes]

\input knuth

\placefigure[right,high]{}{\blackrule[width=3cm,height=4cm]}
\startexample
\input tufte
\stopexample

\page[yes]

\input knuth

\blank[line]
\placefigure[right,high]{}{\blackrule[width=3cm,height=4cm]}
\startexample
\input tufte
\stopexample

\page[yes]

\input knuth

\startexample
\placefigure[right,high]{}{\blackrule[width=3cm,height=4cm]}
\input tufte
\stopexample

\stoptext


ctx-example.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
___

[NTG-context] columnset and placefigure

2016-07-20 Thread Henri Menke
Dear list,

I'm using columnsets to typeset stuff for a conference poster.  I can't
use paragraphs or columns, because these do not allow to set frames or
backgrounds.  Currently I do not use the column-spanning features, but I
might in the future.

The thing is, when I place a figure using `\placefigure` and the column
distance is too large (i.e. the columns too narrow), the figure is not
placed on spot but flushed to the next page.  I'm unsure what the exact
value for this threshold is and based on which criteria the figure is
flushed.  While this is not a problem in a normal document, it is for
sure for a poster (I have not seen any multi-page posters yet).

Please find below an example to illustrate my problem (with version
2016.05.17 19:20 from TL2016).

Cheers, Henri

---

\definecolumnset[threecolumn][n=3]
\startmode[bug]
  \setupcolumnset[threecolumn][each][distance=3cm,frame=on]
\stopmode
\startnotmode[bug]
  \setupcolumnset[threecolumn][each][distance=2.999cm,frame=on]
\stopnotmode
\setupcolumnset[threecolumn][1][distance=0pt]

\starttext

\startcolumnset[threecolumn]
  \placefigure[force,here]{}{\externalfigure[cow][width=\textwidth]}
\column
\stopcolumnset

\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] placefigure and listoffigures

2016-03-15 Thread Alan BRASLAU
On Tue, 15 Mar 2016 23:01:46 +0100
Wolfgang Schuster  wrote:

> \startplacefigure [location={inmargin,none}]

Thank you, clean and elegant (and much easier than Willi's suggestion).
The syntax is a bit magical, though ("location" of the caption).

Alan
___
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] placefigure and listoffigures

2016-03-15 Thread Wolfgang Schuster

Alan BRASLAU 
15. März 2016 um 21:43
Hi,

How can one suppress the addition of a placed figure to the
listoffigures?

In the following MWE, list=no places "no" as an alternative to the
(blank) title.

Alan


\starttext

\startplacefigure [location=inmargin,number=no,list=no]

\startplacefigure [location={inmargin,none}]

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] placefigure and listoffigures

2016-03-15 Thread Willi Egger
I would define another float and assign this not to be listed float to this new 
float-type something like \definefloat[Notlisted][figure] and then
\startplaceNotlisted
\externalf…
\stopplaceNotlisted

Best wishes

Willi
> On 15 mrt. 2016, at 21:43, Alan BRASLAU  wrote:
> 
> Hi,
> 
> How can one suppress the addition of a placed figure to the
> listoffigures?
> 
> In the following MWE, list=no places "no" as an alternative to the
> (blank) title.
> 
> Alan
> 
> 
> \starttext
> 
> \startplacefigure [location=inmargin,number=no,list=no]
>  \externalfigure [cow] [width=1cm]
> \stopplacefigure
> \input knuth
> 
> \blank
> 
> \placelistoffigures [criterium=all]
> 
> \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
> ___

___
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] placefigure and listoffigures

2016-03-15 Thread Alan BRASLAU
Hi,

How can one suppress the addition of a placed figure to the
listoffigures?

In the following MWE, list=no places "no" as an alternative to the
(blank) title.

Alan


\starttext

\startplacefigure [location=inmargin,number=no,list=no]
  \externalfigure [cow] [width=1cm]
\stopplacefigure
\input knuth

\blank

\placelistoffigures [criterium=all]

\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] Bug: Paragraph formatting on new page after placefigure

2015-08-25 Thread Rik Kabel

On 2015-08-25 03:41, Andreas Becker wrote:

ConTeXt version: 2015.08.21 19:57

In the PDF output of the following code, the first text line on the second page 
only
spans half the textwidth. However, below the figure, the text should span the
whole width.

\starttext
\placefigure[right][]{caption}
{
\externalfigure[nop][width=0.5\textwidth,height=19cm]
}
\input lorem
\input lorem
\input lorem
\stoptext



Andreas,

This is a long-recognized issue that appears to have no resolution. It 
was previously raised by Gerhard Kugler in March 2007 (figure occupies 
space into next page 
http://www.mail-archive.com/ntg-context%40ntg.nl/msg21273.html) and by 
me in March 2014 (Caption whitespace overflows page 
http://www.mail-archive.com/ntg-context%40ntg.nl/msg73904.html) and 
possibly by others I did not come across.


The only resolution I have found is to reduce the size of the figure 
enough to prevent the reserved space from intruding on the text area of 
the next page.


--
Rik Kabel
___
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] Bug: Paragraph formatting on new page after placefigure

2015-08-25 Thread Andreas Becker
ConTeXt version: 2015.08.21 19:57

In the PDF output of the following code, the first text line on the second page 
only
spans half the textwidth. However, below the figure, the text should span the
whole width.

\starttext
\placefigure[right][]{caption}
{
\externalfigure[nop][width=0.5\textwidth,height=19cm]
}
\input lorem
\input lorem
\input lorem
\stoptext

Regards,
Andreas Becker
___
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] \placefigure[right,high] in two column mode

2015-06-11 Thread Mojca Miklavec
Hello,

Is it possible to place a figure to the right in two column mode? I
always get it centered for some reason.

\setupexternalfigures[location={local,global,default}]

\starttext

\startcolumns[two]

% doesn't work
\startplacefigure[location={nonumber,right,high}]
\externalfigure[cow][width=2cm]
\stopplacefigure
\input tufte

\stopcolumns

% works
\startplacefigure[location={nonumber,right,high}]
\externalfigure[cow][width=2cm]
\stopplacefigure
\input tufte

\stoptext

Thank you,
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] framed and placefigure

2014-10-27 Thread Alan BRASLAU
On Sun, 26 Oct 2014 22:51:47 +
DesdeChaves desdecha...@gmail.com wrote:

 why this happens:

Because that is what you specified:

 After a specification of the foregroundcolor  the figures are  behind
 a framed color. 
___
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] framed and placefigure

2014-10-26 Thread DesdeChaves
why this happens:

After a specification of the foregroundcolor  the figures are  behind a
framed color.

\setupframed[offset=2mm,
 corner=round,
 background=color,
 backgroundcolor=blue,
 foregroundcolor=yellow,
 frame=off,
 strut=no,
 align=normal, location=top,
 width=\textwidth]

For example, is this case my \placefigure[right,nonumber,2*hang]
{}{\externalfigure[ostrichhead][width=5cm]} is behind a yellow framed
rectangle.

Jorge
___
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] Vertical alignment of \placefigure[right]

2014-05-07 Thread Mojca Miklavec
Hi,

I would like to vertically shift the placement of figures
(\placefigure[right]...), so that the upper side of the figure would
be aligned with the top of the first line in a paragraph as opposed to
the bottom of the first paragraph.

Here's a minimal example. The second ugly workaround shows what I'm
trying to achieve, but ideally using a cleaner approach. Does there
exist a magic keyword for that?

\starttext
\hrule
\placefigure[right]{Caption}{\framed[width=5cm,height=4cm]{}}
\input knuth

% ugly workaround
\hrule
\vskip-11pt
\placefigure[right]{Caption}{\framed[width=5cm,height=4cm]{}}
\vskip11pt
\input knuth
\stoptext

Thank you,
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] Vertical alignment of \placefigure[right]

2014-05-07 Thread Wolfgang Schuster

Am 07.05.2014 um 14:23 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com:

 Hi,
 
 I would like to vertically shift the placement of figures
 (\placefigure[right]...), so that the upper side of the figure would
 be aligned with the top of the first line in a paragraph as opposed to
 the bottom of the first paragraph.
 
 Here's a minimal example. The second ugly workaround shows what I'm
 trying to achieve, but ideally using a cleaner approach. Does there
 exist a magic keyword for that?

You can change the value with

\setupfloat[spacebefore=]

but it’s a global value for all float types.

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] Vertical alignment of \placefigure[right]

2014-05-07 Thread Sanjoy Mahajan
 I would like to vertically shift the placement of figures
 (\placefigure[right]...), so that the upper side of the figure would
 be aligned with the top of the first line in a paragraph as opposed to
 the bottom [of the first line?] of the first paragraph.

Ah, I can finally answer a question.  The key is high:

\starttext
\hrule
\placefigure[right,high]{Caption}{\framed[width=5cm,height=4cm]{}}
\input knuth
\stoptext

But that seems too easy.  Is it what you want?

-Sanjoy
___
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] Vertical alignment of \placefigure[right]

2014-05-07 Thread Mojca Miklavec
On Wed, May 7, 2014 at 2:48 PM, Sanjoy Mahajan wrote:
 I would like to vertically shift the placement of figures
 (\placefigure[right]...), so that the upper side of the figure would
 be aligned with the top of the first line in a paragraph as opposed to
 the bottom [of the first line?] of the first paragraph.

 Ah, I can finally answer a question.  The key is high:

 \starttext
 \hrule
 \placefigure[right,high]{Caption}{\framed[width=5cm,height=4cm]{}}
 \input knuth
 \stoptext

 But that seems too easy.  Is it what you want?

Yes, perfect, that's *exactly* what I want. Thank you, Sanjoy.

Now it would be nice to document this on
http://wiki.contextgarden.net/Command/placefigure

What other keywords are related to high? I'm guessing low which
might or might not spare you an extra line on bottom (but that's just
judging from a few quick experiments).

If you know a bit more about how to combine these keywords, I would be
grateful if you would add a few examples, else I'll document this one.

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] Vertical alignment of \placefigure[right]

2014-05-07 Thread Sanjoy Mahajan
I use high in combination with zero spacing afterwards, in order to
tighten the text flowing around the figure.  Compare the two variants
below.  (I confess to not knowing the difference between
sidespaceafter and spaceafter, but both seem to have the same
effect.)

\starttext
{\setupfloats[sidespaceafter=0pt]
\hrule
\placefigure[right,high]{Caption}{\framed[width=5cm,height=4.3cm]{}}
\input knuth

}
\vskip1cm

\hrule
\placefigure[right,high]{Caption}{\framed[width=5cm,height=4.3cm]{}}
\input knuth

\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] Vertical alignment of \placefigure[right]

2014-05-07 Thread Sanjoy Mahajan
Here are a few more keys.  I don't fully understand their effect, but I
found them in strc-flt.mkvi (p.s. shouldn't that be .mkiv ?).

In the final grid examples, I extended the figure height to 4.5cm, to
show the effect of the grid, which seems to be that the bottom of the
figure aligns with a baseline.  The top can then protrude, if the height
is not a multiple of the line height.  But, if the figure heights are
right, it would look good in combination with
\setupfloats[sidespaceafter=0pt].

-Sanjoy

\starttext

\hrule
\placefigure[right]{Caption}{\framed[width=5cm,height=4.3cm]{}}
\input knuth

\vskip1cm
\hrule
\placefigure[right,fit]{Fit}{\framed[width=5cm,height=4.3cm]{}}
\input knuth

\page

\hrule
\placefigure[right,depth]{Depth}{\framed[width=5cm,height=4.3cm]{}}
\input knuth

\vskip1cm

\hrule
\placefigure[right,height]{Height}{\framed[width=5cm,height=4.3cm]{}}
\input knuth

\page

\hrule
\placefigure[right,halfline]{Halfline}{\framed[width=5cm,height=4.3cm]{}}
\input knuth

\vskip1cm

\hrule
\placefigure[right,grid]{Grid}{\framed[width=5cm,height=4.5cm]{}}
\input knuth

\page

\hrule
\setupfloats[sidespaceafter=0pt]
\placefigure[right,grid,high,none,nonumber]{Grid+high}{\framed[width=5cm,height=4.5cm]{}}

The {\bf grid+high figure} \input tufte \input knuth


\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] Vertical alignment of \placefigure[right]

2014-05-07 Thread Romain Diss
Hi,

Le 07/05/2014, Sanjoy Mahajan a écrit
 Here are a few more keys.  I don't fully understand their effect, but I
 found them in strc-flt.mkvi (p.s. shouldn't that be .mkiv ?).

Some of the keys are documented in the 'details' manual
(http://www.pragma-ade.com/general/manuals/details.pdf) in section 6.
I discovered the 'high' key there!

All the best.

-- 
Romain Diss
___
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] \placefigure and title bug in latest beta

2014-04-06 Thread Alan Bowen
Hans--

In today's beta, the following produces a figure entitled Figure 1 title:

\setupexternalfigures[location={local,default}]
\starttext
\useexternalfigure[cow.pdf]
\startplacefigure[title={A cow}]
{\externalfigure[Graphic][cow.pdf]}
\stopplacefigure
\stoptext

Alan
___
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] \placefigure and title bug in latest beta

2014-04-06 Thread Otared Kavian
Hi,

I can confirm this…
This is probably due to the new features Hans added today.

Also, the new feature 

\placelist[figure][criterium=text]

places indeed the list of the figures, but the names of the figures, or rather 
their captions are all indicated by the word « list ».

Best regards: OK


On 6 avr. 2014, at 16:26, Alan Bowen bowenala...@gmail.com wrote:

 Hans—
 
 In today’s beta, the following produces a figure entitled “Figure 1 title”:
 
 \setupexternalfigures[location={local,default}]
 \starttext
 \useexternalfigure[cow.pdf]
 \startplacefigure[title={A cow}]
   {\externalfigure[Graphic][cow.pdf]}
 \stopplacefigure
 \stoptext
 
 Alan
 ___
 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] \placefigure[right or left] failing in footnotes

2014-03-03 Thread Alan Bowen
The following does not work as it should:

setupexternalfigures[location={local,default}]

\starttext
text%
\footnote{\hangsidefloat[2]
\placefigure[right,none]{}
{\externalfigure[cow][width=.1\textwidth]}
\dorecurse{3}{\input ward}}

%for comparison
\hangsidefloat[2]
\placefigure[right,none]{}
{\externalfigure[cow][width=.1\textwidth]}
\dorecurse{3}{\input ward}%
 \stoptext

The text and image in the main body are as they should be.

But note that the first line of the footnote is blank and that, while the
image is placed as it should be, the text runs through it.

I am running ConTeXt  ver: 2014.02.14 17:07 MKIV beta.

Alan
___
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] \placefigure[right or left] failing in footnotes

2014-03-03 Thread Wolfgang Schuster

Am 03.03.2014 um 16:04 schrieb Alan Bowen bowenala...@gmail.com:

 The following does not work as it should:
 
 setupexternalfigures[location={local,default}]
 
 \starttext
 text%
 \footnote{\hangsidefloat[2]
   \placefigure[right,none]{}
   {\externalfigure[cow][width=.1\textwidth]}
   \dorecurse{3}{\input ward}}
  
 %for comparison
 \hangsidefloat[2]
 \placefigure[right,none]{}
   {\externalfigure[cow][width=.1\textwidth]}
   \dorecurse{3}{\input ward}%
  \stoptext
 
 The text and image in the main body are as they should be.
  
 But note that the first line of the footnote is blank and that, while the 
 image is placed as it should be, the text runs through it.

1. The vertical distance before and after floats can be changed with 
\setupfloat[spacebefore=…,spaceafter=…].

2. Some features like floats or columns don’t work or can be used only with 
limitations in footnotes.

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] \placefigure[right or left] failing in footnotes

2014-03-03 Thread Alan Bowen
Again, thanks.

My tests so far indicate that the only way to go in footnotes is with
\starthanging[location-right]...\stophanging--and to be happy with the output
as it is (which is quite nice, when all is said and done).

Alan


On Mon, Mar 3, 2014 at 11:24 AM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 03.03.2014 um 16:04 schrieb Alan Bowen bowenala...@gmail.com:

 The following does not work as it should:

 setupexternalfigures[location={local,default}]

 \starttext
 text%
 \footnote{\hangsidefloat[2]
  \placefigure[right,none]{}
 {\externalfigure[cow][width=.1\textwidth]}
 \dorecurse{3}{\input ward}}

 %for comparison
 \hangsidefloat[2]
 \placefigure[right,none]{}
 {\externalfigure[cow][width=.1\textwidth]}
 \dorecurse{3}{\input ward}%
  \stoptext

 The text and image in the main body are as they should be.

 But note that the first line of the footnote is blank and that, while the
 image is placed as it should be, the text runs through it.


 1. The vertical distance before and after floats can be changed with
 \setupfloat[spacebefore=...,spaceafter=...].

 2. Some features like floats or columns don't work or can be used only
 with limitations in footnotes.

 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
___

[NTG-context] Bug in \placefigure[right]?

2014-01-13 Thread Mari Voipio
Hello!

For a while I've been baffled by a weird bug where sometimes I get
overset text when using \placefigure[right]. The problem appeared
sometime this autumn in places where everything has worked before.

This far I've (reluctantly) worked my way around the bug by using hard
line breaks where needed, but the current project has so many of those
spots that a more flexible solution would be nice.

On the other hand, just because I have so many of them and some
appeared today, I realized that the problem can be related to {\tfx }
in the beginning of the line. Here's a minimal example:




\starttext

\placefigure
[right][cow]
{A cow}
{\externalfigure[cow]}


{\tfx SET TIME/DATE} allows you to (re)set the instrument date and
time. Time is set by inputting a certain amount of digits. Possible
inputs are 4, 6, 8 and 12 digits. To set hours and minutes, input 4
digits. To set day of month and time input 6 digits. To set month, day
and time input 8 digits. To set year, month, day and time input 12
digits. In all cases seconds can be set by separating them with a dot.
The format can be seen below.

\input tufte



\stoptext

===



I know it is not beautiful, but I'm doing something very specific
where this is needed. In a real pinch I can probably rewrite every
problem sentence to put the \tfx in the middle instead of the
beginning, but this still doesn't make the original problem go away.
(Although I may be the only one bothered by it...)


Mari

PS. Hmm... Same thing if I use {\sc blabla} so while I reallly should
switch to small caps, that is not the solution.

PS2. I just tried with \placefigure[left] and I get overset text with it, too.


right_bugi.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] Bug in \placefigure[right]?

2014-01-13 Thread Wolfgang Schuster

Am 13.01.2014 um 12:22 schrieb Mari Voipio mari.voi...@iki.fi:

 Hello!
 
 For a while I've been baffled by a weird bug where sometimes I get
 overset text when using \placefigure[right]. The problem appeared
 sometime this autumn in places where everything has worked before.
 
 This far I've (reluctantly) worked my way around the bug by using hard
 line breaks where needed, but the current project has so many of those
 spots that a more flexible solution would be nice.
 
 On the other hand, just because I have so many of them and some
 appeared today, I realized that the problem can be related to {\tfx }
 in the beginning of the line. Here's a minimal example:
 
 
 
 
 \starttext
 
 \placefigure
[right][cow]
{A cow}
{\externalfigure[cow]}
 
 
 {\tfx SET TIME/DATE} allows you to (re)set the instrument date and
 time. Time is set by inputting a certain amount of digits. Possible
 inputs are 4, 6, 8 and 12 digits. To set hours and minutes, input 4
 digits. To set day of month and time input 6 digits. To set month, day
 and time input 8 digits. To set year, month, day and time input 12
 digits. In all cases seconds can be set by separating them with a dot.
 The format can be seen below.
 
 \input tufte
 
 
 
 \stoptext
 
 ===
 
 
 
 I know it is not beautiful, but I'm doing something very specific
 where this is needed. In a real pinch I can probably rewrite every
 problem sentence to put the \tfx in the middle instead of the
 beginning, but this still doesn't make the original problem go away.
 (Although I may be the only one bothered by it…)

It’s a known problem when you have a font switch at the begin of a paragraph
and you can avoid it only when you force horizontal mode before you change
the font with

  \dontleavehmode{\tfx …} …

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 in \placefigure[right]?

2014-01-13 Thread Mari Voipio
On Mon, Jan 13, 2014 at 1:27 PM, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:

 It’s a known problem when you have a font switch at the begin of a paragraph
 and you can avoid it only when you force horizontal mode before you change
 the font with

   \dontleavehmode{\tfx …} …

Ah, I just haven't known what to look for, then. The magic formula
works and it is *much* better than hardcoding the line breaks. :-)


Thank you for your quick reply, Wolfgang!


Mari
___
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 in \placefigure[right]?

2014-01-13 Thread Alan Braslau
On Mon, 13 Jan 2014 16:23:24 +0200
Mari Voipio mari.voi...@iki.fi wrote:

 On Mon, Jan 13, 2014 at 1:27 PM, Wolfgang Schuster
 schuster.wolfg...@gmail.com wrote:
 
  It’s a known problem when you have a font switch at the begin of a
  paragraph and you can avoid it only when you force horizontal mode
  before you change the font with
 
\dontleavehmode{\tfx …} …
 
 Ah, I just haven't known what to look for, then. The magic formula
 works and it is *much* better than hardcoding the line breaks. :-)

Wikified:

http://wiki.contextgarden.net/Font_Switching

Alan
___
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] Placefigure without Caption-Numbering

2013-12-01 Thread Alan Braslau
On Sat, 30 Nov 2013 21:06:20 +0100
Jan Tosovsky j.tosov...@email.cz wrote:

 Indeed much cleaner. But that numbering option seems to be ignored ;-)
 Does it work for you?

Sorry, it is number=no.

Alan
___
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] Placefigure without Caption-Numbering

2013-11-30 Thread Jan Tosovsky
On 2013-04-16 Wolfgang Schuster wrote:
 Am 16.04.2013 um 18:56 schrieb H. Özoguz h.oezoguz at mmnetz.de:
 
  How to deactive the Caption-Numbering:
  
  \starttext
  
  \placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
  
  \stoptext
  
  I want the caption Blub, but not the Figure 1 label.

 \placefigure[here,nonumber]{.}{.}

It helped me now. 

Btw, there is no such an option mentioned in the WIKI or user guide...

http://wiki.contextgarden.net/Command/placefigure

But I'd like to add:
(1) caption=none renders 'none' instead of nothing...
(2) when key=none is combined, e.g. [none, page], the numbering is
suppressed, but the second option is ignored. But [page, none] works fine.
The order matters. It is same for [page, nonumber].

It would be nice to fix those examples in Wiki or if MkIV behaves
differently, add an appropriate alternative there.

Thanks, Jan


___
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] Placefigure without Caption-Numbering

2013-11-30 Thread Alan Braslau
On Sat, 30 Nov 2013 19:42:54 +0100
Jan Tosovsky j.tosov...@email.cz wrote:

 On 2013-04-16 Wolfgang Schuster wrote:
  Am 16.04.2013 um 18:56 schrieb H. Özoguz h.oezoguz at mmnetz.de:
  
   How to deactive the Caption-Numbering:
   
   \starttext
   
   \placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
   
   \stoptext
   
   I want the caption Blub, but not the Figure 1 label.
 
  \placefigure[here,nonumber]{.}{.}
 
 It helped me now. 
 
 Btw, there is no such an option mentioned in the WIKI or user guide...
 
 http://wiki.contextgarden.net/Command/placefigure
 
 But I'd like to add:
 (1) caption=none renders 'none' instead of nothing...
 (2) when key=none is combined, e.g. [none, page], the numbering is
 suppressed, but the second option is ignored. But [page, none] works
 fine. The order matters. It is same for [page, nonumber].
 
 It would be nice to fix those examples in Wiki or if MkIV behaves
 differently, add an appropriate alternative there.
 
 Thanks, Jan

I find that the \startplacefigure \stopplacefigure interface is much
cleaner:

\startplacefigure [location=here,numbering=no,title=Blub]
  \externalfigure [image] [width=6cm]
\stopplacefigure

Alan

___
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] Placefigure without Caption-Numbering

2013-11-30 Thread Jan Tosovsky
On 2013-11-30 Alan Braslau wrote:
 On Sat, 30 Nov 2013 19:42:54 +0100
 Jan Tosovsky j.tosov...@email.cz wrote: 
  On 2013-04-16 Wolfgang Schuster wrote:
   Am 16.04.2013 um 18:56 schrieb H. Özoguz
   
How to deactive the Caption-Numbering:
   
\starttext
   
\placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
   
\stoptext
   
I want the caption Blub, but not the Figure 1 label.
  
   \placefigure[here,nonumber]{.}{.}
 
  It helped me now.
 
  Btw, there is no such an option mentioned in the WIKI or user
  guide...
 
  http://wiki.contextgarden.net/Command/placefigure
 
  But I'd like to add:
  (1) caption=none renders 'none' instead of nothing...
  (2) when key=none is combined, e.g. [none, page], the numbering is
  suppressed, but the second option is ignored. But [page, none] works
  fine. The order matters. It is same for [page, nonumber].
 
  It would be nice to fix those examples in Wiki or if MkIV behaves
  differently, add an appropriate alternative there.
 
 I find that the \startplacefigure \stopplacefigure interface is much
 cleaner:
 
 \startplacefigure [location=here,numbering=no,title=Blub]
   \externalfigure [image] [width=6cm]
 \stopplacefigure
 

Indeed much cleaner. But that numbering option seems to be ignored ;-)
Does it work for you?

Jan

___
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] Missing { inserted using placefigure and postponing

2013-09-21 Thread Marco Patzer
Hi,

I get a “Missing { inserted.” error under certain circumstances.
Here is an example:

\starttext
  \blackrule [height=8cm]

  \startpostponing
\placefigure
  [] {foo}{bar}
  \stoppostponing

  \blackrule [height=15cm]

  \startlines
  a
  b
  \stoplines
\stoptext

I used black rules to insert boxes of a particular height, any
content would do. Funnily enough it works with \placefigure []
{foo}{bar}, but not with

  \placefigure
[] {foo}{bar}

I have no clue what's wrong here.

Marco


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
___

Re: [NTG-context] Missing { inserted using placefigure and postponing

2013-09-21 Thread Hans Hagen

On 9/21/2013 12:01 PM, Marco Patzer wrote:

Hi,

I get a “Missing { inserted.” error under certain circumstances.
Here is an example:

\starttext
   \blackrule [height=8cm]

   \startpostponing
 \placefigure
   [] {foo}{bar}
   \stoppostponing

   \blackrule [height=15cm]

   \startlines
   a
   b
   \stoplines
\stoptext

I used black rules to insert boxes of a particular height, any
content would do. Funnily enough it works with \placefigure []
{foo}{bar}, but not with

   \placefigure
 [] {foo}{bar}

I have no clue what's wrong here.


the buffer is flushed in 'lines' mode so under a different endonlien 
regime (took me quite some tracing to figure that out) .. fix in beta 
(not sure if that spoils other cases)


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
___


[NTG-context] placefigure problem

2013-08-20 Thread Wim W. Wilhelm
Dear all,

I encountered a problem with TexLive 2013 context.
The problem persisted with the context beta.

With
LuaTex version beta-0.77.0-2013081719 (rev 4640)
and
ConTeXt  ver: 2013.08.18 18:32 MKIV beta  fmt: 2013.8.20  int: english/english

I compiled:

\starttext
\chapter{c-titel}
\section{s1-titel}

text
\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/hemelbol.pdf][height=6cm]}
text
\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/afplatting.pdf][height=4cm]}
text
\section{s2-title}
text
\stoptext

The figures were placed in the middle of the page and the text did not wrap
around the figures.
Everything worked fine in TexLive 2012 context.
I'm a bit lost, any idea?

cheerio
Wim W. Wilhelm

___
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] placefigure problem

2013-08-20 Thread Hans Hagen

On 8/20/2013 12:08 PM, Wim W. Wilhelm wrote:

Dear all,
I encountered a problem with TexLive 2013 context.
The problem persisted with the context beta.
With
LuaTex version beta-0.77.0-2013081719 (rev 4640)
and
ConTeXt  ver: 2013.08.18 18:32 MKIV beta  fmt: 2013.8.20  int:
english/english
I compiled:
\starttext
\chapter{c-titel}
\section{s1-titel}
text
\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/hemelbol.pdf][height=6cm]}
text
\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/afplatting.pdf][height=4cm]}
text
\section{s2-title}
text
\stoptext
The figures were placed in the middle of the page and the text did not wrap
around the figures.
Everything worked fine in TexLive 2012 context.
I'm a bit lost, any idea?
cheerio


[left,none] ... the first keyword determines the place

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
___


[NTG-context] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Hi all! 

This worked in MkII but doesn't in MkIV. Did something changed?

Cheers,
Tim



\starttext
\input knuth
\placefigure[left]{}{\externalfigure[figurename]}
\input knuth
\placefigure[inner]{}{\externalfigure[figurename]}
\input knuth
\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] Placefigure inner/outer

2013-08-04 Thread Marco Patzer
On 2013–08–04 Tim Steenvoorden wrote:

 \starttext
 \input knuth
 \placefigure[left]{}{\externalfigure[figurename]}
 \input knuth
 \placefigure[inner]{}{\externalfigure[figurename]}

What do you want to do? Place it in the margin?

  \placefigure[inleft]{}{\externalfigure[figurename]}

Marco


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
___

Re: [NTG-context] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
No. I want to place the figure to the left of the text if it is on a
odd page and to the right of the text if it is on a even page. Thus
the same effect left and right have as keywords, but depending on
the page it is on.

Cheers,
Tim

2013/8/4 Marco Patzer home...@lavabit.com:
 On 2013–08–04 Tim Steenvoorden wrote:

 \starttext
 \input knuth
 \placefigure[left]{}{\externalfigure[figurename]}
 \input knuth
 \placefigure[inner]{}{\externalfigure[figurename]}

 What do you want to do? Place it in the margin?

   \placefigure[inleft]{}{\externalfigure[figurename]}

 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
 ___
___
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] Placefigure inner/outer

2013-08-04 Thread Wolfgang Schuster

Am 04.08.2013 um 22:40 schrieb Marco Patzer home...@lavabit.com:

 On 2013–08–04 Tim Steenvoorden wrote:
 
 \starttext
 \input knuth
 \placefigure[left]{}{\externalfigure[figurename]}
 \input knuth
 \placefigure[inner]{}{\externalfigure[figurename]}
 
 What do you want to do? Place it in the margin?
 
  \placefigure[inleft]{}{\externalfigure[figurename]}

With the “inner” and “outer” keywords context uses
the “left” and “right” locations dependent on the page.

The feature doesn’t work in MkIV because two commands
are processed in the wrong order.

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] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
fixed someday?

2013/8/4 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 04.08.2013 um 22:40 schrieb Marco Patzer home...@lavabit.com:

 On 2013–08–04 Tim Steenvoorden wrote:

 \starttext
 \input knuth
 \placefigure[left]{}{\externalfigure[figurename]}
 \input knuth
 \placefigure[inner]{}{\externalfigure[figurename]}

 What do you want to do? Place it in the margin?

  \placefigure[inleft]{}{\externalfigure[figurename]}

 With the “inner” and “outer” keywords context uses
 the “left” and “right” locations dependent on the page.

 The feature doesn’t work in MkIV because two commands
 are processed in the wrong order.

 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] Placefigure inner/outer

2013-08-04 Thread Wolfgang Schuster

Am 04.08.2013 um 22:53 schrieb Tim Steenvoorden tim.steenvoor...@gmail.com:

 Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
 fixed someday?

It depends on Hans, I’ll send him a mail about the problem.

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] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Thanks Wolfgang!

2013/8/4 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 04.08.2013 um 22:53 schrieb Tim Steenvoorden tim.steenvoor...@gmail.com:

 Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
 fixed someday?

 It depends on Hans, I’ll send him a mail about the problem.

 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
___

[NTG-context] Placefigure without Caption-Numbering

2013-04-16 Thread H. Özoguz

How to deactive the Caption-Numbering:

\starttext

\placefigure[here]{Blub}{\externalfigure[image][width=6cm]}

\stoptext


I want the caption Blub, but not the Figure 1 label.

Thanks!
Huseyin
___
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] Placefigure without Caption-Numbering

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 18:56 schrieb H. Özoguz h.oezo...@mmnetz.de:

 How to deactive the Caption-Numbering:
 
 \starttext
 
 \placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
 
 \stoptext
 
 I want the caption Blub, but not the Figure 1 label.

\placefigure[here,nonumber]{…}{…}

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
___


  1   2   3   4   >