[NTG-context] Proper presentations with stepping

2020-05-26 Thread Thomas Welter
The presentation examples with stepping always seem to lack page and section 
numbers because \incrementcounter gets fired on every stepping iteration. For 
that I adjusted a few lines in spresent-steps.mkiv. You can see an 
(scientifically-styled) example presentation here: 
https://github.com/WelterDevelopment/present-steps-context

Also I would like to propagate the idea of removing the sectioning heads from 
the page content and move them to the page header. This does simplify a lot of 
issues in (non-javascript) stepped presentations:
\setuphead[section,subsection][page=yes, placehead=empty]
\setupheadertexts[{\getmarking[sectionnumber] \getmarking[section] -- 
\getmarking[subsectionnumber] \getmarking[subsection]}][]

Maybe something like this can be added as a new example presentation in 
texmf-context\doc\context\presentations\examples because the current 
present-steps-001 is a little too minimal.

If you have any ideas to automate the prevention of auto-incrementing the 
counters for floats and equations, please don't hesitate to commit changes.

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


Re: [NTG-context] List of Symbols/Abbreviations/Glosses with more then two entries

2019-10-11 Thread Thomas Welter
text

\startfrontmatter

\startsubject[title=Content]
\placecontent
\stopsubject

\startsection[title=List of Tables]
\placelistoftables
\stopsection

\startsection[title=List of Symbols]
\placelistofsymbols
\stopsection

\stopfrontmatter

\startbodymatter

\startsection[title=Symbols]
\startsubsection[title=Using the Symbols]
\placeformula
\startsubformulas
\startformula
\startalign
\NC \frac{d\sym[m]}{d\sym[t]} \NC = \sym[beta] \cdot \sym[A] \cdot \Delta 
\sym[c] \NR[eq:1]
\NC \frac{d\sym[Q]}{d\sym[t]} \NC = \sym[alpha] \cdot \sym[A] \cdot \Delta 
\sym[T] \NR[eq:2]
\stopalign
\stopformula
\stopsubformulas
This is a reference to \in{equation}{}[eq:1] where the change of \sym[m] is 
calculated. \sym[beta] is called \quote{\symattr[beta][description]} and its 
unit is \symattr[beta][unit].
\stopsubsection
\stopsection

\stopbodymatter

\stoptext


Von: Thomas Welter 
Gesendet: Mittwoch, 12. Juni 2019 17:37
An: ntg-context@ntg.nl
Betreff: List of Symbols/Abbreviations/Glosses with more then two entries

The synonym "sym" defined by \definesynonyms[sym][syms][\symdesc] can take 2 
entries by default:

\sym[]{}{}

For theses and whitepapers in the natural sciences and in engineering it is 
needed to introduce another entry for the unit:

\sym[]{}{}{} (<-- This does of course not 
compile, take it as a feature request)

e.g.

\sym[Salpha]{\alpha\ }{$[W~m^{-2}~K^{-1}]$}{Heat Transfer Coefficient}

where

\sym[Salpha]{\alpha\ }{$[W~m^{-2}~K^{-1}]$ Heat Transfer Coefficient}

cannot be a good workaround since \symdesc{Salpha} should not include the unit. 
And of course I want the unit entry to be in a separate column when calling 
\placelistofsynonyms[sym]

In LaTeX I accomplished this with glossaries and glossary-mcols. Is there some 
neat trick to get this behaviour "the ConTeXt way" (maybe with some Lua + 
*.aux)?

The next step would be to define the table headers of the list of symbols such 
as "Symbol \NC Unit \NC Description"...

Thanks in advance and kind regards,

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


[NTG-context] List of Symbols/Abbreviations/Glosses with more then two entries

2019-06-12 Thread Thomas Welter
The synonym "sym" defined by \definesynonyms[sym][syms][\symdesc] can take 2 
entries by default:

\sym[]{}{}

For theses and whitepapers in the natural sciences and in engineering it is 
needed to introduce another entry for the unit:

\sym[]{}{}{} (<-- This does of course not 
compile, take it as a feature request)

e.g. 

\sym[Salpha]{\alpha\ }{$[W~m^{-2}~K^{-1}]$}{Heat Transfer Coefficient}

where 

\sym[Salpha]{\alpha\ }{$[W~m^{-2}~K^{-1}]$ Heat Transfer Coefficient}

cannot be a good workaround since \symdesc{Salpha} should not include the unit. 
And of course I want the unit entry to be in a separate column when calling 
\placelistofsynonyms[sym]

In LaTeX I accomplished this with glossaries and glossary-mcols. Is there some 
neat trick to get this behaviour "the ConTeXt way" (maybe with some Lua + 
*.aux)? 

The next step would be to define the table headers of the list of symbols such 
as "Symbol \NC Unit \NC Description"...

Thanks in advance and kind regards,

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