ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* startcombination place reference left of images instead below
@ 2020-03-23 14:27 Christoph Hintermüller
  2020-03-23 14:56 ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Christoph Hintermüller @ 2020-03-23 14:27 UTC (permalink / raw)
  To: ntg-context

Hi
When using refernece instead of column mode in start combination:
Is it possible to tell context to place the reference label left or
right of the picture/table etc and not below?
Or do i have to use multiple columns and put reference manually and
how?

Following:

    +----------------------------+
a)  | first comination element   |
    +----------------------------+

    +----------------------------+
b)  | second comination element  |
   
+----------------------------+

instead of:
    +----------------------------+
    | first comination element   |
    +----------------------------+
               (a)
    +----------------------------+
    | second comination element  |
   
+----------------------------+
               (b)


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: startcombination place reference left of images instead below
  2020-03-23 14:27 startcombination place reference left of images instead below Christoph Hintermüller
@ 2020-03-23 14:56 ` Wolfgang Schuster
       [not found]   ` <f1f1c269922804f3ea7cadd20b0b6effa7a16853.camel@out-world.com>
  2020-03-26 20:23   ` Christoph Hintermüller
  0 siblings, 2 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2020-03-23 14:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Christoph Hintermüller

Christoph Hintermüller schrieb am 23.03.2020 um 15:27:
> Hi
> When using refernece instead of column mode in start combination:
> Is it possible to tell context to place the reference label left or
> right of the picture/table etc and not below?
> Or do i have to use multiple columns and put reference manually and
> how?
> 
> Following:
> 
>      +----------------------------+
> a)  | first comination element   |
>      +----------------------------+
> 
>      +----------------------------+
> b)  | second comination element  |
>     
> +----------------------------+
> 
> instead of:
>      +----------------------------+
>      | first comination element   |
>      +----------------------------+
>                 (a)
>      +----------------------------+
>      | second comination element  |
>     
> +----------------------------+
>                 (b)
> 
> 
> Best
> Xristoph

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

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: startcombination place reference left of images instead below
       [not found]   ` <f1f1c269922804f3ea7cadd20b0b6effa7a16853.camel@out-world.com>
@ 2020-03-23 16:20     ` Wolfgang Schuster
       [not found]       ` <57b9d606f51eb2be800388a8479cde30d49e3180.camel@out-world.com>
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2020-03-23 16:20 UTC (permalink / raw)
  To: Christoph Hintermüller; +Cc: NTG-Context ConTeXt users

Christoph Hintermüller schrieb am 23.03.2020 um 17:09:
> 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
>>
> I'm not sure if I'm doing something wrong or if I want something which
> is not possible at all
>
> I tired to ammend your above example as follows
>
> \placetable[]
> [fig:somefig]
> {some caption}
> {
> \startuseMPgraphic{heap_add_start_with_3}
>      input images/heap;
> \stopuseMPgraphic
> \startitemize[a][stopper=)]
>       \starttabulate
>       \NI { \useMPgraphic{heap_add_start_with_3} } \NC\NR
>       \stoptabulate
> \stopitemize
> }
>
> But id do get an "Undefined control sequence" for the \stoptabulate
> command.
>
> Is it cause i try to use \useMPgraphic inside tabulate column? or is it
> something else.

You have to provide a *working* minimal example because the following 
dummy graphic works.

\starttext

\startplacetable[title={some caption},reference={fig:somefig}]
     \startuseMPgraphic{heap_add_start_with_3}
         draw fullcircle scaled 4cm ;
     \stopuseMPgraphic
     \startitemize[a][stopper=)]
         \starttabulate
         \NI \useMPgraphic{heap_add_start_with_3} \NC\NR
         \stoptabulate
     \stopitemize
