[NTG-context] Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
Hello,
I'm attempting to format a resume in Context building off of a template I found 
online. I'm having an odd error with some bullets on the second page, however. 
I'm guessing it has something to do with my \definelayout for the second (and 
subsequent) pages, but I can't figure it out for sure. What is happening is 
that whichever bullets are at the top of the second page are being wrapped as 
if they were appearing on the first page, which has a different layout 
structure.

I've pasted a sanitized version of the tex file below. Any assistance would be 
greatly appreciated!

Thanks,
Ross Schulman


\usemodule[ipsum]
\setuppapersize[letter]
\setuppagenumbering[location=]
\definelayout[first]
  [% horizontal
   backspace=2.5in,
   leftmargin=1.75in,
   leftmargindistance=0.25in,
   width=5.5in,
   rightmargin=0in,
   % vertical
   topspace=0pt,
   header=1.2in,
   headerdistance=.1in,
   height=middle,
   footerdistance=0pt,
   footer=\lineheight,
   bottomspace=.5in]

\definelayout[rest]
  [% horizontal
leftmargin=0in,
width=6.5in,
rightmargin=0in,
% % vertical
topspace=0pt,
header=1in,
headerdistance=.1in,
height=middle,
footerdistance=0pt,
footer=\lineheight,
bottomspace=.3in]

\definelayout[1][first]
\definelayout[2][rest]

\setupmarginblock
  [location=left,
   width=\leftmarginwidth,
   align=flushright]

\usecolors[svg]

\definehead[contacts][title]
\setuphead
[contacts]
[
align=center,
page=no,
after={\thinrule\blank[big]}]

\definehead[topic][subject]
\setuphead
[topic]
[
after={\hairline}]

\defineitemgroup
  [timeline]
  [before=,
   inbetween=,
   width=6em]

\setuplines[before=,after=,command=\strut]

\definelayer[mybkgr][x=0mm,y=0mm,
  width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background={mybkgr}]

\starttext
\setlayerframed
  [mybkgr]
  []
  [background=color,
   framecolor=forestgreen,
   backgroundcolor=forestgreen,
   foregroundcolor=white,
   width=\paperwidth,
   height=\dimexpr\topspace+\headerheight\relax]
{\dontleavehmode{\tfd ROSS SCHULMAN}\blank[medium]
policy technologist
}

\startmarginblock
\topic{CONTACT}
\startlines
1234 Main St NW
Washington, DC 20011
\stoplines

\topic{LANGUAGES}
\startlines
English (Native Speaker)
Spanish (Conversational)
\stoplines

\topic{TECH}
\startlines
Rust
Javascript \letterampersand\space Typescript
Linux Administration
Google and Microsoft Office Suites
\stoplines
\stopmarginblock

\setupalign[flushleft]
\topic{EXPERIENCE}
\starttimeline
\sym{2021--Now}\color[forestgreen]{Lorem Ipsum Foundation}\hfill
\color[darkgrey]{\tfx San Francisco, CA (remote)}

Senior Fellow
\startitemize[packed]
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
\stopitemize

\sym{2015--2021}\color[forestgreen]{Other Place About Lorem}\hfill
\color[darkgrey]{\tfx Washington, DC}

Senior Lorem Counsel
\startitemize[packed]
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
\stopitemize

\sym{2014--2015}\color[forestgreen]{Lorems R Us}\hfill
\color[darkgrey]{\tfx Washington, DC}

Lorem Manager
\startitemize[packed]
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
\stopitemize

\sym{2010--2014}\color[forestgreen]{Computer and Communications Industry 
Association}\hfill
\color[darkgrey]{\tfx Washington, DC}

Lorem Project Manager
\startitemize[packed]
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
\stopitemize

\sym{2005--2007}\color[forestgreen]{Center for Lorem Ipsum}\hfill
\color[darkgrey]{\tfx Washington, DC}

Program Associate
\startitemize[packed]
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
  \item \ipsum[alternative=words, n=10, inbetween=\space] \par
\stopitemize
\stoptimeline
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://

Re: [NTG-context] Why are my captions overlapping next text in combinations?

2022-11-26 Thread Wolfgang Schuster via ntg-context

Joel via ntg-context schrieb am 25.11.2022 um 23:25:

I have some combinations used throughout my document like this:

\starttext
\startcombination[4*2]
            {%
 \framed[width=.25\textwidth, height=.25\textwidth]{}%
 }{%
                \strut word \\ \thinrule\hairline\hairline%
         }%
        \stopcombination
    \input knuth

\stoptext

This makes a box, then displays a word underneath, and then some blank 
lines.


The problem I'm having is many times the caption text is covering up 
whatever appears after. In this minimal example, I tried showing the 
problem, but somehow this is rendering find, not covering the \input 
knuth text.


Also, if I add more more items to the combination, the second row 
appears above the first row!


My document is rather complex, so I couldn't find a way to simplify it 
enough to get a minimal example to reveal the problem that is appearing.


Any ideas what might be causing the caption text to overlap and cover 
whatever appears after it?


Do you other combinations also pass wrong values for the number of rows 
and columns like in your example above?


Wolfgang

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

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


[NTG-context] Why are my captions overlapping next text in combinations?

2022-11-25 Thread Joel via ntg-context
I have some combinations used throughout my document like this:
\starttext
   \startcombination[4*2]            {%
                \framed[width=.25\textwidth, height=.25\textwidth]{}%
            }{%
                \strut word \\ \thinrule\hairline\hairline%
            }%
        \stopcombination    \input knuth

\stoptext
This makes a box, then displays a word underneath, and then some blank lines.
The problem I'm having is many times the caption text is covering up whatever 
appears after. In this minimal example, I tried showing the problem, but 
somehow this is rendering find, not covering the \input knuth text.
Also, if I add more more items to the combination, the second row appears above 
the first row!

My document is rather complex, so I couldn't find a way to simplify it enough 
to get a minimal example to reveal the problem that is appearing.

Any ideas what might be causing the caption text to overlap and cover whatever 
appears after it?
--Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] thinrules width

2020-12-14 Thread Rik Kabel

Hello list, and developers in particular,

I note that thinrules (and its setup, setupthinrules, and relatives 
thinrule and hairline) does not have a width setting, and always sets a 
rule (or rules) the full width of the text area (less any text set on 
the same line.


No problem, but I do see (non-authoratative) references in the mailing 
list to such a parameter, and more problematically, I note that the 
default ConTeXt template for Pandoc includes the line:


\setupthinrules[width=15em] % width of horizontal rules

Before reporting an issue to the Pandoc team, I just want to confirm 
that this is, in fact, both the case (as reading the source and my 
testing indicate) and the intent (which I cannot attest).


I would further suggest that Pandoc should be using setupblackrule with 
appropriate height, depth, rulethickness, and width. I suspect that 
Pandoc typography is not sensitive to control of the actual placement 
relative to the baseline, as ConTeXt supports, but a pointer to a clear 
explanation of the interaction of height, depth, and rulethickness would 
be welcome.


--
Rik

___
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] French spacing in ConTeXt

2020-11-04 Thread Tomas Hala
Hi all, 

the following code works for the default roman family but not for tt-family.

\setuplayout[width=30cc,height=70cc,topspace=0cc]
\def\sample{\input knuth \par\thinrule\par}
\starttext
\setuplanguage[en][spacing=packed] \mainlanguage[en] \sample
\setuplanguage[en][spacing=broad]  \mainlanguage[en] \sample
\tt
\setuplanguage[en][spacing=packed] \mainlanguage[en] \sample
\setuplanguage[en][spacing=broad]  \mainlanguage[en] \sample
\stoptext

As far as I know, the broad spacing (=non-frenchspacing) should work 
also for typewriter. How could I enable it? 

Best wishes,

Tomáš

P. S.
LaTeX code (only for comparison) works for both:

\documentclass{article}
\begin{document}
\frenchspacing\input knuth
\nonfrenchspacing \input knuth
\tt
\frenchspacing\input knuth
\nonfrenchspacing \input knuth
\end{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
___


Re: [NTG-context] packed list only if items > 5

2019-11-14 Thread Tomas Hala
Hi Pablo,

I am not sure if the itemize environment can be configured on the fly.

The following code should solve your problem:


\definecounter[minforpacked] \setcounter[minforpacked][5]

\def\mystartitemize#1\stopitemize{%
\definecounter[mycounter]
{\def\startitem##1\stopitem{\incrementcounter[mycounter]}#1}
\ifnum \rawcountervalue[mycounter]>\rawcountervalue[minforpacked] 
\setupitemize[packed]\fi
\startitemize#1\stopitemize}

\starttext

\mystartitemize %normal
\dorecurse{2}{\startitem text\stopitem}
\stopitemize
\thinrule
\mystartitemize %packed
\dorecurse{7}{\startitem text\stopitem}
\stopitemize

\stoptext


Best wishes,

Tomáš 

Thu, Nov 14, 2019 ve 09:07:21PM +0100 Pablo Rodriguez napsal(a):
# Dear list,
# 
# I have the following sample:
# 
# \starttext
# \startitemize[\ifnum\currentnofitems>5 packed\fi]
# \dorecurse{7}
# {\startitem\currentitemnumber/\currentnofitems\stopitem}
# \stopitemize
# \stoptext
# 
# Is there any way to get a packed list if and only if it contains more
# than a given number of items?
# 
# 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
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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 repeat the hyphen?

2019-03-25 Thread Sam May
Sounds like you've got it working, but just to provide an alternative 
that should* work, according to the sources:


 \setuplanguage[cz]
[compoundhyphen=-,%Or, to keep the \setuphyphenmark
 rightcompoundhyphen=-,%   configuration mentioned in Taco's link:
 leftcompoundhyphen=-]%`*compoundhyphen=\compoundhyphen`

That does require you to replace all the hyphens with `||`, which it 
understandably sounds like you want to avoid, but it can be good for 
someone like me who likes that explicit markup, or for someone who needs 
more control over which symbols go where (I'm using for Esperanto -- 
slightly non-standard -- a vertical tick mark for the inner-line and the 
left but the hyphen for the right).  The main benefit, though, is that 
you can do the same thing for line-breaking hyphenation if you need to 
change that, just drop the `compound` in the keys.


* I've been running into it working for the first break or two but than 
switching back to the default for the rest of the document, and haven't 
been able to track down why.  Though it might have something to do with 
me still using the ridiculously out-of-date 2016.05.17 because I haven't 
gotten around to overriding the Gentoo package manager yet...


Sam

On Fri, Mar 22, 2019 at 04:57:24PM +0100, Tomas Hala wrote:

Hi Taco,

this is exactly what I needed, thank you very much.

Fri, Mar 22, 2019 ve 04:16:20PM +0100 Taco Hoekwater napsal(a):
# Somewhat cleaner is to do it this way:
#   %%%
#   \definebreakpoints[czcompound]
#   \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4]
#
#   \appendtoks
#\ifx\mylanguage\currentlanguage
#   \setbreakpoints[czcompound]
#\else
#   \resetbreakpoints
#\fi
#   \to\everylanguage
#
# It would be nice if that language= key would work, though (it is ignored, it 
seems)

I agree...

Best wishes,

Tomá??

# Taco
#
#
# > On 22 Mar 2019, at 15:38, Tomas Hala  wrote:
# >
# > Hi Taco,
# >
# > good idea, I tried it but the problem is that it does not switch itself off
# > automatically when the language is changed again.
# >
# > The following code works but I guess that must be some more sophisticated
# > ConTeXt way.
# >
# > Best wishes,
# >
# > Tomá??
# >
# >
# > %%
# > 
\def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par}
# > 
\def\mybox#1{\myboxik{traditional}{#1}\myboxik{default}{#1}\myboxik{expanded}{#1}\myboxik{original}{#1}\myboxik{tex}{#1}\myboxik{hyphenate}{#1}\myboxik{none}{#1}\par\thinrule}
# >
# > \starttext
# > \definebreakpoints[czcompound]
# >
# > \let\oldlanguage=\language
# > \def\language[#1]{\oldlanguage[#1]
# >  \ifx\mylanguage\currentlanguage 
\definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] 
\setbreakpoints[czcompound]
# >\else 
\definebreakpoint[czcompound][-][nleft=3,nright=3,type=1] 
\setbreakpoints[czcompound]
# >  \fi} and the same for \mainlanguage
# >
# > \def\mylanguage{cs}
# >
# > \language[en] \mybox{modro-zelený}
# > \language[cz] \mybox{modro-zelený}
# > \language[en] \mybox{modro-zelený}
# >
# > \stoptext
# > 
# >
# > Fri, Mar 22, 2019 ve 01:56:40PM +0100 Taco Hoekwater napsal(a):
# > # Hi Tomá??,
# > #
# > # Sorry but I do not know. I *do* know that you can do this:
# > #
# > #   \definebreakpoints [czcompound]
# > #   \definebreakpoint  [czcompound] [-] [nleft=3,nright=3,type=4]
# > #   \setbreakpoints[czcompound]
# > #
# > # And perhaps hook that into a language switch. Does that help?
# > #
# > #
# > #
# > # > On 22 Mar 2019, at 10:37, Tomas Hala  wrote:
# > # >
# > # > Hi,
# > # >
# > # > thanks, that's it. I did some tests and no side-effects appeared.
# > # > Moreover, it seems that it has no influence on \hyphentatedurl which is 
also ok.
# > # >
# > # > But only one point I do not understand -- when I used the key
# > # > language=cz, repeated hyphens disappeared. It would by fine if one
# > # > can set it only for the given language(s), eg. for cz+sk yes and for en 
no.
# > # > Is there any way for this?
# > # >
# > # > Best wishes,
# > # >
# > # > Tomá??
# > # >
# > # >
# > # > \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4, language=cz]
# > # > \setbreakpoints[compound]
# > # >
# > # >
# > # > Thu, Mar 21, 2019 ve 04:45:49PM +0100 Taco Hoekwater napsal(a):
# > # > # Hi,
# > # > #
# > # > # \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4]
# > # > # \setbreakpoints[compound]
# > # > #
# > # > # But also check the wiki, there can be side-effects to 
\setbreakpoints[compound]
# > # > #
# > #

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
Hi Taco,

this is exactly what I needed, thank you very much.

Fri, Mar 22, 2019 ve 04:16:20PM +0100 Taco Hoekwater napsal(a):
# Somewhat cleaner is to do it this way:
#   %%%
#   \definebreakpoints[czcompound]   
#   \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] 
# 
#   \appendtoks
#\ifx\mylanguage\currentlanguage 
#   \setbreakpoints[czcompound] 
#\else 
#   \resetbreakpoints
#\fi
#   \to\everylanguage
# 
# It would be nice if that language= key would work, though (it is ignored, it 
seems)

I agree...

Best wishes,

Tomáš 

# Taco
# 
# 
# > On 22 Mar 2019, at 15:38, Tomas Hala  wrote:
# > 
# > Hi Taco,
# > 
# > good idea, I tried it but the problem is that it does not switch itself off
# > automatically when the language is changed again. 
# > 
# > The following code works but I guess that must be some more sophisticated
# > ConTeXt way.
# > 
# > Best wishes,
# > 
# > Tomáš 
# > 
# > 
# > %%
# > 
\def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par}
# > 
\def\mybox#1{\myboxik{traditional}{#1}\myboxik{default}{#1}\myboxik{expanded}{#1}\myboxik{original}{#1}\myboxik{tex}{#1}\myboxik{hyphenate}{#1}\myboxik{none}{#1}\par\thinrule}
# > 
# > \starttext
# > \definebreakpoints[czcompound]   
# > 
# > \let\oldlanguage=\language
# > \def\language[#1]{\oldlanguage[#1]
# >  \ifx\mylanguage\currentlanguage 
\definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] 
\setbreakpoints[czcompound] 
# >\else 
\definebreakpoint[czcompound][-][nleft=3,nright=3,type=1] 
\setbreakpoints[czcompound]
# >  \fi} and the same for \mainlanguage
# > 
# > \def\mylanguage{cs}
# > 
# > \language[en] \mybox{modro-zelený}
# > \language[cz] \mybox{modro-zelený}
# > \language[en] \mybox{modro-zelený}
# > 
# > \stoptext
# > 
# > 
# > Fri, Mar 22, 2019 ve 01:56:40PM +0100 Taco Hoekwater napsal(a):
# > # Hi Tomáš,
# > # 
# > # Sorry but I do not know. I *do* know that you can do this:
# > # 
# > #   \definebreakpoints [czcompound]
# > #   \definebreakpoint  [czcompound] [-] [nleft=3,nright=3,type=4]
# > #   \setbreakpoints[czcompound]
# > # 
# > # And perhaps hook that into a language switch. Does that help?
# > # 
# > # 
# > # 
# > # > On 22 Mar 2019, at 10:37, Tomas Hala  wrote:
# > # > 
# > # > Hi,
# > # > 
# > # > thanks, that's it. I did some tests and no side-effects appeared. 
# > # > Moreover, it seems that it has no influence on \hyphentatedurl which is 
also ok.
# > # > 
# > # > But only one point I do not understand -- when I used the key 
# > # > language=cz, repeated hyphens disappeared. It would by fine if one
# > # > can set it only for the given language(s), eg. for cz+sk yes and for en 
no.
# > # > Is there any way for this? 
# > # > 
# > # > Best wishes,
# > # > 
# > # > Tomáš 
# > # > 
# > # > 
# > # > \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4, language=cz]
# > # > \setbreakpoints[compound]
# > # > 
# > # > 
# > # > Thu, Mar 21, 2019 ve 04:45:49PM +0100 Taco Hoekwater napsal(a):
# > # > # Hi,
# > # > # 
# > # > # \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4]
# > # > # \setbreakpoints[compound]
# > # > # 
# > # > # But also check the wiki, there can be side-effects to 
\setbreakpoints[compound]
# > # > # 
# > # > #   https://wiki.contextgarden.net/Compound_words
# > # > # 
# > # > # 
# > # > # Best wishes,
# > # > # Taco
# > # > # 
# > # > # > On 21 Mar 2019, at 16:23, Tomas Hala  wrote:
# > # > # > 
# > # > # > Hi all,
# > # > # > 
# > # > # > in composed words with hyphen inside (e.g. modro-zelený = 
blue-green), the
# > # > # > hyphen character must be repeated at the beginning of the new line
# > # > # > (modro-/-zelený). This rule is obligatory for Czech and Slovak 
typesetting.
# > # > # > 
# > # > # > I am able to implement this feature by defining a new command (see 
\def\= below)
# > # > # > but it means that all appearances of "-" must be replaced 
(manually) in the source
# > # > # > text. I tried all options of \setuphyphenation but no one gives the 
correct
# > # > # > result. 
# > # > # > 
# > # > # > Is there any way in ConTeXt how to set it by default?
# > # > # > 
# > # > # > Best wishes,
# > # > # > 
# > # > # > Tomáš
# > # > # > 
# > 

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Taco Hoekwater

