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
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
2011/3/19 Aditya Mahajan
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
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
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
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
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
participants (4)
-
Aditya Mahajan
-
Cecil Westerhof
-
Mojca Miklavec
-
Wolfgang Schuster