[NTG-context] Trying to use Avant Garde - output font in very low resolution

2005-11-07 Thread Kári Hreinsson
Hello,

I was trying to use a new font (not Computer Modern) in my tex file
and all I get is the font in a very low resolution (see
http://www.nfmh.is/~kari/pub/context/flipp4.pdf).  This output was the
result of the following files:
type-garde.tex: http://www.nfmh.is/~kari/pub/context/type-garde.tex
flipp4.tex: http://www.nfmh.is/~kari/pub/context/flipp4.tex

I created the typescript file according to the information in ConTeXt
and pdfTeX Beginners help file
(http://home.salamander.com/~wmcclain/context-help.html#selectfont).

The interesting thing is that I can get the fonts with good quality if
I only use TeX.  The output of running the file flipp3.tex:
http://www.nfmh.is/~kari/pub/context/flipp3.tex
* with pdftex: http://www.nfmh.is/~kari/pub/context/flipp3.pdf
* with texexec --pdf: http://www.nfmh.is/~kari/pub/context/flipp5.pdf
So it seems that texexec is doing things a bit differently then pdftex
but I can't figure out where or how to fix it.

I also tried having the font inclusion in the same tex file and not in
a typescript file with the same results:
* http://www.nfmh.is/~kari/pub/context/flipp6.tex
* http://www.nfmh.is/~kari/pub/context/flipp6.pdf

Then there came one strange thing.  When I tried the same thing with
the Bitstream Charter Bold font as he did in the beginners help file I
got a low resolution font when the inclusion was inside the same but
that worked fine with the online texexec program
(live.contextgarden.net).  However, when I used the typescript file as
he did in the help file I got good quality on the bistream font.

I am quite lost now so any help is very appreciated!

Output of texexec --version:
 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.30.3-2.2 (Web2C 7.5.5)
   context : ver: 2005.08.31
   cont-en : ver: 2005.08.31  fmt: 2005.10.16  mes: english

Thanks in advance,
Kári Hreinsson
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Trying to use Avant Garde - output font in very low resolution

2005-11-07 Thread Kári Hreinsson
Thanks, this worked.

I added the appropriate lines to 8r-base.map found in the local texmf
root.  That should be clean enough? :)

Thanks again,
Kári Hreinsson

On 11/7/05, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Kári Hreinsson wrote:
  The interesting thing is that I can get the fonts with good quality if
  I only use TeX.  The output of running the file flipp3.tex:
  http://www.nfmh.is/~kari/pub/context/flipp3.tex
  * with pdftex: http://www.nfmh.is/~kari/pub/context/flipp3.pdf
  * with texexec --pdf: http://www.nfmh.is/~kari/pub/context/flipp5.pdf
  So it seems that texexec is doing things a bit differently then pdftex
  but I can't figure out where or how to fix it.

 That's definately a clue. I'll wager you can get the texexec
 version working by adding

 \loadmapfile[pdftex.map]

 to the document. Stand-alone plain pdftex reads that file to find
 font mappings, but context does not use it (any more).

 The 'clean' way would be to put your AvantGarde lines in a 'Avant
 Garde map' file, and load that using \loadmapfile[avantgarde.map],
 for instance.

 Cheers, Taco
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to use layers or other methods for precise positioning of items

2005-11-03 Thread Kári Hreinsson
Thank you for your replies.  This reading material you pointed me to
should answer all my questions, else, I might drop a question here
again later :).

Thanks again, this was really helpful!

- Kári Hreinsson

