Re: [NTG-context] troubles with latin modern and mutool

2020-03-26 Thread Damien Thiriet
Hi Pablo, Hi list,

\filterpages made the job and saved me a lot of nerves, another ConTeXt
great command!

Many thanks for the tips,


Damien Thiriet

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] startcombination place reference left of images instead below

2020-03-26 Thread Wolfgang Schuster

Christoph Hintermüller schrieb am 26.03.2020 um 21:23:

Hi Wolfgang


On Mon, 2020-03-23 at 15:56 +0100, Wolfgang Schuster wrote:


This is not possible but maybe the following is a alternative for
you.

The tabulate can be used in combination with an item group to have
auto
generated numbers in a given column.

\starttext

\startitemize[a][stopper=)]
\starttabulate
\NI First  entry \NC\NR
\NI Second entry \NC\NR
\NI Third  entry \NC\NR
\NI Fourth entry \NC\NR
\stoptabulate
\stopitemize

\stoptext




Just a short Followup and Summary.

First, standard packages in Ubuntu Bionic including the Packages built
by JonathonF for TeXLive 2018 (*) seem to not yet provide \NI.

(*) The 2019 Packages are broken in the JonathonF repo

Second the non documented \itemtag which should be replaced by \NI
works on my installation

Third i Figured \itemtag also works for \starttable not just for
\starttabulate.

Fourth this allows me to use \Raise / Lower commands to move \itemtag
to top of my Metapost picture which without would be placed at bottom
of column (**)

(**) I did not manage to get same effect with A{} (alignment) style on
tabulate. I fear i did not get how that works or \itemtag simply
ignores it which would explain amongst others why it stayed
undocumented.

Anyway i do get my Subfigure tags positioned and aligned the way i need
it.


\setupexternalfigure[location=default]

\starttext

\starttabulate[|l|l|]
\NC A \NC \tbox{\externalfigure[hacker]} \NC\NR
\NC B \NC \tbox{\externalfigure[cow]}\NC\NR
\stoptabulate

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] startcombination place reference left of images instead below

2020-03-26 Thread Christoph Hintermüller
Hi Wolfgang


On Mon, 2020-03-23 at 15:56 +0100, Wolfgang Schuster wrote:
> 
> This is not possible but maybe the following is a alternative for
> you.
> 
> The tabulate can be used in combination with an item group to have
> auto 
> generated numbers in a given column.
> 
> \starttext
> 
> \startitemize[a][stopper=)]
>\starttabulate
>\NI First  entry \NC\NR
>\NI Second entry \NC\NR
>\NI Third  entry \NC\NR
>\NI Fourth entry \NC\NR
>\stoptabulate
> \stopitemize
> 
> \stoptext
> 


Just a short Followup and Summary.

First, standard packages in Ubuntu Bionic including the Packages built
by JonathonF for TeXLive 2018 (*) seem to not yet provide \NI.

(*) The 2019 Packages are broken in the JonathonF repo

Second the non documented \itemtag which should be replaced by \NI
works on my installation

Third i Figured \itemtag also works for \starttable not just for
\starttabulate.

Fourth this allows me to use \Raise / Lower commands to move \itemtag
to top of my Metapost picture which without would be placed at bottom
of column (**)

(**) I did not manage to get same effect with A{} (alignment) style on
tabulate. I fear i did not get how that works or \itemtag simply
ignores it which would explain amongst others why it stayed
undocumented.

Anyway i do get my Subfigure tags positioned and aligned the way i need
it.

Thank you very much again.

Best Xristoph


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \setupinteraction v commas

2020-03-26 Thread Tomas Hala
Thu, Mar 26, 2020 ve 06:34:28PM +0100 Wolfgang Schuster napsal(a):
# Tomas Hala schrieb am 26.03.2020 um 16:40:
# >Hi all,
# >
# >I used the following MWE for creating the metainformation in PDF:
# >
# >\setupinteraction
# >   [title={a, b, c},
# >subtitle={a, b, c},
# >author={a, b, c},
# >keyword={a, b, c},
# >]
# >
# >\starttext
# >blah
# >\stoptext
# >
# >While the title, subtitle and author contain the text without any change,
# >in keyword all commas has been erased. Is this the expected behaviour?
# 
# Yes, the comma is used as separator for keywords and replaced with a
# space in the metadata.
# 
# >If yes, how could I write command inside?
# 
# ???
#
# Wolfgang

I would like to have commas in metadata attribute keywords
because space is confusing -- one cannot distinguish 
a space as a separator from a space as a part of a keyword.

Tomáš
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \setupinteraction v commas

2020-03-26 Thread Wolfgang Schuster

Tomas Hala schrieb am 26.03.2020 um 16:40:

Hi all,

I used the following MWE for creating the metainformation in PDF:

\setupinteraction
   [title={a, b, c},
subtitle={a, b, c},
author={a, b, c},
keyword={a, b, c},
]

\starttext
blah
\stoptext

While the title, subtitle and author contain the text without any change,
in keyword all commas has been erased. Is this the expected behaviour?


