Re: [NTG-context] Returning...need advice on manuals for MKIV

2012-07-17 Thread Philipp Gesang
···date: 2012-07-16, Monday···from: Rogers, Michael K···

 3. And then there is the source, which has some helpful
 comments in it.  The explanation of the system macros,
 http://tex.aanhet.net/context/syst-gen-doc.pdf, has been helpful
 in many ways, including guessing at what the source is about.

Fwiw Taco’s “System Macros” is part of the wiki as well:
http://wiki.contextgarden.net/System_Macros. As it was written
with MkII in mind, you might want to check the definitions in
syst-aux.mkiv in your /context/base/ directory if they are
still around and, if applicable, what their replacement is (\@EA
and family come to my mind that have been purged from MkIV).

Regards
Philipp

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


pgpDGORhrfCtz.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] Returning...need advice on manuals for MKIV

2012-07-17 Thread Rogers, Michael K
On Jul 16, 2012, at 10:27 AM, Philipp Gesang wrote:

 ···date: 2012-07-16, Monday···from: Rogers, Michael K···

 3. And then there is the source, which has some helpful
 comments in it.  The explanation of the system macros,
 http://tex.aanhet.net/context/syst-gen-doc.pdf, has been helpful
 in many ways, including guessing at what the source is about.

 Fwiw Taco’s “System Macros” is part of the wiki as well:
 http://wiki.contextgarden.net/System_Macros. As it was written
 with MkII in mind, you might want to check the definitions in
 syst-aux.mkiv in your /context/base/ directory if they are
 still around and, if applicable, what their replacement is (\@EA
 and family come to my mind that have been purged from MkIV).

 Regards
 Philipp

Thanks for the tip.



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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] \definetext problem?

2012-07-17 Thread Wolfgang Schuster

Am 17.07.2012 um 18:08 schrieb Alan Bowen:

 This used to work in earlier versions of MKIV, but does no longer—the page 
 sets without complaint but the footer does not appear.
 
 A minimal example:
 
   \definehead[BookTitle][title]
   \setuphead[BookTitle][header=high,footer=BookTitlePage]
   \definetext[BookTitlePage][footer]
   [\vbox{\tfx
   \centerline{Some text}\par
   }
   ]
 
 
 \starttext
 \BookTitle{Title}
 \input knuth\footnote{\input ward}
 \stoptext
 
 Is there a problem with \definetext?

strc-sec.mkiv:

\def\strc_sectioning_check_layout_yes
  {\page[\p_page]%
   \expandcheckedcsname\??headmarkyes{\headparameter\c!marking}\s!unknown
   \edef\p_header{\headparameter\c!header}%
   \ifx\p_header\empty \else
 
\doifelselayouttextline\v!header{\normalexpanded{\setuplayouttext[\v!header][\c!state=\p_header]}}\donothing
   \fi
   \edef\p_text{\headparameter\c!text}%
   \ifx\p_text\empty \else
 \doifelselayouttextline\v!text  {\normalexpanded{\setuplayouttext[\v!text  
][\c!state=\p_text  ]}}\donothing
   \fi
-  \edef\p_header{\headparameter\c!footer}%
-  \ifx\p_header\empty \else
+  \edef\p_footer{\headparameter\c!footer}%
+  \ifx\p_footer\empty \else
 
\doifelselayouttextline\v!footer{\normalexpanded{\setuplayouttext[\v!footer][\c!state=\p_footer]}}\donothing
   \fi}

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
___


[NTG-context] write my own text in the header

2012-07-17 Thread dalyoung
Dear all,

I have two questions.

1. I'd like to write various text in the header differently at every page.
It is like SlideTitle{} used in the simpleslide module.

I tried \setupheadertexts[text] at the beginning of every page.
But only the text defined at last appeared at the header of every page.

Is there a way to do such a job?

2. Is it possible to use my own figure as a background under the simpleslide 
module?
-- Example--

\usemodule[simpleslides][style=HorizontalStripes,font=]

\defineoverlay[yellow-spring][{\externalfigure[./background/yellowspring][width=\paperwidth]}]
\setupbackgrounds[page][background=yellow-spring]

\dontleavehmode
\blank[.5cm]
\placefigure[none][]{}
{\getbuffer[TitleOfSlides]}
\blank[1.5cm]
\placefigure[none][]{}
{\getbuffer[Speaker]}
\page

