[NTG-context] Locating pdf files in the texmf directory structure

2013-08-04 Thread Michael Ash
I asked:
>> (4) Where can I put personal files that I would like context to use 
>> regularly.

which Marco kindly answered:
> In the directory TEXMFHOME points to or texmf-local.

This works for my personal file env_letter.tex which is called with
\environment env_letter.tex.This file env_letter.tex calls the
letter module, sets some correspondenceparameters, etc.

But env_letter.tex calls two pdf files with \externalfigure (see
below).  These two pdf files are also in the directory pointed to by
TEXMFHOME but they show up in the finished document as gray "state:
unknown" boxes

Does this involve "tracking" as discussed in
http://wiki.contextgarden.net/Command/externalfigure ?

Thank you very much for guidance.

best,
Michael



% Define logo for the first page header
\defineletterelement[layer][head][example]{%
  \framed[background=logohead,frame=off,align=left]{%
\externalfigure[UMA_Seal_200_Maroon.pdf][height=3.1cm]}
}

\setupletter[ signature={\externalfigure[signature-blue.pdf]} ]
___
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] Simple Context Application to Cards

2013-08-04 Thread hwitloc

Thenks for letting me know of the process you used.  I appreciate it.

Henning Hraban Ramm  wrote:
> 
> Am 2013-08-04 um 16:36 schrieb d.henman :
> 
> > 
> > This is a trivial appliation for Context, but a useful one.
> > 
> > I plan on designed some business cards, but am new to Context. 
> > 
> > My idea to to have a logo image in the upper left hand corner, with the 
> > company name to the right of it.   This would be two block elements at the 
> > top of the card.
> > 
> > In the middle will be the name, and below that the address, tel, etc.
> 
> ...
> > 
> > Any advice is appreciated.
> 
> Several years ago I used ConTeXt to automatically typeset business cards of a 
> big company from a CSV file (processed by a small Python script). In this 
> case I had logo and background graphics (everything static) together as a PDF 
> that I used on a background layer and typeset only name, job title etc. on a 
> per-page layer.
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net/texnique/
> http://wiki.contextgarden.net
> https://www.cacert.org (I'm an assurer)
> 
> ___
> 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
> ___
___
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] Broken nightly? (2013.08.03)

2013-08-04 Thread Kip Warner
Hey list,

I've observed what I suspect is a broken nightly (2013.08.03) while
attempting to typeset my book.

...
(Leading_Characters/Arda_Baştürk.tex
structure   > sectioning > section @ level 3 : 0.6.1 -> Arda Baştürk
! LuaTeX error /usr/share/texmf/tex/context/base/back-pdf.lua:44: 
attempt to call global 'f_rotation' (a nil value)
stack traceback:
/usr/share/texmf/tex/context/base/back-pdf.lua:44: in function 
'pdfstartrotation'
[string "\directlua "]:1: in main chunk.
\ctxcommand #1^^@-\directlua {commands.#1}

\grph_rotate_apply ...tation \p_rotation_rotation 
  \wd \nextbox 
\zeropoint \h...
\grph_rotate_finish_yes ...e_a \grph_rotate_apply 
  \else 
\grph_rotate_calcula...
\grph_rotate_finish_indeed ...h_rotate_finish_yes 
  \fi \egroup 
\syst_boxes_with_next_box ...rotate_finish_indeed 
  \egroup 
 ...[red]{\bft Todo: Character's image goes here.}}
  } 
\tabl_ntb_prev_level 
...
l.103 \eTABLE
   
E
? You want to edit file Leading_Characters/Arda_Baştürk.tex at line 103
...

The latter referenced file is available here:




Respectfully,

PS Please copy me if you need further information, as I am not
currently a subscriber.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Thanks Wolfgang!

2013/8/4 Wolfgang Schuster :
>
> Am 04.08.2013 um 22:53 schrieb Tim Steenvoorden :
>
>> Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
>> fixed someday?
>
> It depends on Hans, I’ll send him a mail about the problem.
>
> 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
> ___
___
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] Placefigure inner/outer

2013-08-04 Thread Wolfgang Schuster

Am 04.08.2013 um 22:53 schrieb Tim Steenvoorden :

> Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
> fixed someday?

It depends on Hans, I’ll send him a mail about the problem.

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
___


Re: [NTG-context] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
fixed someday?

