[NTG-context] doublesided margin page number

2022-01-23 Thread Youssef Cherem via ntg-context
I've managed to put double-sided page numbers -- but numbers are restarting
after two, though. What's going on?





\setuppagenumbering[location=,alternative=doublesided]


%
https://tex.stackexchange.com/questions/128854/context-eliminate-topspace-and-bottomspace?rq=1

\definelayer

[pagenumber]

[

width=\paperwidth,

height=\paperheight,

% preset=rightbottom,

voffset=.3\paperheight

]


%\setupbackgrounds[page][background=pagenumber, setups=setpagenumber]

\setupbackgrounds[text] [rightmargin] [background=pagenumber,
setups=setpagenumber]

%isso aqui é o que funciona para doublesided (frente e verso)


\startsetups setpagenumber

% Set the page number to be (2em, \lineheight) from the bottom right corner

% Note the `preset=rightbottom` above.

%

% The 2nd set of optional arguments are for the frame. For illustration I
change

% the color and font of the page number

\setlayerframed

[pagenumber]

[

x=3em,

y=2em,

]

[

frame=on,

foregroundcolor=red,

foregroundstyle=bold,

]

{\pagenumber}

\stopsetups


% Disable default page numbering



\starttext


Page 1


\page


Page 2


\page


Page 3


\page


Page 4


\dorecurse{15}{\input knuth}


\stoptext

=




Thanks a lot for any help!
___
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] placelist created by defineenumeration fails in numbered headings

2022-01-20 Thread Youssef Cherem via ntg-context
That pretty much sums it up: if I change \title to \chapter, for example,
the list is generated only if I set the option criterium=chapter, for
example. Is criterium really necessary in this case?