Somewhat cleaner is to do it this way:

  %%%
  \definebreakpoints[czcompound]   
  \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] 

  \appendtoks
   \ifx\mylanguage\currentlanguage 
  \setbreakpoints[czcompound] 
   \else 
  \resetbreakpoints
   \fi
  \to\everylanguage


It would be nice if that language= key would work, though (it is ignored, it 
seems)

Taco


> On 22 Mar 2019, at 15:38, Tomas Hala  wrote:
> 
> Hi Taco,
> 
> good idea, I tried it but the problem is that it does not switch itself off
> automatically when the language is changed again. 
> 
> The following code works but I guess that must be some more sophisticated
> ConTeXt way.
> 
> Best wishes,
> 
> Tomáš 
> 
> 
> %%
> \def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par}
> \def\mybox#1{\myboxik{traditional}{#1}\myboxik{default}{#1}\myboxik{expanded}{#1}\myboxik{original}{#1}\myboxik{tex}{#1}\myboxik{hyphenate}{#1}\myboxik{none}{#1}\par\thinrule}
> 
> \starttext
> \definebreakpoints[czcompound]   
> 
> \let\oldlanguage=\language
> \def\language[#1]{\oldlanguage[#1]
>  \ifx\mylanguage\currentlanguage 
> \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] 
> \setbreakpoints[czcompound] 
>\else 
> \definebreakpoint[czcompound][-][nleft=3,nright=3,type=1] 
> \setbreakpoints[czcompound]
>  \fi} and the same for \mainlanguage
> 
> \def\mylanguage{cs}
> 
> \language[en] \mybox{modro-zelený}
> \language[cz] \mybox{modro-zelený}
> \language[en] \mybox{modro-zelený}
> 
> \stoptext
> 
> 
> Fri, Mar 22, 2019 ve 01:56:40PM +0100 Taco Hoekwater napsal(a):
> # Hi Tomáš,
> # 
> # Sorry but I do not know. I *do* know that you can do this:
> # 
> #   \definebreakpoints [czcompound]
> #   \definebreakpoint  [czcompound] [-] [nleft=3,nright=3,type=4]
> #   \setbreakpoints[czcompound]
> # 
> # And perhaps hook that into a language switch. Does that help?
> # 
> # 
> # 
> # > On 22 Mar 2019, at 10:37, Tomas Hala  wrote:
> # > 
> # > Hi,
> # > 
> # > thanks, that's it. I did some tests and no side-effects appeared. 
> # > Moreover, it seems that it has no influence on \hyphentatedurl which is 
> also ok.
> # > 
> # > But only one point I do not understand -- when I used the key 
> # > language=cz, repeated hyphens disappeared. It would by fine if one
> # > can set it only for the given language(s), eg. for cz+sk yes and for en 
> no.
> # > Is there any way for this? 
> # > 
> # > Best wishes,
> # > 
> # > Tomáš 
> # > 
> # > 
> # > \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4, language=cz]
> # > \setbreakpoints[compound]
> # > 
> # > 
> # > Thu, Mar 21, 2019 ve 04:45:49PM +0100 Taco Hoekwater napsal(a):
> # > # Hi,
> # > # 
> # > # \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4]
> # > # \setbreakpoints[compound]
> # > # 
> # > # But also check the wiki, there can be side-effects to 
> \setbreakpoints[compound]
> # > # 
> # > #   https://wiki.contextgarden.net/Compound_words
> # > # 
> # > # 
> # > # Best wishes,
> # > # Taco
> # > # 
> # > # > On 21 Mar 2019, at 16:23, Tomas Hala  wrote:
> # > # > 
> # > # > Hi all,
> # > # > 
> # > # > in composed words with hyphen inside (e.g. modro-zelený = 
> blue-green), the
> # > # > hyphen character must be repeated at the beginning of the new line
> # > # > (modro-/-zelený). This rule is obligatory for Czech and Slovak 
> typesetting.
> # > # > 
> # > # > I am able to implement this feature by defining a new command (see 
> \def\= below)
> # > # > but it means that all appearances of "-" must be replaced (manually) 
> in the source
> # > # > text. I tried all options of \setuphyphenation but no one gives the 
> correct
> # > # > result. 
> # > # > 
> # > # > Is there any way in ConTeXt how to set it by default?
> # > # > 
> # > # > Best wishes,
> # > # > 
> # > # > Tomáš
> # > # > 
> # > # > %% MWE:
> # > # > 
> # > # > \starttext\mainlanguage[cz]
> # > # > 
> \def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par}
> # > # > 
> \def\mybox#1{\myboxik{traditional}{#1}\myboxik{default}{#1}\myboxik{expanded}{#1}\myboxik{original}{#1}\myboxik{tex}{#1}\myboxik{hyphenate}{#1}\myboxik{none}{#1}}
> # > # > 

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
Hi Taco,
 
good idea, I tried it but the problem is that it does not switch itself off
automatically when the language is changed again. 

The following code works but I guess that must be some more sophisticated
ConTeXt way.

Best wishes,

Tomáš 


%%
\def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par}
\def\mybox#1{\myboxik{traditional}{#1}\myboxik{default}{#1}\myboxik{expanded}{#1}\myboxik{original}{#1}\myboxik{tex}{#1}\myboxik{hyphenate}{#1}\myboxik{none}{#1}\par\thinrule}

\starttext
\definebreakpoints[czcompound]   

\let\oldlanguage=\language
\def\language[#1]{\oldlanguage[#1]
  \ifx\mylanguage\currentlanguage 
\definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] 
\setbreakpoints[czcompound] 
\else 
\definebreakpoint[czcompound][-][nleft=3,nright=3,type=1] 
\setbreakpoints[czcompound]
  \fi} and the same for \mainlanguage

\def\mylanguage{cs}

\language[en] \mybox{modro-zelený}
\language[cz] \mybox{modro-zelený}
\language[en] \mybox{modro-zelený}

\stoptext


Fri, Mar 22, 2019 ve 01:56:40PM +0100 Taco Hoekwater napsal(a):
# Hi Tomáš,
# 
# Sorry but I do not know. I *do* know that you can do this:
# 
#   \definebreakpoints [czcompound]
#   \definebreakpoint  [czcompound] [-] [nleft=3,nright=3,type=4]
#   \setbreakpoints[czcompound]
# 
# And perhaps hook that into a language switch. Does that help?
# 
# 
# 
# > On 22 Mar 2019, at 10:37, Tomas Hala  wrote:
# > 
# > Hi,
# > 
# > thanks, that's it. I did some tests and no side-effects appeared. 
# > Moreover, it seems that it has no influence on \hyphentatedurl which is 
also ok.
# > 
# > But only one point I do not understand -- when I used the key 
# > language=cz, repeated hyphens disappeared. It would by fine if one
# > can set it only for the given language(s), eg. for cz+sk yes and for en no.
# > Is there any way for this? 
# > 
# > Best wishes,
# > 
# > Tomáš 
# > 
# > 
# > \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4, language=cz]
# > \setbreakpoints[compound]
# > 
# > 
# > Thu, Mar 21, 2019 ve 04:45:49PM +0100 Taco Hoekwater napsal(a):
# > # Hi,
# > # 
# > # \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4]
# > # \setbreakpoints[compound]
# > # 
# > # But also check the wiki, there can be side-effects to 
\setbreakpoints[compound]
# > # 
# > #   https://wiki.contextgarden.net/Compound_words
# > # 
# > # 
# > # Best wishes,
# > # Taco
# > # 
# > # > On 21 Mar 2019, at 16:23, Tomas Hala  wrote:
# > # > 
# > # > Hi all,
# > # > 
# > # > in composed words with hyphen inside (e.g. modro-zelený = blue-green), 
the
# > # > hyphen character must be repeated at the beginning of the new line
# > # > (modro-/-zelený). This rule is obligatory for Czech and Slovak 
typesetting.
# > # > 
# > # > I am able to implement this feature by defining a new command (see 
\def\= below)
# > # > but it means that all appearances of "-" must be replaced (manually) in 
the source
# > # > text. I tried all options of \setuphyphenation but no one gives the 
correct
# > # > result. 
# > # > 
# > # > Is there any way in ConTeXt how to set it by default?
# > # > 
# > # > Best wishes,
# > # > 
# > # > Tomáš
# > # > 
# > # > %% MWE:
# > # > 
# > # > \starttext\mainlanguage[cz]
# > # > 
\def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par}
# > # > 
\def\mybox#1{\myboxik{traditional}{#1}\myboxik{default}{#1}\myboxik{expanded}{#1}\myboxik{original}{#1}\myboxik{tex}{#1}\myboxik{hyphenate}{#1}\myboxik{none}{#1}}
# > # > 
# > # > \mybox{modro-zelený}
# > # > 
# > # > \def\={\discretionary{-}{-}{-}}
# > # > \mybox{modro\=zelený}
# > # > \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
# > # > 
___
# > # 
# > # Taco Hoekwater
# > # Elvenkind BV
# > # 
# > # 
# > # 
# > # 
# > # 

[NTG-context] hairline & rules

2018-06-16 Thread jdh

I want to use a colored hairline, but can't get it working and can't find 
anything to explain any options or parameters.

I've tried

\setuptextrules[rulecolor=red,color=red]
\hairline
or
\hairline[color=red]

Doesn't work


this is a test \thinrule[color=red]

also doesn't catch the color
or does

    this is a test \thinrule[color=red]



Can the hairline command be set to use a specific color and how?

Same for the  \thinrul  command


Thanks
___
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] \defineparagraphs

2016-07-09 Thread John Kitzmiller

> On 8Jul, 2016, at 09:20, Wolfgang Schuster  
> wrote:
> 
>> The code below works with context2016.02.15, but fails with 
>> context2016.05.19.
>> 
>> Itemize within the defined paragraph (Mypar) no longer puts the thinrule in 
>> the margin (see the third question.) The \ansblank command seems to the 
>> second part of Mypar is 
>> the margin? Pdf of the success and fail attached.
>> 
>> Thanks! John
>> 
>> \startMypar
>> \item Third question refers to graphic at right. 
>> \Mypar
>> 
>> \stopMypar
> \item
> \startcombination[nx=2,ny=1]
> 
> {\framed[frame=off,align=flushleft,location=top,width=.5\localhsize]{Third 
> question refers to graphic at right.}}{}
> {\tbox{\externalfigure[cow]}}{}
> \stopcombination

Thank you Wolfgang. I had to change .5\localhsize to .5\textwidth for it to 
work here (and scale down the cow to make it fit in the barn.)

I am looking into combinations to center the graphic in the second x box, and 
make a \setupcombination[mycombination] similar to \defineparagraph[Mypar] to 
reduce typing.

\tbox is new to me. Is that a ConTeXt macro of TEX \vtop{\hbox}?

Thanks again, John___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \defineparagraphs

2016-07-08 Thread Wolfgang Schuster

k...@inradius.net <mailto:k...@inradius.net>
8. Juli 2016 um 13:53
The code below works with context2016.02.15, but fails with 
context2016.05.19.


Itemize within the defined paragraph (Mypar) no longer puts the 
thinrule in the margin (see the third question.) The \ansblank command 
seems to the second part of Mypar is

the margin? Pdf of the success and fail attached.

Thanks! John

\startMypar
\item Third question refers to graphic at right.
\Mypar

\stopMypar

\item
\startcombination[nx=2,ny=1]

{\framed[frame=off,align=flushleft,location=top,width=.5\localhsize]{Third 
question refers to graphic at right.}}{}

{\tbox{\externalfigure[cow]}}{}
\stopcombination

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \defineparagraphs

2016-07-08 Thread kitz
The code below works with context2016.02.15, but fails with context2016.05.19.

Itemize within the defined paragraph (Mypar) no longer puts the thinrule in the 
margin (see the third question.) The \ansblank command seems to the second part 
of Mypar is 
the margin?  Pdf of the success and fail attached.

Thanks! John


\defineparagraphs[Mypar][n=2]
 \setupparagraphs[Mypar][1][width=0.5\textwidth] 

% label subquestions (a, b, c, etc) with answerblanks
\defineconversionset[myitemize][n,a][n]

% define the answerblank in right margin
\define\ansblank
  
{\inright{\simplealignedbox{2em}{flushleft}{\convertedcounter[itemgroup:itemize][numberconversionset=myitemize,numberstopper=.]}\thinrule}\ignorespaces}

% \define\noblank
\define\noblank
  {\inright{~}}

% put them together to toggle printing of the answerblank
\define\blankon{\setupitemgroup [itemize] [style=bold,command=\ansblank]}
\define\blankoff{\setupitemgroup [itemize] [style=bold,command=\noblank]}

\starttext
\showframe
\startitemize[n]
\blankon
\item First question.
\blankoff
\item Second question has two parts.
  \startitemize[a]
  \blankon
  \item subquestion a
  \item subquestion b
  \stopitemize
\blankon
\startMypar
\item Third question refers to graphic at right. 
\Mypar

\stopMypar
\item Final question.
\stopitemize
\stoptext







mwe2016.02.15.pdf
Description: Binary data


mwe2016.05.19.pdf
Description: Binary data
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \inright

2016-06-25 Thread John Kitzmiller
> John Kitzmiller <mailto:kitz at inradius.net 
> <https://mailman.ntg.nl/mailman/listinfo/ntg-context>>
> 25. Juni 2016 um 16:20
> The following is no longer putting the “answer blank” in the right margin.
>
> \define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrule}}
> \setupitemgroup [itemize] [n, style=bold,right=\ansblank]
>
\setupitemgroup[itemize][style=bold,before=\ansblank]

Wolfgang
—

Thank you Wolfgang. That works for one item but it does not carry forward to 
multiple items: 

\define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrule}} 
\setupitemgroup [itemize] [n, style=bold,before=\ansblank]

\starttext
\startitemize[n]
\item A question.
\item Another question.
\item Yet another.
\stopitemize
\showframe
\stoptext

John___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \inright

2016-06-25 Thread Wolfgang Schuster

John Kitzmiller <mailto:k...@inradius.net>
25. Juni 2016 um 16:20
The following is no longer putting the “answer blank” in the right margin.

\define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrule}}
\setupitemgroup [itemize] [n, style=bold,right=\ansblank]


\setupitemgroup[itemize][style=bold,before=\ansblank]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \inright

2016-06-25 Thread John Kitzmiller
The following is no longer putting the “answer blank” in the right margin.

\define\ansblank{\inright{\getnumber[itemgroup:itemize]. \thinrule}} 
\setupitemgroup [itemize] [n, style=bold,right=\ansblank]

\starttext
\startitemize[n]
\item A question.
\stopitemize
\showframe
\stoptext

When I source context 2016.02.15 it works, but not with 2016.05.19. Thank you 
for any help on the new way.

Some background:
http://www.mail-archive.com/ntg-context%40ntg.nl/msg72108.html 
<http://www.mail-archive.com/ntg-context@ntg.nl/msg72108.html>


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \writebetweenllst not working for frontmatter material?

2015-08-24 Thread robheus

Wolfgang,

Thanks, that works.

Rob
Wolfgang Schuster schreef op 2015-08-24 14:03:

robheus
24. August 2015 13:47
hello list,

