Re: [NTG-context] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2015-04-09 Thread Otared Kavian
Hi Thomas,

Thanks for sharing your script!
Today I installed the update, but unfortunately now I cannot run it… because of 
a security message which prevents its execution, saying:

 begin system message

The app has been modified or damaged

The app has been modified, and its code does not match the original signed 

 code. The app may be broken or corrupted, or it may have been tampered with. 
If you think that an app has been damaged or tampered with, you should delete 
it by dragging it to the Trash.

Some apps and tools, such as AppleScript or JavaScript applications and some 
legacy tools, modify themselves after signing. These types of apps cannot be 
opened unless the settings in the General pane Security & Privacy preferences 
is set to allow apps downloaded from anywhere.

Choose Apple menu > System Preferences, click Security & Privacy, then click 
Privacy.

Open the General pane of Security & Privacy preferences for me 

For more information about protecting your Mac from harmful software, see 
Protect your Mac from malware 
.

Was this help page useful? Send feedback. <>
 <>
 <>
 <>

 end system message

Have a solution to this?

Best regards: OK

> On 09 Apr 2015, at 04:40, Thomas Floeren  wrote:
> 
> Updated (1.2.4)
> 
> 
> 
> 
> Changes:
> 
> 1.2.4 (61) (2015-04-09)
> 
> Added the option to enforce SyncTeX via command switch `--synctex=zipped`. 
> This will work also where `\enabledirectives [system.synctex]` doesn’t work, 
> for example in standalone tex documents without components or other input 
> files.
> 
> Changed the “typesetting started”-notification emoji from U+231A U+FE0F to 
> U+2615 U+FE0F. (Thank you, Apple, for having converted the formerly nice 
> Watch emoji into a blemished Apple Watch emoji that resembles a piece of coal 
> in 12pt.)
> 
> For semantic coherence changed the “typesetting finished” emoji from U+1F3C1 
> to U+1F37A ;-)
> 
> Manual: Added note on auto syntax check in Product Mode.
> 
> -- 
> 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
> ___

___
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] bug in \sethyphenatedurlafter, \sethyphenatedurlbefore and \sethyphenatedurlnormal?

2015-04-09 Thread Pablo Rodriguez
Hans,

the minimal sample doesn’t compile with latest beta from 2015.04.08 21:31:

\sethyphenatedurlafter{./-_}
\define[1]\url{{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}}
\starttext
\url{http://contextgarden.net}
\stoptext

It compiles fine with beta from 2015.03.25 22:13.

I’m afraid this might be a bug.

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] Placing a page without a blank page after.

2015-04-09 Thread Pablo Rodriguez
On 04/08/2015 11:50 PM, John Culleton wrote:
> I have tried various things like
> \start/stop/standardmakeup, \start/stop/TEXpage
> and so on. I am trying to place a full sized page
> including bleeds without a blank page following.
> Sometimes It works but mostly it
> gives me a blank page following.
> 
> What is the recommended solution?

Hi John,

I don’t know what you intend to do, but this might work (if I have done
my guesswork right ;-)):

\setuppagenumbering[alternative=doublesided]
\starttext
\startstandardmakeup[pagestate=start, doublesided=no]
This is the page.
\stopstandardmakeup
This is another page.
\stoptext

If it doesn’t work, please send a minimal sample that describes what you
have in mind.

I hope it helps,


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] (hindi) font questions

2015-04-09 Thread Pablo Rodriguez
On 04/08/2015 11:47 PM, Harald Koenig wrote:
> Hi,
> 
> I'd like to type set a single hindi/devanagari word in a chapter
> heading (using standalone MkVI), where I need your help for some
> questions/problems:
>
> - which (free) font do you suggest ? right now I'm using "Lohit-Devanagari".
>   text font is 11pt Palatino, Lohit doesn't match too good, and a bold
>   version would be nice for the chapter head.

Hi Harald,

as an alternative to the font proposed by Wolfgang (seems to be only
available for Mac), FreeSerif may be an option
(https://ftp.gnu.org/gnu/freefont/).

I hope it helps,


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] (hindi) font questions

2015-04-09 Thread Wolfgang Schuster

> Am 08.04.2015 um 23:47 schrieb Harald Koenig 
> :
> 
> Hi,
> 
> I'd like to type set a single hindi/devanagari word in a chapter heading 
> (using standalone MkVI),
> where I need your help for some questions/problems:
> 
> - which (free) font do you suggest ?  right now I'm using "Lohit-Devanagari". 
>  text font is 11pt Palatino, Lohit doesn't match too good, and a bold version
>  would be nice for the chapter head.
> 
> - font size: how do I define this font to get automatic/matching font sizes
>  for both the chapter head and the title of contents ?
> 
> right now I use
> 
>  \definefont [hindib] [Lohit-Devanagari at 24pt]
>  ...
>  \mychapter{Danke -- {\hindib  धन्यवाद}}
> 
> which gives a reaosonable font size for the chapter title,
> but of course that's way too large for the TOC:-(
> 
> 
> what's the right way to define a "scalable" single font (or two, if you have 
> a suggestion
> for a normal+bold devanagari font) in ConTeXt ?