2013/8/4 Wolfgang Schuster :
>
> Am 04.08.2013 um 22:40 schrieb Marco Patzer :
>
>> On 2013–08–04 Tim Steenvoorden wrote:
>>
>>> \starttext
>>> \input knuth
>>> \placefigure[left]{}{\externalfigure[figurename]}
>>> \input knuth
>>> \placefigure[inner]{}{\externalfigure[figurename]}
>>
>> What do you want to do? Place it in the margin?
>>
>>  \placefigure[inleft]{}{\externalfigure[figurename]}
>
> With the “inner” and “outer” keywords context uses
> the “left” and “right” locations dependent on the page.
>
> The feature doesn’t work in MkIV because two commands
> are processed in the wrong order.
>
> 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
> ___
___
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] Placefigure inner/outer

2013-08-04 Thread Wolfgang Schuster

Am 04.08.2013 um 22:40 schrieb Marco Patzer :

> On 2013–08–04 Tim Steenvoorden wrote:
> 
>> \starttext
>> \input knuth
>> \placefigure[left]{}{\externalfigure[figurename]}
>> \input knuth
>> \placefigure[inner]{}{\externalfigure[figurename]}
> 
> What do you want to do? Place it in the margin?
> 
>  \placefigure[inleft]{}{\externalfigure[figurename]}

With the “inner” and “outer” keywords context uses
the “left” and “right” locations dependent on the page.

The feature doesn’t work in MkIV because two commands
are processed in the wrong order.

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
___


Re: [NTG-context] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
No. I want to place the figure to the left of the text if it is on a
odd page and to the right of the text if it is on a even page. Thus
the same effect "left" and "right" have as keywords, but depending on
the page it is on.

Cheers,
Tim

2013/8/4 Marco Patzer :
> On 2013–08–04 Tim Steenvoorden wrote:
>
>> \starttext
>> \input knuth
>> \placefigure[left]{}{\externalfigure[figurename]}
>> \input knuth
>> \placefigure[inner]{}{\externalfigure[figurename]}
>
> What do you want to do? Place it in the margin?
>
>   \placefigure[inleft]{}{\externalfigure[figurename]}
>
> Marco
>
> ___
> 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
> ___
___
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] Placefigure inner/outer

2013-08-04 Thread Marco Patzer
On 2013–08–04 Tim Steenvoorden wrote:

> \starttext
> \input knuth
> \placefigure[left]{}{\externalfigure[figurename]}
> \input knuth
> \placefigure[inner]{}{\externalfigure[figurename]}

What do you want to do? Place it in the margin?

  \placefigure[inleft]{}{\externalfigure[figurename]}

Marco


signature.asc
Description: Digital signature
___
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] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Hi all! 

This worked in MkII but doesn't in MkIV. Did something changed?

Cheers,
Tim



\starttext
\input knuth
\placefigure[left]{}{\externalfigure[figurename]}
\input knuth
\placefigure[inner]{}{\externalfigure[figurename]}
\input knuth
\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] How to update context modules; thank you, write-up, and a couple of questions

2013-08-04 Thread Marco Patzer
On 2013–08–04 Michael Ash wrote:

> (1) Is it possible to tell which version of a module is installed,
> i.e., that  I am using the 2013.07.31 version of letter?  (The version
> of context appears in the log file but not the version of the module.)

Often modules contain a line like

  \writestatus{loading}{Gnuplot (ver: 2013.05.13)}

which outputs the version. But not all modules do. I don't know of
any reliable way to tell the version. Modules do not even have to be
versioned, It's up to the module writers.

> (2) After I update of the entire context installation, how will I tell
> context to again use the /usr/share/texmf version instead of the
> personal version?

There's no built-in way to achieve that. Since ConTeXt can't tell
which version of a module is installed, it can't prioritise a newer
version. You have to remember to remove your manually installed
module after it gets updated.

> (3) Could I have done this installation into /usr/share/texmf and used
> "sudo mtxrun..." to make the updated module work on a multi-user
> system?

You can use the texmf-local directory.

> (4) Where can I put personal files that I would like context to use
> regularly.

In the directory TEXMFHOME points to or texmf-local.

Marco


signature.asc
Description: Digital signature
___
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] Simple Context Application to Cards

2013-08-04 Thread Henning Hraban Ramm

Am 2013-08-04 um 16:36 schrieb d.henman :

> 
> This is a trivial appliation for Context, but a useful one.
> 
> I plan on designed some business cards, but am new to Context. 
> 
> My idea to to have a logo image in the upper left hand corner, with the 
> company name to the right of it.   This would be two block elements at the 
> top of the card.
> 
> In the middle will be the name, and below that the address, tel, etc.

