Re: [NTG-context] Installing fonts

2015-04-24 Thread Wolfgang Schuster

 Am 24.04.2015 um 13:49 schrieb david.boerschl...@juno.com:
 
 Is there any up-to-date documentation on how to install fonts?   The page 
 http://wiki.contextgarden.net/Installing_a_TrueType_font,_step_by_step starts 
 out by saying that it is out-of-date.

Which system do you use?

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] Installing fonts

2015-04-24 Thread david.boerschl...@juno.com
Is there any up-to-date documentation on how to install fonts?   The page 
http://wiki.contextgarden.net/Installing_a_TrueType_font,_step_by_step starts 
out by saying that it is out-of-date.

David Boerschlein
(214) 412-3275 home office land
(585) 278-4687 cell
www.linkedin.com/in/davidboerschlein


Forget the iPhone 6
1 little-known Apple supplier holds wealth-changing growth potential.
http://thirdpartyoffers.juno.com/TGL3141/553a2e1aec1d92e1a6e04st04duc
___
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] setupheads separator and stopper

2015-04-24 Thread Wolfgang Schuster

 Am 24.04.2015 um 11:19 schrieb Csikos Bela bcsikos...@freemail.hu:
 
 Wolfgang Schuster  írta:
 
 Am 23.04.2015 um 16:34 schrieb Csikos Bela:
 
 Hello list members:
 
 contextgarden wiki site http://wiki.contextgarden.net/Command/setupheads 
 says
 that the \setupheads command has been reported non-working for some 
 people.
 
 For me the alternative=inmargin/normal options work, but the separator= and
 stopper= options have no effect. I would like my chapter, section etc 
 numbers to
 have a dot after them, eg 1. 1.1. etc. How could I achieve this? Just in 
 curiousity,
 how can I change the separator?
 
 \setuphead
 [sectionstarter=(,
  sectionstopper=)]
 
 %\setupreferencestructureprefix[default][prefixstarter={\symbol[none]},prefixstopper={\symbol[none]}]
 
 \starttext
 
 \chapter[sec:chapter]{Chapter}
 
 \section[sec:section]{Section}
 
 \subsection[sec:subsection]{Subsection}
 
 Reference to chapter \in[sec:chapter] and section \in[sec:section].
 
 \stoptext
 
 Thank you. This works for me. 
 
 Just two questions:
 
 1. The section part of the words sectionstarter and sectionstopper above is 
 just
 a general term for any heading type and does not correspond to the heading 
 type.
 Is this correct? (That is, there are no chapterstarter=, subsectionstarter= 
 etc. options).

No, it’s part of the key name and you have to use „sectionstopper” also for 
\part, \chapter etc.

 2. The command you commented, \setupreferencestructureprefix, what does it 
 supposed to do? It did not do anything for me, eg:
 \setupreferencestructureprefix[default][prefixstarter={\symbol[diamond]},prefixstopper={\symbol[none]}]

It comes the starter and stopper from the reference number in the text, compare 
the result from
\in with and without the \setupreferencestructureprefix setting.

 Based on the above I used this code tho achieve the required look:
 
 %%%
 \setuphead[sectionstopper=.]
 
 \starttext
 
 \chapter{Chapter}
 
 \section{Section}
 
 \subsection{Subsection}
 
 \stoptext
 %%%
 
 I found that \setupheads[sectionstopper=.] (plural) has the same effect.

\setupheads is only a synonym for \setuphead.

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] setupheads separator and stopper

2015-04-24 Thread Csikos Bela
Wolfgang Schuster  írta:

 Am 23.04.2015 um 16:34 schrieb Csikos Bela:
 
 Hello list members:
 
 contextgarden wiki site http://wiki.contextgarden.net/Command/setupheads says
 that the \setupheads command has been reported non-working for some people.
 
 For me the alternative=inmargin/normal options work, but the separator= and
 stopper= options have no effect. I would like my chapter, section etc 
 numbers to
 have a dot after them, eg 1. 1.1. etc. How could I achieve this? Just in 
 curiousity,
 how can I change the separator?

\setuphead
  [sectionstarter=(,
   sectionstopper=)]

%\setupreferencestructureprefix[default][prefixstarter={\symbol[none]},prefixstopper={\symbol[none]}]