On 11/3/05, Mojca Miklavec [EMAIL PROTECTED] wrote:
 Kári Hreinsson wrote:
  Hello,
 
  I have been trying to use ConTeXt for setting up a book with a list of
  students in my school, with pictures of them, phone numbers, emails
  and such.
 
  I thought I could use ConTeXt for the job since LaTeX gave me much
  trouble in trying to alter the layout and look of the page.
 
  I found the layer feature in ConTeXt which I found very interesting
  and thought I could use it to position items (such as text info,
  images and the layout) within these layers since they offer very
  precise positioning with a x-y grid like system.
 
  When I was trying to use this feature for multipage document it cut of
  all of the pages except the first.  I found out that the layers
  weren't thought to be part of the content of the file but more like a
  background and I can't figure out how to use them on many pages
  without placing something like a dot on every page.  Is there any way
  to do this?

 If a dot is the source of all your problems, you can easily solve
 this by placing a \strut instead of a dot at the top of the page.
 (Perhaps even \null would do.) \strut is an empty box with width zero
 and height of one line (generally speaking).

 I was confused for a long time since there are at least five different
 ways to achieve the desired results, each one with its advantages and
 drawbacks, so you may have to be even more specific about the layout.

 You can do the whole page with layers if you are sure that you want to
 provite all the coordinates by hand. If you use an alternative way (if
 you place a figure at the left or right side of text for example),
 space will be reserved and text will flow around the figure. If you
 place a figure in a layer, you'll have to manually adjust text
 width/height/hole, so that it won't overlap with the figure.

 Some alternatives to layers that come to my mind in the first moment are:
 1. tables (http://wiki.contextgarden.net/Tables_Overview)
 with \bTABLE ... \eTABLE you can manully specify widths and heights of
 table cells and put photos in the left cell with specified width. The
 rest of data can go to the remaining cells on the right with
 automatically determined widths and heights.

 2. grid typesetting
 http://pragma-ade.nl/general/manuals/details.pdf
 you can position the stuff on the grid (still precise, but in other
 units than centimeters)

 3. http://wiki.contextgarden.net/Chromatograms uses \startpositioning
 ... \stoppositioning, which is probably something similar to layers. I
 never used it, but perhaps you can take a look if you find it useful.

 4. many other ways for sure (depending on your needs), in worst case
 even plain TeX ;)

  I discovered that the layers were inserted into the document via
  \setupbackgrounds[page] so I understand why it acts like this but I
  am asking if there is some way of getting layers working like I want?

 How is that? You can place layers in other ways than on the whole page
 (you can say that a layer has to be two centimeters from the bottom
 and three centimeters from the left edge or that it has to be 1cm
 wider than the text area of the page), you can put them in the
 backgrond or on the top of text, but you can't prevent them from being
 invisible to the rest of the page content (you can't place a layer and
 expect a text portion to flow around that layer).

  Maybe I am going in completely wrong way?  Is there any other good way
  to do this, that is positioning items with x-y coordinates or
  something totally different that I am missing?

 see above (tables, grid, ...)

  Another thing I was wondering about is how to make items like images
  bleed (that is to go over the edge of the paper, to avoid white lines
  at the margin).  Can I use negative values for positioning to achive
  that?

 You have a couple of examples in the official documentation (page 32
 of details.pdf for example). google.com: bleeding
 site:pragma-ade.com
 If you position using frames, you can use negative values, yes. (See
 the example below.)

  All help is greatly appreciated since I am not understanding this and
  I haven't found much help on the internet regarding this subject
  (contextgarden had only one example page that had layers).

 Patrick already mentioned the new search engine ;) through articles.
 I often use google.com and layers site:contextgarden.net for
 example. You can find a lot in old mailing list archives.






 \setuppapersize
   [A4][A4]
 \definelayer
 [page]
 [width=\paperwidth,
  height=\paperheight]
 \setupbackgrounds
 [page]
 [background=page]
 \setupexternalfigures
 [location={local,global,default}]
 \setupframed
 [align=middle,
  frame

[NTG-context] How to use layers or other methods for precise positioning of items

2005-10-31 Thread Kári Hreinsson
Hello,

I have been trying to use ConTeXt for setting up a book with a list of
students in my school, with pictures of them, phone numbers, emails
and such.

I thought I could use ConTeXt for the job since LaTeX gave me much
trouble in trying to alter the layout and look of the page.

I found the layer feature in ConTeXt which I found very interesting
and thought I could use it to position items (such as text info,
images and the layout) within these layers since they offer very
precise positioning with a x-y grid like system.

When I was trying to use this feature for multipage document it cut of
all of the pages except the first.  I found out that the layers
weren't thought to be part of the content of the file but more like a
background and I can't figure out how to use them on many pages
without placing something like a dot on every page.  Is there any way
to do this?
I discovered that the layers were inserted into the document via
\setupbackgrounds[page] so I understand why it acts like this but I
am asking if there is some way of getting layers working like I want?

Maybe I am going in completely wrong way?  Is there any other good way
to do this, that is positioning items with x-y coordinates or
something totally different that I am missing?

Another thing I was wondering about is how to make items like images
bleed (that is to go over the edge of the paper, to avoid white lines
at the margin).  Can I use negative values for positioning to achive
that?

All help is greatly appreciated since I am not understanding this and
I haven't found much help on the internet regarding this subject
(contextgarden had only one example page that had layers).

I hope you understand my question, it's a bit complicated to explain. :/

Thanks in advance,
Kári Hreinsson
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Getting icelandic letters (eth and thorn) to work.

2005-10-15 Thread Kári Hreinsson
Hello.

I am trying to get the icelandic letters thorn (þ) and eth (ð) to work
but nothing seems to do.  These letters work correctly in LaTeX and I
am using ConTeXt and LaTeX from the TeTeX distribution.
The file I currenty have is like this (It's in ISO 8859-1 encoding):
=
% interface=en output=pdftex

\enableregime[il1] % sets input encoding il1 = ISO 8859-1
\mainlanguage[is] % Á að setja á íslensku
\setupencoding[default=ec]
\useencoding[ec]

\starttext
aábcdðeéfghiíjklmnoópqrstuúvxyzþæö
AÁBCDÐEÉFGHIÍJKLMNOÓPQRSTUÚVXYZ\Thorn{}ÆÖ
\stoptext
=
And it gets run (although I had to change Þ to \Thorn{} to get it
running) but when I view the .pdf file I just see question marks where
the thorns and eths should be.

Some version info from texexec:
 TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
 This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
 ConTeXt  ver: 2003.1.31  fmt: 2005.10.15  int: english  mes: english

If anyone knows what could be wrong I would very much appreciate some help!

Thanks in advance,
Kári Hreinsson
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context