...
> 
> Any advice is appreciated.

Several years ago I used ConTeXt to automatically typeset business cards of a 
big company from a CSV file (processed by a small Python script). In this case 
I had logo and background graphics (everything static) together as a PDF that I 
used on a background layer and typeset only name, job title etc. on a per-page 
layer.


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] How to update context modules; thank you, write-up, and a couple of questions

2013-08-04 Thread Michael Ash
> I asked how to update context modules.

Thank you very much to Marco for guidance, and I would like to write
up how I used his advice to update a module without first-setup.sh. (I
use a ubuntu/PPA installation of context and hence don't use
first-setup.sh, which would make updating easy).

1.  I downloaded the current version of the module (letter;
http://modules.contextgarden.net/dl/t-letter-2013.07.31.zip in this
case) from http://modules.contextgarden.net/

2. I already have a personal /home/me/texmf directory (or would have
created it).  I put the zipped module update in this directory and
unzipped it preserving the subdirectory structure.

3. I set the environment variable TEXMFHOME to my personal texmf
directory ("export TEXMFHOME=/home/me/texmf")

4. I ran "mtxrun --script update --modules=letter" to tell context
where to look for the new version of the letter module.

I could now tell from the output that the updated version of the
letter module was installed, and I also confirmed from the log file:

resolvers   > modules > 'letter' is loaded
interface   > macros > processed mkvi file
'/home/me/texmf/tex/context/third/letter/base/s-cor-01.mkvi', delta 36
interface   > macros > processed mkvi file
'/home/me/texmf/tex/context/third/letter/base/s-cor-01.mkvi', delta 0

(before the update, the lines above read /usr/share/texmf... instead
of /home/me/texmf...)

I hope that this write-up is helpful to others.  Please feel free to
comment or amend if I've misunderstood.

I have several questions:

(1) Is it possible to tell which version of a module is installed,
i.e., that  I am using the 2013.07.31 version of letter?  (The version
of context appears in the log file but not the version of the module.)
(2) After I update of the entire context installation, how will I tell
context to again use the /usr/share/texmf version instead of the
personal version?
(3) Could I have done this installation into /usr/share/texmf and used
"sudo mtxrun..." to make the updated module work on a multi-user
system?
(4) Where can I put personal files that I would like context to use
regularly.  For example I have three personal files:  "env_letter.tex"
which I include with "\environment env_letter";  a pdf file with my
logo; and a pdf file with a scan of my signature.  Is there a standard
directory to hold such files, and how do I let context know where to
find them, for example, with mtxrun?  (It seems like a waste to copy
them to a new location every time I want to write a letter).

Thank you very much.

Yours,
Michael
___
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] kerning with buggy libertine

2013-08-04 Thread Philipp Gesang
Hi Hans,

this is a bug report thanks to Khaled:

  http://tex.stackexchange.com/a/126650/14066

In short: the font loader applies the kerning of libertine
version 5.3.0 even though this appears to be broken in the font.
Context translation of the example:

  \definefontfeature [kerning] [mode=node,smcp=yes,kern=yes]
  \definefont [libertineserifsmallcaps] [file:LinLibertine_R.otf*kerning]
  \definefont [libertinesanssmallcaps]  [file:LinBiolinum_R.otf*kerning]

  \def\demotext{Vacillate Vaccine Vapour Vanish Va...}

  \starttext
{\libertineserifsmallcaps \demotext}\par
{\libertinesanssmallcaps  \demotext}\par
  \stoptext

(Doesn’t occur in base mode.) The technical details are in the
thread Khaled references.

Best regards,
Philipp


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpy5SiJrrAe1.pgp
Description: PGP signature
___
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] \externalfigure doesn't find mps file in subdirectory

2013-08-04 Thread Sanjoy Mahajan
\externalfigure won't find a metapost eps file in a subdirectory, if the
mps has the numerical (.1) extension.

Here's a minimal example (test.tex):

\setupexternalfigures[directory={fig}]
\starttext
\externalfigure[simple.1]
\stoptext

where fig/simple.1 is from a simple .mp file that fills a 1-cm box (see
below).  

The resulting test.pdf shows the gray box 

  name : simple.1
  file : simple.1
  state: unknown

