Re: [NTG-context] Strange vertical result with itemize in columns

2018-09-03 Thread Wolfgang Schuster



Mikael P. Sundqvist schrieb am 03.09.18 um 14:37:

Hi,

the following example generates (with latest standalone) the attached 
result. As you can see, the final item is not correctly aligned 
vertically. Am I doing something wrong, or is it a bug?


/Mikael

PS Yes, I use \displaystyle in the real example, but the same error 
exist with this simpler example.


\starttext
\startTEXpage[offset=2bp]
\startitemize[n]
\startitem
Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits
\startitemize[a,columns,three][left=,right={)},stopper=]


\startitemize[a,columns,three][left=,right={)},stopper=,grid=line]

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] Problem with simplefonts

2018-09-03 Thread Wolfgang Schuster
Take a look at my answer where I use the \definefontfamily command 
(which uses selectfont as internal name).


Wolfgang


Mari Voipio schrieb am 03.09.18 um 09:48:

On Thu, Aug 30, 2018 at 2:40 PM Hans Hagen  wrote:

don't use t-simplefonts, use \selectfont instead (its replacement)

I can't find \selectfont on the wiki, can I get an example on the
usage? My attempts haven't been successful, there's probably something
I don't understand.


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

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

[NTG-context] ConTeXt ignores crop in some pdf graphics

2018-09-03 Thread Mari Voipio
Hello!

After updating ConTeXt I found out that it has suddenly started to
ignore the crop in some of my pdf graphics. These graphics look ok
(=cropped) in Acrobat and SumatraPDF, but when the graphic is placed,
the cropbox (?) is ignored and there's all this blank space around the
graphic, space that shouldn't be there. This is new behaviour, all of
the graphics worked as expected in my previous ConTeXt (from September
2017). Minimal sample is attached to this email, hopefully it is small
enough to make it to the mailing list.

After a quick look it seems that all the problematic graphics are pdf
output from CorelDraw, from different versions of that. Oddly the
problem doesn't affect all cropped graphics that originate from
CorelDraw, just some of them. There are even graphics that have been
outputted from one and same file where one works and the other
doesn't.

If this only concerns files from Corel (and not those I cropped in
Acrobat), I can fix it in Corel if necessary. However, it would be
preferable if ConTeXt can be forced to take the cropping into account.
I tried looking for a solution on the wiki, but it wasn't very helpful
(or I don't know what I'm looking for). I thought adding something to
\externalfigure might do the trick, but there doesn't seem to be a
suitable key.


Thanks,
Mari


cropping_problem.pdf
Description: Adobe PDF document


cropping_problem.tex
Description: Binary data


ex.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
___

[NTG-context] Errors while processing xml file

2018-09-03 Thread Jan U. Hasecke
Hi all,

some time ago I started a project to learn more about xml processing.
I thought it would be nice to typeset texts from the German Text Archive.

So I setup an environment to do this.
https://github.com/juh2/tei-style-dta-context

It's a very poor project, because most of the code is taken from
https://github.com/ousia/from-pandoc-to-context

I started to get an idea how xml processing works. Now after some
upgrades of context I get an error message that confuses me,

It's in the attached zip file.

As you can see I had to type enter a few times, but the file finally
processes to the end.

The error message seems to point to commented lines, and I don't
understand this.

Do you have any hints?

juh
<>
___
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] Strange vertical result with itemize in columns

2018-09-03 Thread Jeong Dal
Dear Mikael,

I have had the similar experience.
Hans suggested another command “\NI” and “\itemtag” for this case.
Please check the following mail and wiki.

https://mailman.ntg.nl/pipermail/ntg-context/2017/089872.html 


http://wiki.contextgarden.net/Tabulate 

Best regards,

Dalyoung