\starttext

\chapter[sec:chapter]{Chapter}

\section[sec:section]{Section}

\subsection[sec:subsection]{Subsection}

Reference to chapter \in[sec:chapter] and section \in[sec:section].

\stoptext

Thank you. This works for me. 

Just two questions:

1. The section part of the words sectionstarter and sectionstopper above is 
just
a general term for any heading type and does not correspond to the heading type.
Is this correct? (That is, there are no chapterstarter=, subsectionstarter= 
etc. options).

2. The command you commented, \setupreferencestructureprefix, what does it 
supposed to do? It did not do anything for me, eg:
\setupreferencestructureprefix[default][prefixstarter={\symbol[diamond]},prefixstopper={\symbol[none]}]


Based on the above I used this code tho achieve the required look:

%%%
\setuphead[sectionstopper=.]

\starttext

\chapter{Chapter}

\section{Section}

\subsection{Subsection}

\stoptext
%%%

I found that \setupheads[sectionstopper=.] (plural) has the same effect.
I guess \setupheads is the general setup for all types of headings, and
\setupheads[heading-type][options] for the given heading-type.
But if in the latter command I don't specify heading-type it will apply
to all heading-types. Is this correct? 

By experimenting further I also found that:

\setuphead[section][] will apply to section, subsection and subsubsection but
not to chapter. 

\setuphead[chapter][] will apply to chapter only, and not to any ...section.

Thank you,

bcsikos


___
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] Keeping section and subsection together

2015-04-24 Thread Hans Hagen

On 4/24/2015 7:32 AM, Pablo Rodriguez wrote:

On 04/23/2015 11:50 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

the following sample generates section title 5 Sec as a
last/solitary heading (section) on the page.


\starttext
\dorecurse{5}{
  \section{Sec}
\subsection{Subsec}
  \input ward
}
\stoptext


Is there a way to bind it with the next head (subsection) - so that
5 Sec, 5.1 Subsec (and at least one line of the following
paragraph) would be together on one page?


Hi Lukáš,

add the following to the document preamble:

 \setuphead[section][after={\blank[samepage,big]}]

BTW, could you add this to http://wiki.contextgarden.net/Titles?


actually there is rather complex code in the core that deals with it .. 
(and also deals with too many on one page and so, as it's a weighted 
system) ... i just checked and a variable is not reset .. fixed in an 
upcoming beta (no upload yet, first alan and i need to agree on some bib 
issues working ok)


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] Keeping section and subsection together

2015-04-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thanks Pablo for the suggestion and Hans for the solution...

I'd rather wait publishing the trick 
\setuphead[section][after={\blank[samepage,big]}] as I think this issue will be handled 
systematically (Hans' intention for the next beta).

Best regards,

Lukas


On Fri, 24 Apr 2015 10:31:50 +0200, Hans Hagen pra...@wxs.nl wrote:


On 4/24/2015 7:32 AM, Pablo Rodriguez wrote:

On 04/23/2015 11:50 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

the following sample generates section title 5 Sec as a
last/solitary heading (section) on the page.


\starttext
\dorecurse{5}{
  \section{Sec}
\subsection{Subsec}
  \input ward
}
\stoptext


Is there a way to bind it with the next head (subsection) - so that
5 Sec, 5.1 Subsec (and at least one line of the following
paragraph) would be together on one page?


Hi Lukáš,

add the following to the document preamble:

 \setuphead[section][after={\blank[samepage,big]}]

BTW, could you add this to http://wiki.contextgarden.net/Titles?


actually there is rather complex code in the core that deals with it ..
(and also deals with too many on one page and so, as it's a weighted
system) ... i just checked and a variable is not reset .. fixed in an
upcoming beta (no upload yet, first alan and i need to agree on some bib
issues working ok)

Hans



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-24 Thread Christian Prim
Hi Hans

I don't know if the latest beta already has the new code. But I can
confirm, that there is still a difference between tikz-colors and
context/metafun colors.

TikZ translates c=1,m=1 in (native) RGB, that is b=1, which is in some way
correct.
ConTeXt translates c=1,m=1 in something I couldn't really define (perhaps
sRGB or some other color profile) r=0.183... g=0.191... b=0.574... or in
Web-Hex: #2e3092