\component TestPage
...

--Output

The background yellow-spring is appeared in the first page(Title page), but 
from the second page only horizontalstripes appeared.


Thank you for reading. 


Best regards,

Dalyoung
___
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] \definetext problem?

2012-07-17 Thread Alan Bowen
Thanks, Wolfgang. I replaced the lines in strc-sec.mkiv with the one that
you supplied and regenerated the formats. Now, I get the error message

ConTeXt  ver: 2012.07.17 16:42 MKIV  fmt: 2012.7.17  int: english/english


system   cont-new.mkiv loaded

(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv

system   beware: some patches loaded from cont-new.mkiv

)

fontslatin modern fonts are not preloaded

languageslanguage en is active

(Test.tex{/Applications/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}

fontspreloading latin modern fonts (second stage)

fontstypescripts  unknown: library 'loc'

{/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}

fontsvirtual math  unable to resolve name mapsfromchar

fontsfallback modern rm 12pt is loaded

structuresectioning  BookTitle @ level 2 : 0.0 - Title

! Extra \else.


system   tex  error on line 11 in file Test.tex: Extra  ...


 1 \definehead[BookTitle][title]

 2 \setuphead[BookTitle][header=high,footer=BookTitlePage]

 3 \definetext[BookTitlePage][footer]

 4 [\vbox{\tfx

 5 \centerline{Some text}\par

 6 }

 7 ]

 8

 9

10 \starttext

11   \BookTitle{Title}

12 \input knuth\footnote{\input ward}

13 \stoptext

14

15



\strc_sectioning_handle ...ioning_after_yes \else

  \ifconditional
\c_strc_sec...

l.11 \BookTitle{Title}



?
Alan

On Tue, Jul 17, 2012 at 12:23 PM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 17.07.2012 um 18:08 schrieb Alan Bowen:

  This used to work in earlier versions of MKIV, but does no longer—the
 page sets without complaint but the footer does not appear.
 
  A minimal example:
 
\definehead[BookTitle][title]
\setuphead[BookTitle][header=high,footer=BookTitlePage]
\definetext[BookTitlePage][footer]
[\vbox{\tfx
\centerline{Some text}\par
}
]
 
 
  \starttext
  \BookTitle{Title}
  \input knuth\footnote{\input ward}
  \stoptext
 
  Is there a problem with \definetext?

 strc-sec.mkiv:

 \def\strc_sectioning_check_layout_yes
   {\page[\p_page]%
\expandcheckedcsname\??headmarkyes{\headparameter\c!marking}\s!unknown
\edef\p_header{\headparameter\c!header}%
\ifx\p_header\empty \else

  
 \doifelselayouttextline\v!header{\normalexpanded{\setuplayouttext[\v!header][\c!state=\p_header]}}\donothing
\fi
\edef\p_text{\headparameter\c!text}%
\ifx\p_text\empty \else
  \doifelselayouttextline\v!text
  {\normalexpanded{\setuplayouttext[\v!text  ][\c!state=\p_text
  ]}}\donothing
\fi
 -  \edef\p_header{\headparameter\c!footer}%
 -  \ifx\p_header\empty \else
 +  \edef\p_footer{\headparameter\c!footer}%
 +  \ifx\p_footer\empty \else

  
 \doifelselayouttextline\v!footer{\normalexpanded{\setuplayouttext[\v!footer][\c!state=\p_footer]}}\donothing
\fi}

 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] \definetext problem?

2012-07-17 Thread Wolfgang Schuster

Am 17.07.2012 um 18:55 schrieb Alan Bowen:

 Thanks, Wolfgang. I replaced the lines in strc-sec.mkiv with the one that you 
 supplied and regenerated the formats. Now, I get the error message

I guess you did something wrong when you changed the command, the new 
definition of the command should be