> 2018. 9. 3. 오후 9:38, ntg-context-requ...@ntg.nl 작성:
> 
> Hi,
> 
> the following example generates (with latest standalone) the attached
> result. As you can see, the final item is not correctly aligned vertically.
> Am I doing something wrong, or is it a bug?
> 
> /Mikael
> 
> PS Yes, I use \displaystyle in the real example, but the same error exist
> with this simpler example.
> 
> \starttext
> \startTEXpage[offset=2bp]
> \startitemize[n]
> \startitem
> Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits
> \startitemize[a,columns,three][left=,right={)},stopper=]
> \startitem $\lim_{x\to 0}\frac{f(x)}{g(x)}$,\stopitem
> \startitem $\lim_{x\to+\infty}\frac{f(x)}{g(x)}$,\stopitem
> \startitem $\lim_{x\to 0}f(x)$.\stopitem
> \stopitemize
> \stopitem
> \stopitemize
> \stopTEXpage
> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Strange vertical result with itemize in columns

2018-09-03 Thread Mikael P. Sundqvist
Hi,

the following example generates (with latest standalone) the attached
result. As you can see, the final item is not correctly aligned vertically.
Am I doing something wrong, or is it a bug?

/Mikael

PS Yes, I use \displaystyle in the real example, but the same error exist
with this simpler example.

\starttext
\startTEXpage[offset=2bp]
\startitemize[n]
\startitem
Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits
\startitemize[a,columns,three][left=,right={)},stopper=]
\startitem $\lim_{x\to 0}\frac{f(x)}{g(x)}$,\stopitem
\startitem $\lim_{x\to+\infty}\frac{f(x)}{g(x)}$,\stopitem
\startitem $\lim_{x\to 0}f(x)$.\stopitem
\stopitemize
\stopitem
\stopitemize
\stopTEXpage
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to cite online websites (reloaded)

2018-09-03 Thread cryo shock
This is my file .tex file now:

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=sample]
\setuppublications[numbering=yes]

\starttext
As \cite[hh2010] already indicated...

\completepublications
\stoptext

In the same folder is my sample.bib, which I copied from the CTX
distribution. Example:

@ELECTRONIC{hh2010,
  author = hh,
  year = {2010},
  title = {Metafun. \CONTEXT\ mkiv},
  url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
}

This is the output from the PDF-file:

*As [[error 2]] already indicated...*

The output in the placelist section (no entries):

*1 References*

I don't see what I am doing wrong. This is how I updated CTX:

first-setup -engine=luatex -modules=all -fonts=all

to version *2018.09.01 23:10*

Thanks for help in advance, Lars.


Am Mo., 3. Sep. 2018 um 07:47 Uhr schrieb Alan Braslau <
braslau.l...@comcast.net>:

> \usemodule[bib]
> \usemodule[bibltx]
> \setupbibtex[database=sample]
>
> > On 3 Sep 2018, at 01:43, Lars  wrote:
> >
> > Hi Alan,
> > I don't understand. What is it that makes my code mkii?
> >
> > \usebtxdataset[default][My_file.bib]
> > \usebtxdefinitions[aps]
> > \setupbtxlist[aps][
> >   %alternative=,
> >   width=fit,
> >   distance=.5em,
> >   %distance=0pt,
> >   margin=0em,
> > ]
> >
> > \starttext
> >   Hallo Welt! \cite[lnkHWelt]
> >
> >   \startappendices
> > \startsection[title={Pubs},marking={}]
> >   \placelistofpublications[method=dataset]
> > \stopsection
> >   \stopappendices
> > \stoptext
> > And that's in My_file.bib:
> >
> > @Misc{lnkHWelt,
> >   Note = "zuletzt abgerufen am 5. Aug. 2018",
> >   Url = "http://wiki.contextgarden.net;
> > }
> >
> > What would be the mkiv way?
> >
> > Thanks in advance, Lars.
> >
> >
> > Am 02/09/2018 um 23:56 schrieb Alan Braslau:
> >> You are using the old mkii BibTeX module, not the bibliography database
> system that is part of the mkiv core.
> >>
> >> Alan
> >>
> >>
> >>
> >
> ___
> > 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
> >
> ___
>
>
> ___
> 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
>
> ___
___
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] Problem with simplefonts

2018-09-03 Thread Mari Voipio
On Thu, Aug 30, 2018 at 2:40 PM Hans Hagen  wrote:
> don't use t-simplefonts, use \selectfont instead (its replacement)

I can't find \selectfont on the wiki, can I get an example on the
usage? My attempts haven't been successful, there's probably something
I don't understand.


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

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