```

\defineenumeration [Exercício] [alternative=top, before=\blank,
after=\blank, between=\blank]


\defineenumeration [Título] [alternative=left, headcolor=darkcyan,
width=2cm, text={Título}, before=\blank, after=\blank, between=\blank]


\setuplabeltext[Exercise=Exercício~,Título=Título~]


\setuplist[Exercício][width=6em]


\starttext


\title{defineenumeration}


\subject{Lista de exercícios}

\placelist[Exercício][label=Exercise]


\subject{Lista de títulos}


\placelist[Título][label=Título]


\Exercício[title=Título do exercício] Um exercício


O mesmo exercício.



\Exercício Outro exercício com {\tt start ... stop}

\subExercício Um subexercício.

\startExercício Um exercício. \stopExercício

\startsubExercício Um subexercício. \stopsubExercício



\Título Título 1


\Título Título 2


\subTítulo sub-Título 1



\subTítulo sub-Título 2


\startTítulo


Agora vai.


\stopTítulo


\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] clartype typescript

2022-01-14 Thread Youssef Cherem via ntg-context
Hello everyone,

I'm a new Context user, so pardon me if it's obvious.

I found the cleartype typescript, but can't figure out how to use it.

I thought it would be as easy as:

\usetypescript[cleartype]

But I am confused as to what to put in

\setupbodyfont[?]

(there are several sans fonts to choose from).
___
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] poetry \startlines and tab

2022-01-10 Thread Youssef Cherem via ntg-context
Hello,

I needed to typeset some poetry and noticed that

\startlines[space=on]

Some line with tab % doesn't work, no spaces added

Some line with spaces %work

\stoplines


Is there a way to make the "tab" render the space "as is"?
___
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] Why mtxrun fails ?

2022-01-07 Thread Youssef Cherem via ntg-context
The instructions for MacOS are the same as for Unix, but note that:

   - MacOS versions from Catalina (10.15) and newer use *Zsh* by default.
   - MacOS versions before Catalina use *Bash* by default.

https://wiki.contextgarden.net/Installation

fre. 7. jan. 2022 kl. 19:02 skrev Jean-Pierre Delange via ntg-context <
ntg-context@ntg.nl>:

> Hello !
> Sorry for this newbie question : I’ve just uploaded CTX on my new MacOS
> (High Sierra), and when I pass the command mtxrun —generate or any other
> option with mtxrun, I get this : -bash: mtxrun: command not found
>
> I did that before :  echo "export
> PATH=/Users/adeimantos/Documents/context/tex/texmf-osx-64/bin:$PATH" >>
> ~/.bashrc
>
> What I am missing ?
> JP
>
> ___
> 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] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread Youssef Cherem via ntg-context
Is it just your example, or do you really just want those ligatures?

fre. 7. jan. 2022 kl. 12:33 skrev J. P. Ascher via ntg-context <
ntg-context@ntg.nl>:

> Hi, all,
>
> I'm a long time lurker (on gmane), first time poster. First, thank you
> all, very much, for your excellent work and superb community.
> ConTeXt has become a critical part of my academic writing and integral
> to my research.  I'm not exaggerating when I say it changed how
> I thought about texts and became a major source for my dissertation
> work.  Thank you!
>
> I'm trying to get a typescript for setting a text in Libertine with
> Junicode fallbacks for characters in MUFI, in the private use area.
> For some reason Libertine roman will not fallback no matter what
> I do. However Libertine italic will.  I can also work around it by using
> Junicode as a base and forcing fallback to Libertine.
>
> My question is: why?  What's wrong with Libertine roman?  Or my approach?
>
> My hypothesis is that there's something about `LinLibertine_R.otf`
> that's not quite right.  I looked in FontForge, but couldn't
> spot anything.
>
> Does anyone have a suggestion as to another place to look?  Or something
> I'm overlooking?
>
> Minimal example (attached too, if it comes through):
>
> ```
> \definefontfeature[default][default][script=latn]
>
>
> % Libertine with a Junicode fallback, lib-fb-jun
>
>
> \definefontfallback[junicodefallback][name:Junicode][privateusearea][check=yes,force=no]
>
> \starttypescript [serif] [lib-fb-jun]
>   \definefontsynonym [Libertine-Roman] [file:linlibertiner]
>   \definefontsynonym [Libertine-Slanted]  [file:linlibertineri]  % works
> fine
> \stoptypescript
>
> \starttypescript [serif] [lib-fb-jun] [name]
>   \definefontsynonym [Serif][Libertine-Roman]
>  [features=default,fallbacks=junicodefallback]
>   \definefontsynonym [SerifSlanted] [Libertine-Slanted]
> [features=default,fallbacks=junicodefallback]
> \stoptypescript
>
> \starttypescript [lib-fb-jun]
>   \definetypeface [lib-fb-jun] [rm] [serif] [lib-fb-jun] [default]
> \stoptypescript
>
>
> % Junicode with Libertine as a fallback, preferring Libertine, jun-pr-lib
> % this hack does what I want the above to do
>
>
> \definefontfallback[preferlibertine][name:linlibertineo][0-F][check=yes,force=yes]
>
> \starttypescript[serif] [jun-pr-lib]
>\definefontsynonym [JunicodeRoman] [name:Junicode]
> \stoptypescript
>
> \starttypescript[serif] [jun-pr-lib] [name]
>\definefontsynonym [Serif] [JunicodeRoman] [fallbacks=preferlibertine]
> \stoptypescript
>
> \starttypescript [jun-pr-lib]
>   \definetypeface [jun-pr-lib] [rm] [serif] [jun-pr-lib] [default]
> \stoptypescript
>
>
> % some tracking stuff
>
> \enabletrackers[fonts.missing=replace]
> \enabledirectives[logs.errors]
>
>
> % text, we use lib-fb-jun first, then jun-pr-lib
>
> \starttext
> \setupbodyfont[lib-fb-jun]
>
> {\em emph. lib-fb-jun: \Uchar61125 \char64259 \utfchar{"eec5} (three
> glyphs)}
>
> lib-fb-jun: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs)  % <-
> fallback fails here
>
> \switchtobodyfont[jun-pr-lib]
>
> jun-pr-lib: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs) % <-
> works
>
> \stoptext
> ```
>
> Any ideas?
>
> Most warmly,
> -jp
>
> --
> J. P. Ascher
> Preceding: https://doi.org/10.18130/jqpe-zc65
> Current: http://www.bibsoc.org.uk/content/2020-2021-0
>
>
> ___
> 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 manuals -- absence of \definefontfamily

2022-01-03 Thread Youssef Cherem via ntg-context
Dear all,

I've come back to using Context and I noticed the nice manuals around --
but one thing I miss is \definefontfamily (and \definefallbackfamily).

There is info here:
https://wiki.contextgarden.net/Use_fonts_distributed_with_ConTeXt

and then checking out the specific page:
https://wiki.contextgarden.net/Command/definefontfamily

It still baffles me that definefontfamily, though much simpler than
typescripts (which is intimidating), is not mentioned in the beginner's
manuals (unless I missed something) and neither is it given more prominence
in the Wiki, although I often see it mentioned in the forums. Being used to
fontspec's simplicity, I'd never use typescripts. It would help a lot, for
example, to include a sample of "definefontfamily" in "Use any font you
like".

Is there a reason why definefontfamily doesn't appear at all in the manuals
(as far as I could see), which are rather comprehensive otherwise?

All the best and thanks again for everything.
___
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] local notes, "serried" (paragraph) or column style.

2022-01-03 Thread Youssef Cherem via ntg-context
Hi again,

As a follow-up, I just found some weird behavior when typesetting
local/text notes using columns. The code below describes the issue. (As the
notes are counted by page I really didn't need to use localnotes, so the
problem of footnotes disappearing is solved.)

\definenote[afiliação]%[numberconversion=set 2]

\setupnote[afiliação][

%paragraph=yes,

rule=off,

location=text,

]

\setupnotation[afiliação][numberconversion=a, way=bypage,

%location=text,

%alternative=serried, % no effect

alternative=hanging,

width=fit, % broad

%distance=.5em,

%display=no

] % or set 1

% n=3 doesn’t work


\setupnotation[footnote][location={bottom,left},alternative=hanging,distance=.5em]



\starttext


Note\footnote{This should be at the bottom, but if I use columns it goes
just below the columns.}


%{% local notes have to be enclosed, otherwise footenotes below don’t appear

Author 1\afiliação{asdf} Author 2\afiliação{asdf}
\dorecurse{5}{\afiliação{Nota explicativa.}}


\startcolumns[n=3]

\placenotes[afiliação]

\stopcolumns

%}

% end local notes



\blank[big]


This footnote will disapear completely if I use localnotes and don’t
enclose them.\footnote{Where does it go?}




\stoptext

ons. 29. des. 2021 kl. 10:40 skrev Marco Patzer via ntg-context <
ntg-context@ntg.nl>:

> On Wed, 29 Dec 2021 08:29:34 -0300
> Youssef Cherem via ntg-context  wrote:
>
> > I've tried to implement some sort of affiliation description with
> > local notes. I'd like them to be either in a single paragraph or in
> > columns (e.g., 3), but the options `serried` or  `n=3` don't seem to
> > work for text notes (they do work for notes at the bottom).
> >
> > […]
> >
> > \placelocalnotes[afiliação]
>
> Maybe this helps:
>
> \startcolumns [n=3]
>   \placelocalnotes[afiliação]
> \stopcolumns
>
> Marco
>
> ___
> 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] measure layer/ ruler

2022-01-01 Thread Youssef Cherem via ntg-context
Hans,

Thanks a lot. I'm still trying to apply this to the top/bottom; I suppose
it should be simple after I have a firmer grasp of language.

lør. 1. jan. 2022 kl. 10:15 skrev Hans Hagen :

> On 1/1/2022 11:46 AM, Youssef Cherem via ntg-context wrote:
> > Dear list users,
> >
> > How can one go about implementing a ruler around the page/text area
> > (such as a background) like the one provided by the latex package
> > fgruler? https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler
> > <https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler> or koma
> > script's \layercontentsmeasure?
> a good opportunity to learn some metapost
>
> \startuniqueMPpagegraphic{ruler}
>  numeric n, f, sign ;
>  pair first, last;
>  if OnOddPage :
>  first := urcorner Page;
>  last  := lrcorner Page;
>  sign  := -1;
>  else :
>  first := ulcorner Page;
>  last  := llcorner Page;
>  sign  := 1;
>  fi ;
>  f := xpart first;
>  n := 0;
>  draw first -- last withpen pencircle scaled 2pt;
>  for i = ypart first step -1mm until ypart last :
>  if (n mod 10) == 0 :
>  draw (f,i) -- (f+sign*10mm,i) ;
>  if OnOddPage :
>  draw thetextext.lft(n/10,(f+sign*12mm,i)) ;
>  else :
>  draw thetextext.rt (n/10,(f+sign*12mm,i)) ;
>  fi
>  elseif (n mod 5) == 0 :
>  draw (f,i) -- (f+sign*5mm,i) ;
>  else :
>  draw (f,i) -- (f+sign*3mm,i) ;
>  fi ;
>  n := n + 1 ;
>  endfor ;
>  setbounds currentpicture to Page ;
> \stopuniqueMPpagegraphic
>
> \defineoverlay[ruler][\uniqueMPpagegraphic{ruler}]
>
> \setupbackgrounds[page][background=ruler]
>
> \setuppagenumbering[alternative=doublesided]
>
> \starttext
>  \dorecurse{10}{test \page}
> \stoptext
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
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] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
Wolfgang,

Thank you! Removing the auxiliary file solved the problem.

lør. 1. jan. 2022 kl. 09:32 skrev Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com>:

> Youssef Cherem via ntg-context schrieb am 01.01.2022 um 13:10:
> > I've tried to implement a journal-like footnote with the authors'
> > affiliation for each section/chapter, by adapting things from the wiki
> > (https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and
> > https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that
> > bugs me is that any note name I choose other than "thanks" does not
> > work, and I have no clue why. Am I missing something, or is there a more
> > elegant way to implement this?
> >
> > As an aside, I'd rather have the footnotes below the "thanks" notes. Is
> > there any option that does this?
> >
> > [...]
>
> Do you have a example where anything besides \thanks fails. I changed
> \thanks to another commands in the example below and there was no
> problem to do so. The only thing you *have* to do when you change the
> command is to remove the auxiliary file (context --purge) because the
> old (non existing) command is otherwise used in the next run which
> results then in an error message.
>
> \setuplist
>[section]
>[textcommand=\SectionTocEntry,
>   after=\blank]
>
> \define[1]\SectionTocEntry
>{\doifsomething{\rawstructurelistuservariable{author}}
>   {{\it\structurelistuservariable{author}} --\crlf}%
> #1%
> \doifsomething{\rawstructurelistuservariable{subtitle}}
>   {\crlf\structurelistuservariable{subtitle}}}
>
> \setuphead
>[section]
>[ after=\directsetup{section},
>  align=center,
> number=no,
>  style=bold]
>
> \startsetups [section]
>  \blank
>  \midaligned{\it\structureuservariable{author}}
>  \blank
> \stopsetups
>
> \setuphead
>[subject]
>[align=flushleft,
> style=\bfb]
>
> \definenote[someothername]
>
> \setupnote
>[someothername]
>[rule=off]
>
> \setupnotation
>[someothername]
>[numberconversion=set 2]
>
> \setupnotation
>[alternative=left,
>hang=fit,
>   indenting={yes,small},
>  indentnext=yes]
>
> \setupinteraction
>[state=start,
> color=,
> contrastcolor=]
>
> \starttext
>
> \subject{Grande lista de autores}
>
> \placecontent[alternative=c]
>
> \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to
> say}]
> This is a section.
> \stopsection
>
> \startsection[title={Segunda seção}][author={Fulano de
> Tal},subtitle={Uma segunda seção de teste}]
> This is a section.
> \stopsection
>
> \startsection[title={Terceira seção}][author={Alberto de
> Paiva\someothername{asdf}},subtitle={Uma terceira seção de teste}]
> This is a section.
> \stopsection
>
> \startsection[title={Três autores}][author={Sicrano de
> Tal\someothername{Universidade de Tangerinas} e Alberto
> Steinenberg\someothername{Universidade de Nilfgaard}},
> subtitle={Uma seção de teste com dois autores e comentário}]
> This is a section.\footnote{Só de teste.}
> \stopsection
>
> \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] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
I've tried to implement a journal-like footnote with the authors'
affiliation for each section/chapter, by adapting things from the wiki (
https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and
https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that bugs
me is that any note name I choose other than "thanks" does not work, and I
have no clue why. Am I missing something, or is there a more elegant way to
implement this?

As an aside, I'd rather have the footnotes below the "thanks" notes. Is
there any option that does this?

\setuplist[section][
 textcommand=\SectionTocEntry,
 after=\blank,
]

\define[1]\SectionTocEntry{%
 \doifnot{\rawstructurelistuservariable{author}}{}
{\start \it  \structurelistuservariable{author}\stop\space-- \crlf}%
 #1% title
 \doifnot{\rawstructurelistuservariable{subtitle}}{}
{\crlf\structurelistuservariable{subtitle}}}

\setuphead[section][
 after=\setup{section},
 align=center,
 number=no,
 style=\bold
]

\startsetups section
 \blank
 \midaligned{\it \structureuservariable{author}}
 \blank
\stopsetups

%\foonote{\structureuservariable{affiliation}}

%only "thanks" seems to work.
\definenote[thanks]%[numberconversion=set 2]
\setupnote[thanks][rule=off]
\setupnotation[thanks][numberconversion=set 2] % or set 1

%\setupnote[footnote][location=bottom] % does not work

%% all notes, footnotes etc.
\setupnotation[
 alternative={left,bottom},
 hang=fit, % if commented, hanging is larger
 indenting={yes,small},indentnext=yes, % please, indent everything, should
be default
]

\setupinteraction[state=start,color=black,contrastcolor=black]

\setuphead[subject][align=flushleft,style=\bfb]

\starttext

\subject{Grande lista de autores}

\placecontent[alternative=c]

\startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to
say}]
This is a section.
\stopsection

\startsection[title={Segunda seção}][author={Fulano de Tal},subtitle={Uma
segunda seção de teste}]
This is a section.
\stopsection

\startsection[title={Terceira seção}][author={Alberto de
Paiva\thanks{asdf}},subtitle={Uma terceira seção de teste}]
This is a section.
\stopsection

\startsection[title={Três autores}][author={Sicrano de
Tal\thanks{Universidade de Tangerinas} e Alberto
Steinenberg\thanks{Universidade de Nilfgaard}},
subtitle={Uma seção de teste com dois autores e comentário}]
This is a section.\footnote{Só de teste.}
\stopsection

\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] measure layer/ ruler

2022-01-01 Thread Youssef Cherem via ntg-context
Dear list users,

How can one go about implementing a ruler around the page/text area (such
as a background) like the one provided by the latex package fgruler?
https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler or koma
script's \layercontentsmeasure?
___
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] local notes, "serried" (paragraph) or column style.

2021-12-29 Thread Youssef Cherem via ntg-context
Marco

Thanks a lot.  It works. Such a solution had briefly crossed my mind but I
had left it aside, hoping there was some feature I had missed.

Em qua., 29 de dez. de 2021 10:40, Marco Patzer via ntg-context <
ntg-context@ntg.nl> escreveu:

> On Wed, 29 Dec 2021 08:29:34 -0300
> Youssef Cherem via ntg-context  wrote:
>
> > I've tried to implement some sort of affiliation description with
> > local notes. I'd like them to be either in a single paragraph or in
> > columns (e.g., 3), but the options `serried` or  `n=3` don't seem to
> > work for text notes (they do work for notes at the bottom).
> >
> > […]
> >
> > \placelocalnotes[afiliação]
>
> Maybe this helps:
>
> \startcolumns [n=3]
>   \placelocalnotes[afiliação]
> \stopcolumns
>
> Marco
>
> ___
> 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] local notes, "serried" (paragraph) or column style.

2021-12-29 Thread Youssef Cherem via ntg-context
I've tried to implement some sort of affiliation description with local
notes. I'd like them to be either in a single paragraph or in columns
(e.g., 3), but the options `serried` or  `n=3` don't seem to work for text
notes (they do work for notes at the bottom). Any help would be much
appreciated.



\definenote[afiliação]%[numberconversion=set 2]

\setupnote[afiliação][

%paragraph=yes,

rule=off,

location=text,

]

\setupnotation[afiliação][numberconversion=a, way=bypage,

%location=text,

%alternative=serried, % no effect

alternative=hanging,

width=fit, % broad

%distance=.5em,

%display=no

] % or set 1

% n=3 doesn’t work



\starttext

\startlocalnotes

Author 1\afiliação{asdf} Author 2\afiliação{asdf}
\dorecurse{5}{\afiliação{Nota explicativa.}}


\placelocalnotes[afiliação]

\stoplocalnotes


\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] \thanks inside author in section

2021-12-29 Thread Youssef Cherem via ntg-context
I've tried to implement a journal-like footnote with the authors'
affiliation for each section/chapter, by adapting things from the wiki here
 and here
. However, one thing that bugs
me is that any note name I choose other than "thanks" does not work, and I
have no clue why. Am I missing something, or is there a more elegant way to
implement this?

As an aside, I'd rather have the footnotes below the "thanks" notes. Is
there any option that does this?

\setuplist[section][
 textcommand=\SectionTocEntry,
 after=\blank,
]
\define[1]\SectionTocEntry{%
 \doifnot{\rawstructurelistuservariable{author}}{}
{\start \it  \structurelistuservariable{author}\stop\space-- \crlf}%
 #1% title
 \doifnot{\rawstructurelistuservariable{subtitle}}{}
{\crlf\structurelistuservariable{subtitle}}}
\setuphead[section][
 after=\setup{section},
 align=center,
 number=no,
 style=\bold
]
\startsetups section
 \blank
 \midaligned{\it \structureuservariable{author}}
 \blank\stopsetups
%\foonote{\structureuservariable{affiliation}}
\definenote[thanks]%[numberconversion=set
2]\setupnote[thanks][rule=off]\setupnotation[thanks][numberconversion=set
2] % or set 1
%\setupnote[footnote][location=bottom] % does not work
%% all notes, footnotes etc.\setupnotation[
 alternative={left,bottom},
 hang=fit, % if commented, hanging is larger
 indenting={yes,small},indentnext=yes, % please, indent everything,
should be default
]
\setupinteraction[state=start,color=black,contrastcolor=black]
\setuphead[subject][align=flushleft,style=\bfb]
\starttext
\subject{Grande lista de autores}
\placecontent[alternative=c]
  \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d
like to say}]
This is a section.\stopsection
\startsection[title={Segunda seção}][author={Fulano de
Tal},subtitle={Uma segunda seção de teste}]
This is a section.\stopsection
\startsection[title={Terceira seção}][author={Alberto de
Paiva\thanks{asdf}},subtitle={Uma terceira seção de teste}]
This is a section.\stopsection
\startsection[title={Três autores}][author={Sicrano de
Tal\thanks{Universidade de Tangerinas} e Alberto
Steinenberg\thanks{Universidade de Nilfgaard}},
subtitle={Uma seção de teste com dois autores e comentário}]
This is a section.\footnote{Só de teste.}\stopsection
\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
___