\def\strc_sectioning_check_layout_yes
  {\page[\p_page]%
   \expandcheckedcsname\??headmarkyes{\headparameter\c!marking}\s!unknown
   \edef\p_header{\headparameter\c!header}%
   \ifx\p_header\empty \else
 
\doifelselayouttextline\v!header{\normalexpanded{\setuplayouttext[\v!header][\c!state=\p_header]}}\donothing
   \fi
   \edef\p_text{\headparameter\c!text}%
   \ifx\p_text\empty \else
 \doifelselayouttextline\v!text  {\normalexpanded{\setuplayouttext[\v!text  
][\c!state=\p_text  ]}}\donothing
   \fi
   \edef\p_footer{\headparameter\c!footer}%
   \ifx\p_footer\empty \else
 
\doifelselayouttextline\v!footer{\normalexpanded{\setuplayouttext[\v!footer][\c!state=\p_footer]}}\donothing
   \fi}

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] \definetext problem?

2012-07-17 Thread Alan Bowen
My apologies. XCode slipped (or left in) some +'s  and -'s that I failed to
catch. Anyway, it is working now.

Many thanks!

Alan


On Tue, Jul 17, 2012 at 12:59 PM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 17.07.2012 um 18:55 schrieb Alan Bowen:

  Thanks, Wolfgang. I replaced the lines in strc-sec.mkiv with the one
 that you supplied and regenerated the formats. Now, I get the error message

 I guess you did something wrong when you changed the command, the new
 definition of the command should be

 \def\strc_sectioning_check_layout_yes
   {\page[\p_page]%
\expandcheckedcsname\??headmarkyes{\headparameter\c!marking}\s!unknown
\edef\p_header{\headparameter\c!header}%
\ifx\p_header\empty \else

  
 \doifelselayouttextline\v!header{\normalexpanded{\setuplayouttext[\v!header][\c!state=\p_header]}}\donothing
\fi
\edef\p_text{\headparameter\c!text}%
\ifx\p_text\empty \else
  \doifelselayouttextline\v!text
  {\normalexpanded{\setuplayouttext[\v!text  ][\c!state=\p_text
  ]}}\donothing
\fi
\edef\p_footer{\headparameter\c!footer}%
\ifx\p_footer\empty \else

  
 \doifelselayouttextline\v!footer{\normalexpanded{\setuplayouttext[\v!footer][\c!state=\p_footer]}}\donothing
\fi}

 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
___

[NTG-context] math symbol: blacktriangle

2012-07-17 Thread Andreas Mang
Dear all,

The \blacktriangle and \blacktriangledown symbol seem to be missing, though 
\blacktriangleright and \...-left are defined. Is there a quick way to add 
missing symbols by myself from the knowledge of Unicode / XML identifier 
(http://www-sop.inria.fr/marelle/tralics/doc-b.html)?

Cheers,
Andreas 
___
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] math symbol: blacktriangle

2012-07-17 Thread Aditya Mahajan

On Tue, 17 Jul 2012, Andreas Mang wrote:


Dear all,

The \blacktriangle and \blacktriangledown symbol seem to be missing, 
though \blacktriangleright and \...-left are defined. Is there a quick 
way to add missing symbols by myself from the knowledge of Unicode / XML 
identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)?


For opentype math fonts, have a look at char-def.lua. To add missing 
symbols, you need to add appropriate fields in the lua table.


The hard part is verifying the symbol to unicode slot mapping (the list at 
tralics is not always consistent with the ams list that is used by 
unicode-math package). If you know the right mappings, add a patch to 
char-def.lua and send it to the list (or the dev-context list); otherwise, 
just send the mappings and I can add them to the lua table.


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
___


Re: [NTG-context] math symbol: blacktriangle

2012-07-17 Thread Andreas Mang
Hi Aditya,

Thanks for the advice. As I am a newby, I'd decided to respond to the list:

I had a look at char-def.lua and I think the only thing that needs to be done 
is to add

mathname=blacktriangle,

to

[0x25B4]={
  adobename=blackuppointingsmalltriangle,
  category=so,
  description=BLACK UP-POINTING SMALL TRIANGLE,
  direction=on,
  linebreak=al,
  unicodeslot=0x25B4,
 },


The unicodeslot is consistent to what I've found in the famous WWW

http://www.fileformat.info/info/unicode/char/25b4/index.htm


Same goes for

 [0x25BE]={
  category=so,
  description=BLACK DOWN-POINTING SMALL TRIANGLE,
  direction=on,
  linebreak=al,
  unicodeslot=0x25BE,
 },

with mathname=blacktriangledown under the assumption you'd like to be 
consistent with the naming convention of latex.

Right?