I want a TOC in which there is a blank line AFTER the first chapter
in the TOC and BEFORE the last chapter in the TOC. (other chapter
entries in the TOC don't have blank lines between them).

I can achieve this with:
\writebetweenlist[chapter]{\blank}

but unfortutaly for chapter in frontmatter the above method does not
produce a blank line in the TOC.

Anyone has a clue as why not?

 Try adding “location=here” with the second argument (as shown
below in the example), when this doesn’t help send a minimal
example.

\starttext

\startfrontmatter

\completecontent

\chapter{Frontpart}

\writebetweenlist[chapter][location=here]{\thinrule}

\stopfrontmatter

\startbodymatter

\chapter{Bodypart}

\stopbodymatter

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \writebetweenllst not working for frontmatter material?

2015-08-24 Thread Wolfgang Schuster

robheus <mailto:robh...@xs4all.nl>
24. August 2015 13:47
hello list,

I want a TOC in which there is a blank line AFTER the first chapter in 
the TOC and BEFORE the last chapter in the TOC. (other chapter entries 
in the TOC don't have blank lines between them).


I can achieve this with:
\writebetweenlist[chapter]{\blank}

but unfortutaly for chapter in frontmatter the above method does not 
produce a blank line in the TOC.


Anyone has a clue as why not?
Try adding “location=here” with the second argument (as shown below in 
the example), when this doesn’t help send a minimal example.


\starttext

\startfrontmatter

\completecontent

\chapter{Frontpart}

\writebetweenlist[chapter][location=here]{\thinrule}

\stopfrontmatter

\startbodymatter

\chapter{Bodypart}

\stopbodymatter

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-03 Thread tala...@fastmail.fm
I am having problems with the directionality of numbers and mirrored characters (like parentheses). When using bidi, the numbers are inverted (5102 instead of 2015); with the explicit commands, the mirrored characters are inverted as well.For reasons I think I understand, this is only happening in the text: the problem occurs with numbers in headings (chapters, etc.), and likewise in the main of the text. The digits of footnotes, linemargin numbers, and page numbers are correctly arranged.I have learnt that if I add the option [numbercommand=\lefttoright] to \setuphead[section], I can get the digits in the section number to be in the right order. But this does not address the problem of other numbers in the text.How do I solve this? I am happy to abandon the conveniences of bidi, as Idris suggests might be needed (see below), but it didn’t get any easier when trying to do it manually. See MWE below.With thanks,Talalp.s. The Wiki page on "Arabic and Hebrew" is out of date, instructing the use of \setcharactermirroring[1] which is clearly deprecated now in favour of \setupdirections[bidi=global]. I am happy to update the wiki page once I get my head around things. Does anybody have an authoritative list of the various commands related to right-to-left, as well as what combinations are not needed (e.g. are \setupalign[r2l] and \righttoleft overlapping, or do they play different roles)?%%% LANGUAGE AND FONTS\mainlanguage[arabic]	\definefontfamily [mainface] [rm] [ALM Fixed][range=arabic,features=arabic]	   \setupbodyfont[mainface,12pt]%\setupdirections[bidi=global]\setupalign[r2l]%\righttoleft%% HEADINGS\setuphead[chapter,section][	conversion=myconversion,%	numbercommand=\lefttoright % <-- toggle	]\setuplinenumbering[conversion=myconversion]\setupnotations[footnote][numberconversion=myconversion]\setupnotations[linenote][numberconversion=myconversion]\setuppagenumber[numberconversion=myconversion]\defineconversion	[myconversion]	[١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,	١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,	۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰,	٣١,٣٢,٣٣,٣٤,٣٥,٣٦,٣٧,٣٨,٣٩,٤٠,	٤١,٤٢,٤٣,٤٤,٤٥,٤٦,٤٧,٤٨,٤٩,٥٠,	٥١,٥٢,٥٣,٥٤,٥٥,٥٦,٥٧,٥٨,٥٩,٦٠,	٦١,٦٢,٦٣,٦٤,٦٥,٦٦,٦٧,٦٨,٦٩,٧٠,	٧١,٧٢,٧٣,٧٤,٧٥,٧٦,٧٧,٧٨,٧٩,٨٠,	٨١,٨٢,٨٣,٨٤,٨٥,٨٦,٨٧,٨٨,٨٩,٩٠,	٩١,٩٢,٩٣,٩٤,٩٥,٩٦,٩٧,٩٨,٩٩,١٠٠,	١٠١,١٠٢,١٠٣,١٠٤,١٠٥,١٠٦,١٠٧,١٠٨,١٠٩,١١٠,	١١١,١١٢,١١٣,١١٤,١١٥,١١٦,١١٧,١١٨,١١٩,١٢٠,	١٢١,١٢٢,١٢٣,١٢٤,١٢٥,١٢٦,١٢٧,١٢٨,١٢٩,١٣٠,	١٣١,١٣٢,١٣٣,١٣٤,١٣٥,١٣٦,١٣٧,١٣٨,١٣٩,١١٣٠,	١٤١,١٤٢,١٤٣,١٤٤,١٤٥,١٤٦,١٤٧,١٤٨,١٤٩,١٥٠,	١٥١,١٥٢,١٥٣,١٥٤,١٥٥,١٥٦,١٥٧,١٥٨,١٥٩,١٦٠,	١٦١,١٦٢,١٦٣,١٦٤,١٦٥,١٦٦,١٦٧,١٦٨,١٦٩,١٧٠,	١٧١,١٧٢,١٧٣,١٧٤,١٧٥,١٧٦,١٧٧,١٧٨,١٧٩,١٨٠,	١٨١,١٨٢,١٨٣,١٨٤,١٨٥,١٨٦,١٨٧,١٨٨,١٨٩,١٩٠,	١٩١,١٩٢,١٩٣,١٩٤,١٩٥,١٩٦,١٩٧,١٩٨,١٩٩,٢٠٠,	٢٠١,٢٠٢,٢٠٣,٢٠٤,٢٠٥,٢٠٦,٢٠٧,٢٠٨,٢٠٩,٢١٠,	٢١١,٢١٢,٢١٣,٢١٤,٢١٥,٢١٦,٢١٧,٢١٨,٢١٩,٢٢٠,	٢٢١,٢٢٢,٢٢٣,٢٢٤,٢٢٥,٢٢٦,٢٢٧,٢٢٨,٢٢٩,٢٣٠,	٢٣١,٢٣٢,٢٣٣,٢٣٤,٢٣٥,٢٣٦,٢٣٧,٢٣٨,٢٣٩,٢٢٣٠,	٢٤١,٢٤٢,٢٤٣,٢٤٤,٢٤٥,٢٤٦,٢٤٧,٢٤٨,٢٤٩,٢٥٠,	٢٥١,٢٥٢,٢٥٣,٢٥٤,٢٥٥,٢٥٦,٢٥٧,٢٥٨,٢٥٩,٢٦٠,	٢٦١,٢٦٢,٢٦٣,٢٦٤,٢٦٥,٢٦٦,٢٦٧,٢٦٨,٢٦٩,٢٧٠,	٢٧١,٢٧٢,٢٧٣,٢٧٤,٢٧٥,٢٧٦,٢٧٧,٢٧٨,٢٧٩,٢٨٠,	٢٨١,٢٨٢,٢٨٣,٢٨٤,٢٨٥,٢٨٦,٢٨٧,٢٨٨,٢٨٩,٢٩٠,	٢٩١,٢٩٢,٢٩٣,٢٩٤,٢٩٥,٢٩٦,٢٩٧,٢٩٨,٢٩٩,٣٠٠,]%%% DOCUMENT\starttext \showframe \section{section one}\startlinenumbering\input tufte\input tufte\stoplinenumbering\dorecurse{20}{\section{محمد الجمل (١٨٧٢—١٩٢٣)}	مرحباً باعالم . ١٢٣٤٥٦٧٨٩٠ مرحباً بالعالم. ولد عام١٩٣٤.\footnote{تعليقة لطيفة.}\pagebreak}\stoptext=

num-ar.pdf
Description: Adobe PDF document
On 2 Aug 2015, at 18:15, Idris Samawi Hamid ادريس سماوي حامد <idris.ha...@colostate.edu> wrote:Dear Talal,Salaam. See below:On Sun, 02 Aug 2015 07:31:37 -0600, tala...@fastmail.fm <tala...@fastmail.fm> wrote:Thank you very much for this, Idris. It works nicely in the sample file you sent. But it goes off again once you add \setupdirections[bidi=global]. Consider the following:==\setupdirections[bidi=global]\setupthinrules[color=white]\setupwhitespace[big]\section{Incorrect}\startlinenumbering\startalignment[r2l]هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير.هذه رسالة جامعة مانعة ألفها الشيخ الفاضل...\thinrule===You're right. \thinrule has LR unicode characters which is probably why it gets thrown off. So if you turn off global bidi and then either 1) just go with either global RL or 2) invoke RL inside the linenumbering it will work:% \setupdirections[bidi=global]\righttoleft %% global RLor just\startlinenumbering\righttoleft %% local RL, not needed if global RL invoked\startalignment[r2l]Again, it's a barbarous (and temporary) workaround. See attached.WassalaamIdrisPS Unless there is a lot of Latin in the critical edition file, I would probably depend more on explicit dir commands (\righttolet, \lefttoright) and less on bidi, which is still buggy in a number of ways. Beyond the ConTeXt implementation: The unicode bidi algorithm was not designed with advanced typesetting and typography in mind, works best for text-editing etc. per se. so local bidi *may perhaps* be more useful than global bidi fo

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-02 Thread tala...@fastmail.fm
Thank you very much for this, Idris. What with the other bugs and problems I’ve 
faced with R2L (in footnotes, etc.), I was starting to wonder whether a more 
explicit, rather than global, use of RTL might be a better approach. I’m going 
to experiment with them, at least to learn how to use them with greater focus.

The good news is that apparently Hans has already patched the page-lin.lua file 
that Wolfgang had identified as the culprit, and it will be included in the 
next beta. 

Many thanks to you, Pablo, Wolfgang, and of course Hans so much for your help 
in getting these right-to-left issues solved. There are a couple of small bidi 
issues remaining, including that mentioned in the “footnotes when using RtL 
(Arabic)” thread. The one or two other ones I will post shortly. But, in any 
case, I have now completely moved my project over into ConTeXt, confident that 
it (and the team behind it) can handle all of the needs of a multilingual 
academic monograph and of a bi-direction, Arabic critical edition’s need

With many thanks,
Talal

> On 2 Aug 2015, at 18:15, Idris Samawi Hamid ادريس سماوي حامد 
>  wrote:
> 
> Dear Talal,
> Salaam. See below:
> 
> On Sun, 02 Aug 2015 07:31:37 -0600, tala...@fastmail.fm  
> wrote:
> 
>> Thank you very much for this, Idris. It works nicely in the sample file you 
>> sent. But it goes off again once you add \setupdirections[bidi=global]. 
>> Consider the following:
>> 
>> ==
> 
> 
>> \setupdirections[bidi=global]
>> 
>> \setupthinrules[color=white]
>> \setupwhitespace[big]
>> 
>> \section{Incorrect}
>> \startlinenumbering
>> \startalignment[r2l]
>> هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير.
>> هذه رسالة جامعة مانعة ألفها الشيخ الفاضل...
>> \thinrule
>> ===
> 
> You're right. \thinrule has LR unicode characters which is probably why it 
> gets thrown off. So if you turn off global bidi and then either 1) just go 
> with either global RL or 2) invoke RL inside the linenumbering it will work:
> 
> % \setupdirections[bidi=global]
> \righttoleft %% global RL
> 
> or just
> 
> \startlinenumbering
> \righttoleft %% local RL, not needed if global RL invoked
> \startalignment[r2l]
> 
> Again, it's a barbarous (and temporary) workaround. See attached.
> 
> Wassalaam
> Idris
> 
> PS Unless there is a lot of Latin in the critical edition file, I would 
> probably depend more on explicit dir commands (\righttolet, \lefttoright) and 
> less on bidi, which is still buggy in a number of ways. Beyond the ConTeXt 
> implementation: The unicode bidi algorithm was not designed with advanced 
> typesetting and typography in mind, works best for text-editing etc. per se. 
> so local bidi *may perhaps* be more useful than global bidi for the 
> critical-edition portion your project.
> 
> I'm not at all suggesting that this particular bug should not be a priority; 
> printing paragraph lines in a linenumbering environment *must* be 
> direction-agnostic. Just a matter of general strategy to consider.
> -- 
> Idris Samawi Hamid
> Professor of Philosophy
> Colorado State University
> Fort Collins, CO 
> 80523___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ending every paragraph

2015-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 02 Aug 2015 11:40:59 -0600, Wolfgang Schuster  
 wrote:



Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
2. August 2015 19:34
On Sun, 02 Aug 2015 11:25:01 -0600, Wolfgang Schuster
 wrote:


Alan BRASLAU <mailto:alan.bras...@cea.fr>
2. August 2015 09:11
On Sat, 1 Aug 2015 17:35:38 -0600

Hello Idris,

I would think that your only hope in this case would be through the  
use

of \startparagraph \stopparagraph, for otherwise TeX does not know
where a paragraph is to end (only where one begins, through an  
explicit

\par or through an implicit blank line).

My guess, untested, would be \setupparagraph[after=\thinrule]


The paragraph environment has no before/after keys


Then the wiki is mistaken:

http://wiki.contextgarden.net/Command/setupparagraphs

The page describes the paragraph*s* environment which isn’t related to
\startparagraph.



Ah you are right as usual. The comment to the link under "See also" at the  
bottom of


http://wiki.contextgarden.net/Command/startparagraph

was misleading.

Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ending every paragraph

2015-08-02 Thread Wolfgang Schuster

Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
2. August 2015 19:34
On Sun, 02 Aug 2015 11:25:01 -0600, Wolfgang Schuster 
 wrote:



Alan BRASLAU <mailto:alan.bras...@cea.fr>
2. August 2015 09:11
On Sat, 1 Aug 2015 17:35:38 -0600

Hello Idris,

I would think that your only hope in this case would be through the use
of \startparagraph \stopparagraph, for otherwise TeX does not know
where a paragraph is to end (only where one begins, through an explicit
\par or through an implicit blank line).

My guess, untested, would be \setupparagraph[after=\thinrule]


The paragraph environment has no before/after keys


Then the wiki is mistaken:

http://wiki.contextgarden.net/Command/setupparagraphs
The page describes the paragraph*s* environment which isn’t related to 
\startparagraph.


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ending every paragraph

2015-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 02 Aug 2015 11:25:01 -0600, Wolfgang Schuster  
 wrote:



Alan BRASLAU <mailto:alan.bras...@cea.fr>
2. August 2015 09:11
On Sat, 1 Aug 2015 17:35:38 -0600

Hello Idris,

I would think that your only hope in this case would be through the use
of \startparagraph \stopparagraph, for otherwise TeX does not know
where a paragraph is to end (only where one begins, through an explicit
\par or through an implicit blank line).

My guess, untested, would be \setupparagraph[after=\thinrule]


The paragraph environment has no before/after keys


Then the wiki is mistaken:

http://wiki.contextgarden.net/Command/setupparagraphs


and even if it would
the after key would be normally applied after the paragraph has needed.


That was my guess as to why it didn't work.

Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ending every paragraph

2015-08-02 Thread Wolfgang Schuster

Alan BRASLAU <mailto:alan.bras...@cea.fr>
2. August 2015 09:11
On Sat, 1 Aug 2015 17:35:38 -0600

Hello Idris,

I would think that your only hope in this case would be through the use
of \startparagraph \stopparagraph, for otherwise TeX does not know
where a paragraph is to end (only where one begins, through an explicit
\par or through an implicit blank line).

My guess, untested, would be \setupparagraph[after=\thinrule]


The paragraph environment has no before/after keys and even if it would 
the after key would be normally applied after the paragraph has needed.


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear Talal,
Salaam. See below:

On Sun, 02 Aug 2015 07:31:37 -0600, tala...@fastmail.fm  
 wrote:


Thank you very much for this, Idris. It works nicely in the sample file  
you sent. But it goes off again once you add  
\setupdirections[bidi=global]. Consider the following:


==




\setupdirections[bidi=global]

\setupthinrules[color=white]
\setupwhitespace[big]

\section{Incorrect}
\startlinenumbering
\startalignment[r2l]
هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير.
هذه رسالة جامعة مانعة ألفها الشيخ الفاضل...
\thinrule
===


You're right. \thinrule has LR unicode characters which is probably why it  
gets thrown off. So if you turn off global bidi and then either 1) just go  
with either global RL or 2) invoke RL inside the linenumbering it will  
work:


% \setupdirections[bidi=global]
\righttoleft %% global RL

or just

\startlinenumbering
\righttoleft %% local RL, not needed if global RL invoked
\startalignment[r2l]

Again, it's a barbarous (and temporary) workaround. See attached.

Wassalaam
Idris

PS Unless there is a lot of Latin in the critical edition file, I would  
probably depend more on explicit dir commands (\righttolet, \lefttoright)  
and less on bidi, which is still buggy in a number of ways. Beyond the  
ConTeXt implementation: The unicode bidi algorithm was not designed with  
advanced typesetting and typography in mind, works best for text-editing  
etc. per se. so local bidi *may perhaps* be more useful than global bidi  
for the critical-edition portion your project.


I'm not at all suggesting that this particular bug should not be a  
priority; printing paragraph lines in a linenumbering environment *must*  
be direction-agnostic. Just a matter of general strategy to consider.

--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

r2l-linenumbering-arabic.tex
Description: TeX document


r2l-linenumbering-arabic.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-02 Thread tala...@fastmail.fm
Thank you very much for this, Idris. It works nicely in the sample file you 
sent. But it goes off again once you add \setupdirections[bidi=global]. 
Consider the following:

==
\setuppapersize[A6]
\definefontfamily[mainface][serif][ALMFixed][%
features=arabic,
range=arabic,
]
\setupbodyfont [mainface]

\starttext \showframe
\setupdirections[bidi=global]

\setupthinrules[color=white]
\setupwhitespace[big]

\section{Incorrect}
\startlinenumbering
\startalignment[r2l]
هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير.
هذه رسالة جامعة مانعة ألفها الشيخ الفاضل...
\thinrule

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie 
dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et 
nulla.
\stopalignment
\stoplinenumbering

\section{Correct}
\startalignment[r2l]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie 
dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et 
nulla.
\stopalignment

\stoptext
=

With many thanks, and salam,
Talal

> On 2 Aug 2015, at 12:51, Idris Samawi Hamid ادريس سماوي حامد 
>  wrote:
> 
> On Sun, 02 Aug 2015 03:24:12 -0600, tala...@fastmail.fm  
> wrote:
> 
>> Thanks for that, Wolfgang. I can only hope that, as the culprit is known, it 
>> can be apprehended!
> 
> Talal, here is a barbarous workaround using \thinrule:
> 
> ==
> \setuppapersize[A6]
> \starttext \showframe
> 
> \setupthinrules[color=white]
> \setupwhitespace[big]
> 
> \section{Incorrect}
> \startlinenumbering
> \startalignment[r2l]
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque 
> molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie 
> vel et nulla.\thinrule
> 
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque 
> molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie 
> vel et nulla.
> \stopalignment
> \stoplinenumbering
> 
> \section{Correct}
> \startalignment[r2l]
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque 
> molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie 
> vel et nulla.
> \stopalignment
> 
> \stoptext
> ======
> 
> This effectively hides the problem. Unfortunately it is apparently not 
> straightforward to invoke the \thinrule automatically at the end of every 
> paragraph [see the other thread with Alan].
> 
> Best wishes
> Idris
> -- 
> Idris Samawi Hamid
> Professor of Philosophy
> Colorado State University
> Fort Collins, CO 80523
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 02 Aug 2015 03:24:12 -0600, tala...@fastmail.fm  
 wrote:


Thanks for that, Wolfgang. I can only hope that, as the culprit is  
known, it can be apprehended!


