ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Some problems I experienced when using ConTeXt
@ 2011-03-19  2:41 Cecil Westerhof
  2011-03-19  3:21 ` Aditya Mahajan
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Cecil Westerhof @ 2011-03-19  2:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1928 bytes --]

In my explorary journey into ConTeXt I bumped into a few problems. Attached
my tex file and the generated PDF.

I found a few problems while using ConTeXt. I did my best to
reproduce them (the table problem was difficult to reproduce) and
make a small sample document.


There is a problem with the formatting of paragraps. This
manifests itself when I set lefthyphenmin and righthyphenmin.
Then sometimes sentences are to long. Would it not be better to
have a lot of whitespace between the words, but keep the
formating?

In the document the third line of the first paragraph is to long
and the fifth and sixth line from the second paragraph are to
long.


When I use a sentence like:
    In de boxen van de stam vul je voor iedere dag (maandag t/m zondag)
    een activiteit in die je op die dag afrond.

I would prefer t/m kept together. It is, but the way it is
displayed, it looks like there is (a) space between the '/' and
the 'm'. Is there something that can be done about this, or have
I to live with it?


I found also an obscure problem with table. I had to dabble a bit
to reproduce it. (For a moment I thought I had imagined it.)

The table does not fit on the space that is left on the page, so
it is moved to the next page. So far so good. But the text after
the table is put on the current page and is now before the table.

It is not that they can not be put on a page together, because
when you uncomment the break, the table and text reside on the
same page.


Lastly a question about a long click-able email address. I would
like it not to be broken up. But sometimes this can happen. See
the end of the document.(Can of-course also happen with a short
address, but will happen less often.) What is the best way to
circumvent this? At the moment I just put it centered on its own
line. At the moment I do not have a problem with this. But I do
not know if this will be always the case.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 2112 bytes --]

[-- Attachment #2: wrongFormatting.tex --]
[-- Type: application/x-tex, Size: 4025 bytes --]

[-- Attachment #3: wrongFormatting.pdf --]
[-- Type: application/pdf, Size: 15836 bytes --]

[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Some problems I experienced when using ConTeXt
  2011-03-19  2:41 Some problems I experienced when using ConTeXt Cecil Westerhof
@ 2011-03-19  3:21 ` Aditya Mahajan
  2011-03-19  3:46   ` Cecil Westerhof
  2011-03-19  8:18 ` Mojca Miklavec
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2011-03-19  3:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 19 Mar 2011, Cecil Westerhof wrote:

> In my explorary journey into ConTeXt I bumped into a few problems. Attached
> my tex file and the generated PDF.
>
> I found a few problems while using ConTeXt. I did my best to
> reproduce them (the table problem was difficult to reproduce) and
> make a small sample document.
>
> There is a problem with the formatting of paragraps. This
> manifests itself when I set lefthyphenmin and righthyphenmin.
> Then sometimes sentences are to long. Would it not be better to
> have a lot of whitespace between the words, but keep the
> formating?
>
> In the document the third line of the first paragraph is to long
> and the fifth and sixth line from the second paragraph are to
> long.

\setupalign[verytolerant,stretch]

> When I use a sentence like:
>    In de boxen van de stam vul je voor iedere dag (maandag t/m zondag)
>    een activiteit in die je op die dag afrond.
>
> I would prefer t/m kept together. It is, but the way it is
> displayed, it looks like there is (a) space between the '/' and
> the 'm'. Is there something that can be done about this, or have
> I to live with it?

I don't know.

> I found also an obscure problem with table. I had to dabble a bit
> to reproduce it. (For a moment I thought I had imagined it.)
>
> The table does not fit on the space that is left on the page, so
> it is moved to the next page. So far so good. But the text after
> the table is put on the current page and is now before the table.
>
> It is not that they can not be put on a page together, because
> when you uncomment the break, the table and text reside on the
> same page.

You are using \placetable which is a float. So, the table goes to the next 
page, but the material after that continues on the current page.

> Lastly a question about a long click-able email address. I would
> like it not to be broken up. But sometimes this can happen. See
> the end of the document.(Can of-course also happen with a short
> address, but will happen less often.) What is the best way to
> circumvent this? At the moment I just put it centered on its own
> line. At the moment I do not have a problem with this. But I do
> not know if this will be always the case.

\setupinteraction[state=start]
\useURL
   [email]
   [mailto:quitealongusernametowriteanemailt@dummy.nl]
   []
   [\goodbreak\hbox{quitealongusernametowriteanemailto@dummy.nl}]


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Some problems I experienced when using ConTeXt
  2011-03-19  3:21 ` Aditya Mahajan
@ 2011-03-19  3:46   ` Cecil Westerhof
  0 siblings, 0 replies; 7+ messages in thread
From: Cecil Westerhof @ 2011-03-19  3:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2029 bytes --]

2011/3/19 Aditya Mahajan <adityam@umich.edu>

> manifests itself when I set lefthyphenmin and righthyphenmin.
>> Then sometimes sentences are to long. Would it not be better to
>> have a lot of whitespace between the words, but keep the
>> formating?
>>
>> In the document the third line of the first paragraph is to long
>> and the fifth and sixth line from the second paragraph are to
>> long.
>>
> There is a problem with the formatting of paragraps. This
>
> \setupalign[verytolerant,stretch]


That looks a lot better.


I found also an obscure problem with table. I had to dabble a bit
>
>> to reproduce it. (For a moment I thought I had imagined it.)
>>
>> The table does not fit on the space that is left on the page, so
>> it is moved to the next page. So far so good. But the text after
>> the table is put on the current page and is now before the table.
>>
>> It is not that they can not be put on a page together, because
>> when you uncomment the break, the table and text reside on the
>> same page.
>>
>
> You are using \placetable which is a float. So, the table goes to the next
> page, but the material after that continues on the current page.