Cheers,
Andreas


 
On Jul 17, 2012, at 7:39 PM, Aditya Mahajan wrote:

 On Tue, 17 Jul 2012, Andreas Mang wrote:
 
 Dear all,
 
 The \blacktriangle and \blacktriangledown symbol seem to be missing, 
 though \blacktriangleright and \...-left are defined. Is there a quick 
 way to add missing symbols by myself from the knowledge of Unicode / XML 
 identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)?
 
 For opentype math fonts, have a look at char-def.lua. To add missing 
 symbols, you need to add appropriate fields in the lua table.
 
 The hard part is verifying the symbol to unicode slot mapping (the list at 
 tralics is not always consistent with the ams list that is used by 
 unicode-math package). If you know the right mappings, add a patch to 
 char-def.lua and send it to the list (or the dev-context list); otherwise, 
 just send the mappings and I can add them to the lua table.
 
 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
 ___

--
Andreas Mang, MSc
   Research Associate

UNIVERSITY OF LUEBECK
   INSTITUTE OF MEDICAL ENGINEERING

   Division of Computer Science, 
   Engineering and Natural Sciences

   Ratzeburger Allee 160, Building 64
   23562 Luebeck, Germany

   Phone: +49 (0) 451 500 5416
   Fax:   +49 (0) 451 500 5403
   m...@imt.uni-luebeck.de
   http://www.imt.uni-luebeck.de

___
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] math symbol: blacktriangle

2012-07-17 Thread Hans Hagen

On 17-7-2012 19:39, Aditya Mahajan wrote:

On Tue, 17 Jul 2012, Andreas Mang wrote:


Dear all,

The \blacktriangle and \blacktriangledown symbol seem to be missing,
though \blacktriangleright and \...-left are defined. Is there a quick
way to add missing symbols by myself from the knowledge of Unicode /
XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)?


For opentype math fonts, have a look at char-def.lua. To add missing
symbols, you need to add appropriate fields in the lua table.

The hard part is verifying the symbol to unicode slot mapping (the list
at tralics is not always consistent with the ams list that is used by
unicode-math package). If you know the right mappings, add a patch to
char-def.lua and send it to the list (or the dev-context list);
otherwise, just send the mappings and I can add them to the lua table.


keep in mind that not all those black triangles in ams math ended up in 
unicode


(future lm/gyre fonts might have some of these symbols)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


___
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] write my own text in the header

2012-07-17 Thread Hans Hagen

On 17-7-2012 18:25, dalyoung wrote:

Dear all,

I have two questions.

1. I'd like to write various text in the header differently at every page.
It is like SlideTitle{} used in the simpleslide module.

I tried \setupheadertexts[text] at the beginning of every page.
But only the text defined at last appeared at the header of every page.

Is there a way to do such a job?

2. Is it possible to use my own figure as a background under the simpleslide 
module?
 -- Example--
.
\usemodule[simpleslides][style=HorizontalStripes,font=]
.
\defineoverlay[yellow-spring][{\externalfigure[./background/yellowspring][width=\paperwidth]}]
\setupbackgrounds[page][background=yellow-spring]


maybe you need to set

\setupbackgrounds
  [page]
  [background=yellow-spring,
   state=repeat]

if there is already a background then you might need something

\setupbackgrounds
  [page]
  [background={existing-thing,yellow-spring},
   state=repeat]

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


___
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] math symbol: blacktriangle

2012-07-17 Thread Khaled Hosny
On Tue, Jul 17, 2012 at 09:40:15PM +0200, Hans Hagen wrote:
 On 17-7-2012 19:39, Aditya Mahajan wrote:
 On Tue, 17 Jul 2012, Andreas Mang wrote:
 
 Dear all,
 
 The \blacktriangle and \blacktriangledown symbol seem to be missing,
 though \blacktriangleright and \...-left are defined. Is there a quick
 way to add missing symbols by myself from the knowledge of Unicode /
 XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)?
 
 For opentype math fonts, have a look at char-def.lua. To add missing
 symbols, you need to add appropriate fields in the lua table.
 
 The hard part is verifying the symbol to unicode slot mapping (the list
 at tralics is not always consistent with the ams list that is used by
 unicode-math package). If you know the right mappings, add a patch to
 char-def.lua and send it to the list (or the dev-context list);
 otherwise, just send the mappings and I can add them to the lua table.
 
 keep in mind that not all those black triangles in ams math ended up
 in unicode

