[NTG-context] text wrapped around \textwidth sized images unwantedly.

2016-02-01 Thread d_jan
I use ConTeXt for a document with many images. The text should float
around the images, if possible.

The floating itself works fine, but some images are equal or larger than
\textwidth (so they are maxwidth=\textwidth). Instead of breaking above
the image and starting below it again, the algorithm tries to float a
bit of text (about 2-4 characters each line) around the image using
space outside the text area (which naturally causes overfull \hbox-es).

Is there any way to prevent this?

If not, I define another float for these images and assign it to the
affected images, but I wonder if I can get around this.

Kind Regards,
 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] If figures are placed left, left-aligned captions are unwantedly centered

2016-01-29 Thread d_jan
Hello fellow ConTeXt users,


I want to place figures left so that text wraps around them if they have
less width than \textwidth. The figure captions should be aligned left
(flushleft).

What happens: The captions are all centered.

Details:

If I use default={here,nonumber} instead of default={left,nonumber}
in\setupfloat[figure][default=..., the captions are aligned left, just
like they should.

It does not matter if the text warps around the captioned image, the
centered is present for all figure-captions, regardless of their width.


Code demonstrating the behaviour:
-

   \setupfloat[figure][default={left,nonumber}]

   \setupcaption[figure][align=flushleft] %prefix: section-wis 3

   \starttext

   %here is some text...
   Lorem Ipsum

   \placefigure{my figure caption}{\externalfigure[images/image1.jpg]}


   %here is some text
   Lorem Ipsum
   \placefigure{my figure caption}{\externalfigure[images/image1.jpg]}


Is there any way to left-place figures and have the captions flushleft
aligned? (Ideally while keeping the content after starttext the same)

addition: I tried with an comes-with-Ubuntu-14.04 and a LiveTex2015
Version of ConTeXt, no difference in behavior.

Kind Regards,
 Jan

PS.: Previously posted this on tex.stackexchange too
(http://tex.stackexchange.com/questions/289752/if-figures-are-placed-left-left-aligned-captions-are-unwantedly-centered-conte),
but without answers so far.
___
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] [***SPAM***] Widows: penalty without efffect (ConTeXt iv)

2012-08-09 Thread d_jan

Dear List,

I ran into trouble with the widow/orphan-control in context.
I searched the mailinglist, and saw that there were some other threads 
on the topic bevore, but as far as I am concerned what was suggested 
there did not work for me when I tried it.


I run context iv using the version which comes with TexLive 2011.

First trail was to include \widowpenalty=9000 and \clubpenalty=9000 at 
the start of the document, before \starttext (cause I do my setups, and 
definitions there)
As this did not work I tried to put them after \starttext. As well I 
lowered \brokenpenalty. But both approaches, which were suggested in 
previous Posts on the ntg-context list failed to show an effect in my case.


Is there anything I could do to prevent the widow lines?

PS.: As I may be doing any noobish errors, here an overview of the 
documents structure and the placement of the penalty-commands

_

\widowpenalty=9000
\clubpenalty=9000

\definepapersize[janssize][width=190mm, height=245mm]

\setuppapersize[janssize][A4] %we can use something like [A5][A4], which 
is a a5 Page sized Document printed on a A4 sheet



\setuplayout[grid=yes, marking=on, location=middle, backspace=30mm, 
width=110mm]%former: location=doublesided



\starttext

\startstandardmakeup
\stopstandardmakeup

\startfrontmatter
%TOC...
\stopfrontmatter

\startbodymatter %the main stuff goes here
% Loads of text
\stopbodymatter

\startappendices %appendices go here
\stopappendices

\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] [***SPAM***] Widows: penalty without efffect (ConTeXt iv)

2012-08-09 Thread d_jan

Hi Stephan,
Thanks for your help. Seemingly I missed that in my search on the list.

\starttext
\clubpenalty=1
\widowpenalty=1
\brokenpenalty=1
[...]

seems to do the job.

Reards,
 Jan

On 09.08.2012 14:25, Stefan Müller wrote:

Hi,

did you see [1]? You have to do something like

\starttext
\clubpenalty=1
\widowpenalty=1

My text that should not contain any widow or orphan lines.
\stoptext

If that does not work for you, please provide a minimal example.

HTH,
Stefan


[1] 
http://archive.contextgarden.net/message/20111211.162442.4f689e7b.en.html


On 09.08.2012 11:36, d_jan wrote:

Dear List,

I ran into trouble with the widow/orphan-control in context.
I searched the mailinglist, and saw that there were some other threads
on the topic bevore, but as far as I am concerned what was suggested
there did not work for me when I tried it.

I run context iv using the version which comes with TexLive 2011.

First trail was to include \widowpenalty=9000 and \clubpenalty=9000 at
the start of the document, before \starttext (cause I do my setups, and
definitions there)
As this did not work I tried to put them after \starttext. As well I
lowered \brokenpenalty. But both approaches, which were suggested in
previous Posts on the ntg-context list failed to show an effect in my 
case.


Is there anything I could do to prevent the widow lines?

PS.: As I may be doing any noobish errors, here an overview of the
documents structure and the placement of the penalty-commands
_

\widowpenalty=9000
\clubpenalty=9000

\definepapersize[janssize][width=190mm, height=245mm]

\setuppapersize[janssize][A4] %we can use something like [A5][A4], which
is a a5 Page sized Document printed on a A4 sheet