Talal, here is a barbarous workaround using \thinrule:

==
\setuppapersize[A6]
\starttext \showframe

\setupthinrules[color=white]
\setupwhitespace[big]

\section{Incorrect}
\startlinenumbering
\startalignment[r2l]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque  
molestie dictum quam non congue. Integer ut dolor vel mi vestibulum  
molestie vel et nulla.\thinrule


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque  
molestie dictum quam non congue. Integer ut dolor vel mi vestibulum  
molestie vel et nulla.

\stopalignment
\stoplinenumbering

\section{Correct}
\startalignment[r2l]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque  
molestie dictum quam non congue. Integer ut dolor vel mi vestibulum  
molestie vel et nulla.

\stopalignment

\stoptext
==

This effectively hides the problem. Unfortunately it is apparently not  
straightforward to invoke the \thinrule automatically at the end of every  
paragraph [see the other thread with Alan].


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ending every paragraph

2015-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Alan,

On Sun, 02 Aug 2015 01:11:38 -0600, Alan BRASLAU   
wrote:



On Sat, 1 Aug 2015 17:35:38 -0600
Idris Samawi Hamid ادريس سماوي حامد  wrote:


Suppose I want to end the last line of every paragraph with a
command, say, \thinrule, or a string of dots. Is there a
straightforward way to do that? TeX has \everypar but I'm not aware
of any, say, \endeverypar command.


Hello Idris,

I would think that your only hope in this case would be through the use
of \startparagraph \stopparagraph, for otherwise TeX does not know
where a paragraph is to end (only where one begins, through an explicit
\par or through an implicit blank line).

My guess, untested, would be \setupparagraph[after=\thinrule]


I actually tried that before sending the note to the list. It doesn't  
work; if it is supposed to work then I guess it's a bug.


Of course, using \start-stopparagraph is much more verbose than simply  
adding a control sequence at the end of each par.


It's also curious that, for all its power, TeX has no straightforward way  
to recognize paragraph endings. But I'll bet Hans could figure out a way  
to do it in lua.


On the other hand, this is not a priority at this juncture; more  
experimental.


Thanks, Alan, and

Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ending every paragraph

2015-08-02 Thread Alan BRASLAU
On Sat, 1 Aug 2015 17:35:38 -0600
Idris Samawi Hamid ادريس سماوي حامد  wrote:

> Suppose I want to end the last line of every paragraph with a
> command, say, \thinrule, or a string of dots. Is there a
> straightforward way to do that? TeX has \everypar but I'm not aware
> of any, say, \endeverypar command.

Hello Idris,

I would think that your only hope in this case would be through the use
of \startparagraph \stopparagraph, for otherwise TeX does not know
where a paragraph is to end (only where one begins, through an explicit
\par or through an implicit blank line).

My guess, untested, would be \setupparagraph[after=\thinrule]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] ending every paragraph

2015-08-01 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Suppose I want to end the last line of every paragraph with a command,  
say, \thinrule, or a string of dots. Is there a straightforward way to do  
that? TeX has \everypar but I'm not aware of any, say, \endeverypar  
command.


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] setupthinrules

2015-04-16 Thread Aditya Mahajan

On Thu, 16 Apr 2015, Thangalin wrote:


\define\thinrule\fancybreak


Or

\definefancybreak[thinrule][symbol=star]

I wish there was a custom context-writer for pandoc, where markdown 
elements were mapped to semantic commands rather than visual commands 
(pandoc maps **text** to {\bf text}, which is worse).


Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] setupthinrules

2015-04-16 Thread Thangalin
Thank you.

Here is an example that changes the \thinrule to something fancier:

\usemodule[fancybreak]

\setupfancybreak[symbol=star]
\define\thinrule\fancybreak
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] setupthinrules

2015-04-16 Thread Aditya Mahajan

On Wed, 15 Apr 2015, Thangalin wrote:


Pandoc uses "thinrule" (probably because it spans the page by default)
when generating ConTeXt documents.

Using only thinrule, how would you go about making a "totally sweet"
(ornamental) horizontal rule, such as those shown at:
http://tex.stackexchange.com/a/76555/2148


Have a look at the fancybreak module.

Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] setupthinrules

2015-04-15 Thread Thangalin
Hi,

From http://wiki.contextgarden.net/Command/setupthinrules :

\define\BeforeCommand{Before}
\define\AfterCommand{After}
\define\BetweenCommand{Between}

\setupthinrules[
  before=\BeforeCommand,
  after=\AfterCommand,
  inbetween=\BetweenCommand,
  color=gray,
  height=1em,
]

\starttext
  \input knuth

  \thinrule

  \input knuth
\stoptext

This does not produce the expected output; it appears as though the
before/after/inbetween commands, as documented on the wiki, have no
behaviour.

Pandoc uses "thinrule" (probably because it spans the page by default)
when generating ConTeXt documents.

Using only thinrule, how would you go about making a "totally sweet"
(ornamental) horizontal rule, such as those shown at:
http://tex.stackexchange.com/a/76555/2148

Thank you!
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange page break before \title

2013-09-06 Thread Wolfgang Schuster

Am 06.09.2013 um 13:09 schrieb Xan :

> Hi,
> 
> I have this setuptitle:
> 
> \setuphead[title][before={\page[no]},
>after={\startalignment[center]
> {\dorecurse{30}~}\thinrule{\dorecurse{30}~}%

\setuphead
  [title]
  [page=no,
   after=\midaligned{\blackrule[width=7cm,height=\linewidth]}]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Strange page break before \title

2013-09-06 Thread Xan
Hi,

I have this setuptitle:

\setuphead[title][before={\page[no]},
after={\startalignment[center]
{\dorecurse{30}~}\thinrule{\dorecurse{30}~}%


and this document:

\starttext

\startalignment[center]
Nom: \hl[24] Curs: \hl[4]
\stopalignment


\title{Nom del tema}

...

\stoptext

Before title, context breaks a page. Why? If I do that manually no page break.

Thanks in advance,
Xan.

PS: Please CCme
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A thinner hrule for headers

2013-03-24 Thread Otared Kavian
Hi,

Maybe you need something like \hairline:

\setupthinrules[height=.1pt,depth=.1pt]
\setupheader[after=\hairline]

You can also enclose your header in a \framed commande, such as
\framed[frame=off,bottomframe=on]

Best regards: OK

On 24 mars 2013, at 13:32, Thomas Kreuzer  wrote:

> Hello everyone,
> 
> I'd like to know if it is possible to get a thinner hrule in headers (mkiv).
> 
> Right now I am using
> 
> \setupheader[after=\hrule]
> 
> replacing hrule with thinrule or hairline results in space below the header 
> text and the line, and the line actually spans two lines.
> 
> How can I control the thickness of the line, I remember having read something 
> about using frames, but I can't find the post anymore.
> 
> Thanks in advance, and 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] A thinner hrule for headers

2013-03-24 Thread Thomas Kreuzer

Hello everyone,

I'd like to know if it is possible to get a thinner hrule in headers (mkiv).

Right now I am using

\setupheader[after=\hrule]

replacing hrule with thinrule or hairline results in space below the 
header text and the line, and the line actually spans two lines.


How can I control the thickness of the line, I remember having read 
something about using frames, but I can't find the post anymore.


Thanks in advance, and 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \thinrule in \margintext doesn't work

2013-01-24 Thread Hans Hagen

On 1/24/2013 10:26 AM, Devendra Ghate wrote:


**MWE**

\starttext
%\margintext{\thinrule A margintext with thinrule.}
\margintext{\hairline A margintext with hairline.}
\stoptext


btw, after fixing it this becomes a MNWE as a \margintext without 
anything following it will never show up.


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \thinrule in \margintext doesn't work

2013-01-24 Thread Hans Hagen

On 1/24/2013 10:26 AM, Devendra Ghate wrote:

If \thinrule is used in \margintext, context gives error. \hairline
works fine.


You can add an \unexpanded in pack-mrl.mkiv and remake the format:

\unexpanded\def\thinrule

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \thinrule in \margintext doesn't work

2013-01-24 Thread Devendra Ghate
If \thinrule is used in \margintext, context gives error. \hairline 
works fine.



*Details:* ConTeXt  ver: 2013.01.10 01:04 MKIV  fmt: 2013.1.13

*Error Message:*
! Undefined control sequence.

system  > tex > error on line 2 in file a.tex: Undefined control 
sequence ...


1 \starttext
2 >>  \margintext{\thinrule A margintext with thinrule.}
3 %\margintext{\hairline A margintext with hairline.}
4 \stoptext
5


\thinrule ->\strut \bgroup \edef \p_height
{\directthinrulesparameter \c!hei...
 \thinrule
 A margintext with thinrule.
\doifelsenothing #1->\edef \m_syst_string_one {#1
 }\ifx 
\m_syst_string_one \e...

\typo_margins_data_yes_indeed ...felsenothing {#3}
  \donefalse \donetrue 
\ifdo...

l.2 ...text{\thinrule A margintext with thinrule.}


**MWE**

\starttext
%\margintext{\thinrule A margintext with thinrule.}
\margintext{\hairline A margintext with hairline.}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \startitemize[columns] once again...

2012-11-17 Thread Otared Kavian
Hi Marcin, 

I think there is a small bug with itemize and columns: in another thread (with 
Subject « vertical alignment problem in column items» ) Dalyoung reported also 
an issue, which is related to what you have observed.
Please see my message in a reply to Dalyoung's message, where I reported some 
testings but I am not sure when this bug appeared (in mkii, the behaviour is 
essentially correct).

Best regards: OK

On 16 nov. 2012, at 21:00, Marcin Borkowski  wrote:

> Dnia 2012-11-14, o godz. 11:38:48
> Philipp Gesang  napisał(a):
> 
>> ·
>> 
>>> Dnia 2012-11-10, o godz. 03:23:11
>>> Marcin Borkowski  napisał(a):
>>> 
>>>> This minimal example behaves in a strange way:
>>>> 
>>>> \starttext
>>>>  Some text
>>>>  \startitemize[columns,two,joinedup]
>>>>  \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
>>>>  \item xyz% $\frac{x^5-3}{x^3+x-2}$.
>>>>  \stopitemize
>>>> \stoptext
>>>> 
>>>> If we remove the percentage signs in the items, an additional
>>>> vertical skip appears.  Is it a feature or a bug?
>>> 
>>> Hi, could anybody look into it?  I tried also \smash-ing the
>>> formulae - with no luck.
>> 
>> Hi Marcin, appears like the vertical spacing is extended when
>> content of the item exceeds the line height. The behavior is not
>> restricted to math mode, though I can’t say if there is an
>> official way to prevent or customize it. If you are desperate to
>> get around it, maybe put the content in a box of fixed height.
>> 
>> ·· demo ·····
>> \defineframed[crampy][height=\ht\strutbox,frame=off]
>> \starttext
>>  before
>>  \thinrule
>>  \startitemize[columns,two,joinedup]
>>  \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}};
>>  \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}.
>>  \stopitemize
>>  \thinrule
>>  after
>> 
>>  before
>>  \thinrule
>>  \startitemize[columns,two,joinedup]
>>  \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
>>  \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
>>  \stopitemize
>>  \thinrule
>>  after
>> 
>>  before
>>  \thinrule
>>  \startitemize[columns,two,joinedup]
>>  \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
>>  \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
>>  \stopitemize
>>  \thinrule
>>  after
>> \stoptext
>> ·
>> 
>> Hth, Philipp
> 
> Yes it does, thanks!  (It helps in some other strange cases, too.)
> What is especially interesting, is that \strut\smash{...} didn't help.
> 
> Best,
> 
> -- 
> Marcin Borkowski
> http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
> Adam Mickiewicz University
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \startitemize[columns] once again...

2012-11-16 Thread Marcin Borkowski
Dnia 2012-11-14, o godz. 11:38:48
Philipp Gesang  napisał(a):

> ·
> 
> > Dnia 2012-11-10, o godz. 03:23:11
> > Marcin Borkowski  napisał(a):
> > 
> > > This minimal example behaves in a strange way:
> > > 
> > > \starttext
> > >   Some text
> > >   \startitemize[columns,two,joinedup]
> > >   \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
> > >   \item xyz% $\frac{x^5-3}{x^3+x-2}$.
> > >   \stopitemize
> > > \stoptext
> > > 
> > > If we remove the percentage signs in the items, an additional
> > > vertical skip appears.  Is it a feature or a bug?
> > 
> > Hi, could anybody look into it?  I tried also \smash-ing the
> > formulae - with no luck.
> 
> Hi Marcin, appears like the vertical spacing is extended when
> content of the item exceeds the line height. The behavior is not
> restricted to math mode, though I can’t say if there is an
> official way to prevent or customize it. If you are desperate to
> get around it, maybe put the content in a box of fixed height.
> 
> ·· demo ·
> \defineframed[crampy][height=\ht\strutbox,frame=off]
> \starttext
>   before
>   \thinrule
>   \startitemize[columns,two,joinedup]
>   \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}};
>   \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}.
>   \stopitemize
>   \thinrule
>   after
> 
>   before
>   \thinrule
>   \startitemize[columns,two,joinedup]
>   \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
>   \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
>   \stopitemize
>   \thinrule
>   after
> 
>   before
>   \thinrule
>   \startitemize[columns,two,joinedup]
>   \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
>   \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
>   \stopitemize
>   \thinrule
>   after
> \stoptext
> ·
> 
> Hth, Philipp

Yes it does, thanks!  (It helps in some other strange cases, too.)
What is especially interesting, is that \strut\smash{...} didn't help.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \startitemize[columns] once again...

2012-11-14 Thread Philipp Gesang
·

> Dnia 2012-11-10, o godz. 03:23:11
> Marcin Borkowski  napisał(a):
> 
> > This minimal example behaves in a strange way:
> > 
> > \starttext
> >   Some text
> >   \startitemize[columns,two,joinedup]
> >   \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
> >   \item xyz% $\frac{x^5-3}{x^3+x-2}$.
> >   \stopitemize
> > \stoptext
> > 
> > If we remove the percentage signs in the items, an additional vertical
> > skip appears.  Is it a feature or a bug?
> 
> Hi, could anybody look into it?  I tried also \smash-ing the formulae -
> with no luck.

Hi Marcin, appears like the vertical spacing is extended when
content of the item exceeds the line height. The behavior is not
restricted to math mode, though I can’t say if there is an
official way to prevent or customize it. If you are desperate to
get around it, maybe put the content in a box of fixed height.

·· demo ·
\defineframed[crampy][height=\ht\strutbox,frame=off]
\starttext
  before
  \thinrule
  \startitemize[columns,two,joinedup]
  \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}};
  \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}.
  \stopitemize
  \thinrule
  after

  before
  \thinrule
  \startitemize[columns,two,joinedup]
  \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
  \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
  \stopitemize
  \thinrule
  after

  before
  \thinrule
  \startitemize[columns,two,joinedup]
  \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
  \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
  \stopitemize
  \thinrule
  after
\stoptext
·

Hth, Philipp

> 
> Best,
> 
> -- 
> Marcin Borkowski
> http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
> Adam Mickiewicz University
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpCrhMXZEnyO.pgp
Description: PGP signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] itemize behaviour

2012-07-03 Thread Meer, H. van der
I do not understand the workings of the itemize.
What I want is two nested itemlists. The outer one unpacked, the inner one 
packed. In the inner one the itemlist should be joinedup with the text before 
it.
I do not get this working, see the examples. The inner list is separated from 
the "Intro to inner list". It looks like the joinedup in the second example has 
no effect, because deleting it makes no difference. Switching the joinedup over 
to the outer itemize in the third example pulls everything together and 
destroys the unpacked of the first list.

How to achieve the following?
--
- Intro to inner list
  o one inner list
  o two inner list

- second outer item
--

Hans van der Meer

\starttext
\setupitemgroup[itemize][1][unpacked][symbol=4]
\setupitemgroup[itemize][2][unpacked][symbol=5]
\startitemize
\startitem
Intro to inner list.
\startitemize
\startitem one inner list \stopitem
\startitem two inner list \stopitem
\stopitemize
\stopitem
\startitem second outer item \stopitem
\stopitemize
\blank\thinrule\blank
\setupitemgroup[itemize][1][unpacked][symbol=4]
\setupitemgroup[itemize][2][packed,joinedup][symbol=5]
\startitemize
\startitem
Intro to inner list.
\startitemize
\startitem one inner list \stopitem
\startitem two inner list \stopitem
\stopitemize
\stopitem
\startitem second outer item \stopitem
\stopitemize
\blank\thinrule\blank
\setupitemgroup[itemize][1][unpacked,joinedup][symbol=4]
\setupitemgroup[itemize][2][packed][symbol=5]
\startitemize
\startitem
Intro to inner list.
\startitemize
\startitem one inner list \stopitem
\startitem two inner list \stopitem
\stopitemize
\stopitem
\startitem second outer item \stopitem
\stopitemize
\stoptext



itemize.pdf
Description: itemize.pdf
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] thinrules

2012-05-17 Thread Wolfgang Schuster

Am 17.05.2012 um 18:09 schrieb Meer, H. van der:

> Thanks,
> 
> From your answer I understand that collapsing the preceding vertical space is 
> impossible with \thinrules.

\thinrule adds \strut at the begin of the rule which results in vertical space 
above and below.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math signs in itemize

2011-09-25 Thread R. Ermers
Thanks for all your replies!

I changed the superscript e into \high{e}. There is one other math item: 
$\frac1{40}$ in the whole text.

I am using mkiv.
Until the recent update the document (90 pp.) was processed fine.

I add a minimal example below.

Thanks again for looking into this problem.

Regards,

Robert

+++

\enableregime[utf]
\setuppapersize[A4][A4]

\startsectionblockenvironment[bodypart]
\setupheader[text][location=text,state=high,strut=yes,after=\vskip-0.8em\thinrule]
\setupfootertexts[{\tfx \copyright R. Ermers}][][][{\tfx \copyright R. Ermers}]
\setuppagenumber[number=1]
\stopsectionblockenvironment

 %\setmainfont[Antykwa Poltawskiego]