or back to cmyk: c=.68, m=.67,k=.43 (which is blue with some key-value
compared to TikZ with k=0)

So I think that TikZ and ConTeXt don't use the same color profile

Hope it could help somewhat to solve my problem.

Thanks
Christian

PS.: New MWE with output.pdf attached.

\usemodule[tikz]
\usetypescript[palatino]
\setupbodyfont[palatino,40pt]
\starttext
\definecolor[mycola][c=1,m=1,y=0,k=0]
\definecolor[mycolb][c=0.5,m=0.5,y=0,k=0]
\definecolor[mycolc][c=0.25,m=0.25,y=0,k=0]

\starttikzpicture
\node[fill=mycola,rectangle, minimum height=4cm,minimum width=2cm]
{\startcolor[mycola]T\stopcolor};
\node[fill=mycolb,rectangle, minimum height=4cm,minimum width=2cm] at (2,0)
{\startcolor[mycolb]T\stopcolor};
\node[fill=mycolc,rectangle, minimum height=4cm,minimum width=2cm] at (4,0)
{\startcolor[mycolc]T\stopcolor};
\stoptikzpicture

\startMPcode
 fill fullsquare xscaled 2cm yscaled 4cm withcolor \MPcolor{mycola};
 fill fullsquare xscaled 2cm yscaled 4cm xshifted 2cm withcolor
\MPcolor{mycolb};
 fill fullsquare xscaled 2cm yscaled 4cm xshifted 4cm withcolor
\MPcolor{mycolc};
\stopMPcode

\par
\startcolor[mycola]T\stopcolor
\startcolor[mycolb]T\stopcolor
\startcolor[mycolc]T\stopcolor
\stoptext


2015-04-17 1:27 GMT+02:00 Hans Hagen pra...@wxs.nl:

 On 4/16/2015 11:29 PM, Christian Prim wrote:

 Hi Hans

 sorry to ask again. But the different color handling between
 context-version before 2015.04.14 00:54 and
 context-version 2015.04.14 00:54 is remarkable and annoying.

 See attached pdf-documents. Both have exactly the same source:

 \usemodule[tikz]
 \setupbodyfont[40pt]
 \starttext
 \definecolor[mycola][c=0.23,m=0.58,y=0.88,k=0.45]
 \definecolor[mycolb][c=0.115,m=0.29,y=0.44,k=0.225]
 \definecolor[mycolc][c=0.055,m=0.145,y=0.22,k=0.1125]

 \starttikzpicture
 \node[fill=mycola,rectangle, minimum height=4cm,minimum
 width=2cm,anchor=south west] {\startcolor[mycola]T\stopcolor};
 \node[fill=mycolb,rectangle, minimum height=4cm,minimum
 width=2cm,anchor=south west] at (2,0) {\startcolor[mycolb]T\stopcolor};
 \node[fill=mycolc,rectangle, minimum height=4cm,minimum
 width=2cm,anchor=south west] at (4,0) {\startcolor[mycolc]T\stopcolor};
 \stoptikzpicture
 \stoptext

 I write in each box the letter T with exactly the same color as the
 underlying box. Textcolor is set using context, fill color of the box is
 set using tikz.

 old.pdf shows the correct color handling. The letter T has exactly the
 same color as the box and therefore disappears.

 With newest beta (new.pdf) the letter T is visible.

 Must I now stay with an old beta or can this bug be fixed? Perhaps
 it's a bug in tikz...


 i found out that it relates to the lack of gray support (which in fact
 seems to be rgb support)

 so the next beta might work ok for you (no upload yet)

 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

 ___



output.pdf
Description: Adobe PDF document
___
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] Unable to resave float

2015-04-24 Thread Aditya Mahajan

I have a complex document, where I use

\startbackground

\startplacefigure[location={always,none}]
...
\stopplacefigure
...
\stopbackground

(This is for exam solutions and the background is supposed to be a frame 
around the solution; the figure is a figure included in the solution).

Occasionally, some of the floats are not placed in the output. For example

$grep float filename.log

gives:

floatblocks  '1' placed
floatblocks  '2' placed
floatblocks  '3' placed
floatblocks  order disturbed
structurefloats  unable to resave float
floatblocks  '5' placed
floatblocks  '6' placed
floatblocks  order disturbed
structurefloats  unable to resave float
floatblocks  '8' placed