AFAIK all ams symbols are in Unicode now (I know because the STIX LaTeX
support covers them all from STIX Unicode fonts).

Regards,
 Khaled
___
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] floats in margin

2012-07-17 Thread Meer, H. van der
Trying a \placefigure[inmargin] and other margins settings gives an undefined 
control sequence error:

\strc_floats_caption_set_align ...s_caption_align 
  ]}
argument ...box {\strc_floats_caption_set_align 
  \hsize \floatcaptionparame…

My version in use is ConTeXt  ver: 2012.07.10 09:52 MKIV  fmt: 2012.7.11  int: 
english/english

Is this problem already solved in a later version? Since when?

Hans van der Meer



___
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] floats in margin

2012-07-17 Thread Marco
On 2012-07-17 Meer, H. van der h.vanderm...@uva.nl wrote:

 Trying a \placefigure[inmargin] and other margins settings gives
 an undefined control sequence error:

The following works here with 2012.07.17 00:23

\useMPlibrary [dum]
\starttext
\input zapf

\startplacefigure [title=A figure, location=margin]
  \externalfigure [dummy] [width=\marginwidth]
\stopplacefigure

\placefigure
  [inmargin]
  {Another figure}
  {\externalfigure [dummy] [width=\marginwidth]}
\stoptext

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
___


[NTG-context] Is startalign broken in mkiv?

2012-07-17 Thread Matthias Weber
\starttext
\startformula \startalign
 v = u + at \\
 h = ut + \frac12 gt^2 \\
\stopalign \stopformula
\stoptext




ConTeXt  ver: 2012.07.17 16:42 MKIV  fmt: 2012.7.17  int: english/english
(...)
! Missing $ inserted.

system   tex  error on line 3 in file test.tex: Missing $ inserted ...

1 \starttext
2 \startformula \startalign
3   v = u + at \\
4 h = ut + \frac12 gt^2 \\
5 \stopalign \stopformula
6 \stoptext

Thanks - 

Matthias

___
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] math symbol: blacktriangle

2012-07-17 Thread Hans Hagen

On 17-7-2012 22:36, Khaled Hosny wrote:

On Tue, Jul 17, 2012 at 09:40:15PM +0200, Hans Hagen wrote:

On 17-7-2012 19:39, Aditya Mahajan wrote:

On Tue, 17 Jul 2012, Andreas Mang wrote:


Dear all,

The \blacktriangle and \blacktriangledown symbol seem to be missing,
though \blacktriangleright and \...-left are defined. Is there a quick
way to add missing symbols by myself from the knowledge of Unicode /
XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)?


For opentype math fonts, have a look at char-def.lua. To add missing
symbols, you need to add appropriate fields in the lua table.

The hard part is verifying the symbol to unicode slot mapping (the list
at tralics is not always consistent with the ams list that is used by
unicode-math package). If you know the right mappings, add a patch to
char-def.lua and send it to the list (or the dev-context list);
otherwise, just send the mappings and I can add them to the lua table.


keep in mind that not all those black triangles in ams math ended up
in unicode


AFAIK all ams symbols are in Unicode now (I know because the STIX LaTeX
support covers them all from STIX Unicode fonts).


Also the black triangles left and right (in ams compatible font sizes)?

(Last time I messed with it I had to get them from the navigational 
symbol font).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


___
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] Is startalign broken in mkiv?

2012-07-17 Thread Hans Hagen

On 18-7-2012 00:22, Matthias Weber wrote:

\starttext
\startformula \startalign
  v = u + at \\
  h = ut + \frac12 gt^2 \\
\stopalign \stopformula
\stoptext




ConTeXt  ver: 2012.07.17 16:42 MKIV  fmt: 2012.7.17  int: english/english
(...)
! Missing $ inserted.

system   tex  error on line 3 in file test.tex: Missing $ inserted ...

1 \starttext
2 \startformula \startalign
3   v = u + at \\
4 h = ut + \frac12 gt^2 \\
5 \stopalign \stopformula
6 \stoptext

Thanks -


the context way is:

\startformula \startalign
 \NC v \NC = u + at \NR
 \NC h \NC = ut + \frac12 gt^2 \NR