Okay, I understand. Can I do something about this? I now use \testpage, but
that is not quite satisfactory.


Lastly a question about a long click-able email address. I would
>
>> like it not to be broken up. But sometimes this can happen. See
>> the end of the document.(Can of-course also happen with a short
>> address, but will happen less often.) What is the best way to
>> circumvent this? At the moment I just put it centered on its own
>> line. At the moment I do not have a problem with this. But I do
>> not know if this will be always the case.
>>
>
> \setupinteraction[state=start]
> \useURL
>  [email]
>  [mailto:quitealongusernametowriteanemailt@dummy.nl]
>  []
>  [\goodbreak\hbox{quitealongusernametowriteanemailto@dummy.nl}]
>

Much better. Only one slight problem. The dot to finish the sentence is
placed on the next line.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 3272 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Some problems I experienced when using ConTeXt
  2011-03-19  2:41 Some problems I experienced when using ConTeXt Cecil Westerhof
  2011-03-19  3:21 ` Aditya Mahajan
@ 2011-03-19  8:18 ` Mojca Miklavec
  2011-03-19  8:54 ` Wolfgang Schuster
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Mojca Miklavec @ 2011-03-19  8:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Mar 19, 2011 at 03:41, Cecil Westerhof wrote:
>
> When I use a sentence like:
>     In de boxen van de stam vul je voor iedere dag (maandag t/m zondag)
>     een activiteit in die je op die dag afrond.
>
> I would prefer t/m kept together. It is, but the way it is
> displayed, it looks like there is (a) space between the '/' and
> the 'm'. Is there something that can be done about this, or have
> I to live with it?

I don't know implementation details, but if you want to fix it for the
whole document, you could change kerning between "/" and "m" by
tweaking the font. If you want to fix just a single appearance you can
use
    t/\kern-.1em m
(use any amount of space you want; you can use absolute pt or
relative-to-fontsize em [width of one m] as the unit).

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Some problems I experienced when using ConTeXt
  2011-03-19  2:41 Some problems I experienced when using ConTeXt Cecil Westerhof
  2011-03-19  3:21 ` Aditya Mahajan
  2011-03-19  8:18 ` Mojca Miklavec
@ 2011-03-19  8:54 ` Wolfgang Schuster
  2011-03-19  8:57 ` Wolfgang Schuster
  2011-03-19  9:09 ` Wolfgang Schuster
  4 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2011-03-19  8:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 19.03.2011 um 03:41 schrieb Cecil Westerhof:

> I would prefer t/m kept together. It is, but the way it is
> displayed, it looks like there is (a) space between the '/' and
> the 'm'. Is there something that can be done about this, or have
> I to live with it?

Use a different font or add manual kerning. As you can see here it’s font dependent:

\starttext

t/m

\switchtobodyfont[pagella]t/m

\switchtobodyfont[termes]t/m

\switchtobodyfont[iwona]t/m

\switchtobodyfont[antykwa-poltawskiego]t/m

\stoptext

Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Some problems I experienced when using ConTeXt
  2011-03-19  2:41 Some problems I experienced when using ConTeXt Cecil Westerhof
                   ` (2 preceding siblings ...)
  2011-03-19  8:54 ` Wolfgang Schuster
@ 2011-03-19  8:57 ` Wolfgang Schuster
  2011-03-19  9:09 ` Wolfgang Schuster
  4 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2011-03-19  8:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 19.03.2011 um 03:41 schrieb Cecil Westerhof:

> I found also an obscure problem with table. I had to dabble a bit
> to reproduce it. (For a moment I thought I had imagined it.)
> 
> The table does not fit on the space that is left on the page, so
> it is moved to the next page. So far so good. But the text after
> the table is put on the current page and is now before the table.
> 
> It is not that they can not be put on a page together, because
> when you uncomment the break, the table and text reside on the
> same page.

\placetable[force]{…}{…}

and don’t use \blank before and after a float, you can change
the space with the “spacebefore” and “spaceafter” keys for \setupfloat.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Some problems I experienced when using ConTeXt
  2011-03-19  2:41 Some problems I experienced when using ConTeXt Cecil Westerhof
                   ` (3 preceding siblings ...)
  2011-03-19  8:57 ` Wolfgang Schuster
@ 2011-03-19  9:09 ` Wolfgang Schuster
  4 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2011-03-19  9:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 19.03.2011 um 03:41 schrieb Cecil Westerhof:

> Lastly a question about a long click-able email address. I would
> like it not to be broken up. But sometimes this can happen. See
> the end of the document.(Can of-course also happen with a short
> address, but will happen less often.) What is the best way to
> circumvent this? At the moment I just put it centered on its own
> line. At the moment I do not have a problem with this. But I do
> not know if this will be always the case.

\gotobox{quitealongusernametowriteanemailt@dummy.nl}[url(quitealongusernametowriteanemailt@dummy.nl)]

and \setupinteraction[state=start] to your document.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-19  9:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-19  2:41 Some problems I experienced when using ConTeXt Cecil Westerhof
2011-03-19  3:21 ` Aditya Mahajan
2011-03-19  3:46   ` Cecil Westerhof
2011-03-19  8:18 ` Mojca Miklavec
2011-03-19  8:54 ` Wolfgang Schuster
2011-03-19  8:57 ` Wolfgang Schuster
2011-03-19  9:09 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).