So, float 4 and 7 were not saved. It is bit tricky to create a minimal 
example, but any idea how I can prevent this. I am using version 
2015.04.03


Thanks,
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] setupheads separator and stopper

2015-04-24 Thread Wolfgang Schuster

 Am 24.04.2015 um 14:07 schrieb Csikos Bela bcsikos...@freemail.hu:
 
 Wolfgang Schuster írta:
 
 1. The section part of the words sectionstarter and sectionstopper above 
 is just
 a general term for any heading type and does not correspond to the heading 
 type.
 Is this correct? (That is, there are no chapterstarter=, subsectionstarter= 
 etc. options).
 
 No, it’s part of the key name and you have to use „sectionstopper” also for 
 \part, \chapter etc.
 
 I see.
 
 2. The command you commented, \setupreferencestructureprefix, what does it 
 supposed to do? It did not do anything for me, eg:
 \setupreferencestructureprefix[default][prefixstarter={\symbol[diamond]},prefixstopper={\symbol[none]}]
 
 It comes the starter and stopper from the reference number in the text, 
 compare the result from
 \in with and without the \setupreferencestructureprefix setting.
 
 I compared the output of \in with commented and non-commented
 \setupreferencestructureprefix line. It does not make any difference, the two
 outputs are the same.

Without the the \setupreferencestructureprefix line you get

Reference to chapter (1) and section (1.1).

and with the line

Reference to chapter 1 and section 1.1.

 \setupheads is only a synonym for \setuphead.
 
 OK. I also tried to change the separator to dash but I couldn't.
 I tried with \setuphead[separator=-] and with \setuphead[sectionseparator=-]
 but they didn't work. How can I change that?


You have to create a list of the separators with \defineseparatorset which can
then be applied with the sectionseparatorset key.

\defineseparatorset[mysectionseparator][x,y,z][?]

\setuphead[sectionseparatorset=mysectionseparator]

\setuphead[part]   [placehead=yes,page=no]
\setuphead[chapter][page=no]

\starttext

\part{Part}

\chapter{Chapter}

\section{Section}

\subsection{Subsection}

\subsubsection{Subsubsection}

\subsubsubsection{Subsubsubsection}

\stoptext

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] Installing fonts

2015-04-24 Thread Aditya Mahajan

On Fri, 24 Apr 2015, david.boerschl...@juno.com wrote:

Is there any up-to-date documentation on how to install fonts?  The page 
http://wiki.contextgarden.net/Installing_a_TrueType_font,_step_by_step 
starts out by saying that it is out-of-date.


I typically just add the .ttf fonts in

$TEXMF/fonts/truetype/font-name/

and .otf fonts in

$TEXMF/fonts/opentype/font-name/

and run

mtxrun --script font --reload

After that, you can use them directly (either the specserif or 
\definefontfamily macros).


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] setupheads separator and stopper

2015-04-24 Thread Csikos Bela
Wolfgang Schuste írta:

 Am 24.04.2015 um 14:07 schrieb Csikos Bela:
 
 Wolfgang Schuster írta:
 
 1. The section part of the words sectionstarter and sectionstopper above 
 is just
 a general term for any heading type and does not correspond to the heading 
 type.
 Is this correct? (That is, there are no chapterstarter=, 
 subsectionstarter= etc. options).
 
 No, it’s part of the key name and you have to use „sectionstopper” also for 
 \part, \chapter etc.
 
 I see.
 
 2. The command you commented, \setupreferencestructureprefix, what does it 
 supposed to do? It did not do anything for me, eg:
 \setupreferencestructureprefix[default][prefixstarter={\symbol[diamond]},prefixstopper={\symbol[none]}]
 
 It comes the starter and stopper from the reference number in the text, 
 compare the result from
 \in with and without the \setupreferencestructureprefix setting.
 
 I compared the output of \in with commented and non-commented
 \setupreferencestructureprefix line. It does not make any difference, the two
 outputs are the same.

Without the the \setupreferencestructureprefix line you get

Reference to chapter (1) and section (1.1).

Yes.

and with the line

Reference to chapter 1 and section 1.1.