\stopalign \stopformula


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


___
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] math symbol: blacktriangle

2012-07-17 Thread Hans Hagen

On 17-7-2012 20:41, Andreas Mang wrote:

Hi Aditya,

Thanks for the advice. As I am a newby, I'd decided to respond to the list:

I had a look at char-def.lua and I think the only thing that needs to be done 
is to add

mathname=blacktriangle,

to

[0x25B4]={
   adobename=blackuppointingsmalltriangle,
   category=so,
   description=BLACK UP-POINTING SMALL TRIANGLE,
   direction=on,
   linebreak=al,
   unicodeslot=0x25B4,
  },


why not 25B2 (the bigger one)


The unicodeslot is consistent to what I've found in the famous WWW

http://www.fileformat.info/info/unicode/char/25b4/index.htm


Same goes for

  [0x25BE]={
   category=so,
   description=BLACK DOWN-POINTING SMALL TRIANGLE,
   direction=on,
   linebreak=al,
   unicodeslot=0x25BE,
  },

with mathname=blacktriangledown under the assumption you'd like to be 
consistent with the naming convention of latex.


or 25BC (the bigger one)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


___
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] Is startalign broken in mkiv?

2012-07-17 Thread Matthias Weber
Thanks - I wasn't aware that the human readable version had been deprecated :(

Matthias

On Jul 17, 2012, at 7:17 PM, Hans Hagen pra...@wxs.nl wrote:

 On 18-7-2012 00:22, Matthias Weber wrote:
 \starttext
 \startformula \startalign
  v = u + at \\
  h = ut + \frac12 gt^2 \\
 \stopalign \stopformula
 \stoptext
 
 
 
 
 ConTeXt  ver: 2012.07.17 16:42 MKIV  fmt: 2012.7.17  int: english/english
 (...)
 ! Missing $ inserted.
 
 system   tex  error on line 3 in file test.tex: Missing $ inserted 
 ...
 
 1 \starttext
 2 \startformula \startalign
 3   v = u + at \\
 4 h = ut + \frac12 gt^2 \\
 5 \stopalign \stopformula
 6 \stoptext
 
 Thanks -
 
 the context way is:
 
 \startformula \startalign
 \NC v \NC = u + at \NR
 \NC h \NC = ut + \frac12 gt^2 \NR
 \stopalign \stopformula
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 
 
___
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] Is startalign broken in mkiv?

2012-07-17 Thread Khaled Hosny
The use of  (which is a common symbol) as a control character is a long
standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of.

On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote:
 Thanks - I wasn't aware that the human readable version had been deprecated :(
 
 Matthias
 
 On Jul 17, 2012, at 7:17 PM, Hans Hagen pra...@wxs.nl wrote:
 
  On 18-7-2012 00:22, Matthias Weber wrote:
  \starttext
  \startformula \startalign
   v = u + at \\
   h = ut + \frac12 gt^2 \\
  \stopalign \stopformula
  \stoptext
  
  
  
  
  ConTeXt  ver: 2012.07.17 16:42 MKIV  fmt: 2012.7.17  int: english/english
  (...)
  ! Missing $ inserted.
  
  system   tex  error on line 3 in file test.tex: Missing $ 
  inserted ...
  
  1 \starttext
  2 \startformula \startalign
  3   v = u + at \\
  4 h = ut + \frac12 gt^2 \\
  5 \stopalign \stopformula
  6 \stoptext
  
  Thanks -
  
  the context way is:
  
  \startformula \startalign
  \NC v \NC = u + at \NR
  \NC h \NC = ut + \frac12 gt^2 \NR
  \stopalign \stopformula
  
  
  -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
  -
  
  
 ___
 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] simpleslides help needed

2012-07-17 Thread Pavneet Arora

Hello all,

I am here at TUG 2012 updating the presentation that I am to give in the 
morning.

I have had a couple of lingering questions regarding simpleslides that I
thought I would put out there.  They are not show stoppers, and I have
lived with them in my other presentations.  It is just that with my
brain on TeX (and ConTeXt) for the past few days, I thought that I would
try to resolve them once and for all.

1.  Fonts

I would like to specify separate mainfont and bodyfont using the
simplefonts module (or some other consistent mechanism).