\setuplayout[grid=yes, marking=on, location=middle, backspace=30mm,
width=110mm]%former: location=doublesided


\starttext

\startstandardmakeup
\stopstandardmakeup

\startfrontmatter
%TOC...
\stopfrontmatter

\startbodymatter %the main stuff goes here
% Loads of text
\stopbodymatter

\startappendices %appendices go here
\stopappendices

\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] change caption position temporarily

2012-07-20 Thread d_jan

Is it possible to set the caption position for some images to another position
than the one defined in \setupcations ?
The standard in my document is location=bottom but for some images I'd prefer
=right.


\setupcaptions[location=bottom]
\def\PlaceRightFigure#1#2{{\setupcaptions[location=right]%
 \placefigure{#1}{#2}}}
\starttext
\placefigure{caption 1}{figure 1}
\PlaceRightFigure{caption 2}{figure 2}
\placefigure{caption 3}{figure 3}
\stoptext

Sorry that I get back on this so late:
thanks a lot, it works very well.
___
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] figures: side by side and/or one above the other

2012-07-20 Thread d_jan

Hello,
I'm using context for an document with many figures. In some cases I 
have figures that should appear side by side and/or one above the other 
– but without combining them (\startcombination... \stopcombination). 
This I want to avoid because I'd like to give them a plain caption (like 
non-combined images) and because I would not like putting not directly 
related figures in a combination. In addition, when placed [left], 
combinations somehow center all sub-captions, though for single images 
they are left-aligned. (see http://pastebin.com/tZiNuekZ)



Here is what I tried (and what went wron on the way)

A) one above the other – so that I have the images on the left side of 
the page, while the text is on the right.


I tried to archive this using the attribute [left]. The text floats 
aside of the one bottom image (someimage2), but not aside the one above 
it (someimage1). This code produces a working example:


\starttext
\placefigure
[left]
{caption}
{\externalfigure[someimage1][width=0.5\textwidth]}
\placefigure
[left][fig:newton]
{caption}
{\externalfigure[someimage2][width=0.5\textwidth]}

\input tufte
\stoptext


B) side by side
I tried to work with columns here, but i was not successful. The figures 
often went not together and when a setup worked, the text did not 
continue to flow after the images but was starting on the next page. I 
hope there is a more robust solution out there.


I would be grateful if somebody could point me in the right direction 
for solving these issues.


Regards,
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] change caption position temporarily

2012-07-16 Thread d_jan

Hello,

Is it possible to set the caption position for some images to another 
position than the one defined in \setupcations ?
The standard in my document is location=bottom but for some images I'd 
prefer =right.


Regards,
 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] [***SPAM***] quotationmarks just before new line

2012-07-03 Thread d_jan

Hello,

It frequently happens to me that a new line in an output-document starts just 
after a quotation mark. So I encounter lines in my ConTeX-created .pdf like:

And the prince of Denmark spoke: '
?how weary, stale, flat, and unprofitable seem to me all the uses of this world!' 


Its hard to say how often this happens but I'd say its roughly every 50 
quotations.

A minimal example to see the problem in action: (also 
onhttp://pastebin.com/cEMiGZju)

\mainlanguage [de]
\setuppapersize[A4]

\setuplayout[width=6cm]

\setupquotation
[1]
[left=, right=]

\setupquote
[1]
[left=, right=]

\starttext

\language[de]
Bereiche der\quotation{waren transparent, so dass} man auf. \quotation{die 
darunterliegenden} Grafiken sehen konnte. \quotation{Die Paletten konnten mit 
der} nicht-dominanten \quotation{Hand bewegt werden} %gibberish content

\stoptext

I'm using LiveTex 2011/LuaTex typeset but the problem can be reproduced using the example 
code athttp://live.contextgarden.net/  and the XeTeX-Setting.

Is there any fix to this problem?

You have to add \nobreak between the quotation mark and the text, e.g.

   \setupdelimitedtext[quotation][1][left=?\nobreak]

but I can give you better answer when you tell use why do you want to change
the delimiters as shown above because ? and ? are the default symbols for german
when you use \quotation.

Wolfgang



Hello,
Thanks! That did the job as far as I can see.
I did set the Quotation Marks manually since I considered to change them 
to Guillemets (?» «) later.


Regards,
 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] [***SPAM***] quotationmarks just before new line

2012-07-02 Thread d_jan

Hello,

It frequently happens to me that a new line in an output-document starts 
just after a quotation mark. So I encounter lines in my ConTeX-created 
.pdf like:


And the prince of Denmark spoke: '
how weary, stale, flat, and unprofitable seem to me all the uses of 
this world!' 


Its hard to say how often this happens but I'd say its roughly every 50 
quotations.


A minimal example to see the problem in action: (also on 
http://pastebin.com/cEMiGZju)


\mainlanguage [de]
\setuppapersize[A4]

\setuplayout[width=6cm]

\setupquotation
[1]
[left=„, right=“]

\setupquote
[1]
[left=„, right=“]

\starttext

\language[de]
Bereiche der\quotation{waren transparent, so dass} man auf. 
\quotation{die darunterliegenden} Grafiken sehen konnte. \quotation{Die 
Paletten konnten mit der} nicht-dominanten \quotation{Hand bewegt 
werden} %gibberish content


\stoptext

I'm using LiveTex 2011/LuaTex typeset but the problem can be reproduced 
using the example code at http://live.contextgarden.net/ and the 
XeTeX-Setting.


Is there any fix to this problem?

Kind Regards,
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
___