No. I get the very same output as without the  \setupreferencestructureprefix 
line.

I attach the pdf outputs. My context version is:

ConTeXt  ver: 2014.01.03 00:40 MKIV current  fmt: 2015.4.1  int: english/english

 I also tried to change the separator to dash but I couldn't.
 I tried with \setuphead[separator=-] and with \setuphead[sectionseparator=-]
 but they didn't work. How can I change that?


You have to create a list of the separators with \defineseparatorset which can
then be applied with the sectionseparatorset key.

\defineseparatorset[mysectionseparator][x,y,z][?]

\setuphead[sectionseparatorset=mysectionseparator]

\setuphead[part]   [placehead=yes,page=no]
\setuphead[chapter][page=no]

\starttext

\part{Part}

\chapter{Chapter}

\section{Section}

\subsection{Subsection}

\subsubsection{Subsubsection}

\subsubsubsection{Subsubsubsection}

\stoptext

This works nicely. Thanks,

bcsikos

commented.pdf
Description: Adobe PDF document


non-commented.pdf
Description: Adobe PDF document
___
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] setupheads separator and stopper

2015-04-24 Thread Csikos Bela
Wolfgang Schuster írta:

 1. The section part of the words sectionstarter and sectionstopper above 
 is just
 a general term for any heading type and does not correspond to the heading 
 type.
 Is this correct? (That is, there are no chapterstarter=, subsectionstarter= 
 etc. options).

No, it’s part of the key name and you have to use „sectionstopper” also for 
\part, \chapter etc.

I see.

 2. The command you commented, \setupreferencestructureprefix, what does it 
 supposed to do? It did not do anything for me, eg:
 \setupreferencestructureprefix[default][prefixstarter={\symbol[diamond]},prefixstopper={\symbol[none]}]

It comes the starter and stopper from the reference number in the text, 
compare the result from
\in with and without the \setupreferencestructureprefix setting.

I compared the output of \in with commented and non-commented
\setupreferencestructureprefix line. It does not make any difference, the two
outputs are the same.

\setupheads is only a synonym for \setuphead.

OK. I also tried to change the separator to dash but I couldn't.
I tried with \setuphead[separator=-] and with \setuphead[sectionseparator=-]
but they didn't work. How can I change that?

Thank you again,

bcsikos

___
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] Export bugs

2015-04-24 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

 Here are two export bugs, full test suite attached:

 ==sh_ahmad-qajar-xml-test-highlight.tex===
 \setupexport[cssfile=sh_ahmad-qajar.css]
 \setupbackend[export=yes]
 \definehighlight[emphasis][style=\em]
 \definehighlight[important][style=bold]
 \starttext
 \startparagraph
 Some \emph{emphasis} and \important{important}.

 \emph{Emphasis} and \important{important}.
 \stopparagraph
 \stoptext
 ==sh_ahmad-qajar-xml-test-highlight-div.xhtml==
 div
div class=paragraphSome emphasis and div class=highlight
 importantimportant/div.  div class=break!--empty--/div
 Emphasis   div class=break!--empty--/div
 and div class=highlight importantimportant/div./div
 /div
 ==

 The exported formatting of \emph vanishes in each instance, as well as
 misbehaves in the second case; \important behaves just fine.

 It seems the export doesn't like \em. Can this be fixed? Thanks and

 Best wishes

 Idris

--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] \lfloor, \rfloor, \lceil, \rceil vanish with \big, \Big, \bigg, \Bigg and their left and right variants

2015-04-24 Thread Maggyero
Dear NTG-ConTeXt members,

The math delimiters for floor and ceiling functions (\lfloor, \rfloor,
\lceil, \rceil) work with the automatic scaling commands (\left and \right)
but vanish with the manual scaling commands (\big, \Big, \bigg, \Bigg,
\bigl, \Bigl, \biggl, \Biggl, \bigr, \Bigr, \biggr, \Biggr). Do I use the
right commands? Or could the developers fix that?

Thank you in advance.


Maggyero
___
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] Feature request for export: Interactive Notes

2015-04-24 Thread Idris Samawi Hamid ادريس سماوي حامد

+ attachment

On Fri, 24 Apr 2015 18:36:12 -0600, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:



Dear gang,

  I've spent a considerable amount of time over the past month trying to
  master the art of xhtml output. We are close to being able to use  
ConTeXt

  as a replacement for markdown in, e.g., WordPress. Indeed, I plan to
  present the results of this experiment (porting an entire academic  
article

  to xhtml and WP) in a future article for one of the TeX journals...

  There is at least one crucial feature that's still needed. Perhaps it  
is
  already supported: If so, it would be much appreciated if someone  
kindly

  explained how to do it.

  In a web post (or epub), one wants to be able to interact back and  
forth

  with notes. Here is how markdown (extra) does it:

  Input
  That's some text with a footnote.[^1]

  [^1]: And that's the footnote.

That's the second paragraph of the note.

  More main text
  Output
pThat's some text with a footnote.sup id=fnref:1a href=#fn:1
  rel=footnote1/a/sup/p
  pMore main text/p

  div class=footnotes
  hr /
  ol
  li id=fn:1
  pAnd that's the footnote./p
  pThat's the second paragraph of the note.nbsp;a href=#fnref:1
  rev=footnote#8617;/a/p
  /li
  /ol
  /div
  =

  The resulting html file is attached. '#8617;' corresponds to U+21A9  
(↩).

  See also

https://michelf.ca/projects/php-markdown/extra/#footnotes

  Now we can of course already export xhtml footnotes from ConTeXt but  
there

  will be no interactive links. In the current project, there are 77
  footnotes; I had to add the links manually to get the output to do  
what we

  wanted.

  [Also note that it makes much more sense to export the footnotes as
  endnotes, particularly for long blog posts.]

  Is there already a way to get done automatically?

  In any case: This feature is a must-do in my humble opinion. Aside  
from a

  few other export bugs, this is one of the few features still needed so
  that ConTeXt can completely replace markdown for (advanced) web posts.
  Thanks is advance and

  Best wishes
  Idris




--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523Title: footnote




That's some text with a footnote.1
More main text





And that's the footnote.
That's the second paragraph of the note.







___
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] Feature request for export: Interactive Notes

2015-04-24 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

 I've spent a considerable amount of time over the past month trying to
 master the art of xhtml output. We are close to being able to use ConTeXt
 as a replacement for markdown in, e.g., WordPress. Indeed, I plan to
 present the results of this experiment (porting an entire academic article
 to xhtml and WP) in a future article for one of the TeX journals...

 There is at least one crucial feature that's still needed. Perhaps it is
 already supported: If so, it would be much appreciated if someone kindly
 explained how to do it.

 In a web post (or epub), one wants to be able to interact back and forth
 with notes. Here is how markdown (extra) does it:

 Input
 That's some text with a footnote.[^1]

 [^1]: And that's the footnote.

   That's the second paragraph of the note.

 More main text
 Output
pThat's some text with a footnote.sup id=fnref:1a href=#fn:1
 rel=footnote1/a/sup/p
 pMore main text/p

 div class=footnotes
 hr /
 ol
 li id=fn:1
 pAnd that's the footnote./p
 pThat's the second paragraph of the note.nbsp;a href=#fnref:1
 rev=footnote#8617;/a/p
 /li
 /ol
 /div
 =

 The resulting html file is attached. '#8617;' corresponds to U+21A9 (↩).
 See also

https://michelf.ca/projects/php-markdown/extra/#footnotes

 Now we can of course already export xhtml footnotes from ConTeXt but there
 will be no interactive links. In the current project, there are 77
 footnotes; I had to add the links manually to get the output to do what we
 wanted.

 [Also note that it makes much more sense to export the footnotes as
 endnotes, particularly for long blog posts.]

 Is there already a way to get done automatically?

 In any case: This feature is a must-do in my humble opinion. Aside from a
 few other export bugs, this is one of the few features still needed so
 that ConTeXt can completely replace markdown for (advanced) web posts.
 Thanks is advance and

 Best wishes
 Idris

--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Export bugs

2015-04-24 Thread Aditya Mahajan

On Fri, 24 Apr 2015, Idris Samawi Hamid ادريس   سماوي حامد wrote:


 \definehighlight[emphasis][style=\em]
...
 Some \emph{emphasis} and \important{important}.

 The exported formatting of \emph vanishes in each instance.