Only this combination of circumstances triggers the problem.  Giving the
full path ("\externalfigure[fig/simple.1]") works fine, as does renaming
the file to simple.mps (within the fig/ directory), as does using
instead simple-1.pdf (made with mptopdf).

Thus, I have several workarounds, but it might be useful to figure out
what is not working.  I've noticed this problem on and off for a while
now, but only now made a minimal example.  (Is the path-searching code
trying to append extensions and directory prefixes at the same time, and
thus not finding the file?)

This is with MkIV 2013.05.28 from vanilla TL2013.

For completeness, here's simple.1, although any file will show the
problem equally well:

%!PS
%%BoundingBox: 0 0 29 29 
%%HiResBoundingBox: 0 0 28.34645 28.34645 
%%Creator: MetaPost 1.803
%%CreationDate: 2013.08.04:0841
%%Pages: 1
%%BeginProlog
%%EndProlog
%%Page: 1 1
 0 0 0 setrgbcolor
newpath 0 0 moveto
28.34645 0 lineto
28.34645 28.34645 lineto
0 28.34645 lineto
 closepath fill
showpage
%%EOF


-Sanjoy
___
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***] Re: Setup font size by dimension variable

2013-08-04 Thread Dmitriy Tokarev
04.08.2013, 16:49, "Philipp Gesang" :
>>  the size-related arguments to \switchtobodyfont and
>>  \setupbodyfont aren’t real TeX dimensions but identifiers for
>>  predefined bodyfont sets. Example:
>>
>>    \def\mainfontsize{20pt}
>>    \definebodyfontenvironment [\mainfontsize]
>>
>>    \starttext
>>  TEXT
>>  \switchtobodyfont [\mainfontsize]
>>  TEXT 20pt
>>    \stoptext
>>
>>  See this thread for some background info:
>>
>>    http://www.mail-archive.com/ntg-context@ntg.nl/msg63901.html
>
> Sorry for the self-reply, but I just remembered that I already
> wikified the topic:
>
>   http://wiki.contextgarden.net/unexpected_behavior#Treacherous_Dimensions
>

Thanks, Philipp!
Now I realized that before the first use of "switchtobodyfont" I need to write 
"definebodyfontenvironment". In this case, everything is fine.
I also found another way without definebodyfontenvironment:

\definemeasure[AAA][20.123pt]
\newdimen\BBB \BBB=25.127pt

\starttext
TEXT

% ok
\normalizebodyfontsize\normalizedAAA{\measure{AAA}}
\switchtobodyfont[\normalizedAAA]
AAA \normalizedAAA

% ok
\normalizebodyfontsize\normalizedBBB\BBB
\switchtobodyfont[\normalizedBBB]
BBB \normalizedBBB

\stoptext

Is this code correct? Or it's better for some reason using 
"definebodyfontenvironment"?
--
Dmitriy
___
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***] Simple Context Application to Cards

2013-08-04 Thread Mari Voipio
On Sun, Aug 4, 2013 at 1:36 PM, d.henman  wrote:
> I plan on designed some business cards, but am new to Context.
>d.) some other Context mechanism.

I would use layers. Unfortunately, there isn't a really good beginners
manual for layers, but take a look at
http://wiki.contextgarden.net/Layers and
http://wiki.contextgarden.net/BusinessCard (and maybe even
http://www.pragma-ade.com/general/manuals/details.pdf ). I remember
struggling because those examples are a bit complicated to start with,
but better than nothing.

The nice thing with layers is that once you get it, you can adjust
everything by millimeter until it sits just right (and just right for
your printer, variations in paper feed may make 1-2 mm differences
between printers). And as long as you put each block on a layer of its
own, you can move it independently, e.g. move the logo 3mm to the
right but keep the text blocks where they are.


Regards,

Mari
___
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***] Solved simply

2013-08-04 Thread hwitloc

I found the two commands needed to get rid of the numbering and captions.

Thanks
___
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***] simple business card

2013-08-04 Thread hwitloc


I used the \startfiguretext macro to place a logo in the top left and company 
name to the right of it.  This works well.  The only problem is a "Figure 1" 
and "non" show up on the result.  The "none" was from the example in the book.

But, space is at a premium on a small card and I don't want any taken up by 
blank lines where an annotation might be like "none".

How can I keep the below the image text and their text space from being used?

___
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] Setup font size by dimension variable

2013-08-04 Thread Philipp Gesang
·