\stopplacetable

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: startcombination place reference left of images instead below
       [not found]         ` <86609ad1-36df-55e7-77b6-c9346945a7d9@gmail.com>
@ 2020-03-24 10:01           ` Christoph Hintermüller
  2020-03-24 12:34             ` Pablo Rodriguez
  2020-03-24 21:23           ` Christoph Hintermüller
  1 sibling, 1 reply; 9+ messages in thread
From: Christoph Hintermüller @ 2020-03-24 10:01 UTC (permalink / raw)
  To: ntg-context

Hi Wolfgang

> Did my first tabulate/itemize example work for you?
> 
> I have no problem including your graphic in a table although the
> size 
> isn't perfect.
> 
> \starttext
> 
> \startplacetable[title={some caption},reference={fig:somefig}]
>      \startitemize[a][stopper=)]
>          \starttabulate
>          \NI \startMPcode input heap ; \stopMPcode \NC\NR
>          \stoptabulate
>      \stopitemize
> \stopplacetable
> 
> \stoptext
> 
> Without the actual error message it's hard to tell what's wrong but
> I 
> guess your installation doesn't know the \NI command for tabulate.
> 
> The best would be to update your three year old ConTeXt version.
> 


It seems so
I tried to update everything using the latest distributeion of texlive
for Ubuntu 18.04 form launchpad.net jonathanf but it seems as he does
not really verify the context and luatex packages. 

Do you know a wroking ubuntu debian repo/ppa for installing context and
all related? 
Alternatively as i do get lua errors what luaversion would you
recommend and what additional lua packages are necessary possibly not
considered by jonathanf?

What alternative installation packages do you recommend exempt
compiling from sources? 

Best Xristoph


-- 
-- 
Christoph Hintermüller
Dipl.-Ing. Dr. MBA. MSc
JKU Institute of Biomedical Mechatronics
Altenberger Straße 69,
4040 Linz, Austria,
Cell: +43 650 8827347
Tel. +43 732 2468 4813
Email: christoph.hintermueller@jku.at

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: startcombination place reference left of images instead below
  2020-03-24 10:01           ` Christoph Hintermüller
@ 2020-03-24 12:34             ` Pablo Rodriguez
  2020-03-24 21:07               ` Christoph Hintermüller
  0 siblings, 1 reply; 9+ messages in thread
From: Pablo Rodriguez @ 2020-03-24 12:34 UTC (permalink / raw)
  To: ntg-context

On 3/24/20 11:01 AM, Christoph Hintermüller wrote:
> [...]
> What alternative installation packages do you recommend exempt
> compiling from sources?

Hi Christoph,

I guess http://pragma-ade.com/install.htm contains what you need.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: startcombination place reference left of images instead below
  2020-03-24 12:34             ` Pablo Rodriguez
@ 2020-03-24 21:07               ` Christoph Hintermüller
  0 siblings, 0 replies; 9+ messages in thread
From: Christoph Hintermüller @ 2020-03-24 21:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thankt you very much to you both

On Tue, 2020-03-24 at 13:34 +0100, Pablo Rodriguez wrote:
> On 3/24/20 11:01 AM, Christoph Hintermüller wrote:
> > [...]
> > What alternative installation packages do you recommend exempt
> > compiling from sources?
> 
> Hi Christoph,
> 
> I guess http://pragma-ade.com/install.htm contains what you need.
> 



But on production system i do prefer pre packaged stuff which is
updated automatically and does not need manual install. I managed to
update to 2018 version which also does not recognize \NI. The 2019
packages better the ones from the texlive ppa of Jonathanf are broken
at least for context. I do get errors in missing module files for lua
and others. I think i have to not use \NI and tabluate for now. 

Thanks anyway

Best Xristoph

-- 
-- 
Christoph, Julia, R. Hintermüller
Eisenhandstraße 33/23
4020 Linz
Austria
Tel.: +43 650 8827347
mail: christoph@out-world.com
mail: julia@out-world.com
www: http://www.out-world.com

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: startcombination place reference left of images instead below
       [not found]         ` <86609ad1-36df-55e7-77b6-c9346945a7d9@gmail.com>
  2020-03-24 10:01           ` Christoph Hintermüller
@ 2020-03-24 21:23           ` Christoph Hintermüller
  1 sibling, 0 replies; 9+ messages in thread