You can use the fallback mechanism to use a different font for characters which 
aren’t available in the main font.

\definefallbackfamily [mainface] [rm] [Devanagari MT] 
[range=devanagari,scale=1.2]
\definefontfamily [mainface] [rm] [TeX Gyre Pagella]

\definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[mainface]

\starttext
Danke – धन्यवाद
\stoptext

Wolfgang


test.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] \starttyping font changes when option=color

2015-04-09 Thread Wolfgang Schuster

> Am 09.04.2015 um 14:02 schrieb robin.kirk...@csiro.au:
> 
> Folks,
> 
> Switching the option to “color” in \setuptyping has the effect of resetting 
> the font from typewriter (constant width) to paragraph font (if you uncomment 
> it in the following MWE).
> 
> I don’t see why that should be. Is it a bug or can someone explain?

You select syntax highlighting for a language which doesn’t exist.

> My intent was to use syntax colourisation for code snippets.

When you want to highlight TeX code use “option=TEX” and for Lua code use 
“option=LUA”.

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] \starttyping font changes when option=color

2015-04-09 Thread Robin.Kirkham
Folks,

Switching the option to “color” in \setuptyping has the effect of resetting the 
font from typewriter (constant width) to paragraph font (if you uncomment it in 
the following MWE).

I don’t see why that should be. Is it a bug or can someone explain?

My intent was to use syntax colourisation for code snippets.

Thanks, Robin


\setupcolors[state=start]

%\setuptyping[typing][option=color]

\starttext
Normal text
\starttyping
Typing text
\stoptyping
\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] caption setup

2015-04-09 Thread Wolfgang Schuster

> Am 09.04.2015 um 13:14 schrieb Csikos Bela :
> 
> Wolfgang Schuster írta:
>> 
>>> Am 09.04.2015 um 00:13 schrieb Csikos Bela:
>>> 
>>> Hello:
>>> 
>>> I have to setup caption formatting for Hungarian.
>>> In Hungarian I have to write "#. figure." instead of "Figure #:"
>>> The exact word for "figure" is "ábra", so what I want exactly is:
>>> "# ábra.", eg "1. ábra".
>>> How can I do it? (If I set the document language to Hungarian, the
>>> word "ábra" is shown correctly but the order is not correct; I get ,. 
>>> ábra:#.)
>> 
>> Until the labels for hungarian are fixed you can use the \setuplabeltext 
>> command
>> to set the right labels.
>> 
>>> Another question: for caption text I want it to be justified and the last 
>>> line of the caption
>>> centered. How can I do that?
>> 
>> \useMPlibrary[dum]
>> 
>> \mainlanguage[hu]
>> 
>> \setupcaption[figure][align=last,numberstopper=.]
>> 
>> \setuplabeltext[hu][figure={, ábra}]
>> 
>> \starttext
>> 
>> \startplacefigure[title=\input{ward}]
>>  \externalfigure[dummy]
>> \stopplacefigure
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> Wolfgang, Otared:
> 
> Thank you both for your suggestions. Unfortunately the caption modification 
> works only partially. I could not make both the caption labels and the 
> references look correct.
> 
> When I use Wolfgang's example, I get the following: attachment file 
> caption-example-2.pdf.
> 
> I also tried different settings for caption label, here is the code:
> 
> 
> 
> \starttext
> 
> \setupcaption[figure][numberstopper={. ábra.}]
> \setuplabeltext[figure={}]
> 
> Code:
> 
> \verbatim{\setupcaption[figure][numberstopper={. ábra.}]} \par
> \verbatim{\setuplabeltext[figure={}]}
> 
> Result:
> 
> Reference to figure 1 (\in{figure}[figure-1])
> 
> \placefigure[][figure-1]{This is the caption}{\framed{Some figure}}
> 
> \hairline
> 
> \setupcaption[figure][suffix={. ábra},numberstopper={.}]
> \setuplabeltext[figure={}]
> 
> Code:
> 
> \verbatim{\setupcaption[figure][suffix={. ábra},numberstopper={.}]} \par
> \verbatim{\setuplabeltext[figure={}]}
> 
> Result:
> 
> Reference to figure 2 (\in{figure}[figure-2])
> 
> \placefigure[][figure-2]{This is the caption}{\framed{Another figure}}
> 
> \hairline
> 
> The caption should be: ``1. ábra. This is the caption''
> 
> The reference should be: ``(1. ábra)'' -- NO period after ``ábra'', without 
> the word ``figure''.
> 
> \stoptext
> 
> 
> 
> I attach the generated pdf output: caption-example.pdf
> 
> Unfortunately none of the above code variants gives the correct result.
> Despite of the bad "wording" I don't understand why numberstopper (.)
> doesn't appear after suffix (. ábra) in figure 2.
> 
> Any way to fix these?

Method 1 (set the left and right texts for the reference with the \in command):

 begin example
\useMPlibrary[dum]

\mainlanguage[hu]

\setuplabeltext [hu] [figure={, ábra.}]

\setupcaption[figure][numberstopper=.]

\definereferenceformat[infigure][label=figurereference]

\starttext

\startplacefigure[reference=fig:dummy,title=Dummy figure]
\externalfigure[dummy]
\stopplacefigure

See figure~1 (\in{}{ ábra}[fig:dummy]).

\stoptext
 end example


Method 2 (create your own reference command which uses a label without the 
period at the end):

 begin example
\useMPlibrary[dum]

\mainlanguage[hu]

\setuplabeltext [hu]  [figure={, ábra.}]
\setuplabeltext [hu] [figurereference={, ábra}]

\setupcaption[figure][numberstopper=.]

\definereferenceformat[infigure][label=figurereference]

\starttext

\startplacefigure[reference=fig:dummy,title=Dummy figure]
\externalfigure[dummy]
\stopplacefigure

See figure~1 (\infigure[fig:dummy]).

\stoptext
 end example


BTW: The plain TeX method for quotation marks (``…’’) doesn’t work with MkIV, 
use correct quotation marks (“…”) or the \quotation command (\quotation{…}).

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] caption setup