\usemodule[t][lettrine]
\usemodule[t][annotation]
\usemodule[newmat] %vanwege de breuk


\newdimen\Margin
\Margin=20mm
\newdimen\Tekstbreedte
\Tekstbreedte=14cm


\setupinitial
  [state=start,
n=3,
distance=.15pc,
 font=SerifBold,
  ]
\definefontfeature
  [arabic]
  [mode=node,language=dflt,script=arab,ccmp=yes,
   init=yes,medi=yes,fina=yes,isol=yes,
   liga=yes,dlig=yes,rlig=yes,clig=yes,calt=yes,
   mark=yes,mkmk=yes,kern=yes,curs=yes]


\usemodule[t][simplefonts]
\setuplayout
[width=148mm,height=268mm\relax,
backspace=25mm,topspace=20mm,
header=12pt,headerdistance=15mm,
footer=5mm,footerdistance=8mm,
%rightmargin=\zeropoint,
location=middle,marking=off]
\setupwhitespace[halfline]

\definelayer[graphics][position=yes]
\setupbackgrounds[page][background=graphics]

\setuplanguage[nl]
[leftquote=\upperleftsinglesixquote,
 rightquote=\upperrightsingleninequote,
 leftquotation=\leftguillemot,
 rightquotation=\rightguillemot]
\mainlanguage[nl]
\hyphenation{lam-pet-stel}

\definefloat[figureonder][figure]
\definefloat[edgefigure][figure]
\setupcaption[figure][location=right]
\setupcaption[figureonder][location=bottom]
\setupcaption[edgefigure][location=bottom]
\setupfloat[edgefigure]
[leftmargindistance=-\leftmargintotal,rightmargindistance=-\rightmargintotal,
default={outer,low},criterium=.67\textwidth,numbering=no]
\setupcaptions[width=max,align=middle,style=small,number=no]




 \defineitemgroup[ongenummerd][levels=3]
\setupitemgroup[ongenummerd][1][5]
\setupitemgroup[ongenummerd][2][4]
\setupitemgroup[ongenummerd][2][3]
\defineitemgroup[genummerd][levels=3]
\setupitemgroup[genummerd][1][n]
\setupitemgroup[genummerd][2][a]
\setupitemgroup[genummerd][2][r]
\setuptolerance[horizontal,verytolerant] %hyphenation

\setuppagenumbering[state=start,alternative=doublesided,location=footer,style=bold]

\setupheadertexts
[{\getmarking[subsectionnumber]\enskip\getmarking[subsection]}]
[]
[]
[{\getmarking[sectionnumber]\enskip\getmarking[section]}]%

\setuphead[part][placehead=no]
\defineblankmethod[nobreak]{\penalty\plustenthousand}
\defineblankmethod[endgraf]{\endgraf}
\setuphead[section][grid=line]

\setupheader[style=small]

\definepagebreak[chapter][yes,empty,right]
\setupinmargin[location=both,line=1,align=normal,stack=yes,style=small,color=red,distance=5mm]

\hyphenation{ver-ant-woor-de-lijk-heid}
\setupindenting[yes,medium,first]
\setupfloats[indentnext=no]
\setupfootnotedefinition[location=left,distance=1em,headalign=flushleft]
\setupnote[footnote][textstyle=,numbercommand=,margindistance=8mm,rule=off,before=,interaction=yes,align={normal,hyphenated}]

\setupinteraction[style=]

\define[2]\QuotationCommand
 {
\setupindenting[no]
\switchtobodyfont[arial,10pt]
\textrule{#1}\blank \vfil\nobreak\penalty1\endgraf
\startcolumns#2\stopcolumns
\hspace \nobreak\penalty1000
\textrule
}

\definetypeface[braqqadocio][ss][Xsans][Braqqadocio]
\usetypescriptfile[type-gentium]

\setupbodyfont[gentium,11pt]
\definefontfeature
[default]
[default]
[protrusion=quality,expansion=quality]
\setupalign[hz,hanging]

\setuplettrine[Nindent=0pt,Lines=2,Oversize=0,TextFont=\sc]
\setuplettrine[T][Findent=0.2em,Hang=.12,TextFont=\sc]
\setuplettrine[A][Slope=0.4em,Findent=0.2em,Hang=0.12]
\setuplettrine[V][Slope=-0.1em,Findent=0.2em,Hang=0.12]
\setuplettrine[W][Slope=-0.1em,Findent=0.2em,Hang=0.12]
\sethyphenatedurlnormal{:=?&}
\sethyphenatedurlbefore{?&}
\sethyphenatedurlafter {:=}
\setupbackground[frame=on]
\setupexternalfigures[directory={./../../MOP}]

\setupitemize[1][paragraph,atmargin][width=3mm,distance=5pt,itemalign=flushleft,indentnext=no]
\setupitems[align=right]
\starttext
\lettrine{E}{lk} mens wordt gevormd door zijn omgeving
\startitemize
\item het type van de
\item ideeën over
\item de koeien
\item overige factoren (zoals paarden)
\stopitemize

The text continues ... The text continues The text continues The text continues
\stoptext

Op 25 sep 2011, om 13:39 heeft Alan Braslau het volgende geschreven:

> On Sun, Sep 25, 2011 at 01:02:07PM +0200, R. Ermers wrote:
>> 
>> But I use very, very little math, only once or twice, as in  7$^{th}$, but I 
>> could solve that otherwise. 
> 
> You may want to use 7\high{th}.
> 
>> My main problem occurs in itemizati

Re: [NTG-context] \hrulefill in ConTeXt?

2011-07-30 Thread Wolfgang Schuster

Am 30.07.2011 um 16:05 schrieb Marcin Borkowski:

> Hi,
> 
> how to achieve an effect similar to \hrulefill in plain TeX?  (Or maybe
> with a specified width instead of a "fill"?)


\definehbox[RuleBox][5cm] % creates a box with the name \hboxRuleBox and a 
width of 5cm

\starttext

text \thinrule

text \thinrule\ text

text \inframed[frame=off,width=4cm]{\thinrule} text

text \hboxRuleBox{\thinrule} text

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math spacing

2011-03-14 Thread Otared Kavian
Hi Wolfgang,On 14 mars 2011, at 12:39, Wolfgang Schuster wrote:[…]Wasn’t this what i showed in my example?Yes indeed your examples showed exactly this: sorry for not mentioning your point.[…]\setupmathematics[autopunctuation=no]Unfortunately this does not help at all, at least on my installation of ConTeXt.It seems to me that the effect of the above command is to modify the spacing between characters and punctuation marks, but still the latter are misplaced with LM math fonts (with \bf or \rm there is no problem).Best regards: OKPS: here is the source which produces the attached PDF:\starttext\startbuffer[MathSpacing]Example with mkiv:With \type{\tfd}:$\tfd Q, Y, N, P, Y, Z, \quad PYR$\blank[big]With \type{\bf}$\bf Q, Y, N, P, Y, Z, \quad PYR$\blank[big]With normal LM math fonts:$Q,Y,N,P,Y,Z, \quad PYR$\stopbuffer\getbuffer[MathSpacing]\blank\thinrule\blankNow with \type{\setupmathematics[autopunctuation=no]}\setupmathematics[autopunctuation=no]\getbuffer[MathSpacing]\stoptext

math-spacing.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hairline in header

2011-01-11 Thread 李延瑞
2011/1/11 Florian Wobbe :
>>> how can I move the thinrule further up in this example? I'd like to use 
>>> \thinrule but still want the position like this:
>>>
>>> \setupheader[text][after=\hrule]
>>>
>>
>> Hi Florian,
>>
>> Maybe this can help you.
>>
>> \setuplayout[header=1cm,headerdistance=1cm]
>> \setupheader[text][after=\vskip-0.8em\thinrule]
>> \starttext
>> \dorecurse{12}{\input knuth\par}
>> \stoptext
>
> Thanks, that works. I wonder if you can configure this with \setupthinrules.
> \setupthinrules[before=\vskip-0.8em] does no work.
>

Hm, if you use:
\setupthinrules[n=1, before=\vskip-0.8em]
\setupheader[text][after=\thinrules]

it can work.

However ConTeXt advises to use \blank instead of \vskip, for example:

\setupthinrules[n=1, before={\blank[-0.8em]}]
\setupheader[text][after=\thinrules]

-- 
Best regards,

Li Yanrui (李延瑞)
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hairline in header

2011-01-11 Thread Florian Wobbe
>> how can I move the thinrule further up in this example? I'd like to use 
>> \thinrule but still want the position like this:
>> 
>> \setupheader[text][after=\hrule]
>> 
> 
> Hi Florian,
> 
> Maybe this can help you.
> 
> \setuplayout[header=1cm,headerdistance=1cm]
> \setupheader[text][after=\vskip-0.8em\thinrule]
> \starttext
> \dorecurse{12}{\input knuth\par}
> \stoptext

Thanks, that works. I wonder if you can configure this with \setupthinrules.
\setupthinrules[before=\vskip-0.8em] does no work.

Florian

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hairline in header

2011-01-10 Thread 李延瑞
2011/1/11 Florian Wobbe :
>> \setupheader[text][after=\thinrule]
>> \setuplayout[header=1cm,headerdistance=1cm]
>> \starttext
>> \dorecurse{12}{\input knuth\par}
>> \stoptext
>
> Hi,
>
> how can I move the thinrule further up in this example? I'd like to use 
> \thinrule but still want the position like this:
>
> \setupheader[text][after=\hrule]
>

Hi Florian,

Maybe this can help you.

\setuplayout[header=1cm,headerdistance=1cm]
\setupheader[text][after=\vskip-0.8em\thinrule]
\starttext
\dorecurse{12}{\input knuth\par}
\stoptext

-- 
Best regards,

Li Yanrui (李延瑞)
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hairline in header

2011-01-10 Thread Florian Wobbe
> \setupheader[text][after=\thinrule] 
> \setuplayout[header=1cm,headerdistance=1cm] 
> \starttext 
> \dorecurse{12}{\input knuth\par} 
> \stoptext 

Hi,

how can I move the thinrule further up in this example? I'd like to use 
\thinrule but still want the position like this:

\setupheader[text][after=\hrule]

Florian

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] empty page before chapter and part

2010-12-12 Thread Emanuele Sacco
Thanks, works perfectly.

ES

2010/12/11 Wolfgang Schuster :
>
> Am 11.12.2010 um 17:58 schrieb Emanuele Sacco:
>
>> Hi all.
>> With the following code  the second and eighth pages of the document
>> are not empty as it would like.
>> Thanks in advance
>>
>> 
>>
>> \setuppapersize[A4][A4]
>>
>> \setuplayout
>> [location=doublesided,
>> header=5mm,
>> headerdistance=15mm,
>> footerdistance=0mm,
>> textwidth=14cm]
>> \setuppagenumbering
>> [alternative=doublesided,
>> location=marginedge,
>> way=bytext,
>> partnumber=no]
>>
>>
>> \setupheadertexts[][part][chapter][]
>
> You can replace this block
>
>> \setupbackgrounds[state=repeat]
>> \setupbackgrounds[header][text][background=whatever]
>> \defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}]
>> \couplepage[chapter][before={\defineoverlay[whatever][]}]
>> \setuphead[chapter][before={\pagetype[chapter]}]
>
> with
>
> \setupheader[text][after=\hrule] % \thinrule
>
> Now you can suppress the line on an empty page before the chapter start with
>
> \setuphead
>  [chapter]
>  [page={yes,header,right}]
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___
>



-- 
Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
binario e quelli che non lo conoscono.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] empty page before chapter and part

2010-12-11 Thread Wolfgang Schuster

Am 11.12.2010 um 17:58 schrieb Emanuele Sacco:

> Hi all.
> With the following code  the second and eighth pages of the document
> are not empty as it would like.
> Thanks in advance
> 
> 
> 
> \setuppapersize[A4][A4]
> 
> \setuplayout
> [location=doublesided,
> header=5mm,
> headerdistance=15mm,
> footerdistance=0mm,
> textwidth=14cm]
> \setuppagenumbering
> [alternative=doublesided,
> location=marginedge,
> way=bytext,
> partnumber=no]
> 
> 
> \setupheadertexts[][part][chapter][]

You can replace this block

> \setupbackgrounds[state=repeat]
> \setupbackgrounds[header][text][background=whatever]
> \defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}]
> \couplepage[chapter][before={\defineoverlay[whatever][]}]
> \setuphead[chapter][before={\pagetype[chapter]}]

with

\setupheader[text][after=\hrule] % \thinrule

Now you can suppress the line on an empty page before the chapter start with

\setuphead
  [chapter]
  [page={yes,header,right}]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] tabulate and p(fixed)/p(fit)

2010-11-22 Thread Herbert Voss
can some please explain the (for me) funny output
of p(fit) and p(fixed)?

Herbert,  mkiv and ii

\starttext

%\showframe
\showstruts

\startbuffer
   \toplinebox{\framed[width=2cm,height=0.8cm]{i}}
\stopbuffer

\starttabulate[|p|p|]
   \NC \getbuffer   \NC some more text \NC\NR
   \NC some text in this column \NC\NC\NR
\stoptabulate

\thinrule

\starttabulate[|p(3cm)|p|]
   \NC \getbuffer   \NC some more text \NC\NR
   \NC some text in this column \NC\NC\NR
\stoptabulate

\thinrule

\starttabulate[|p(fit)|p|]
   \NC \getbuffer   \NC some more text \NC\NR
   \NC some text in this column \NC\NC\NR
\stoptabulate

\thinrule

\starttabulate[|p(fixed)|p|]
   \NC \getbuffer   \NC some more text \NC\NR
   \NC some text in this column \NC\NC\NR
\stoptabulate

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hairline in header

2010-11-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Thanks, that's it.

Cheers,

Lukas


On Thu, 04 Nov 2010 10:01:18 +0100, Wolfgang Schuster 
 wrote:


\setupheader[text][after=\thinrule]
\setuplayout[header=1cm,headerdistance=1cm]
\starttext
\dorecurse{12}{\input knuth\par}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Hairline in header

2010-11-04 Thread Wolfgang Schuster

Am 04.11.2010 um 09:07 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> how to add the hairline (or a kind of the horizontal rule) under the header 
> area?


\setupbackgrounds[header][text][bottomframe=on]
\setuplayout[header=1cm,headerdistance=1cm]
\starttext
\dorecurse{12}{\input knuth\par}
\stoptext

or

\setupheader[text][after=\thinrule]
\setuplayout[header=1cm,headerdistance=1cm]
\starttext
\dorecurse{12}{\input knuth\par}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] page numbering with make-up-pages

2010-06-17 Thread Vyatcheslav Yatskovsky

Hi,

Please, I need urgent help with page numbering!

I begin my document with three "standardmakeup" pages, and expect fourth 
(normal) one to have number 4. But it is 1, whatever I do. In 
particular, \setuppagenumbering[number=4] has no effect.


In other words, I need numbering from the very first page.

Please, see attached file 0.tex.

--
Best Regards,
Vyatcheslav Yatskovsky
\synctex=1
\setupbodyfont[mscore,rm,14pt] 
\usemodule[fullpage][style={cm,plain}]

% --- Discipline-Dependent Definitions ---
\def \sps {special-purpose digital computers}
\def \mfst {Module №1 "Main principles of organization of \sps"} %Основні принципи організації СЦОМ
\def \msec {Module №2 "Principles of construction of airborne computers"} %Принципи побудови бортових ЦОМ
\def \ccs {control digital computers}
\def \ads {airborne digital computers}
\def \ad {airborne digital computer}

\def \SylIndex {Р01 - 8.092502a - 39}
\def \Discipline {"Special-purpose digital computers" }
\def \AcademProgIndex {Н-3-8.092502-31 }
\def \Year {5}
\def \Semester {10}

% comment out non-existing activities
\def \LectureHours {36}
\def \LabHours {18}
\def \SelfStudyHours {104}
\def \IndividualHours {4}
\def \TotalHours {162}
\def \Homeworks {2 (10 semester)}
\def \ExamSemester {10}
%\def \DifTestSemester {10}


% --- Reusable Buffers  ---
\startbuffer[UpperBanner]
	{\bf NATIONAL AVIATION UNIVERSITY}

	INSTITUTE OF ELECTRONICS AND CONTROL SYSTEMS

	Airspace control systems faculty

	Aviation computer-integrated complexes department
\stopbuffer

\startbuffer[ApprovedByPolukhin]
	\startalignment[right]\setupnarrower[left=12cm]\startnarrower[left]
	"Approved"

	Deputy Rector for Academics

	\thinrule\hskip1mm A.Polukhin

	"\hl[2]"\thinrule\hskip1mm\currentdate[year]\par
	\stopnarrower\stopalignment
\stopbuffer

\startbuffer[SyllabusIndex]
	\startalignment[right]
	Index  \SylIndex
	\stopalignment
\stopbuffer

\startbuffer[DisciplineBanner]
	{\bfa SYLLABUS}

	of the discipline

	{\bfa \Discipline}

	(according to ECTS)
\stopbuffer

\startbuffer[BranchAndSpeciality]
	\startalignment[right]
	Branch\hskip1.4cm 		0925 "Automation and computer-integrated technologies"

	Specialty\hskip1cm 6.092500 "Computer-integrated technological processes and productions"
	\stopalignment
\stopbuffer

\startbuffer[DisciplineHours]
	\startalignment[right]
	Year \Year	\hfilSemester \Semester 
	\blank[medium]

	Lectures -- {\LectureHours} hours

	Laboratory work -- {\LabHours} hours

	Private work -- {\SelfStudyHours} hours

	Individual work -- {\IndividualHours} hours

	Total -- {\TotalHours} hours
	
  \blank[medium]
	\ifx \Homeworks \undefined \else Homeworks -- {\Homeworks} \fi

	\ifx \ExamSemester \undefined \else Exam  -- {\ExamSemester} semester \fi

	\ifx  \DifTestSemester \undefined \else Differentiated test --  {\DifTestSemester} semester \fi
	\stopalignment
