Dear list members, After months of trying to figure out what TeX, ConTeXt etc is and how to install everything needed I finally produced my first document. I was thrilled when I saw real pdf pages with footnotes and all! However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that "\setuptolerance[horizontal,verystrict]" in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them). I am currently writing a textbook and I am looking forward to using ConTeXt. PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049
Jörg Hagmann wrote:
However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that "\setuptolerance[horizontal,verystrict]" in the setup area should do the trick, but it didn't.
Can you give some examples ?
Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX
Brave heart.
I am currently writing a textbook and I am looking forward to using ConTeXt.
Context IS the right choice. luigi
On Apr 15, 2005, at 9:35 AM, luigi.scarso wrote:
Jörg Hagmann wrote:
However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that "\setuptolerance[horizontal,verystrict]" in the setup area should do the trick, but it didn't.
Can you give some examples ?
See the attachment (testpage.pdf). There is a line sticking out in this way on 3 of 6 pages, plus a few minor protrusions of the width of about one character. PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049
On Fri, 15 Apr 2005, Jörg Hagmann wrote:
See the attachment (testpage.pdf). There is a line sticking out in this way on 3 of 6 pages, plus a few minor protrusions of the width of about one character.
Hello, seems to be a problem with non-ascii characters. See also: http://archive.contextgarden.net/message/20040109.203000.b863a98b.html Could you try this? \enableregime[il1] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% solution: \usetypescript[modern][texnansi] \setupbodyfont[modern] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \starttext \dorecurse{65}x übernimmt \stoptext Cheers, Peter -- http://pmrb.free.fr/contact/
I have to typeset a small paragraph inside fixed box. I don't have much control about it's content, so sometimes text overflow. I try the following two macros, but they aren't good. % AutoScaled: not what I really want, but % sometimes works % \def\AutoScaled#1#2#3#4#5{% % #1 horiz. limit % #2 unused (maybe vert. limit) % #3 horiz. scale % #4 vert. scale % #5 text \setbox800=\hbox{\color[black]{\scale[sx=#3,sy=#4]{\bf #5}}}% \newdimen\ScaleX \ScaleX=#3pt \newdimen\ScaleY \ScaleY=#4pt %% \newdimen\LimitX \LimitX=#1 % \ifdim\wd800 > \LimitX % \edef\Ratio{\withoutpt{\the\dimexpr( (2\LimitX/(\wd800 /32768))) }}% \edef\XSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleX ) }}% \edef\YSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleY ) }}% \setbox800=\hbox{\color[black]{\scale[sx=\XSCALE,sy=\YSCALE]{\bf #5}}}% \fi% \box800\relax% }%%enddef \Autoscaled %AutoSize is what I really want, but it's %WRONG!! \def\AutoSize#1#2#3{% % #1=string #2=horiz.limit #3=initial font size \newdimen\Limit \Limit=#2 \newdimen\FontSize \FontSize=#3 \doloop{% \setbox800=\hbox{#1}% \ifdim\wd800 <\Limit\exitloop \else % WARNING: eat memory , 1bp is bad step, % force ss .... it's wrong \advance\FontSize by -1bp\switchtobodyfont[ss,\the\FontSize]% %% \fi}% %\newdimen\Dimen \Dimen=0.35277778\wd800 \pointless\Dimen mm\relax% \box800\relax% } luigi
luigi.scarso wrote:
I have to typeset a small paragraph inside fixed box. I don't have much control about it's content, so sometimes text overflow. I try the following two macros, but they aren't good.
see latest magazine for an example + some explanation Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
see latest magazine for an example + some explanation
Great, as usually (I lose it because if I I visit http://www.pragma-ade.com/show-mag-1.htm and from here I click on previous at bottom right, I will go http://www.pragma-ade.com/show-mag-10.htm which is mag 0009. It seems that from mag-0000 you jump to previous mag-0009 and not mag-0010). I've printed and read it ; if I have understand, I 've tried to do something similiar with my \AutoScaled with implicit rettangular shape and one line of text; maybe \AutoSize is not the right way. luigi
luigi.scarso wrote:
It seems that from mag-0000 you jump to previous mag-0009 and not mag-0010).
the zero issue is, well, the zero issue that any magazine has, explaining the magazine Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
luigi.scarso wrote:
It seems that from mag-0000 you jump to previous mag-0009 and not mag-0010).
the zero issue is, well, the zero issue that any magazine has, explaining the magazine
Yes, I know (mag-0000 is a meta-magazine... :) ) When I try http://www.pragma-ade.com/show-mag-1.htm I see mag-0000, page 1 of 10 and link previous and next (on bottom right) Click on next: I am at http://www.pragma-ade.com/show-mag-2.htm mag-0001, pag 1 of 10 So on until PAGE 7 OF 10, and click next I am are at http://www.pragma-ade.com/show-mag-8.htm and I see PAGE 8 OF 11. (why?) Again from start http://www.pragma-ade.com/show-mag-1.htm click on previous: I am at http://www.pragma-ade.com/show-mag-10.htm it's mag-0009, and I see PAGE 10 OF 11. So previous of first is last -1 . click on next: mag-0010, which I had missed last night., which is last. Maybe a broken link on site ? luigi
luigi.scarso wrote:
Maybe a broken link on site ?
it works ok here; maybe some caching problem on your site? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Dear users, it seems that I have some problems with links to magazines. If I go to mag-0000 at http://www.pragma-ade.com/show-mag-1.htm on bottom right there are PAGE 1 OF 10 and link 'previous' If I click on 'previous' I will go to http://www.pragma-ade.com/show-mag-10.htm (mag-0009) and on bottom right appears PAGE 10 of 11 mag-0009 is not last magazine, so from first I jump to last-1 . Is it right ? Does anybody have this 'problems' ? thanks luigi
% AutoSize seem better, but % I must setup ss and tfb inside body % (I need these) so it's no a general macros % Same problems of previous version. % \def\AutoSize#1#2#3{% #1=string #2=horiz.limit #3=startfont \newdimen\Limit \Limit=#2 % \newdimen\FontSize \FontSize=#3 % \doloop{% \setbox800=\hbox{\switchtobodyfont[ss,\the\FontSize]\tfb #1}% \ifdim\wd800 <\Limit\exitloop% \else% \ifdim\FontSize <1bp\exitloop% \else % \advance\FontSize by -0.5bp% \fi% \fi}% \box800\relax% }
Jörg Hagmann wrote:
However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that "\setuptolerance[horizontal,verystrict]" in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them).
can you check if you have hyphenation? there have been pattern problems (changes in names and such) btw, doe anyone object if i ship generic context patterns in the main zip? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hyphenation is working. I attached one pdf-page showing the result to a previous message which is being "hold for approval". On Apr 15, 2005, at 11:17 AM, Hans Hagen wrote:
Jörg Hagmann wrote:
However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that "\setuptolerance[horizontal,verystrict]" in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them).
can you check if you have hyphenation? there have been pattern problems (changes in names and such)
PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049
Jörg Hagmann wrote:
Hyphenation is working. I attached one pdf-page showing the result to a previous message which is being "hold for approval".
no attachment here Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Since the attachment showing one pdf-page doesn't seem to pass through, let me describe the outcome: On 6 pages with mostly default settings, there are 3 lines sticking out on the right side by 2- 3 characters ("igt", "mt" and "ng"). In addition, there are about 3 smaller defects (ca. 1 character protrusions). I am using "il1", and "de" as mainlanguage. Interestingly, on 2 pages the defects occur at exactly the same distance from the upper edge. On Apr 15, 2005, at 11:17 AM, Hans Hagen wrote:
Jörg Hagmann wrote:
However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that "\setuptolerance[horizontal,verystrict]" in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them).
can you check if you have hyphenation? there have been pattern problems (changes in names and such)
btw, doe anyone object if i ship generic context patterns in the main zip?
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi Hans, For me that is fine. Willi Hans Hagen wrote:
Jörg Hagmann wrote:
However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that "\setuptolerance[horizontal,verystrict]" in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them).
can you check if you have hyphenation? there have been pattern problems (changes in names and such)
btw, doe anyone object if i ship generic context patterns in the main zip?
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Guata obat! This is nice, another swiss user! (sorry gang for this bit of patriotism) In fact if you use \setuptolerance[verystrict] will cause TeX to use as few glue as possible, so the possibilities to stretch a line to have a better breakpoint is lowered. Instead you might use \setuptolerance[tolerant, stretch] or even \setuptolerance[verytolerant,stretch] Kind regards Willi Jörg Hagmann wrote:
Dear list members, After months of trying to figure out what TeX, ConTeXt etc is and how to install everything needed I finally produced my first document. I was thrilled when I saw real pdf pages with footnotes and all!
However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that "\setuptolerance[horizontal,verystrict]" in the setup area should do the trick, but it didn't. Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX - the result was the same (same lines sticking out) on all of them).
I am currently writing a textbook and I am looking forward to using ConTeXt.
PD Dr.med. Jörg Hagmann-Zanolari Institute of Biochemistry and Genetics DKBW, University of Basel Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 6953049 _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Am 15.04.2005 um 22:12 schrieb Willi Egger:
This is nice, another swiss user!
Me too ;-)
In fact if you use \setuptolerance[verystrict] will cause TeX to use as few glue as possible, so the possibilities to stretch a line to have a better breakpoint is lowered. Instead you might use \setuptolerance[tolerant, stretch] or even \setuptolerance[verytolerant,stretch]
I'd suggest \setuptolerance[{horizontal,verytolerant,stretch},{vertical,strict}] German has that many long words that I never get nice columns without "stretch". Grüßlis vom Hraban! (CH-8274 Tägerwilen TG) --- http://www.fiee.net/texnique/ http://contextgarden.net
Thank you for the welcome and the suggestions - they worked. I misinterpreted the term "strict", thinking it would apply to justification. In the future, I'll try a little harder myself before asking the next question! On Apr 16, 2005, at 12:50 PM, Henning Hraban Ramm wrote:
Am 15.04.2005 um 22:12 schrieb Willi Egger:
This is nice, another swiss user!
participants (6)
-
Hans Hagen
-
Henning Hraban Ramm
-
Jörg Hagmann
-
luigi.scarso
-
Peter Münster
-
Willi Egger