Yes, the comma is used as separator for keywords and replaced with a 
space in the metadata.



If yes, how could I write command inside?


???

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \setupinteraction v commas

2020-03-26 Thread Tomas Hala
Hi all, 

I used the following MWE for creating the metainformation in PDF:

\setupinteraction
  [title={a, b, c},
   subtitle={a, b, c},
   author={a, b, c},
   keyword={a, b, c},
]

\starttext 
blah
\stoptext

While the title, subtitle and author contain the text without any change, 
in keyword all commas has been erased. Is this the expected behaviour?
If yes, how could I write command inside?

Best wishes,

Tomáš
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \startquotation and citations

2020-03-26 Thread Wolfgang Schuster

Michael Guravage schrieb am 26.03.2020 um 15:31:

Thank you Wolfgang,

Now is there a way to persuade the quotation marks to protrude?


You can either enable hanging punctuation for the bodyfont (which is 
done with \definefontfeature and \setupalign) or put the quotation mark 
in a box and move it to the left (which can be done with \llap)


%\definefontfeature[default][default][protrusion=quality]
\definefontfeature[default][default][protrusion=punctuation]

\setupalign[hanging]

\showframe[text][text]

\starttext

xxx

“xxx”

\dontleavehmode\llap{“}xxx”

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \startquotation and citations

2020-03-26 Thread Michael Guravage
Thank you Wolfgang,

Now is there a way to persuade the quotation marks to protrude?

Cheers,

Michael



\startsetups[userdata:extendedquotation]
   \startnarrow[]
 “\getinlineuserdata”\userdataparameter{source}
   \stopnarrow
\stopsetups

\defineuserdataalternative
   [extendedquotation]
   [renderingsetup=userdata:extendedquotation]

\defineuserdata
   [extendedquotation]
   [alternative=extendedquotation,
before=\blank,
after=\blank]

\starttext

\input tufte \blank

\startquotation  %% Quotation marks protrude
  \input tufte
\stopquotation

\startuserdata[extendedquotation][source=\footnote{See Tufte …}]  %%
Quotation marks do not protrude
  \input tufte
\stopuserdata

\stoptext



On Thu, Mar 26, 2020 at 2:56 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Michael Guravage schrieb am 26.03.2020 um 14:29:
> > Greetings,
> >
> > I would like to add a citation to a block quotation. Wolfgang proposed a
> > solution
> > back in
> > May 2011. With \star-stopquotation, the left quotation mark protrudes to
> > the left of the text. With Wolfgang's solution, the quotation marks are
> > aligned with the text. For consistency's sake, I need cited and
> > non-cited quotations to appear alike.
> >
> > A lot has changed in the last nine years. Is there a newer way to
> > achieve this behavior?
>
> You can use the userdata environment to create a custom environment with
> optional arguments.
>
> \startsetups[userdata:extendedquotation]
>\startnarrow[middle=4em]
>“\getinlineuserdata”\userdataparameter{source}
>\stopnarrow
> \stopsetups
>
> \defineuserdataalternative
>[extendedquotation]
>[renderingsetup=userdata:extendedquotation]
>
> \defineuserdata
>[extendedquotation]
>[alternative=extendedquotation,
> before=\blank,
> after=\blank]
>
> \starttext
>
> \input tufte
>
> \startuserdata[extendedquotation][source=\footnote{See Tufte …}]
> \input tufte
> \stopuserdata
>
> \input tufte
>
> \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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>


user.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \startquotation and citations

2020-03-26 Thread Wolfgang Schuster

Michael Guravage schrieb am 26.03.2020 um 14:29:

Greetings,

I would like to add a citation to a block quotation. Wolfgang proposed a 
solution 
back in 
May 2011. With \star-stopquotation, the left quotation mark protrudes to 
the left of the text. With Wolfgang's solution, the quotation marks are 
aligned with the text. For consistency's sake, I need cited and 
non-cited quotations to appear alike.


A lot has changed in the last nine years. Is there a newer way to 
achieve this behavior?


You can use the userdata environment to create a custom environment with 
optional arguments.


\startsetups[userdata:extendedquotation]
  \startnarrow[middle=4em]
  “\getinlineuserdata”\userdataparameter{source}
  \stopnarrow
\stopsetups

\defineuserdataalternative
  [extendedquotation]
  [renderingsetup=userdata:extendedquotation]

\defineuserdata
  [extendedquotation]
  [alternative=extendedquotation,
   before=\blank,
   after=\blank]

\starttext

\input tufte

\startuserdata[extendedquotation][source=\footnote{See Tufte …}]
\input tufte
\stopuserdata

\input tufte

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \startquotation and citations

2020-03-26 Thread Michael Guravage
Greetings,

I would like to add a citation to a block quotation. Wolfgang proposed a
solution back
in May 2011. With \star-stopquotation, the left quotation mark protrudes to
the left of the text. With Wolfgang's solution, the quotation marks are
aligned with the text. For consistency's sake, I need cited and non-cited
quotations to appear alike.

A lot has changed in the last nine years. Is there a newer way to
achieve this behavior?

Cheers,

Michael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___