You define \emphasis but use \emph.

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] simple signature boxes

2015-04-24 Thread Thomas A. Schmitz

On 04/25/2015 07:34 AM, henman wrote:


I now I could use a table to do this but I should also be able to do
this with \framed and \startcombination[ cos * rows ]]


But no matter what order I give to [ n x c ] the result is always a
vertical split and not a horizontal one.


You have to add an empty pair of braces after each part of your combination:

\starttext

{ \switchtobodyfont[8pt]
\startcombination[2*1]
   { 
\framed[frame=off,topframe=on,leftframe=on,rulethickness=2pt,width=6cm,

  align={flushleft}]
  { \fillinrules[n=1]{\bf Buyer's Signature: }}  } {}

   { 
\framed[frame=off,topframe=on,leftframe=on,rulethickness=2pt,width=6cm,

  align={flushleft}]
  {  \fillinrules[n=1]{\bf Seller's Signature: } } } {}
\stopcombination
}

\stoptext

That's an easy one to miss...

Thomas
___
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] Export bugs

2015-04-24 Thread Idris Samawi Hamid ادريس سماوي حامد
On Fri, 24 Apr 2015 20:13:32 -0600, Aditya Mahajan adit...@umich.edu  
wrote:



You define \emphasis but use \emph.


Indeed, that's what weeks on end without proper sleep will get you...  
Sorry for the noise and thanks!


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] simple signature boxes

2015-04-24 Thread henman


I now I could use a table to do this but I should also be able to do 
this with \framed and \startcombination[ cos * rows ]]



But no matter what order I give to [ n x c ] the result is always a 
vertical split and not a horizontal one.



I want the left half of the page for a Buyer's signature linr and the 
right of the page for a Seller's signature.


% Mimimal Expample Follows:




\starttext

{ \switchtobodyfont[8pt]
\startcombination[2*1]
   { 
\framed[frame=off,topframe=on,leftframe=on,rulethickness=2pt,width=6cm,

  align={flushleft}]
  { \fillinrules[n=1]{\bf Buyer's Signature: }}  }

   { 
\framed[frame=off,topframe=on,leftframe=on,rulethickness=2pt,width=6cm,

  align={flushleft}]
  {  \fillinrules[n=1]{\bf Seller's Signature: } } }
\stopcombination
}

\stoptext


%
% End of minimal example\\\

Any advice would be appreciated.

Thank You.
  Henman
___
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] Keeping section and subsection together

2015-04-24 Thread Pablo Rodriguez
On 04/24/2015 11:07 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
 Hello,
 
 thanks Pablo for the suggestion and Hans for the solution...
 
 I'd rather wait publishing the trick
 \setuphead[section][after={\blank[samepage,big]}] as I think this
 issue will be handled systematically (Hans' intention for the next beta).

Hi Lukáš,

of course, my suggestion to add this to the wiki was motivated because I
thought it was a feature rather than a bug.

But it turns out that I was wrong again :-).


Pablo
-- 
http://www.ousia.tk
___
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] pausing compilation to show a message

2015-04-24 Thread Pablo Rodriguez
Dear list,

I have this minimal sample:

   \starttext
   \writestatus{apples}{oranges}
   \message{Have you checked this variable?}
   \stoptext

Is there a way that I can pause the compilation proccess to show the
message and that compilation would continue by pressing any key?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] pausing compilation to show a message

2015-04-24 Thread Pablo Rodriguez
Replying to my own message, I have the following sample:

\starttext
\message{Important Warning!!! }
\message{Have you checked the input text? }
\executesystemcommand{read -p ...}
\input zapf
\stoptext

I’m experiencing two issues with the code above:

How can I show the message only in the first run? Is there any
conditional based on the run number?

How can I insert a new line in \message?

Many thanks for your help,

Pablo


On 04/24/2015 07:37 PM, Pablo Rodriguez wrote:
 Dear list,
 
 I have this minimal sample:
 
\starttext
\writestatus{apples}{oranges}
\message{Have you checked this variable?}
\stoptext
 
 Is there a way that I can pause the compilation proccess to show the
 message and that compilation would continue by pressing any key?
 
 Many thanks for your help,
 
 
 Pablo
 


-- 
http://www.ousia.tk
___
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
___