I have read the thread from:

http://www.ntg.nl/pipermail/ntg-context/2011/056495.html

and have tried to split up Wolfgang's suggestion into the two parts.  I
have tried:

\usemodule[simplefonts][size=18pt]
\setmainfont[grandesignneueserif]

\setupbodyfont[dejavuserif]

which gets me the title font, but not the body font.

The other approach:

\definetypeface[mainface][rm][serif][DejaVu Serif][default]
\definetypeface[mainface][ss][sans][DejaVu Sans][default]
\definetypeface[mainface][tt][mono][Inconsolata][default]
\setupbodyfont[mainface]

also doesn't seem to work at all.  I get what I believe to be Latin
Modern Sans across the board.

I have resorted to using one of the default fonts via the module switch
for now, but would like to customize the font selection to my taste.

2.  Margins

I have the following slide, where only the right margin is affected.  I
have tried variations on backspace, width and margin but haven't gotten
the left margin to move.





\definelayout[quotation][leftmargin=1.5in,rightmargin=1.5in]

\SlideTitle{An exception: Lotus Improv, an exceptional spreadsheet}
\blank
\setuplayout[quotation]
\quotation{Pito Salas, a developer at ATG, decided to attack this problem. 
After a few months of studying existing real-world examples, it became clear 
that the data, views of that data, and the formulas that acted on that data were 
very separate concepts. Yet in every case, the existing spreadsheet programs 
required the user to type all of these items into the same (typically single) 
sheet's cells.}

\par
\setuplayout[reset]
\startalignment[flushright]
\blank[2*big]
{\em Source:  Wikipedia:Lotus Improv}



I am sure that it is something simple that I am missing here, but any
guidance would be most appreciated.

Many thanks.

--
-
- Pavneet Arora

___
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] Is startalign broken in mkiv?

2012-07-17 Thread Matthias Weber
It was never a problem in TeX to modify the control characters used according 
to your own pleasure. For me, the problem is now to change the 200+ occurrences 
of start/stopaligns distributed over dozens of files to the politically correct 
syntax. 

Matthias

On Jul 17, 2012, at 7:41 PM, Khaled Hosny khaledho...@eglug.org wrote:

 The use of  (which is a common symbol) as a control character is a long
 standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of.
 
 On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote:
 Thanks - I wasn't aware that the human readable version had been deprecated 
 :(
 
 Matthias
 
 On Jul 17, 2012, at 7:17 PM, Hans Hagen pra...@wxs.nl wrote:
 
 On 18-7-2012 00:22, Matthias Weber wrote:
 \starttext
 \startformula \startalign
 v = u + at \\
 h = ut + \frac12 gt^2 \\
 \stopalign \stopformula
 \stoptext
 
 
 
 
 ConTeXt  ver: 2012.07.17 16:42 MKIV  fmt: 2012.7.17  int: english/english
 (...)
 ! Missing $ inserted.
 
 system   tex  error on line 3 in file test.tex: Missing $ 
 inserted ...
 
 1 \starttext
 2 \startformula \startalign
 3   v = u + at \\
 4 h = ut + \frac12 gt^2 \\
 5 \stopalign \stopformula
 6 \stoptext
 
 Thanks -
 
 the context way is:
 
 \startformula \startalign
 \NC v \NC = u + at \NR
 \NC h \NC = ut + \frac12 gt^2 \NR
 \stopalign \stopformula
 
 
 -
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
 -
 
 
 ___
 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
 ___
___
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] Is startalign broken in mkiv?

2012-07-17 Thread Rogers, Michael K
Here's a backward-compatibility hack that works on your minimal example.  Maybe 
it will save the dozens of files without changing all the s:

\let\oldstartalign=\startalign
\let\oldstopalign=\stopalign
\let\oldbs=\\
\def\startalign{\catcode`=4\let\\=\cr\oldstartalign}
\def\stopalign{\oldstopalign\catcode`=12\let\\=\oldbs}
\starttext
This \ that  the other thing:
\startformula \startalign
v = u + at \\
h = ut + \frac12 gt^2 \\
\stopalign \stopformula
That \ this  yet another thing.
\stoptext

Hope that helps.

Michael

