[NTG-context] about SimpleSlides

2019-07-30 Thread Atsuhito Kohda
Hi all,
SimpleSlides is very useful for novice users so I do use it.
But I encountered few problems which, I'm afraid, might be known.

When we use a style BigNumber (or Embossed), an error occured:
-
tex error   > tex error on line 87 in file
/usr/share/texmf/tex/context/third/simpleslides/s-simpleslides-BigNumber.tex:
! Undefined control sequence

l.87 \beginOLDTEX
-
I modified s-simpleslides-BigNumber.tex as follows:
comment out from line #87 to #99
% \beginOLDTEX
...
% \endLUATEX
except line #98
\definefontsynonym  [BigNumberFont] [name:texgyreherosbold]
then it seems to work fine.  But I suspect unconditional
definition is not good so I'd like to know the correct fix.

Another problem is with style Split. Browsing simpleslides.pdf,
I think date, author, title and page number should be displayed
on each slide but, in fact, we can't see them except page number.

It seems, e.g. the following in s-simpleslides-Split.tex
fails to get the "date".
draw
\sometxt[simpleslides:sometxt:left]{\getvariable{simpleslides:title}{date}}
I think it is very helpful to see date, title on a slide
so I'd like to know the fix.

Thanks in advance.
Best regards,
Atsuhito Kohda
___
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] Figure labels in combinations

2019-07-30 Thread Luca Mauri
I am trying to typeset two or more figures next to each other, inside a 
floating environment, each with its own label. I am familiar with a mechanism 
of the form

\startplacefigure[reference=pic]
\startcombination[3*1]
{figure 1}{a}
{figure 2}{b}
{figure 3}{c}
\stopcombination
\stopplacefigure

which then requires
\in{figure}{b}[pic]
to reference, as documented on the context wiki. The problem with this 
mechanism is that if figure 2, say, is moved elsewhere and ts label becomes 
"d", all references to it have to be corrected by hand. Is there a mechanism to 
reference directly the figures inside, without having to depend on the outer 
float? What I am thinking of, is an hypothetical "\placeinlinefigure" command, 
so that one could write, in analogy with \placefigure,
\startplacefigure[number=no]
\startcombination[3*1]
{\placeinlinefigure[pic1]{figure 1}}{}
{\placeinlinefigure[pic2]{figure 2}}{}
{\placeinlinefigure[pic3]{figure 3}}{}
\stopcombination
\stopplacefigure

so that one could then use
\in[pic1]
Of course, there is then the issue of having the ability to use the same 
counter of the placefigure environment, and of disabling the combination 
caption. I could not find anything along these lines in the documentation; also 
tried to concoct a "nonfloating" float or to use an enumeration, but was not 
able to come up with a solution.
Luca
___
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] (again) inmargin attachments in notes

2019-07-30 Thread Pablo Rodriguez
On 7/29/19 10:27 PM, Hans Hagen wrote:
> On 7/29/2019 9:33 PM, Pablo Rodriguez wrote:
> [...]
> b\footnote{x\inleftmargin[scope=local]{\attachment[location=high,file=i-context.pdf]}}

Many thanks for your reply, Hans.

I didn’t know that placing margin data in notes was so complex.

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


Re: [NTG-context] Figure labels in combinations

2019-07-30 Thread Alan Braslau
On Tue, 30 Jul 2019 11:20:03 +0200
Luca Mauri  wrote:

> I am trying to typeset two or more figures next to each other, inside a 
> floating environment, each with its own label. I am familiar with a mechanism 
> of the form
> 
> \startplacefigure[reference=pic]
> \startcombination[3*1]
> {figure 1}{a}
> {figure 2}{b}
> {figure 3}{c}
> \stopcombination
> \stopplacefigure

This does not answer your question, but do you know about:

\startplacefigure
  \startcombination [nx=3,alternative=label]
{figure 1}
{figure 2}
{figure 3}
  \stopcombination
\stopplacefigure

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
___


[NTG-context] In a two column layout, activate line numbering for one column only

2019-07-30 Thread Oliver von Criegern

Dear list members,

I am trying to recreate a layout for some dictionary with ConTeXt. It is 
a two column layout with line numbering between the columns, that is, 
there is only one numbering for both columns. How can I do this with 
ConTeXt?


I would need either an option to activate line numbering only for one 
column, which, as far as I can see, does not exist; or I could use the 
"command" option for "\setuplinenumbering" to make the line numbers 
dissappear for one column, but then I would need some way to decide 
whether a line number belongs to the first or to the second column, some 
command that returns to me the number of the actual column, which I 
can't find, too.


For illustration, I give a minimal example:


||\setuppapersize[A4][A4]\setupbodyfont[9pt]||
|||\setupcolumns[n=2, distance=1cm, ]\setuplinenumbering[step=5, 
method=page, location=right, align=flushright, 
width=.25cm]\starttext\startcolumns\startlinenumbering\dorecurse{10}{\inputlorem}\par\stoplinenumbering\stopcolumns\stoptext|||



In the result, there are (as is to be expected) line numbers between 
both columns and also to the right of the second column. How can I get 
rid of the latter ones?


(For the pdf result see also: 
https://tex.stackexchange.com/questions/501269/context-how-to-have-line-numbering-in-a-two-column-layout-for-one-column-only). 



Best regards,
Oliver.


||

___
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] Figure labels in combinations

2019-07-30 Thread Luca Mauri
Thank you Alan. Yes, I have seen the possibility of generating automatically 
the labels but unfortunately the problem remains when you move the subfigure. 
In the meantime, I have tried this:

\startplacefigure [number=no]
\startcombination [nx=3]
{figure 1} 
{\incrementcounter[figure]\textreference[pic1]{\getnumber[figure]}\in[pic1]}
{figure 2} {...similar...}
{figure 3} {...similar...}
\stopcombination
\stopplacefigure

and then
\in[pic1]
in the body of the text, which looked very promising; the trouble is that for 
some reason that i do not understand, the \in[pic1] in the label of the picture 
works ok, but anywhere else in the text, either before of after the placefigure 
environment, it generates a reference to the last picture produced, that is 
pic3 after and pic0, say, before. I though it was aproblem of expanding the 
figure counter and added \expanded either before \getnumber of \textreference, 
but with no luck...
Luca
On Jul 30 2019, at 4:52 pm, Alan Braslau  wrote:
> On Tue, 30 Jul 2019 11:20:03 +0200
> Luca Mauri  wrote:
>
> > I am trying to typeset two or more figures next to each other, inside a 
> > floating environment, each with its own label. I am familiar with a 
> > mechanism of the form
> > \startplacefigure[reference=pic]
> > \startcombination[3*1]
> > {figure 1}{a}
> > {figure 2}{b}
> > {figure 3}{c}
> > \stopcombination
> > \stopplacefigure
>
>
> This does not answer your question, but do you know about:
> \startplacefigure
> \startcombination [nx=3,alternative=label]
> {figure 1}
> {figure 2}
> {figure 3}
> \stopcombination
> \stopplacefigure
>
> 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
___