2015-04-09 Thread Wolfgang Schuster

> Am 09.04.2015 um 13:14 schrieb Csikos Bela :
> 
> Wolfgang Schuster írta:
>> 
>>> Am 09.04.2015 um 00:13 schrieb Csikos Bela:
>>> 
>>> Hello:
>>> 
>>> I have to setup caption formatting for Hungarian.
>>> In Hungarian I have to write "#. figure." instead of "Figure #:"
>>> The exact word for "figure" is "ábra", so what I want exactly is:
>>> "# ábra.", eg "1. ábra".
>>> How can I do it? (If I set the document language to Hungarian, the
>>> word "ábra" is shown correctly but the order is not correct; I get ,. 
>>> ábra:#.)
>> 
>> Until the labels for hungarian are fixed you can use the \setuplabeltext 
>> command
>> to set the right labels.
>> 
>>> Another question: for caption text I want it to be justified and the last 
>>> line of the caption
>>> centered. How can I do that?
>> 
>> \useMPlibrary[dum]
>> 
>> \mainlanguage[hu]
>> 
>> \setupcaption[figure][align=last,numberstopper=.]
>> 
>> \setuplabeltext[hu][figure={, ábra}]
>> 
>> \starttext
>> 
>> \startplacefigure[title=\input{ward}]
>>  \externalfigure[dummy]
>> \stopplacefigure
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> Wolfgang, Otared:
> 
> Thank you both for your suggestions. Unfortunately the caption modification 
> works only partially. I could not make both the caption labels and the 
> references look correct.
> 
> When I use Wolfgang's example, I get the following: attachment file 
> caption-example-2.pdf.
> 
> I also tried different settings for caption label, here is the code:
> 
> 
> 
> \starttext
> 
> \setupcaption[figure][numberstopper={. ábra.}]
> \setuplabeltext[figure={}]
> 
> Code:
> 
> \verbatim{\setupcaption[figure][numberstopper={. ábra.}]} \par
> \verbatim{\setuplabeltext[figure={}]}
> 
> Result:
> 
> Reference to figure 1 (\in{figure}[figure-1])
> 
> \placefigure[][figure-1]{This is the caption}{\framed{Some figure}}
> 
> \hairline
> 
> \setupcaption[figure][suffix={. ábra},numberstopper={.}]
> \setuplabeltext[figure={}]
> 
> Code:
> 
> \verbatim{\setupcaption[figure][suffix={. ábra},numberstopper={.}]} \par
> \verbatim{\setuplabeltext[figure={}]}
> 
> Result:
> 
> Reference to figure 2 (\in{figure}[figure-2])
> 
> \placefigure[][figure-2]{This is the caption}{\framed{Another figure}}
> 
> \hairline
> 
> The caption should be: ``1. ábra. This is the caption''
> 
> The reference should be: ``(1. ábra)'' -- NO period after ``ábra'', without 
> the word ``figure''.
> 
> \stoptext
> 
> 
> 
> I attach the generated pdf output: caption-example.pdf
> 
> Unfortunately none of the above code variants gives the correct result.
> Despite of the bad "wording" I don't understand why numberstopper (.)
> doesn't appear after suffix (. ábra) in figure 2.
> 
> Any way to fix these?

The \setupcaption command needs a numbercommand key which can be used to set

   \setupcaption[numbercommand=\groupedcommand{}{…}]

> The alignment=last option works. (This option is not mentioned among the 
> options at the contextgarden wiki site, 
> http://wiki.contextgarden.net/Command/setupcaptions.)

Take a look at the \setupalign page: 
http://wiki.contextgarden.net/Command/setupalign 


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] caption setup

2015-04-09 Thread Csikos Bela
Wolfgang Schuster írta:
>
>> Am 09.04.2015 um 00:13 schrieb Csikos Bela:
>> 
>> Hello:
>> 
>> I have to setup caption formatting for Hungarian.
>> In Hungarian I have to write "#. figure." instead of "Figure #:"
>> The exact word for "figure" is "ábra", so what I want exactly is:
>> "# ábra.", eg "1. ábra".
>> How can I do it? (If I set the document language to Hungarian, the
>> word "ábra" is shown correctly but the order is not correct; I get ,. 
>> ábra:#.)
>
>Until the labels for hungarian are fixed you can use the \setuplabeltext 
>command
>to set the right labels.
>
>> Another question: for caption text I want it to be justified and the last 
>> line of the caption
>> centered. How can I do that?
>
>\useMPlibrary[dum]
>
>\mainlanguage[hu]
>
>\setupcaption[figure][align=last,numberstopper=.]
>
>\setuplabeltext[hu][figure={, ábra}]
>
>\starttext
>
>\startplacefigure[title=\input{ward}]
>   \externalfigure[dummy]
>\stopplacefigure
>
>\stoptext
>
>Wolfgang

Wolfgang, Otared:

Thank you both for your suggestions. Unfortunately the caption modification 
works only partially. I could not make both the caption labels and the 
references look correct.

When I use Wolfgang's example, I get the following: attachment file 
caption-example-2.pdf.

I also tried different settings for caption label, here is the code:



\starttext

\setupcaption[figure][numberstopper={. ábra.}]
\setuplabeltext[figure={}]

Code:

\verbatim{\setupcaption[figure][numberstopper={. ábra.}]} \par
\verbatim{\setuplabeltext[figure={}]}

Result:

Reference to figure 1 (\in{figure}[figure-1])

\placefigure[][figure-1]{This is the caption}{\framed{Some figure}}

\hairline

\setupcaption[figure][suffix={. ábra},numberstopper={.}]
\setuplabeltext[figure={}]

Code:

\verbatim{\setupcaption[figure][suffix={. ábra},numberstopper={.}]} \par
\verbatim{\setuplabeltext[figure={}]}

Result:

Reference to figure 2 (\in{figure}[figure-2])

\placefigure[][figure-2]{This is the caption}{\framed{Another figure}}

\hairline

The caption should be: ``1. ábra. This is the caption''

The reference should be: ``(1. ábra)'' -- NO period after ``ábra'', without the 
word ``figure''.

\stoptext



I attach the generated pdf output: caption-example.pdf

Unfortunately none of the above code variants gives the correct result.
Despite of the bad "wording" I don't understand why numberstopper (.)
doesn't appear after suffix (. ábra) in figure 2.

Any way to fix these?

The alignment=last option works. (This option is not mentioned among the 
options at the contextgarden wiki site, 
http://wiki.contextgarden.net/Command/setupcaptions.)

Thanks,

bcsikos


caption-example-2.pdf
Description: Adobe PDF document


caption-example.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] caption setup

2015-04-09 Thread Wolfgang Schuster

> Am 09.04.2015 um 00:13 schrieb Csikos Bela :
> 
> Hello:
> 
> I have to setup caption formatting for Hungarian.
> In Hungarian I have to write "#. figure." instead of "Figure #:"
> The exact word for "figure" is "ábra", so what I want exactly is:
> "# ábra.", eg "1. ábra".
> How can I do it? (If I set the document language to Hungarian, the
> word "ábra" is shown correctly but the order is not correct; I get ,. ábra:#.)

Until the labels for hungarian are fixed you can use the \setuplabeltext command
to set the right labels.

> Another question: for caption text I want it to be justified and the last 
> line of the caption
> centered. How can I do that?

\useMPlibrary[dum]

\mainlanguage[hu]

\setupcaption[figure][align=last,numberstopper=.]

\setuplabeltext[hu][figure={, ábra}]

\starttext

\startplacefigure[title=\input{ward}]
\externalfigure[dummy]
\stopplacefigure

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