> ·
> 
> > Hi all,
> > 
> > I want to set the font size by using the dimension variable, but it doesn't 
> > work. What am I doing wrong?
> > 
> > \definemeasure[AAA][20pt]
> > \newdimen\BBB \BBB=20pt
> > 
> > \starttext
> > TEXT
> > 
> > % don't work
> > \switchtobodyfont[\measure{AAA}]
> > AAA
> > 
> > % don't work
> > \switchtobodyfont[\the\BBB]
> > BBB
> > 
> > % ok
> > \switchtobodyfont[20pt]
> > TEXT 20pt
> > 
> > \stoptext
> 
> Hi Dmitriy,
> 
> the size-related arguments to \switchtobodyfont and
> \setupbodyfont aren’t real TeX dimensions but identifiers for
> predefined bodyfont sets. Example:
> 
>   \def\mainfontsize{20pt}
>   \definebodyfontenvironment [\mainfontsize]
> 
>   \starttext
> TEXT
> \switchtobodyfont [\mainfontsize]
> TEXT 20pt
>   \stoptext
> 
> See this thread for some background info:
> 
>   http://www.mail-archive.com/ntg-context@ntg.nl/msg63901.html

Sorry for the self-reply, but I just remembered that I already
wikified the topic:

  http://wiki.contextgarden.net/unexpected_behavior#Treacherous_Dimensions


pgpLGdJkuwui0.pgp
Description: PGP signature
___
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] Setup font size by dimension variable

2013-08-04 Thread Philipp Gesang
·

> Hi all,
> 
> I want to set the font size by using the dimension variable, but it doesn't 
> work. What am I doing wrong?
> 
> \definemeasure[AAA][20pt]
> \newdimen\BBB \BBB=20pt
> 
> \starttext
> TEXT
> 
> % don't work
> \switchtobodyfont[\measure{AAA}]
> AAA
> 
> % don't work
> \switchtobodyfont[\the\BBB]
> BBB
> 
> % ok
> \switchtobodyfont[20pt]
> TEXT 20pt
> 
> \stoptext

Hi Dmitriy,

the size-related arguments to \switchtobodyfont and
\setupbodyfont aren’t real TeX dimensions but identifiers for
predefined bodyfont sets. Example:

  \def\mainfontsize{20pt}
  \definebodyfontenvironment [\mainfontsize]

  \starttext
TEXT
\switchtobodyfont [\mainfontsize]
TEXT 20pt
  \stoptext

See this thread for some background info:

  http://www.mail-archive.com/ntg-context@ntg.nl/msg63901.html

Best regards,
Philipp



pgpGIP_P7V63W.pgp
Description: PGP signature
___
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***] Simple Context Application to Cards

2013-08-04 Thread d.henman

This is a trivial appliation for Context, but a useful one.

I plan on designed some business cards, but am new to Context. 

My idea to to have a logo image in the upper left hand corner, with the company 
name to the right of it.   This would be two block elements at the top of the 
card.

In the middle will be the name, and below that the address, tel, etc.

-- Regarding the two blocks at the top of the card:

Something like the below:

   logo here Company name here
 .--.
 |  |  
 |   o XYZ Printing Company |
 |   o  |This top area is the subject of 
this mail.
 |   oCard Design & Services|
.
 |  |
 |  |
 |First_Name Last_Name  |   All this below the ... line is 
done.
 |  |
 |   contact information|
 |  |
 '--'


I take this as two blocks aligned horizontally on the 91mm x 55mm card stock.
>From my reading the Context options for doing this are:

The margins are so small that using  
\inmarge{\externalfigure[company-logo][width=\marginwidth] }  can not work.


Which option should I pursue?
   a.) \startcombination ...  \externalfigure  +  text block  \stopcombination
   a.) \placefigurehere[... force] 
 \startcombination ...  \externalfigure  +  text block  \stopcombination

   c.) \startfiguretext ... \stopfiguretext

   d.) some other Context mechanism.


Any advice is appreciated.

Thanks
   
___
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] Setup font size by dimension variable

2013-08-04 Thread Dmitriy Tokarev
Hi all,

I want to set the font size by using the dimension variable, but it doesn't 
work. What am I doing wrong?

\definemeasure[AAA][20pt]
\newdimen\BBB \BBB=20pt

\starttext
TEXT

% don't work
\switchtobodyfont[\measure{AAA}]
AAA

% don't work
\switchtobodyfont[\the\BBB]
BBB

% ok
\switchtobodyfont[20pt]
TEXT 20pt

\stoptext

--
Dmitriy
___
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
___