On Jul 17, 2012, at 6:48 PM, Matthias Weber wrote:

 It was never a problem in TeX to modify the control characters used according 
 to your own pleasure. For me, the problem is now to change the 200+ 
 occurrences of start/stopaligns distributed over dozens of files to the 
 politically correct syntax.

 Matthias

 On Jul 17, 2012, at 7:41 PM, Khaled Hosny khaledho...@eglug.org wrote:

 The use of  (which is a common symbol) as a control character is a long
 standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of.

 On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote:
 Thanks - I wasn't aware that the human readable version had been deprecated 
 :(

 Matthias

 On Jul 17, 2012, at 7:17 PM, Hans Hagen pra...@wxs.nl wrote:

 On 18-7-2012 00:22, Matthias Weber wrote:
 \starttext
 \startformula \startalign
 v = u + at \\
 h = ut + \frac12 gt^2 \\
 \stopalign \stopformula
 \stoptext


 

 ConTeXt  ver: 2012.07.17 16:42 MKIV  fmt: 2012.7.17  int: english/english
 (...)
 ! Missing $ inserted.

 system   tex  error on line 3 in file test.tex: Missing $ 
 inserted ...

 1 \starttext
 2 \startformula \startalign
 3   v = u + at \\
 4 h = ut + \frac12 gt^2 \\
 5 \stopalign \stopformula
 6 \stoptext

 Thanks -

 the context way is:

 \startformula \startalign
 \NC v \NC = u + at \NR
 \NC h \NC = ut + \frac12 gt^2 \NR
 \stopalign \stopformula


 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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] simpleslides help needed

2012-07-17 Thread Wolfgang Schuster

Am 18.07.2012 um 02:41 schrieb Pavneet Arora:

 Hello all,
 
 I am here at TUG 2012 updating the presentation that I am to give in the 
 morning.
 
 I have had a couple of lingering questions regarding simpleslides that I
 thought I would put out there.  They are not show stoppers, and I have
 lived with them in my other presentations.  It is just that with my
 brain on TeX (and ConTeXt) for the past few days, I thought that I would
 try to resolve them once and for all.
 
 1.  Fonts
 
 I would like to specify separate mainfont and bodyfont using the
 simplefonts module (or some other consistent mechanism).
 
 I have read the thread from:
 
 http://www.ntg.nl/pipermail/ntg-context/2011/056495.html
 
 and have tried to split up Wolfgang's suggestion into the two parts.  I
 have tried:
 
 \usemodule[simplefonts][size=18pt]
 \setmainfont[grandesignneueserif]
 
 \setupbodyfont[dejavuserif]
 
 which gets me the title font, but not the body font.
 
 The other approach:
 
 \definetypeface[mainface][rm][serif][DejaVu Serif][default]
 \definetypeface[mainface][ss][sans][DejaVu Sans][default]
 \definetypeface[mainface][tt][mono][Inconsolata][default]
 \setupbodyfont[mainface]
 
 also doesn't seem to work at all.  I get what I believe to be Latin
 Modern Sans across the board.
 
 I have resorted to using one of the default fonts via the module switch
 for now, but would like to customize the font selection to my taste.

I suggest to look into the manual for the simple slides module how to change 
fonts
because the module has some control which font is used.

 2.  Margins
 
 I have the following slide, where only the right margin is affected.  I
 have tried variations on backspace, width and margin but haven't gotten
 the left margin to move.
 
 
 
 \definelayout[quotation][leftmargin=1.5in,rightmargin=1.5in]
 
 \SlideTitle{An exception: Lotus Improv, an exceptional spreadsheet}
 \blank
 \setuplayout[quotation]
 \quotation{Pito Salas, a developer at ATG, decided to attack this problem. 
 After a few months of studying existing real-world examples, it became clear 
 that the data, views of that data, and the formulas that acted on that data 
 were very separate concepts. Yet in every case, the existing spreadsheet 
 programs required the user to type all of these items into the same 
 (typically single) sheet's cells.}
 \par
 \setuplayout[reset]
 \startalignment[flushright]
 \blank[2*big]
 {\em Source:  Wikipedia:Lotus Improv}
 
 
 
 I am sure that it is something simple that I am missing here, but any
 guidance would be most appreciated.

You can’t use a customized layout to change the margins of a part of the page 
only,
use the quotation environment or put the quotation in a narrower environment.

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
___