From: Christoph Hintermüller @ 2020-03-24 21:23 UTC (permalink / raw)
  To: ntg-context

Hi Wolfgang
On Mon, 2020-03-23 at 17:56 +0100, Wolfgang Schuster wrote:
> 
> 
> Did my first tabulate/itemize example work for you?
> 
> I have no problem including your graphic in a table although the
> size 
> isn't perfect.
> 
> \starttext
> 
> \startplacetable[title={some caption},reference={fig:somefig}]
>      \startitemize[a][stopper=)]
>          \starttabulate
>          \NI \startMPcode input heap ; \stopMPcode \NC\NR
>          \stoptabulate
>      \stopitemize
> \stopplacetable
> 
> \stoptext
> 
> Without the actual error message it's hard to tell what's wrong but
> I 
> guess your installation doesn't know the \NI command for tabulate.
> 
> The best would be to update your three year old ConTeXt version.
> 

I finally managed to update to 2018 for JonathanF ubuntu ppa the most
recent texlive packages are broken in terms of context missing
dependencies and dlls.

The wiki tells that \NI should be available since fall 2017 but seems
as if in texlive 2018 still not incorporated but wiki (
https://wiki.contextgarden.net/Tabulate) also talks about undocumented
\itemtag and that works for my installation.

\starttext

\startplacetable[title={some caption},reference={fig:somefig}]
     \startitemize[a][stopper=)]
         \starttabulate
         \NC \itemttag \NC \startMPcode input heap ; \stopMPcode \NC\NR
         \stoptabulate
     \stopitemize
\stopplacetable
\stoptext

Thanks again 

Xristoph

-- 
-- 
Christoph Hintermüller
Dipl.-Ing. Dr. MBA. MSc
JKU Institute of Biomedical Mechatronics
Altenberger Straße 69,
4040 Linz, Austria,
Cell: +43 650 8827347
Tel. +43 732 2468 4813
Email: christoph.hintermueller@jku.at

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: startcombination place reference left of images instead below
  2020-03-23 14:56 ` Wolfgang Schuster
       [not found]   ` <f1f1c269922804f3ea7cadd20b0b6effa7a16853.camel@out-world.com>
@ 2020-03-26 20:23   ` Christoph Hintermüller
  2020-03-26 20:48     ` Wolfgang Schuster
  1 sibling, 1 reply; 9+ messages in thread
From: Christoph Hintermüller @ 2020-03-26 20:23 UTC (permalink / raw)
  To: Wolfgang Schuster, mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: startcombination place reference left of images instead below
  2020-03-26 20:23   ` Christoph Hintermüller
@ 2020-03-26 20:48     ` Wolfgang Schuster
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2020-03-26 20:48 UTC (permalink / raw)
  To: Christoph Hintermüller; +Cc: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-26 20:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 14:27 startcombination place reference left of images instead below Christoph Hintermüller
2020-03-23 14:56 ` Wolfgang Schuster
     [not found]   ` <f1f1c269922804f3ea7cadd20b0b6effa7a16853.camel@out-world.com>
2020-03-23 16:20     ` Wolfgang Schuster
     [not found]       ` <57b9d606f51eb2be800388a8479cde30d49e3180.camel@out-world.com>
     [not found]         ` <86609ad1-36df-55e7-77b6-c9346945a7d9@gmail.com>
2020-03-24 10:01           ` Christoph Hintermüller
2020-03-24 12:34             ` Pablo Rodriguez
2020-03-24 21:07               ` Christoph Hintermüller
2020-03-24 21:23           ` Christoph Hintermüller
2020-03-26 20:23   ` Christoph Hintermüller
2020-03-26 20:48     ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).