\stopbuffer

\def \FillInDate {"\hl[2]"\hl[4]\hskip1mm 20\hl[2]\hskip.5mm}

\def \FilledDate#1#2#3 {" #1 "\_\_\_#2\_\_\_ #3}

% --- -
% 
% 
\starttext

% --- FIRST PAGE
\startstandardmakeup[align=center]
	\setupbackgrounds[header][text][background=]
	\setupindenting[none]
	\setupinterlinespace[24pt]

	\getbuffer[UpperBanner]

	\blank[line]

	\getbuffer[ApprovedByPolukhin]

	\blank[line]

	\getbuffer[SyllabusIndex]

	\blank[line]

	\getbuffer[DisciplineBanner]

	\blank[line]
	
	\getbuffer[BranchAndSpeciality]

	\blank[line]

	\getbuffer[DisciplineHours]

	\par\vfill
  Kiyv \currentdate[year]
\stopstandardmakeup

% --- SECOND PAGE
 
\startstandardmakeup[doublesided=no]
	\setupindenting[yes, big, first]
	\setupinterlinespace[24pt]

The syllabus of the discipline \Discipline is based on the Curriculum № РБ-3-502-a/01, branch 0925 „Automation and computer-integrated technologies”, specialty 6.092500 “Computer-integrated techno-logical processes and productions”; academic program of this discipline  index \AcademProgIndex,  approved \FilledDate{12}{06}{2002};\hskip1mm “Provisional Regulations on Training according to ECTS (within the pedagogical experiment)” and “Provisional Regulations on the Assessment grading system” approved by the Rector of the University (order №122 of 15.06.2004).

\blank[line]

The syllabus was developed by 

%\blank[line]
Associate Professor, Candidate of Technical Sciences  \thinrule O.Y. Krasnousova

%\blank[line]
Assistant \thinrule T.I. Lukinova

%\blank[line]
Assistant \thinrule V.S. Yatskovsky

\blank[line]

The syllabus was 	discussed and approved at the meeting of the department of Aviation Computer-Integrated Complexes, protocol № \hl[2] \FillInDate.
\blank[line]
Head of the Department  \thinrule  V.M. Sineglazov

\blank[line]

The syllabus has been discussed and approved by the Scien

[NTG-context] stopcolumns causes new page!!!?

2010-04-11 Thread Xan

Hi,

I attach a file. In page 7, when I put \stopcolumns, then automatically 
context create one new page. When I comment that, all is fine. See the 
mark "%here is the problem" for the exact position.


Please, CCme.

Thanks a lot,
Xan.
% interface=en output=pdftex
% texexec --mode=solucions nomfitxer.context per veure les solucions

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt]

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]

% Page number
\setuppagenumbering [location={footer}]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups


% Enable colors and activate hyperlinks
\setupcolors [state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL 
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf 
http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]

