[NTG-context] Frame/hrules around column content

2025-07-15 Thread Florent Michel
overlaps with the content of the left column \hrule \startcolumns[n=2] Line \par \blank[1.5ex] Line \par Line \par Line \stopcolumns \hrule \blank[big] % Same issue with \startframed ... \stopframed \startframed[offset=none] \startcolumns[n=2] Line \par

[NTG-context] Footer issue (for graduated wizards mastering kung-fu)

2025-03-13 Thread roberto . bianchi
== %% HEADER'S FORMAT %% === % set the header logo height \def\headerlogoheight{13mm}%{40pt}%{13mm} % carico logo aziendale \useexternalfigure [logo] [.\\TEX\\01-DOCFORMAT\\IMG\\Logo_P

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
gt; \setupdelimitedtext > >[extract] > >[leftmargin=1.5pc, > > style={\italic}, > > before={\setupindenting[next]}, > > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] > > \tfx\italic{René Descartes} \stopalignment}] > > > >

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
ext > >[extract] > >[leftmargin=1.5pc, > > style={\italic}, > > before={\setupindenting[next]}, > > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] > > \tfx\italic{René Descartes} \stopalignment}] > > > >

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context
={\setupindenting[next]},     after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] \tfx\italic{René Descartes} \stopalignment}] \starttext \startextract Cogito ergo sum. \stopextract \stoptext ``` So it should setup a quotation and mentions the author. However, here the author is hardcoded

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Wolfgang Schuster
Gerion Entrup schrieb am 06.06.2024 um 12:30: Hi, I like to achieve something that looks like this: ``` \definedelimitedtext[extract][blockquote] \setupdelimitedtext [extract] [leftmargin=1.5pc, style={\italic}, before={\setupindenting[next]}, after={\blank[1ex] \hrule \blank

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context
On 6/6/2024 12:30 PM, Gerion Entrup wrote: Hi, I like to achieve something that looks like this: ``` \definedelimitedtext[extract][blockquote] \setupdelimitedtext [extract] [leftmargin=1.5pc, style={\italic}, before={\setupindenting[next]}, after={\blank[1ex] \hrule \blank[1ex

[NTG-context] Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
Hi, I like to achieve something that looks like this: ``` \definedelimitedtext[extract][blockquote] \setupdelimitedtext [extract] [leftmargin=1.5pc, style={\italic}, before={\setupindenting[next]}, after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] \tfx\italic{René

[NTG-context] Re: \startcolumns and \startcolumnset

2024-02-08 Thread Otared Kavian
ion\blank[3.5cm]\item equation\blank[3.5cm]\item equation\blank[3.5cm] \stopitemize \hrule\column \item Draw the graph of the following linear function.\startitemize[r]\item $2x +3y = 6$\startplacefigure[location={here,none},]\useMPgraphic{mark}\stopplacefigure

[NTG-context] \startcolumns and \startcolumnset

2024-02-08 Thread Jeong Dal via ntg-context
item equation\blank[3.5cm] \stopitemize \hrule\column \item Draw the graph of the following linear function.\startitemize[r]\item $2x +3y = 6$\startplacefigure[location={here,none},]\useMPgraphic{mark}\stopplacefigure \item $y = 2x - 1$ \startplacefigure[locati

[NTG-context] \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
framed[frame=on,frameoffset=1cm]{\externalfigure[cow][width=3cm,frame=on]} This following text ends up inside the frame. \vskip0.25 in\hrule\vskip0.25 in fr[ef] with offset=1cm: This preceding text is above the frame as desired. \framed[frame=on,offset=1cm]{\externalfigure[cow][width=3cm,f

[NTG-context] Defineenumeration head offset

2022-11-07 Thread Alexandre Christe via ntg-context
, after={\hrule} ] \defineenumeration [example] [ text=Example, headalign=middle, headcolor=white, headcommand={\inframed[background=color,backgroundcolor=darkgreen,width=\textwidth]}, number=no, before={% \starttextbackground[textFrameEx] }, after

Re: [NTG-context] Accessing inserts from Lua in LuaMetaTeX

2022-08-15 Thread Max Chernoff via ntg-context
always zero in LuaMetaTeX, so I'm not sure how to get the class/type. After playing around, I found that this is stored in ".index". I'm able to write to this value just fine, but whenever I read it I get an error. This minimal example: \starttext \setbox999=\

Re: [NTG-context] add more blank space when using \starteffect[hidden]

2021-03-17 Thread Hans Hagen
{\doifmode{hideSolution}{\starteffect[hidden]}} \def\StopHide{\doifmode{hideSolution}{\stopeffect\blank[\the\noflines*line + \the\noflines*halfline]}} \enablemode[hideSolution] \starttext The first line. \hrule \StartHide \samplefile{knuth} \determinenoflines{\samplefile{knuth}} \StopHide \hrule

Re: [NTG-context] add more blank space when using \starteffect[hidden]

2021-03-16 Thread Jeong Dal
]}} \def\StopHide{\doifmode{hideSolution}{\stopeffect\blank[\the\noflines*line + \the\noflines*halfline]}} \enablemode[hideSolution] \starttext The first line. \hrule \StartHide \samplefile{knuth} \determinenoflines{\samplefile{knuth}} \StopHide \hrule The second line. \hrule \StartHide

Re: [NTG-context] [startstop]

2021-01-22 Thread Floris van Manen
On 22/01/2021 23:39, Wolfgang Schuster wrote: No \do...empty (LMTX only): \tolerant\protected\def\startzzz#=%   {\hrule    \doifsomething{#1}{\bold{\strut#1}\blank}} \protected\def\stopzzz   {\blank[10mm]} \starttext \startzzz \input weisman \stopzzz \startzzz{Ward} \input ward

Re: [NTG-context] [startstop]

2021-01-22 Thread Jairo A. del Rio
ut it doesn't create > new environment commands. > > \defineuserdata >[zzz] >[alternative=zzz, > after={\blank[10mm]}] > > \defineuserdataalternative[zzz][renderingsetup=userdata:zzz] > > \startsetups[userdata:zzz] > \hrule >

Re: [NTG-context] [startstop]

2021-01-22 Thread Wolfgang Schuster
][renderingsetup=userdata:zzz] \startsetups[userdata:zzz] \hrule \doifsomething{\userdataparameter{title}} {\bold{\strut\userdataparameter{title}} \blank} \strut\getuserdata \stopsetups \starttext \startuserdata[zzz] \input weisman \stopuserdata \startuserdata[zzz][title=W

Re: [NTG-context] [startstop]

2021-01-22 Thread Jairo A. del Rio
Like this? \usemodule[annotation] %Thanks for this module, Wolfgang \defineannotation[zzz] \define[2]\AnnotationCommand {\doifelse{\placeannotationtitle}{}{}{\hrule\bf\placeannotationtitle\par}#2\blank[10mm]} \setupannotation[zzz] [alternative=command, command=\AnnotationCommand, text

[NTG-context] [startstop]

2021-01-22 Thread Floris van Manen
I'd like to create a start/stop command with a parameter \startzzz[a] one two three \stopzzz \startzzz[b] one two three \stopzzz How do i define/pass the tag parameter in the definition? This does not work (obviously) \definestartstop[zzz][ before={\hrule\bf tag\blank}, after={\blank

Re: [NTG-context] framedtext is (still) broken in LMTX

2020-11-30 Thread Rik Kabel
erent default width than *\framed*. Perhaps I missed it.) New overwrought example: \definelayer      [HRule] [x=0mm,y=0pt,width=\textwidth,height=\textheight] \setlayer     [HRule]   [hoffset=0pt,voffset=10em] {\blackrule[color=green,height=1pt,width

Re: [NTG-context] mathmatrix and internal lines

2020-11-27 Thread Otared Kavian
t;> % in LMTX defining \HR and \VR to create block matrices: >> \pushoverloadmode >> \noaligned\tolerant\protected\def\HR[#1]{\noalign{\hrule #1}} >> \popoverloadmode >> \def\VR{\dosingleempty\doVR} >> \def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC}

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Hans Hagen
d\tolerant\protected\def\HR[#1]{\noalign{\hrule #1}} \popoverloadmode \def\VR{\dosingleempty\doVR} \def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC} given the \HR definition that should be \tolerant\protected\def\VR[#1]{\NC ...\NC} \definemathmatrix[mymatrix] [left={\left(\,},

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
copy below the whole example which can be found later in the mail archive. (For mkiv, I don't know how to do the same thing…). %%% begin block-matrix.tex % in LMTX defining \HR and \VR to create block matrices: \pushoverloadmode \noaligned\tolerant\protected\def\HR[#1]{\noalign

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
\NC A \VR[depth 2mm] B \NR \HR[height 0.6pt] \NC C \VR D \NR \stopmatrix} \pushoverloadmode \noaligned\tolerant\protected\def\HR[#1]{\noalign{\hrule #1}} \popoverloadmode \def\VR{\dosingleempty\doVR} \def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC} === === MkIV ve

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
\noalign{\hrule} \NC C \NC \hskip-.5em\vrule \NC \hskip-.5em D \NR \stopmymatrix \stopformula \stoptext Best regards: Otared K. > On 26 Nov 2020, at 10:19, Jean-Philippe Rey > wrote: > > Dear list, > > I would like to draw matrices with internal lines a

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
\NR \noalign{\hrule} \NC C \hskip .5em |\hskip-.5em \NC D \NR \stopmymatrix \stopformula \stoptext However I think I have seen sometime ago a more elegant solution, but I could not find it right now… Best regards: Otared K. > On 26 Nov 2020, at 10:19, J

Re: [NTG-context] bizarre bug in xml

2020-11-21 Thread Hans Hagen
apply to \vskip, wouldn’t it? also for \hrule and \vrule (and in pdftex/luatex some backend related primitives); primitives like \hbox have their keyword scan terminated by a leftbrace token Hans

Re: [NTG-context] Bug with lmtx and color in table

2020-07-22 Thread Wolfgang Schuster
from it. \starttext \startbuffer \vrule width 4cm height 4cm depth 0pt\relax \stopbuffer \typebuffer \getbuffer \startbuffer \hrule width 4cm height 4cm depth 0pt\relax \stopbuffer \typebuffer \getbuffer \startbuffer \frule width 4cm height 4cm type fill\relax \stopbuffer \typebuffer

Re: [NTG-context] page number with brief centered line above

2020-05-14 Thread jbf
op of the footer. \setuppagenumbering   [location=footer] \setupfooter   [text]   [before=\hrule] \starttext \page[dummy] \stoptext 2. Put the page number in a frame (preferred method). \setuppagenumbering   [location=] \setupfootertexts   [{\framed[width=max,frame=off,topframe=on]{\pagen

Re: [NTG-context] page number with brief centered line above

2020-05-14 Thread Wolfgang Schuster
re is another solution altogether. Any thoughts? 1. Add a rule at the top of the footer. \setuppagenumbering   [location=footer] \setupfooter   [text]   [before=\hrule] \starttext \page[dummy] \stoptext 2. Put the page number in a frame (preferred method). \setuppagenumbering   [loc

[NTG-context] Issues using publications subsystem for non-bibliographic database

2018-12-06 Thread Rik Kabel
opA02]} % %%-- \hrule\blank %%-- %% When \placebtxrendering for the quotation database is removed, %% none of the text from the database is printed, even though the %% dataset completeness shows the

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Jeong Dal
[DefNumber]} } \defineenumeration[Definition] [width=fit, alternative=serried, text={}, number=no, before={\DefCommand}, after=\vskip3pt\hrule\blank] %%% Examples with or without solutions \defineenumeration[Exam] [text={\white\translate[en=Exam

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
r=dBlue] \define\DefCommand{\incrementnumber[DefNumber] \textrule[top]{\translate[en=Definition, kr=정 의] \getnumber[DefNumber]} } \defineenumeration[Definition] [alternative=hanging, width=fit, alternative=serried, text={}, number=no, be

[NTG-context] referencing the customized enumeration with framed title

2018-01-11 Thread Jeong Dal
Definition] [alternative=hanging, width=fit, alternative=serried, text={}, number=no, before={\DefCommand}, after=\vskip3pt\hrule\blank] %%% Examples with or without solutions \defineenumeration[Exam] [text={\white\translate[en=Example, kr=예제]}, num

Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-01 Thread Procházka Lukáš Ing .
from your sample, I wonder whether you need a complete frame or only a rule in the header. If you only need a rule, this is the way to go: \setuplayout[header=5mm,headerdistance=5mm,] %~ \setupheader[text][after=\vskip 4pt\hrule] \setupheader[text][after={\blackrule[ width=

Re: [NTG-context] Empty page to suppress header (background) frame

2017-08-31 Thread Procházka Lukáš Ing .
stance=5mm,] %~ \setupheader[text][after=\vskip 4pt\hrule] \setupheader[text][after={\blackrule[ width=\textwidth, height=1em]}] \setupheadertexts[left][right] \starttext Page 1 \page[empty,blank] Page 2 \stoptext I hope it helps, Pablo

Re: [NTG-context] Empty page to suppress header (background) frame

2017-08-30 Thread Pablo Rodriguez
only a rule in the header. If you only need a rule, this is the way to go: \setuplayout[header=5mm,headerdistance=5mm,] %~ \setupheader[text][after=\vskip 4pt\hrule] \setupheader[text][after={\blackrule[ width=\textwidth, height=1em]}] \setupheadertexts[lef

Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Fabrice Couvreur
Hi Pablo, Thank you so much ! Fabrice %\setupbackgrounds[header][text][bottomframe=on] \setuphead [chapter] [header=empty] \setupheader[text][after=\vskip 1pt \hrule] \starttext \starttitle[title={\bf My Book}] \stoptitle \placelist[chapter,section][alternative=c] \stoptext 2017-08

Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Pablo Rodriguez
want the rule in those pages. Play with the options: %~ \setupheader[text][after=\vskip 3pt \hrule] \setupheader[text][after={\blackrule[ width=\textwidth, height=1em]}] It is wiser (not only to solve the problem), that you write a \title before \placelist. I hope it helps, Pablo

Re: [NTG-context] header hanging into margin + rule

2017-02-19 Thread Csikos Bela
ke the header hang: \setuppapersize[A4] \setuplayout[backspace=3.5cm,width=14cm] \setuppagenumbering[alternative=doublesided,location=] \setupheader[text][after=\hrule] \setupheadertexts[] \setupheadertexts[\setups{text a}][][\setups{text b}][] \startsetups[text a] \hskip-1.5cm \framed[

Re: [NTG-context] table and \setuptables questions

2016-11-17 Thread Csikos Bela
ight and depth options but those are >> not what I need, I guess. What are height and depth options are for exactly? Thank you for your answer. >it's not configurable Is it configurable in other table types, e.g. in TABLE or xtables? >i'll an openup key > > >

Re: [NTG-context] table and \setuptables questions

2016-11-17 Thread Hans Hagen
tance\else\kern\scratchdistance\fi \hrule\s!height\scratchdimen\s!depth\scratchdimen \ifzeropt\scratchdistance\else\kern\scratchdistance\fi \stoptablenoalign} \setuptables [\c!openup=\zeropoint] \protect ... % \setuplocalinterlinespace[2.2ex] \setuptables [openup=-.2ex] 2. C

Re: [NTG-context] Columnset and footnotes

2016-09-21 Thread Hans Hagen
\input knuth.tex This is a footnote\footnote {\input ward} \stopcolumns \stoptext %%% end column-footnote.tex On 22 Sep 2016, at 05:22, Jose Luis Arellano wrote: Dear list. When i write a footnote in my document (two columns), ConTeXt do not draw the hrule above the footnote. What is the problem

Re: [NTG-context] Columnset and footnotes

2016-09-21 Thread Otared Kavian
05:22, Jose Luis Arellano wrote: > > Dear list. > When i write a footnote in my document (two columns), ConTeXt do not > draw the hrule above the footnote. > What is the problem? > > \definecolumnset[n2][n=2,balance=yes] > \starttext > \startcolumnset[n2] >

[NTG-context] Columnset and footnotes

2016-09-21 Thread Jose Luis Arellano
Dear list. When i write a footnote in my document (two columns), ConTeXt do not draw the hrule above the footnote. What is the problem? \definecolumnset[n2][n=2,balance=yes] \starttext \startcolumnset[n2] Footnote \footnote[foo]{This is a footnote.} \input linden \stopcolumnset \stoptext Thanks

Re: [NTG-context] issue in the wiki

2016-05-31 Thread Pablo Rodriguez
ing related to the generation of the .png image?). Many thanks for your help, Pablo > On May 29, 2016 12:36 PM, "Pablo Rodriguez" wrote: > > Dear list, > > modifying http://wiki.contextgarden.net/Command/hrule#Example, I added > an "\hrule height .

Re: [NTG-context] issue in the wiki

2016-05-29 Thread Mohammad Hossein Bateni
The version on the wiki is the stable version from mid 2015. On May 29, 2016 12:36 PM, "Pablo Rodriguez" wrote: > Dear list, > > modifying http://wiki.contextgarden.net/Command/hrule#Example, I added > an "\hrule height .25in". > > I’m afraid that this comm

Re: [NTG-context] orphan headline

2016-05-29 Thread Hans Hagen
On 5/29/2016 11:57 AM, Pablo Rodriguez wrote: On 05/27/2016 02:49 PM, Wolfgang Schuster wrote: Pablo Rodriguez 26. Mai 2016 um 21:29 In a much simpler case, it seems to work: \setuphead[section] [style=\ss\tfa, after={\hrule\blank[samepage,big]}] %~ [style=\ss\tfa, after={\hrule\blank[big

[NTG-context] issue in the wiki

2016-05-29 Thread Pablo Rodriguez
Dear list, modifying http://wiki.contextgarden.net/Command/hrule#Example, I added an "\hrule height .25in". I’m afraid that this command make all rules vanish in the final document. The same source compiles fine with latest beta (2016.05.22 15:18) on my laptop. Is there anythin

Re: [NTG-context] orphan headline

2016-05-29 Thread Pablo Rodriguez
On 05/27/2016 02:49 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 26. Mai 2016 um 21:29 >> >> In a much simpler case, it seems to work: >> >> \setuphead[section] >> [style=\ss\tfa, after={\hrule\blank[samepage,big]}] >> %~ [style=\ss\tfa, after={\hrule

Re: [NTG-context] orphan headline

2016-05-27 Thread Wolfgang Schuster
Pablo Rodriguez <mailto:oi...@gmx.es> 26. Mai 2016 um 21:29 In a much simpler case, it seems to work: \setuphead[section] [style=\ss\tfa, after={\hrule\blank[samepage,big]}] %~ [style=\ss\tfa, after={\hrule\blank[big]}] \setuphead[subsection] [style=\ss, after={\hrule\blank[samepage,

Re: [NTG-context] orphan headline

2016-05-26 Thread Pablo Rodriguez
he heading to the next page. > > alas, it does not, seems ineffective In a much simpler case, it seems to work: \setuphead[section] [style=\ss\tfa, after={\hrule\blank[samepage,big]}] %~ [style=\ss\tfa, after={\hrule\blank[big]}] \setuphead[subsection] [style=\ss, after={\

Re: [NTG-context] Move textrule closer to head

2016-04-13 Thread Tom Harrop
On 13/04/16 18:47, Pablo Rodriguez wrote: Hi Tom, how about another rule? (From http://wiki.contextgarden.net/Titles#Titling_Style.) \setuphead[subsubsection] [after=\hrule\blank] I hope it helps, Pablo Ahh, it's perfect. I missed that page of the wiki! Than

Re: [NTG-context] Move textrule closer to head

2016-04-13 Thread Pablo Rodriguez
't > found a way to move it closer to the heading either with \setuphead or > \setuptextrules. Hi Tom, how about another rule? (From http://wiki.contextgarden.net/Titles#Titling_Style.) \setuphead[subsubsection] [after=\hrule\blank] I hope it h

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-21 Thread Rogers, Michael K
anted side effects \dorecurse{41}{wxyz }\par \dorecurse{42}{wxyz }\par \dorecurse{26}{wxyz } \blank \hrule \blank % compare \parfillskip=0ptplus1fill \dorecurse{35}{wxy x } xy.\par \dorecurse{42}{wxyz }\par \dorecurse{26}{wxyz } \stoptext - Michael > On Mar 21, 2016, at

Re: [NTG-context] ConTeXt on android via "debian noroot"-App

2016-01-27 Thread luigi scarso
k ever. > >>>> > >>>> Recently I tried to install ConTeXt in an android smartphone with help > >>>> of > >>>> the app "debian noroot". Everything went fine and I'm able to compile > >>>> documents, but all \fra

Re: [NTG-context] ConTeXt on android via "debian noroot"-App

2016-01-27 Thread Mojca Miklavec
>> of >>>> the app "debian noroot". Everything went fine and I'm able to compile >>>> documents, but all \framed-Commands lead to the error-message >>>> >>>> "tex error on line 2 in file...: !You can't use '\hrule'

Re: [NTG-context] ConTeXt on android via "debian noroot"-App

2016-01-27 Thread Hans Hagen
Recently I tried to install ConTeXt in an android smartphone with help of the app "debian noroot". Everything went fine and I'm able to compile documents, but all \framed-Commands lead to the error-message "tex error on line 2 in file...: !You can't use '\hrule'

Re: [NTG-context] ConTeXt on android via "debian noroot"-App

2016-01-27 Thread Mojca Miklavec
o back ever. >> >> Recently I tried to install ConTeXt in an android smartphone with help of >> the app "debian noroot". Everything went fine and I'm able to compile >> documents, but all \framed-Commands lead to the error-message >> >> "tex error o

Re: [NTG-context] ConTeXt on android via "debian noroot"-App

2016-01-27 Thread luigi scarso
th help of > the app "debian noroot". Everything went fine and I'm able to compile > documents, but all \framed-Commands lead to the error-message > > "tex error on line 2 in file...: !You can't use '\hrule' here except with > leaders" > > Th

Re: [NTG-context] ConTeXt on android via "debian noroot"-App

2016-01-27 Thread Mojca Miklavec
of > the app "debian noroot". Everything went fine and I'm able to compile > documents, but all \framed-Commands lead to the error-message > > "tex error on line 2 in file...: !You can't use '\hrule' here except with > leaders" > > The mi

Re: [NTG-context] ConTeXt on android via "debian noroot"-App

2016-01-26 Thread luigi scarso
magine to go back ever. >> >> Recently I tried to install ConTeXt in an android smartphone with help of >> the app "debian noroot". Everything went fine and I'm able to compile >> documents, but all \framed-Commands lead to the error-message >> >> &qu

Re: [NTG-context] ConTeXt on android via "debian noroot"-App

2016-01-26 Thread luigi scarso
th help of > the app "debian noroot". Everything went fine and I'm able to compile > documents, but all \framed-Commands lead to the error-message > > "tex error on line 2 in file...: !You can't use '\hrule' here except with > leaders" > > Th

[NTG-context] ConTeXt on android via "debian noroot"-App

2016-01-26 Thread Thomas Klein
to compile documents, but all \framed-Commands lead to the error-message "tex error on line 2 in file...: !You can't use '\hrule' here except with leaders" The minimal example is: \starttext \framed{Hello} \stoptext I suspect the cause for this might be missing pa

[NTG-context] Questions on registers, and on processors used with registers

2015-10-04 Thread Rik Kabel
, 2.) in the first braced argument to writetolist. \definelist[Reprints][criterium=all] \starttext \section{Sec 1} \writetolist[Reprints]{1.}{List entry A} \subsection{Subsec 1} \writebetweenlist[Reprints]{\hrule} \writetolist[Reprints]{2.}{List entr

Re: [NTG-context] noheaderandfooterlines messes with colors

2015-08-03 Thread Hans Hagen
should be red}; \draw(0,0) node[color=red]{This is red}; \stoptikzpicture Aditya It seems there is a problem : tex error > tex error on line 3 in file /home/ericd13/documents/Context/essaicouleur.tex: ! Leaders not followed by proper glue \hskip \forcecolorhack ->\leaders \hrule

Re: [NTG-context] noheaderandfooterlines messes with colors

2015-08-03 Thread Eric Détrez
=red]{This is red}; \stoptikzpicture Aditya It seems there is a problem : tex error > tex error on line 3 in file /home/ericd13/documents/Context/essaicouleur.tex: ! Leaders not followed by proper glue \hskip \forcecolorhack ->\leaders \hrule

[NTG-context] TEX and XML typing with trailing interline space

2014-08-18 Thread Christoph Reller
Hi, How do I get rid of the additional line inserted at the end of a TEX or XML environment? Minimal working example: \starttext \setuptyping[TEX][before=,after=] % <- trailing interline space \hrule \startTEX \TeX \stopTEX \hrule \medskip \setuptyping[XML][before=,after=] % <- tr

Re: [NTG-context] Vertical alignment of \placefigure[right]

2014-05-07 Thread Sanjoy Mahajan
figure aligns with a baseline. The top can then protrude, if the height is not a multiple of the line height. But, if the figure heights are right, it would look good in combination with \setupfloats[sidespaceafter=0pt]. -Sanjoy \starttext \hrule \placefigure[right]{Caption}{\framed[wi

Re: [NTG-context] Vertical alignment of \placefigure[right]

2014-05-07 Thread Sanjoy Mahajan
ct.) \starttext {\setupfloats[sidespaceafter=0pt] \hrule \placefigure[right,high]{Caption}{\framed[width=5cm,height=4.3cm]{}} \input knuth } \vskip1cm \hrule \placefigure[right,high]{Caption}{\framed[width=5cm,height=4.3

Re: [NTG-context] Vertical alignment of \placefigure[right]

2014-05-07 Thread Mojca Miklavec
[of the first line?] of the first paragraph. > > Ah, I can finally answer a question. The key is "high": > > \starttext > \hrule > \placefigure[right,high]{Caption}{\framed[width=5cm,height=4cm]{}} > \input knuth > \stoptext > > But that seems too easy.

Re: [NTG-context] Vertical alignment of \placefigure[right]

2014-05-07 Thread Sanjoy Mahajan
r a question. The key is "high": \starttext \hrule \placefigure[right,high]{Caption}{\framed[width=5cm,height=4cm]{}} \input knuth \stoptext But that seems too easy. Is it what you want? -Sanjoy ___

[NTG-context] Vertical alignment of \placefigure[right]

2014-05-07 Thread Mojca Miklavec
workaround" shows what I'm trying to achieve, but ideally using a cleaner approach. Does there exist a magic keyword for that? \starttext \hrule \placefigure[right]{Caption}{\framed[width=5cm,height=4cm]{}} \input knuth % ugly workaround \hrule \vskip-11pt \placefigure[right]{Caption}{\framed[

Re: [NTG-context] problem between textrule and setupindenting ?

2014-05-06 Thread Hans Hagen
h_yes\pack_textrule_correct_depth_nop \nointerlineskip \noindent\vbox {\color[\directtextrulesparameter\c!rulecolor] {\hrule\s!depth\directtextrulesparameter\c!rulethickness\s!height\zeropoint\s!width\availablehsize}}} {\pack_textrule_with_text{#1}}% \ifvmode \prevdepth\zeropoint

Re: [NTG-context] frames, hrule, vfill and pagebreaks (was: Vertically stretched split table)

2014-04-14 Thread Joshua Krämer
Dear list, if somebody cares, the following solution works for me: \hrule \penalty1 \vfill \penalty1 \dontleavehmode\framed{...} \penalty1 \vfill \penalty1 \hrule height 0pt \par\penalty-5000 Joshua

[NTG-context] frames, hrule, vfill and pagebreaks (was: Vertically stretched split table)

2014-04-08 Thread Joshua Krämer
Dear list, at first, I thought the following code (simplified) with frames, hrules and vfills between them would work to typeset my table. However, I have now realized that sometimes a pagebreak occurs before the final (invisible) hrule, and then there's no vfill at the bottom of the page

Re: [NTG-context] Vertically stretched split table

2014-04-07 Thread Joshua Krämer
ustom solution using frames, hrules and vfills in between. So far, it works well. (A small problem is wrong hrule spacing at the beginning of the page, and start/stoplinecorrection leads to wrong vfill-spacing. If I can't sort it out, I'll write another message.) Ki

[NTG-context] Bug with TikZ

2014-03-14 Thread Xan
A Sud}][{\rm \sc ESPA 4. Quad. 1}] \setupfootertexts[{\rm \sc Pàgina \pagenumber\space de \lastpage\space - 13 de desembre de 2013}] \usemodule[tikz] % BUGGY things \definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451] \setupfooter[text][style={\ss\tfx},color={headingcolor},before={\hrule}] \setuph

Re: [NTG-context] 1. \setupbackgrounds with colours 2. \textwidth = 1.09\textwidth?

2014-02-17 Thread Rudolf Bahr
gt; > according to Context reference manual p. 187. > > But a question remains: > > > > Is it a feature of context not to colourize header and footer alone, but > > only in conjunction with text? > > > > 2. In the appended pdf-file it is also to be seen, t

Re: [NTG-context] 1. \setupbackgrounds with colours 2. \textwidth = 1.09\textwidth?

2014-02-17 Thread Wolfgang Schuster
ontext not to colourize header and footer alone, but > only in conjunction with text? > > 2. In the appended pdf-file it is also to be seen, that the horizontal \hrule > strokes > are wider than \textwidth, i.e. they begin in leftmargin and extend to > within > rightmar

[NTG-context] 1. \setupbackgrounds with colours 2. \textwidth = 1.09\textwidth?

2014-02-17 Thread Rudolf Bahr
2. In the appended pdf-file it is also to be seen, that the horizontal \hrule strokes are wider than \textwidth, i.e. they begin in leftmargin and extend to within rightmargin, whereas the vertical \vrule strokes exactly are as high as expected. Is there a bug in my program? Regar

[NTG-context] writetolist doesn't include sectionnumber in mkiv?

2014-02-15 Thread Sanjoy Mahajan
i at <http://wiki.contextgarden.net/Command/setuplist>. The only change is that I've included [order=command] so that the \hrule ends up at the right place. \definelist[Reprints][criterium=all] \starttext \section{Sec 1} \writetolist[Reprints]{1.}{List entry A} \subsection{Subsec 1} \writ

[NTG-context] \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower

2014-01-22 Thread Rudolf Bahr
style=bold, command=\midaligned] \setupheader[text][after=\hrule] \setupbodyfont[default] \definebodyfontswitch [xvii] [17.3pt] \definebodyfontswitch [xiv] [14.4pt] \definebodyfontswitch [xii] [12pt] \setupheadtext[content=\rm\xvii\bf Inhaltsverzeichnis] \definelist[chapte

Re: [NTG-context] Invoice Example

2014-01-13 Thread john Culleton
\or November\or December\fi \space\number\day, \number\year} \nopagenumbers \parindent=0pt \parskip=0pt \font\bigss=cmss17 at 25pt \centerline{\bigss INVOICE} \noncenteredtables \vskip .25in \hrule height 1.5pt \bigskip \line{\hfill Date: \today} \vskip .25in \line{\ruledtable VENDOR \cr John Cul

[NTG-context] Difficulties with \startformula

2014-01-13 Thread Elspeth McGullicuddy
\startformula x+y \stopformula } \framed[width=5cm,align=yes]{% \hairline \startformula x+y \stopformula \hairline } \hairline \startformula x+y \stopformula \hairline \framed[align=yes]{% \type{\vrule \hrule \vbox $$}\\ \hbox{\vrule{\hsize=7cm\vbox{\hrule $$ x+y $$ \input{knuth} \hrule}}\vrule}} \fram

[NTG-context] What is the error of that header lines?

2013-12-21 Thread Xan
ad. 1}] \setupfootertexts[{\rm \sc Pàgina \pagenumber\space de \lastpage\space - 13 de desembre de 2013}] \usemodule[tikz] % BUGGY things \definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451] \setupfooter[text][style={\ss\tfx},color={headingcolor},before={\hrule}] \setupheader[text][style={\ss},color={heading

Re: [NTG-context] Alignment table with comma, and long long space after

2013-09-22 Thread Xan
fx},color=headingcolor,before={\hrule}] \setupheader[text][style={\ss},color=headingcolor,after={\hrule}] %% Display of headers \setuphead[title][style={\tfd},align=middle,before={\begingroup},after={\bigskip\endgroup}] \setupheads[section,subject][style={\tfc}] \setupheads[subsubject,subsection][st

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Wolfgang Schuster
Am 15.07.2013 um 17:33 schrieb Hans Hagen : > On 7/15/2013 2:53 PM, Marco Patzer wrote: >> On 2013–07–15 "H. Özoguz" wrote: >> >>> \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. >> >> This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4],

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Hans Hagen
On 7/15/2013 2:53 PM, Marco Patzer wrote: On 2013–07–15 "H. Özoguz" wrote: \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4], \color expects a previously defined colour. \blackrule[width=10cm,height=1mm

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Marco Patzer
On 2013–07–15 "H. Özoguz" wrote: > \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4], \color expects a previously defined colour. Marco signature.asc Description: Digi

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Peter Münster
On Mon, Jul 15 2013, H. Özoguz wrote: > The direct attempt \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. \definecolor[my hrule color][r=0.4,g=0.4,b=0.4] \starttext bla \color[my hrule color]{\hrule} bla \stoptext -- Pe

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Marco Patzer
On 2013–07–15 "H. Özoguz" wrote: > \setupheader[text][after=\hrule] \setupheader[text][after=\blue\hrule] Marco signature.asc Description: Digital signature ___ If your question is of interest to o

[NTG-context] Colored horizontal line

2013-07-15 Thread H. Özoguz
Hello there, after long time I have a question again :) I use \setupheader[text][after=\hrule] to get a horizontal line below the header. How can I color this line? The direct attempt \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. Thank you. Huseyin

Re: [NTG-context] Chapter-Names and Section-Names in Header don't work as expected

2013-07-15 Thread Thomas Friedrich
=start,alternative=doublesided,location=] >> \setupheader[][style=small,after=\hrule] >> \setupheadertexts[section][pagenumber][pagenumber][chapter] >> >> Problems: 1) the mark "chapter" does not work. The section title >> appears but not the chapter title. >

Re: [NTG-context] Chapter-Names and Section-Names in Header don't work as expected

2013-05-31 Thread Wolfgang Schuster
xtwidth. On uneven pages the chapter-names, on even pages the > section names. Reading the manual (4.16 Headers and Footers), I > thought this should work: > > \setuppagenumbering[start=start,alternative=doublesided,location=] > \setupheader[][style=small,after=\hrule] > \

[NTG-context] Chapter-Names and Section-Names in Header don't work as expected

2013-05-31 Thread Thomas Friedrich
the manual (4.16 Headers and Footers), I thought this should work: \setuppagenumbering[start=start,alternative=doublesided,location=] \setupheader[][style=small,after=\hrule] \setupheadertexts[section][pagenumber][pagenumber][chapter] Problems: 1) the mark "chapter" does not work. T

Re: [NTG-context] Draw a line below the header texts

2013-04-29 Thread Wolfgang Schuster
rom Aditya, > but still has some problem that I don't know how to deal with) > > \setupbackgrounds > [header][text] > [bottomframe=on] \setupheader[text][after=\hrule] Wolfgang ___ If your q

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

2013-03-29 Thread Hans Hagen
On 3/28/2013 4:36 PM, Thomas Kreuzer wrote: Am 3/24/2013 20:43, schrieb Marcin Borkowski: If this \hrule is TeX's primitive \hrule, then you can (maybe) type [after={\hrule height 0.4pt\relax}] for the default (and change the height for other dimensions). That said, this is a low-level

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

2013-03-29 Thread Thomas Kreuzer
Am 3/24/2013 20:43, schrieb Marcin Borkowski: If this \hrule is TeX's primitive \hrule, then you can (maybe) type [after={\hrule height 0.4pt\relax}] for the default (and change the height for other dimensions). That said, this is a low-level hack and not very ConTeXt-y (even if it works,

  1   2   3   >