\useURL [link:toomates][{http://www.toomates.net}][] [{\tf 
http://www.toomates.net}]

\useURL [link:aubanell][{http://www.xtec.cat/\~{}aaubanel/}][] [{\tf 
http://www.xtec.cat/\~{}aaubanel/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\ssbfc}, header=nomarking]
\setuphead[subsection][style={\ssbfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\setupbibtex[database=probabilitat,sort=author]
\setuppublications [alternative=ams,sorttype=bbl, criterium=all]% era 
criterium=cite per a llistar només els citats%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]

% Vertical spaces between paragraphs
\setupwhitespace[none]

%Itemize
\setupitemize[each][identnext=yes,margin=0em]
\setupitemize[each][headstyle=bold]

% Mathematical packets
\usemodule[newmat]

% Modules
\usemodule[tikz]
\usetikzlibrary[mindmap,arrows,calc]
%\usetikzlibrary[trees]

% AMSTHM
\defineenumeration
  [exercici]
  
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm --> less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]
% Set "Índex" like "Índex de continguts"
\setupheadtext [ca] [content=Índex]

% Heads and footers
\setupfootertexts[{\tfx \pagenumber/\lastpage}]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx IES Binissalem. Dept. Orientació}][{\tfx 4t C MAT. 
Tema 4 - Probabilitat. \currentdate}]

% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{subs-ti-tueix}
\hyphenation{pro-ble-ma}
\hyphenation{Ma-the-ma-tics}
\hyphenation{Ma-the-ma-ti-cal}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{va-ria-bles}

% SPLIT
\def\startsplit
  {\startalign} % no number by default
\def\stopsplit
  {&\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

% GROUP FOR FORMULAS WITH CASES.
\definemathmatrix[GROUP][left={\left\{\,}, 
right={\right.},align={left},style=\displaystyle,distance=0.2em]

\setupformulas[align=middle]
\setupitemize[each][margin=2em]

% Start the text
\starttext
% Títol

\startstandardmakeup

\bigskip
\bigskip
\bigskip
\bigskip
\bigskip
\bigskip
\startalignment[middle]

{\sc\switchtobodyfont[14pt] Unitat didàctica }\par 

\thinrule

{\switchtobodyfont[40pt] \bf \sc 
\startcolor[middleblue]Probabilitat\stopcolor}\par
\stopalignment


\vfill
\thinrule
\placefigure
  [force,none]
  [fig:latex-vs-context-version-etc]
  {Latex vs ConTeXt information}
  {\bTABLE[frame=off,align={middle,lohi}]
\bTR[align={middle,lohi}]
\bTD[align={middle,lohi}]{\switchtobodyfont[12pt]
{\sc Programa de Diversificació Curricular} }
\eTD
\eTR
\bTR
\bTD[align={lohi,middle}]
{\sc Versió: \currentdate}
\eTD
\eTR
\eTABLE
}




%\vfill
%\page[yes]
\stopstandardmakeup


% Format de marges
\setuplayout[topspace=1cm,margin=1cm,header=1cm,footer=0.6cm,width=fit,height=fit,backspace=1.5cm]

\completecontent
\page

% Introducció

Re: [NTG-context] Macro with variable number of arguments

2010-02-28 Thread Hans Hagen

On 28-2-2010 12:44, Otared Kavian wrote:


On 28 févr. 2010, at 10:17, Wolfgang Schuster wrote:


\def\myMacro
  {\dotriplegroupempty\domyMacro}

\def\domyMacro#1#2#3%
  {\doifelsenothing{#3}
 {Name: #1\crlf Email: #2\crlf}
 {Name: #1\crlf Address: #2 \crlf Email: #3\crlf}%
   \thinrule\blank[small]}

Wolfgang


Many thanks Wolfgang! Your solution solves my question.

Now for a complete understanding of the solution (and before putting your 
solution on the wiki), here is another question.
After reading your solution, I searched in the source files and saw that in the 
file
syst-gen.mkii
the command \dosinglegroupempty, until \doquintuplegroupempty are defined.
For instance
\def\dotriplegroupempty#1%
   {\def\dodogetargument##1%
  {\def\dodogetargument1%
 {\def\dodogetargument%
{\dontpermitspacesbetweengroups
 #1{##1}{1}}%
  \dogetgroupargument\thirdargumenttrue\thirdargumentfalse}%
   \dogetgroupargument\secondargumenttrue\secondargumentfalse}%
\dogetgroupargument\firstargumenttrue\firstargumentfalse}

Can one use other constructions like these, for example can one define
\dosepttuplegroupempty
in order to have macros with 7 arguments, of which 5 are always present, while 
the sixth and seventh may be absent in some occasions?


sure, you can just test .. \ifsecondargument ... \iffirstargument

but in such cases using key/values might make mode sense


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Macro with variable number of arguments

2010-02-28 Thread Otared Kavian

On 28 févr. 2010, at 10:17, Wolfgang Schuster wrote:

> \def\myMacro
>  {\dotriplegroupempty\domyMacro}
> 
> \def\domyMacro#1#2#3%
>  {\doifelsenothing{#3}
> {Name: #1\crlf Email: #2\crlf}
> {Name: #1\crlf Address: #2 \crlf Email: #3\crlf}%
>   \thinrule\blank[small]}
> 
> Wolfgang

Many thanks Wolfgang! Your solution solves my question.

Now for a complete understanding of the solution (and before putting your 
solution on the wiki), here is another question.
After reading your solution, I searched in the source files and saw that in the 
file
syst-gen.mkii
the command \dosinglegroupempty, until \doquintuplegroupempty are defined.
For instance
\def\dotriplegroupempty#1%
  {\def\dodogetargument##1%
 {\def\dodogetargument1%
{\def\dodogetargument%
   {\dontpermitspacesbetweengroups
#1{##1}{1}}%
 \dogetgroupargument\thirdargumenttrue\thirdargumentfalse}%
  \dogetgroupargument\secondargumenttrue\secondargumentfalse}%
   \dogetgroupargument\firstargumenttrue\firstargumentfalse}

Can one use other constructions like these, for example can one define
\dosepttuplegroupempty 
in order to have macros with 7 arguments, of which 5 are always present, while 
the sixth and seventh may be absent in some occasions?

Thanks again: OK
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Macro with variable number of arguments

2010-02-28 Thread Wolfgang Schuster

Am 28.02.10 09:54, schrieb Otared Kavian:

Hi all,

I would like to write a macro which may have sometimes two, sometimes three 
arguments. The first and the last one are always present, but not necessarily 
the middle one. The unsatisfactory solution I have now is something like the 
example below:

\define[2]\myMacroTwo{Name: #1\crlf Email: #2\crlf\thinrule\blank[small]}
\define[3]\myMacroThree{Name: #1\crlf Address: #2 \crlf Email: 
#3\crlf\thinrule\blank[small]}

\starttext
\mymacrotwo{hans}{h...@hagen.context.nl}
\myMacroThree{Wolfgang}{Paradise of TeX, 2010}{wolfg...@schuster.context.de}
\stoptext

I think that (or rather I am certain…) in ConTeXt it is possible to define a 
unique macro called \myMacro which automatically tests the number of arguments: 
if there are  only two of them the commands in \myMacroTwo are executed, while 
if three arguments are present, the commands in \myMacroThree are executed.

Can anyone give a hint on this matter?
   

\def\myMacro
  {\dotriplegroupempty\domyMacro}

\def\domyMacro#1#2#3%
  {\doifelsenothing{#3}
 {Name: #1\crlf Email: #2\crlf}
 {Name: #1\crlf Address: #2 \crlf Email: #3\crlf}%
   \thinrule\blank[small]}

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Macro with variable number of arguments

2010-02-28 Thread Otared Kavian

Hi all,

I would like to write a macro which may have sometimes two, sometimes three 
arguments. The first and the last one are always present, but not necessarily 
the middle one. The unsatisfactory solution I have now is something like the 
example below:

\define[2]\myMacroTwo{Name: #1\crlf Email: #2\crlf\thinrule\blank[small]}
\define[3]\myMacroThree{Name: #1\crlf Address: #2 \crlf Email: 
#3\crlf\thinrule\blank[small]}

\starttext
\mymacrotwo{hans}{h...@hagen.context.nl}
\myMacroThree{Wolfgang}{Paradise of TeX, 2010}{wolfg...@schuster.context.de}
\stoptext

I think that (or rather I am certain…) in ConTeXt it is possible to define a 
unique macro called \myMacro which automatically tests the number of arguments: 
if there are  only two of them the commands in \myMacroTwo are executed, while 
if three arguments are present, the commands in \myMacroThree are executed.

Can anyone give a hint on this matter? 
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Section setup

2009-10-17 Thread Wolfgang Schuster


Am 17.10.2009 um 16:58 schrieb Janneman:


Maybe a more simplified solution

\definehead[paragraf][section]
\setuphead[paragraf][before= {\crlf \S},after=,style=bold]


don't do this, before and after are meant for vertical material like  
\blank or \thinrule etc.


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Limited with rule?

2009-06-10 Thread Hans Hagen

Matthijs Kooijman wrote:

Hi Hans,


\blackrule[width=10cm,height=1pt,depth=1pt,color=red]

That seems to work, thanks!

Is there any particular difference between all these line commands (\hairline,
\thinrule, \blackrule), apart from the options they support? Are they meant
for different situations, or is there some other reason why they exist next to
each other?


thinrule and hairline kind of work together with text (and spacing) 
while black rule is dumber but on the other hand has key values


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Limited with rule?

2009-06-10 Thread Matthijs Kooijman
Hi Hans,

> \blackrule[width=10cm,height=1pt,depth=1pt,color=red]
That seems to work, thanks!

Is there any particular difference between all these line commands (\hairline,
\thinrule, \blackrule), apart from the options they support? Are they meant
for different situations, or is there some other reason why they exist next to
each other?

Gr.

Matthijs


signature.asc
Description: Digital signature
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Limited with rule?

2009-06-10 Thread Matthijs Kooijman
Hi all,

I've been trying to create a horizontal rule of limited width, using MkIV. My
best approach so far is using a \framed with only a bottom frame:

  \framed[frame=off,bottomframe=on,width=.5\textwidth]{}

However, this is not quite elegant. Context provides two commands for drawing
lines, \hairline and \thinrule (which seem to do the same from looking at
their definition in pack-rul.mkiv, though \hairline does not seem to respond
to \setupthinrules for some reason I cannot discern...).

However, \setupthinrules accepts a lot of options (including height and depth,
which get passed to \hrule, but there is no width option (nor does there seem
any way to get \thinrule to pass a width to \hrule).

Another attempt to put a frameless \framed around the \hairline (which gets as
wide as the containing box) failed as well. The line kept getting vertical,
even when I sprinkeled some \dontleavehmod or \pars around...

Any suggestions on how to do this?

Gr.

Matthijs


signature.asc
Description: Digital signature
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug? thinrule in natural table & MKIV

2009-02-05 Thread Wolfgang Schuster


Am 05.02.2009 um 15:52 schrieb Bart C. Wise:


I put a thinrule in a table as follows:

\starttext
\bTABLE
\bTR\bTD\thinrule\eTD\eTR
\eTABLE
\stoptext

It worked fine under MKII. However, when I switched to MKIV (both  
current and beta) I got the following error message:


[...]


Is this a bug?


Yes, a better example is:

\starttext
\bTABLE
\bTR\bTD \bgroup\carryoverpar\egroup \eTD\eTR
\eTABLE
\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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Bug? thinrule in natural table & MKIV

2009-02-05 Thread Bart C. Wise
I put a thinrule in a table as follows:

\starttext
\bTABLE
\bTR\bTD\thinrule\eTD\eTR
\eTABLE
\stoptext

It worked fine under MKII.  However, when I switched to MKIV (both current and 
beta) I got the following error message:

! Missing { inserted.

{

   &
 ...blrow \makeTBL 1 1 \nexttblcol
  \endtblrow
\flushtbltoks ->\begintbl \the \tbltoks
\endtbl
\endTBL ...x {\trialtypesettingtrue \flushtbltoks
  }\lettbldis \maximumcol 
\z...
\eTABLE ...}}\eTBL }\removeunwantedspaces \endTBL
  \stopTBLprocessing \fi \eg...
l.4 \eTABLE


Is this a bug?
Is there a workaround?

Thanks,
Bart
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Beginner help: horizontal line

2008-12-22 Thread Derek CORDEIRO
On Mon, Dec 22, 2008 at 9:54 PM, Aditya Mahajan  wrote:

> On Mon, 22 Dec 2008, Derek CORDEIRO wrote:
>
>  Hi,
>>
>> I would like to be able to draw a line in the footer of every page. If I
>> try
>> to use setupfooter with before=\thinrule or before=\hrule I get some
>> unexpected results. I want the line to span only the width of the body but
>> thinrule aligns it to the left from the left edge. \hrule spans the entire
>> page. I don't want it spanning accross the margins. Maybe I'm doing
>> something very wrong... please help
>>
>
> \setupbackgrounds[footer][text][topframe=on]

Thank You!

Derek.


-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Blog: http://www.derekcordeiro.com
Follow Me: http://twitter.com/derekcordeiro
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Beginner help: horizontal line

2008-12-22 Thread Aditya Mahajan

On Mon, 22 Dec 2008, Derek CORDEIRO wrote:


Hi,

I would like to be able to draw a line in the footer of every page. If I try
to use setupfooter with before=\thinrule or before=\hrule I get some
unexpected results. I want the line to span only the width of the body but
thinrule aligns it to the left from the left edge. \hrule spans the entire
page. I don't want it spanning accross the margins. Maybe I'm doing
something very wrong... please help


\setupbackgrounds[footer][text][topframe=on]

Aditya
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Beginner help: horizontal line

2008-12-22 Thread Derek CORDEIRO
Hi,

I would like to be able to draw a line in the footer of every page. If I try
to use setupfooter with before=\thinrule or before=\hrule I get some
unexpected results. I want the line to span only the width of the body but
thinrule aligns it to the left from the left edge. \hrule spans the entire
page. I don't want it spanning accross the margins. Maybe I'm doing
something very wrong... please help


Regards,
Derek
-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Blog: http://www.derekcordeiro.com
Follow Me: http://twitter.com/derekcordeiro
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Dynamic frame height

2008-12-15 Thread Bart C. Wise
Thanks Wolfgang!
Bart

On Monday 15 December 2008 04:48:03 pm Wolfgang Schuster wrote:
> Am 16.12.2008 um 00:29 schrieb Bart C. Wise:
> > I'm trying to create a section at the bottom of a page that has a
> > number of
> > blank lines for writing notes. However, I want the frame and the
> > lines to be
> > automatically generated from the remaining space on the page. How do I
> > control the number of lines and the frame height to achieve the
> > desired
> > results?
> >
> > \starttext
> > \input tufte
> > \blank
> > \framed[
> > corner=00
> > ]{
> > \vbox{
> > Notes:\crlf
> > \dorecurse{4}{\crlf\thinrule}
> > }}
> > \stoptext
> > Thanks,
> > Bart
>
> %\showframe
>
> \starttext
>
> \input tufte
>
> \blank
>
> \framed[corner=00,align=right,width=\textwidth]
>{\getnoflines{\dimexpr\pagegoal-\pagetotal-2\lineheight\relax}%
> Notes:\crlf
> \thinrules[n=\noflines]}
>
> \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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Dynamic frame height

2008-12-15 Thread Bart C. Wise
I'm trying to create a section at the bottom of a page that has a number of  
blank lines for writing notes.  However, I want the frame and the lines to be 
automatically generated from the remaining space on the page.  How do I 
control the number of lines and the frame height to achieve the desired 
results?

\starttext
\input tufte
\blank
\framed[
corner=00
]{
\vbox{
Notes:\crlf
\dorecurse{4}{\crlf\thinrule}
}}
\stoptext

Thanks,
Bart
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Wolfgang Schuster
On Wed, Aug 6, 2008 at 6:07 PM, Alan Stone
<[EMAIL PROTECTED]> wrote:
> On Wed, Aug 6, 2008 at 4:59 PM, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
>>
>> \starttext
>>
>> \framed{text}
>>
>> \thinrule
>>
>> \setuplinewidth[small]
>>
>> \framed{text}
>>
>> \thinrule
>>
>> \setuplinewidth[1cm]
>>
>> \framed{text}
>>
>> \thinrule
>>
>> \stoptext
>
> I don't see the output difference between

small = 0.2pt
medium = 0.4pt (TeX default value and also ConTeXt default)
big = 0.6pt

no big difference on the screen with 100% magnification but you can zoom
into the page and you see the difference.

> \framed{text}
>
> \thinrule
>
> \setuplinewidth[small]
> \framed{text}
>
> \thinrule
>
> \setuplinewidth[big]
> \framed{text}
>
> while
>
> \setuplinewidth[1cm]
> \framed{text}
>
> is "fascinating".
>
>> You could try
>>
>>
>> style={\switchtobodyfont[small]\hsize.8\hsize\relax\setupinterlinespace[line=2.4ex]},
>>
>> or
>>
>>
>> style={\switchtobodyfont[small]\hsize150pt\relax\setupinterlinespace[line=2.4ex]},
>
> These work, however not entirely to my satisfaction because then the right
> margin setting is modified due to text/head and pagenumber being grouped (
> re: drawing, manual pg 150 ).

This is why you could define your own alternatives.

>> The better way is to define you own list alternative.
>>
>> \define[3]\ChapterList
>>  {\hbox
>> {\hbox to .5em{#1}\hskip.5em
>>  \vtop{\hsize150pt\relax#2}%
>>  \hfil#3}}
>>
>> \setuplist[chapter][alternative=command,command=\ChapterList]
>
> I'll try that...

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Alan Stone
On Wed, Aug 6, 2008 at 4:59 PM, Wolfgang Schuster <
[EMAIL PROTECTED]> wrote:

> \starttext
>
> \framed{text}
>
> \thinrule
>
> \setuplinewidth[small]
>
> \framed{text}
>
> \thinrule
>
> \setuplinewidth[1cm]
>
> \framed{text}
>
> \thinrule
>
> \stoptext


I don't see the output difference between

\framed{text}

\thinrule

\setuplinewidth[small]
\framed{text}

\thinrule

\setuplinewidth[big]
\framed{text}

while

\setuplinewidth[1cm]
\framed{text}

is "fascinating".

You could try
>
>
> style={\switchtobodyfont[small]\hsize.8\hsize\relax\setupinterlinespace[line=2.4ex]},
>
> or
>
>
> style={\switchtobodyfont[small]\hsize150pt\relax\setupinterlinespace[line=2.4ex]},


These work, however not entirely to my satisfaction because then the right
margin setting is modified due to text/head and pagenumber being grouped (
re: drawing, manual pg 150 ).


> The better way is to define you own list alternative.
>
> \define[3]\ChapterList
>  {\hbox
> {\hbox to .5em{#1}\hskip.5em
>  \vtop{\hsize150pt\relax#2}%
>  \hfil#3}}
>
> \setuplist[chapter][alternative=command,command=\ChapterList]


I'll try that...

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] goto(box) and setuplist questions

2008-08-06 Thread Wolfgang Schuster
On Wed, Aug 6, 2008 at 4:15 PM, Alan Stone
<[EMAIL PROTECTED]> wrote:
> On Wed, Aug 6, 2008 at 3:26 PM, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
>>
>> Depends on the situation, for left aligned numbers it didn't matter
>> because
>> you can't see where the space comes from (1) but for right aligned numbers
>> you need a postive value for distance (2).
>>
>> (1) Left aligned number:
>>
>> \starttext
>> \bTABLE[frame=off]
>> \bTR\bTD[width=1cm] 1 \eTD\bTD header \eTD\eTR
>> \eTABLE
>> \bTABLE[frame=off,distance=5mm]
>> \bTR\bTD[width=5mm] 1 \eTD\bTD header \eTD\eTR
>> \eTABLE
>> \stoptext
>>
>> (2) Right aligned number:
>>
>> \starttext
>> \bTABLE[frame=off]
>> \bTR\bTD[width=1cm,align=flushright] 1 \eTD\bTD header \eTD\eTR
>> \eTABLE
>> \bTABLE[frame=off,distance=5mm]
>> \bTR\bTD[width=5mm,align=flushright] 1 \eTD\bTD header \eTD\eTR
>> \eTABLE
>> \stoptext
>
> I'm impressed...
>
> So you really have an MBA in Klingon!  :O)
>
>> > Hans wrote:
>> >>> - maxwidth ?
>> >>
>> >>just try it on long entries .. it prevents too long lines
>> >>
>> >>this is a very long entry
>> >>this is a very ...
>> >
>> > Ok I see. Now, in \placecontent or \setuplist, which parameter
>> > allows to influence where long lines are cut off in two (or more) ?
>> >
>> > Like...
>> >
>> > (number) This long long
>> > chapter title   (pagenumber)
>> >
>> > vs.
>> >
>> > (number) This long
>> > long chapter title(pagenumber)
>> >
>> > Using the brute force tactic I tried setting width and textwith which
>> > didn't
>> > work.
>> > It could be textcommand. If so what does \command#1 mean ( see main
>> > manual pg 150 ) ?
>>
>> The effect for maxwidth (3cm in my example) is this:
>>
>> \starttext
>> \limitatetext {This long long chapter title} {3cm} {\unknown}
>> \stoptext
>>
>> Wolfgang
>
> I just tried with
>
> style={\switchtobodyfont[small]\setuplinewidth[(x)pt]\setupinterlinespace[line=2.4ex]}

\starttext

\framed{text}

\thinrule

\setuplinewidth[small]

\framed{text}

\thinrule

\setuplinewidth[1cm]

\framed{text}

\thinrule

\stoptext

> and several values for (x) in
>
> \startinteractionmenu[myMenu]
>  \placecontent[
> criterium=all,
> alternative=b,
> %style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]},
> style={\switchtobodyfont[small]\setuplinewidth[150pt]\setupinterlinespace[line=2.4ex]},
> interaction=all,
> before={\blank[small]\startnarrower[left,right]},
> after={\stopnarrower\blank[medium]}]
> \stopinteractionmenu
>
> but that generates a compile error. Grrr...


You could try


style={\switchtobodyfont[small]\hsize.8\hsize\relax\setupinterlinespace[line=2.4ex]},

or

style={\switchtobodyfont[small]\hsize150pt\relax\setupinterlinespace[line=2.4ex]},

The better way is to define you own list alternative.

\define[3]\ChapterList
  {\hbox
 {\hbox to .5em{#1}\hskip.5em
  \vtop{\hsize150pt\relax#2}%
  \hfil#3}}

\setuplist[chapter][alternative=command,command=\ChapterList]

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Footer issue

2008-06-05 Thread Hans Hagen
Diego Depaoli wrote:
> Hi all,
> why \setupheader[text][after=\thinrule] and
> \setupfooter[text][before=\textrule] both work,
> but \setupfooter[text][before=\thinrule] doesn't work?

has to do with a new paragraph being started or a previous one being ended


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Footer issue

2008-06-05 Thread Diego Depaoli
2008/6/5 Hans Hagen <[EMAIL PROTECTED]>:
> Diego Depaoli wrote:
>> Hi all,
>> why \setupheader[text][after=\thinrule] and
>> \setupfooter[text][before=\textrule] both work,
>> but \setupfooter[text][before=\thinrule] doesn't work?
>
> maybe add a \endgraf after the \thinrule

Thanks

-- 
Diego Depaoli
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Footer issue

2008-06-05 Thread Hans Hagen
Diego Depaoli wrote:
> Hi all,
> why \setupheader[text][after=\thinrule] and
> \setupfooter[text][before=\textrule] both work,
> but \setupfooter[text][before=\thinrule] doesn't work?

maybe add a \endgraf after the \thinrule

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Footer issue

2008-06-05 Thread Diego Depaoli
Hi all,
why \setupheader[text][after=\thinrule] and
\setupfooter[text][before=\textrule] both work,
but \setupfooter[text][before=\thinrule] doesn't work?
Cheers

-- 
Diego Depaoli
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Keeping a block of text together, without breaking footnotes, etc.

2008-05-15 Thread Daniel Pittman
G'day.

As part of a document I am laying out I have a number of blocks of text
that I want to keep together on a single page -- either all before a
page break or all after it.

I can achieve this using a \vbox, but that has the fairly undesirable
property of also preventing footnotes and, presumably, other ConTeXt
layout from working as expected.

What is the most effective way to achieve this?

A good example of what I want follows; in this I want the entire contact
form there kept as a single block, not split over pages.  The same sort
of situation comes up with some explanatory paragraphs and a yes/no
question section of the form.

\starttext
\dorecurse{10}
{\bf Contact Details}
\starttabulate[|l|p|]
\NC Name: \NC \thinrule \NC \AR
\NC Address:  \NC \thinrules[n=3] \NC \AR
\NC Postcode: \NC \thinrule \NC \AR
\NC Email:\NC \thinrule \NC \AR
\NC Alternate Email:  \NC \thinrule \NC \AR
\NC Phone (BH):   \NC \thinrule \NC \AR
\NC Phone (AH):   \NC \thinrule \NC \AR
\NC Mobile:   \NC \thinrule \NC \AR
\stoptabulate
\starttabulate[|p|l|]
\NC Can this contact authorise work?   \NC YES / NO \NC \AR
\NC Can this contact authorise changes to this agreement?   \NC YES / NO \NC \AR
\NC Can we contact this person in an emergency?\NC YES / NO \NC \AR
\stoptabulate
\par}
\stoptext


I would rather have under-full pages than split the blocks of text --
and I definitely want to preserve the ability to insert footnotes into
the running text, to clarify some of the terms or options.

Regards,
Daniel
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
ferences]{text}
\switchtobodyfont[font settings]
\switchtorawfont[name]
\sym{text}
\symbol[name][name]
\synchronizationbar[name][alternative=page|local][settings]
\synchronize
\synonym[text]{text}{text}
\tab{text} text
# \tbox
\tex{text}
\textreference[reference]{text}
\textrule[top|bottom]{text}
\textvariable[name]
\thinrule
\thinrules[settings]
# \tightlayer
\title[references]{text}
# \to
\tooltip[left|right|middle]{text}{text}
\translate[name=text]
\typ{text}
\type{text}
\typebuffer[name]
\typefile[name]{text}
\underbar{text}
\underbars{text text}
# \unexpanded
# \unprotect
# \unprotected
\useblocks[names][names]
\usecommands{text}
\usedirectory[names|reset]
\useencoding[names]
\useexternaldocument[name][file][text]
\useexternalfigure[name][file][options]
\useexternalfile[name][name][file][font options]
\useexternalfiles[name][options]
\useexternalsoundtrack[name][file]
# \useJSscripts
\usemodule[names]
\usereferences[files]
\usespecials[names|reset]
\usesymbols[name]
# \usetypescript
# \usetypescriptfile
\useURL[name][URL][file][text]
# \useXMLfilter
\version[final|concept|temporary]
# \verticalstrut
# \vfilll
# \VL
\vl[number]
# \vpos
\WEEKDAY{text}
\weekday{text}
\whitespace
\WORD{text}
\Word{text}
\wordright{text}
\WORDS{text text}
\Words{text text}
\writebetweenlist[section|name]{text}
\writetolist[section|name]{text}{text}
\writetoreferencelist[name]{text}{text}
\writetoregister[singular][text]{text+text+text}
# \XMLerase
# \XMLflush
# \XMLop
# \XMLpar
# \zerocount
# \zerodimen
# \zeropoint

signature.asc
Description: This is a digitally signed message part.
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Underline the headertext with a thinrule

2007-05-14 Thread luigi scarso

Sorry, but i'm a bit busy .
Some hints are at
http://wiki.contextgarden.net/Titles


--
luigi

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Underline the headertext with a thinrule

2007-05-13 Thread Bert Trüger

Hi again,

luigi, thanks for your tips. I simply want to put a \thinrule
underneath the headertext in textwidth. My setup is:

\setupheadertexts[chapter][\pagenumber][section][\pagenumber]
\setupheader[after=\thinrule]
\setuphead[subsubsection][number=no,alternative=text,indenttext=yes,textstyle=bold]
\definetext[chapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=chapter,page=yes]
\setuphead[blank][state=empty]

This way I get a \thinrule starting in the left margin in textwidth
under an odd page. I would like the headertext with chapter and
pagenumber underlined with \thinrule on every odd page, except it
is blank or the beginning of a new chapter, and the same with
section and pagenumber in the header for every even page, except it
is blank or the beginning of a new chapter -- a simple underlined
headtext like in many books.

Thanks for your help

Bert
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some questions about context

2007-03-06 Thread Oliver Buerschaper
>> For your headers try this:
>>
>> ---
>>
>> \setupheader
>>  [text]
>>  [after=\hrule]
>>
>> \starttext
>> \input tufte
>> \stoptext
>>
>> ---
>>
>> You can change the actual content of your headers via
>> \setupheadertexts ...
>>
>> Instead of the \hrule command above you could also resort to
>> \thinrule. The global behaviour of \thinrule can then be customized
>> via \setupthinrules ... However, this comes at the cost of
>> introducing additional vertical space between your header text and
>> the rule. On the contrary \hrule sticks to the text. Choose whatever
>> suits you best.
>>
>> (To the experts: is this \thinrule behaviour intended?)
>
> A better way is to use \setupbackgrounds. You can specify the exact
> region of the page that you want, and it accepts all the parameters of
> framed, so you can change the rule thickness, background, etc. And for
> a really fancy layout, you can use a metapost background.

I didn't think of that ... however, suppressing the header on certain  
pages via e.g.

\setuphead[chapter][header=empty]

doesn't turn off the header background :-(

Oliver
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Some questions about context

2007-03-06 Thread Aditya Mahajan
On Tue, 6 Mar 2007, Oliver Buerschaper wrote:

>> And another question (in other topic): how we can do lines at
>> header and
>> footer like fancyheaders in latex?
>
>
> For your headers try this:
>
> ---
>
> \setupheader
>   [text]
>   [after=\hrule]
>
> \starttext
> \input tufte
> \stoptext
>
> ---
>
> You can change the actual content of your headers via
> \setupheadertexts ...
>
> Instead of the \hrule command above you could also resort to
> \thinrule. The global behaviour of \thinrule can then be customized
> via \setupthinrules ... However, this comes at the cost of
> introducing additional vertical space between your header text and
> the rule. On the contrary \hrule sticks to the text. Choose whatever
> suits you best.
>
> (To the experts: is this \thinrule behaviour intended?)

A better way is to use \setupbackgrounds. You can specify the exact 
region of the page that you want, and it accepts all the parameters of 
framed, so you can change the rule thickness, background, etc. And for 
a really fancy layout, you can use a metapost background.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Some questions about context

2007-03-06 Thread Oliver Buerschaper
> And another question (in other topic): how we can do lines at  
> header and
> footer like fancyheaders in latex?


For your headers try this:

---

\setupheader
[text]
[after=\hrule]

\starttext
\input tufte
\stoptext

---

You can change the actual content of your headers via  
\setupheadertexts ...

Instead of the \hrule command above you could also resort to  
\thinrule. The global behaviour of \thinrule can then be customized  
via \setupthinrules ... However, this comes at the cost of  
introducing additional vertical space between your header text and  
the rule. On the contrary \hrule sticks to the text. Choose whatever  
suits you best.

(To the experts: is this \thinrule behaviour intended?)

Best wishes,
Oliver
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] breaking framed text across pages

2007-02-23 Thread Mojca Miklavec
On 2/21/07, Vyatcheslav Yatskovsky wrote:
>
> Hi,
>
> I'm struggling against framed text and is beaten again.
>
> If the text below doesn't fit the page, it goes below footer and stops pdf
> file without explanations. After many experiments I should note that frame
> text is not user-tolerant construction at all, unlike the whole Context is.
> :(

Hans should probably answer the framed-tet related question. I was
also a bit disappointed last time when I figured out that framedtext
doesn't support breaking along pages. But then I discovered an
alternative:

\setupbackground[frame=on,rulethickness=0.7pt,corner=round,bodyfont=11pt,width=\textwidth]

\startbackground
...
\stopbackground

The only little problem is that background doesn't support
\definebackground yet, so you should either help yourself with
something similar to what I did:

\def\starthomework{\dosingleempty\dostarthomework}
\long\def\dostarthomework[#1]#2\stophomework
  {\bgroup
   \setupbackground[frame=on,rulethickness=0.7pt,
  corner=round,width=\textwidth]
   \startbackground
   {\bf Homework\doifsomething{#1}{: #1}}\switchtobodyfont[10pt]\crlf
 #2
   \stopbackground
   \egroup}

or ask someone here to extend the functionality (if you need that).
(I experinced some problems: a bit weird spacing around backgrounds
and buggy end of pages - but I didn't yet manage to post a bug
report.)

It would be nice if backgrounds would gain some functionality and if
they would be more consistent with framedtexts, but I didn't yet take
time to create a more extensive comparison (long
bug-report/feature-request list for Hans, or even Aditya, who likes
such challenges as well).

> \defineframedtext[assignment][rulethickness=0.7pt,
> corner=round, bodyfont=11pt, width=\textwidth]
>
>
>
>
> \startassignment
>
> Write an M-file which inputs matrixes $A$, $B$, initial $N$ and number of
> iterations, and which plots 3D bars.
>
> \startcolumns[n=3]
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule

Why not simply \dorecurse{10}{\par\thinrule}?

> \stopcolumns
>
>
>
>
> Find relative distribution (in percents) of population within age classes
> and store the result into new matrix $P$. Plot it too.
>
> \startcolumns[n=3]
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \par\thinrule
>
> \stopcolumns
>
> \stopassignment
>
>
>
>
> Best,
>
> Vyatcheslav
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] breaking framed text across pages

2007-02-21 Thread Vyatcheslav Yatskovsky
Hi,

I'm struggling against framed text and is beaten again.
If the text below doesn't fit the page, it goes below footer and stops pdf file 
without explanations. After many experiments I should note that frame text is 
not user-tolerant construction at all, unlike the whole Context is. :(

\defineframedtext[assignment][rulethickness=0.7pt, corner=round, bodyfont=11pt, 
width=\textwidth]

\startassignment
Write an M-file which inputs matrixes $A$, $B$, initial $N$ and number of 
iterations, and which plots 3D bars. 
\startcolumns[n=3]
\par\thinrule 
\par\thinrule
\par\thinrule 
\par\thinrule
\par\thinrule
\par\thinrule 
\par\thinrule
\par\thinrule
\par\thinrule 
\par\thinrule 
\stopcolumns

Find relative distribution (in percents) of population within age classes and 
store the result into new matrix $P$. Plot it too. 
\startcolumns[n=3]
\par\thinrule 
\par\thinrule 
\par\thinrule
\par\thinrule
\par\thinrule
\par\thinrule 
\par\thinrule
\stopcolumns
\stopassignment

Best,
Vyatcheslav___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] store counter or variable and reread again

2006-12-31 Thread Aditya Mahajan
On Sun, 31 Dec 2006, Thomas Engel wrote:

> Aditya Mahajan wrote:
> 
> > \unprotect
> > \def\addtocounter#1#2% #1 name #2 value
> >
> [EMAIL PROTECTED]
> > \protect
> >
> > % To Hans and Taco: Should the above macro be added to syst-ext?
> >
> > % Now lets define everything in terms of ConTeXt's counter macros
> >
> > \makecounter{Points}
> >
> > % %   show the points on the right side
> > \def\showP[#1]{\inright{\hskip 10mm \framed{#1} }}
> >
> > \def\pkt[#1]%
> >  {\showP[#1]%
> >   \addtocounter{Points}{#1}}
> > %
> >
> > \def\nofPoints{0} % Number of points from previous run
> >
> > \def\savenofPoints
> >{\savecurrentvalue\nofPoints{\countervalue{Points}}}
> >
> > % It is a bit boring to type \savenofPoints everytime
> >
> > \appendtoks \savenofPoints \to \everystoptext
> >
> Thanks for your help. It's great!
> 
> What I recognized is when I put this on layer for better placement of
> the header it doesn't work.
> Here is an example:
> 
> \def\Schulaufgabekopf%
>   {\bf \tfa
>   \setupTABLE[option=stretch]
>   \setupTABLE[frame=off]
>   \setupTABLE[column][1][width=0.7\textwidth]
>   \setupTABLE[column][2][width=0.3\textwidth]
> 
> \setupTABLE[row][2,3,4][background=color,backgroundcolor=gray,frame=off]
>   \setupTABLE[row][5][height=1cm]
>   \bTABLE
>   \bTR \bTD \strut \eTD \bTD \strut \eTD \eTR
>   \bTR \bTD \AAnr \eTD \bTD Date: \eTD \eTR
>   \bTR \bTD  Name:\eTD \bTD Points: \hfill of \nofPoints \eTD\eTR
>   \bTR \bTD  Form: \Klnr   \eTD \bTD Mark: \eTD \eTR
>   \bTR \bTD [nc=3, align=low] \tfxx   Unterschrift eines
> Erziehungsberechtigten: \thinrule \eTD \eTR
>   \eTABLE}
> 
> \definelayer[kopf][width=\paperwidth, height=\paperheight]
> 
> %Klassenarbeiten Kopf
> \def\AAnr{2. Schulaufgabe Englisch 2006/2007}
> \def\Klnr{10 \hfill}
> %\definelogo[SAK] [top][left][command=\Schulaufgabekopf]
> %\placelogos[SAK]
> 
> 
> \setlayer[kopf][x=1.9cm, y=1cm]{\Schulaufgabekopf}

Change this line to

\appendtoks \setlayer[kopf][x=1.9cm, y=1cm]{\Schulaufgabekopf} \to 
\everystarttext

or

\appendtoks \setlayer[kopf][x=1.9cm, y=1cm]{\Schulaufgabekopf} \to 
\everyafterutilityread

> \setupbackgrounds[page][background=kopf]
> \starttext
> 
> % Lets set 10 problems with different points
> \dorecurse{10}
>{\pkt[\recurselevel] \input tufte \endgraf}
> 
> \stoptext
> 
> What's going wrong?

The layer kopf is being set before the tui file is read. So, the value 
of \nofPoints is still 0. You need to set this layer after the 
utility file is read by appending the code to \everyafterutilityread 
or to \everystarttext (which happens after reading utility file).

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] store counter or variable and reread again

2006-12-31 Thread Thomas Engel
Aditya Mahajan wrote:

> \unprotect
> \def\addtocounter#1#2% #1 name #2 value
>
[EMAIL PROTECTED]
> \protect
>
> % To Hans and Taco: Should the above macro be added to syst-ext?
>
> % Now lets define everything in terms of ConTeXt's counter macros
>
> \makecounter{Points}
>
> % %   show the points on the right side
> \def\showP[#1]{\inright{\hskip 10mm \framed{#1} }}
>
> \def\pkt[#1]%
>  {\showP[#1]%
>   \addtocounter{Points}{#1}}
> %
>
> \def\nofPoints{0} % Number of points from previous run
>
> \def\savenofPoints
>{\savecurrentvalue\nofPoints{\countervalue{Points}}}
>
> % It is a bit boring to type \savenofPoints everytime
>
> \appendtoks \savenofPoints \to \everystoptext
>
Thanks for your help. It's great!

What I recognized is when I put this on layer for better placement of
the header it doesn't work.
Here is an example:

\def\Schulaufgabekopf%
  {\bf \tfa
  \setupTABLE[option=stretch]
  \setupTABLE[frame=off]
  \setupTABLE[column][1][width=0.7\textwidth]
  \setupTABLE[column][2][width=0.3\textwidth]

\setupTABLE[row][2,3,4][background=color,backgroundcolor=gray,frame=off]
  \setupTABLE[row][5][height=1cm]
  \bTABLE
  \bTR \bTD \strut \eTD \bTD \strut \eTD \eTR
  \bTR \bTD \AAnr \eTD \bTD Date: \eTD \eTR
  \bTR \bTD  Name:\eTD \bTD Points: \hfill of \nofPoints \eTD\eTR
  \bTR \bTD  Form: \Klnr   \eTD \bTD Mark: \eTD \eTR
  \bTR \bTD [nc=3, align=low] \tfxx   Unterschrift eines
Erziehungsberechtigten: \thinrule \eTD \eTR
  \eTABLE}

\definelayer[kopf][width=\paperwidth, height=\paperheight]

%Klassenarbeiten Kopf
\def\AAnr{2. Schulaufgabe Englisch 2006/2007}
\def\Klnr{10 \hfill}
%\definelogo[SAK] [top][left][command=\Schulaufgabekopf]
%\placelogos[SAK]


\setlayer[kopf][x=1.9cm, y=1cm]{\Schulaufgabekopf}
\setupbackgrounds[page][background=kopf]
\starttext

% Lets set 10 problems with different points
\dorecurse{10}
   {\pkt[\recurselevel] \input tufte \endgraf}

\stoptext

What's going wrong?

Thomas


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] making posters with ContexT

2006-05-24 Thread David Antos
On Wed, May 24, 2006 at 10:55:58PM +0100, batela wrote:
> I am trying to making a scientifique poster in Context. I need some 
> suggestions,
> foreground an example, to start. Somebody has a nice example to share?
> What is the correct scales for the fonts?

Hi,

I always start tasks like that by setting the paper size and switching
\showframe ;). About the font size: the poster should be readable from 1.5
meter distance. It's good to start from at least 24 pt. You surely realise
that you have to be extremely concise in your texts, so you may end up at
something like 21 pt (which is suboptimal but acceptable).

Attached you find an example (figures not included). Feel free to modify
it, share and enjoy.

> Jorge

BTW, we'd appreciate if you used your real name in the From: header.

Have a nice towel day,
D.A.

-- 
Science is what happens when preconception meets verification.
% vim: set ft=context syn=tex:
% This is FPL 2003 poster
% $Id: fpl2003-poster.tex,v 1.6 2003/08/26 11:36:49 antos Exp $

% General setup

\setupoutput[pdftex]
\setuppapersize[A1][A1]
\mainlanguage[en]
\setupcolors[state=start]
\setuppagenumbering[location=]

% Layout, backgrounds, graphical elements
\setuplayout
  [grid=yes,
   backspace=4cm,
   width=middle,
   topspace=4cm,
   header=0cm,
   footer=1cm,
   footerdistance=23mm,
   bottom=0pt,
   bottomdistance=0pt,
   height=0.94\paperheight]

\setupbackgrounds
  [text]
  [frame=on,
   rulethickness=2mm,
   frameoffset=2cm,
   framecorner=round,
   frameradius=2cm,
   framecolor=darkblue]

\setupthinrules
  [rulethickness=2mm,
   color=darkblue]

% Other style settings
\setupwhitespace[big]

\setupbodyfont[sans,21pt]

\setupitemize
  [each]
  [packed,joinedup]

\setuphead
  [chapter]
  [number=no,
   style=\tfa\bf,
   page=no,
   after=,
   color=darkblue]

\widowpenalty=1
\clubpenalty=1

\setupfootertexts[\hfill\x Typeset with \ConTeXt\quad\quad
Designed by David Anto\v s, 2003]

%\showframe
%\showgrid

%

\starttext

\startalignment[middle]
\startlinecorrection
{\tfd\bf Project of IPv6 Router with FPGA Hardware Accelerator}
\stoplinecorrection

\startcolumns[n=3]

{\bf Ji\v r\'{\i} Novotn\'y}\crlf
Institute of Computer Science\crlf
Masaryk University Brno\crlf
Botanick\'a~68a, Brno 602\thinspace00\crlf
Czech Republic\crlf
[EMAIL PROTECTED]
\column

{\bf Otto Fu\v c\'{\i}k}\crlf
Faculty of Information Technology\crlf
Brno University of Technology\crlf
Bo\v{z}et\v{e}chova~2, Brno 612\thinspace66\crlf
Czech Republic\crlf
[EMAIL PROTECTED]
\column

{\bf David Anto\v{s}}\crlf
Faculty of Informatics\crlf
Masaryk University Brno\crlf
Botanick\'a~68a, Brno 602\thinspace00\crlf
Czech Republic\crlf 
[EMAIL PROTECTED]

\stopcolumns

\stopalignment

% Logos and rule

\noindent
\thinrule
\kern0.03\textwidth
\lower0.039\textwidth\hbox{\externalfigure[cesnet-logo][width=0.16\textwidth]}
\kern0.03\textwidth
\thinrule
\kern0.03\textwidth
\lower0.01\textwidth\hbox{\externalfigure[liberouter][width=0.2\textwidth]}
\kern0.03\textwidth
\thinrule

% Text itself starts here

\startcolumns[n=2]

\chapter{Introduction}

Personal Computer (PC) as a router is
\startitemize
\item Reliable and highly functional
\item Comparable to middle-class routers (e.g., CISCO~7500)
\stopitemize
But\dots
\startitemize
\item Configurable with difficulties (via \type{/etc} files)
\item Limited mainly by PCI system bus (up to 2~Gbps with 64bit/66MHz bus)
\stopitemize

The goal of the \externalfigure[liberouter][height=0.5\baselineskip]{}
project: IPv6 router solving
those limitations. How?
\startitemize
\item Hardware accelerator {\em Combo6}
\item XML based configuration system {\em Netopeer}
\stopitemize

\chapter{Router Architecture}

Combo6 is a PCI card containing FPGA, memories (SSRAMs and DRAM), expansion
connectors, and supporting logic. Network interfaces are mounted on an
expansion daughter card for interfaces to be changed easily.

\startlinecorrection
\midaligned{\externalfigure[combo6][height=12\baselineskip]}
\stoplinecorrection

Design rules (just pure instance of {\em hardware/software codesign}
principles):
\startitemize
\item Packet switching and filtering will be performed by Combo6
\item PC can do the rest; routing path calculations, configuration,
statistics computation
\item Communication through PCI is limited to configuration, routing table
updates, statistics collection, and exception handling
\item Usual Operating System tools can be used, like \type{ifconfig} and
routing daemons
\stopitemize

\chapter{Packet Processing in Hardware}

Key idea: Packet processing in FPGA is done by a chain of dedicated
processors with simple, specialized instruction sets designed for their
particular purposes. We call them {\em nanoprocessors}---they are
interpreted by FPGA's microcode. Instruction sets are \quotation{between
FSMs and RISC processors.}

\startitemize
\item Changing na

[NTG-context] setupthinrules

2006-01-23 Thread Hans van der Meer

Doing thinrules one can place a number of them.
However the interlinespace seems fixed to whatever has been chosen  
for "small, medium, big".
I looked into the code but could not find a more flexible mechanism,  
as for example

interlinedistance=dimension

Trying to get the rules close to one another I tried
\setupthinrules[height=2pt,depth=0pt,interlinespace=medium]
    \thinrule\godown[1pt]\thinrule
But the natural height of the lines then interfers. Setting \godown 
[negative amount] will work, of course, but seems unnatural to me.
At least I feel it condems me to trial and error between the rule  
dimensions and the amount of backspace.


I therefore suggest making the interlinespace accessible as a  
distance settable by the user and being the separation between the  
bottom of the upper and the top of the lowerline in the case of  
\thinrules[n=2].


By the way, doesn't that give thinrules then the same option as in  
setuptextrules[distance=dimension]?


yours sincerely,
dr. H. van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Header design

2005-10-05 Thread Alexander Lazic

Hi,

i have now try to setup the CD pagedesign.

Please can anyone help me to find a solution for this setup ;-)

What i need is:

Title_of_the_document | section

on the left hand side in the header. I have found a solution for the
headerrule but for the text ...

I have added my solution on the bottom of this mail what i have also
tryed:

\setupheadertexts[text][{Title | \getmarking[chapter]}]

from:

http://www.ntg.nl/pipermail/ntg-context/2003/003438.html

which don't work because i get the following error:

---
! Argument of \next has an extra }.
 
   \par 
 
  }

\doattributes ...name [EMAIL PROTECTED] \endcsname \fi {#4}
 \dostopattributes 
\dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}
 \egroup 
 ...?tk \v!header \v!text \c!righttext }

 \@@nmpos {\getvalue {\??tk...

\dododoplacelayouttextline ...#2 #3}\hbox to #1{#4
 }\stoplayoutcomponent \get...
...
l.74 \section
{sec2}
? 
---


Here know my texfile:
---
\setuppapersize [A4][A4]
\setupcolors[state=start]

\setuppagenumbering[location={footer,right}]
\setupheadertexts[][section]

% Solution from 
http://archive.contextgarden.net/message/20050515.201803.67299570.html
\setupthinrules[color=red,height=1mm]
\setupheader[text][after=\thinrule]
 
\starttext

\section{sec1}
\page
\section{sec2}
\stoptext
---

Thanks in advaned for our help ;-)

Greetings

al ;-)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to control \hrule width in header & footer

2005-05-15 Thread VnPenguin
On 5/15/05, Tobias Burnus <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> VnPenguin wrote:
> 
> >I'm trying to add \hrule after header and before footer. Here is the
> >testing code:
> >\setupheader[after=\hrule]
> >\setupfooter[before=\hrule\blank]
> >
> >
> Try \setupheader[text][...]
> By the way using a \hairule or thinrule instead of a \hrule makes it
> possible to use \setupthinrule.

It works! 
Thank you a lot for your help.

Regards,
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to control \hrule width in header & footer

2005-05-15 Thread Tobias Burnus
Hello,
VnPenguin wrote:
I'm trying to add \hrule after header and before footer. Here is the
testing code:
\setupheader[after=\hrule]
\setupfooter[before=\hrule\blank]
 

Try \setupheader[text][...]
By the way using a \hairule or thinrule instead of a \hrule makes it 
possible to use \setupthinrule.

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: itemize

2004-07-28 Thread Hans Hagen
Gary Pajer wrote:
Thomas A. Schmitz wrote:
Me stupid! Willi, this message made my day. I've been using ConTeXt 
for more than a year now, but I was never able to figure out what 
setupitemize [.1.] .1. number each meant. So it's the level of 
itemization. Thanks, that should make things easier. And many thanks 
to Patrick and to you for pointing out the left= option. ConTeXt and 
the number of options it gives never cease to amaze me!

since we're back on the topic of itemize, I'll repost a question that 
I've posted here before:

-
It seems to me that the 'before' and 'after' keywords used in the third
argument of \setupitemize are operative only if 'columns' are also
specified.  In the example below, the hairlines disappear if the 
'columns'
keyword is eliminated.

Feature, bug, or misunderstanding?
a bit of all, this will take me some time (maybe when i redo the item 
environment); has to do with grouping and such as well as before/after 
handling

(compare output with\chardef\autoitemgroupspacing=0 set)
BTW:   can the lengths of the two hairlines in this example be made to be
the same length?  What's causing the indentation of the first hairline?
a bit tricky: par's (\endgraf's interfere in such matters, i.e. you need 
to invoke the command when the width is (still) known)

\setupitemize
 [2]
 [a,packed,columns]
 [before={\thinrule\endgraf},
  after={\endgraf\thinrule}]
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   >