Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
6-65\\ Email: dolin...@gmail.com}}} {\rightaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{% Булевар Краља Александра 334, 11000 Београд\\ 011\hspace[tnumber]3806\hspace[tnumber]007\\ 011\hspace[tnumber]3820\hspace[tnumber]457\\ 011\hspace[tnumber]2419\

Re: [NTG-context] poetry \startlines and tab

2022-01-12 Thread Hans Hagen via ntg-context
]. And then, but I guess it is still a hack, I use \hskip at a suitable dimension whenever I need indented lines: \startpoem This is line one, \hskip1em{This is line two} This is line three, \hskip1em{This is line four,} \hskip1em{This is line five.} \rightaligned{Poet's name} \stoppoem \quad

Re: [NTG-context] poetry \startlines and tab

2022-01-11 Thread jbf via ntg-context
at a suitable dimension whenever I need indented lines: \startpoem This is line one, \hskip1em{This is line two} This is line three, \hskip1em{This is line four,} \hskip1em{This is line five.} \rightaligned{Poet's name} \stoppoem Julian On 11/1/22 1:01 pm, Youssef Cherem via ntg-context wrote: Hello

Re: [NTG-context] Align in setup header/footer

2021-06-25 Thread Wolfgang Schuster
[part]}][] \setuppagenumbering [alternative=doublesided] \setupfootertexts [margin] [\leftaligned {A}] [\rightaligned{B}] [\leftaligned {C}] [\rightaligned{D}] \setuplayout [backspace=4cm, width=12cm] \showframe \starttext \dorecurse{4}{\dontleavehmode\page} \stoptext

Re: [NTG-context] Calculating Best Box Width?

2021-06-09 Thread Hans Hagen
\hfuzz#3\hfuzz \rightaligned{\ssa\sl --- #2} \else \rightaligned{\ssa\sl --- #2, \tf\ssa\symbol[leftquote]#3\symbol[rightquote]} \fi } \starttext Testing epigraph \epigraph{% para \quotation{My birthday-present!} he whispered to himself, as he had often done in the endless dark days

[NTG-context] Calculating Best Box Width?

2021-06-09 Thread Michael Urban
[flushright,nothyphenated,broad] \dontcomplain \noindent}, after={\stopalignment\stopnarrower \blank[EpigraphDistance] \indenting[next]}] \long\def\epigraph#1#2#3{% \startEpigraphText #1 \par \stopEpigraphText \ifx\hfuzz#3\hfuzz \rightaligned{\ssa\sl --- #2} \else

Re: [NTG-context] margin in TocEntry definition

2021-03-11 Thread jbf
\structurelistuservariable{author} \rightaligned \bgroup #3 \egroup \egroup } \setuplist [chapter] [alternative=command, command=\SectionToCEntry, after=\endgraf] \completecontent \startchapter [title={This is my chapter title}] [author={Dummy Name}] \input Tufte

Re: [NTG-context] margin in TocEntry definition

2021-03-11 Thread Bruce Horrocks
ext \define[3]\SectionToCEntry{ #2\crlf \leftaligned \bgroup \hskip 0.5cm \structurelistuservariable{author} \rightaligned \bgroup #3 \egroup \egroup } \setuplist [chapter] [alternative=command, command=\SectionToCEntry, after=\endgraf] \completecontent \startchapter

Re: [NTG-context] Tagged export breaks r2l alignment in tabulate

2020-09-30 Thread Denis Maier
=global,    method=unicode] \setuptagging   [state=start] \starttext \starttabulate[|pA{righttoleft}|p|] %\NC \raggedleft Text    \NC Translation \NC\NR \NC \rightaligned{Text} \NC Translation \NC\NR \NC \input ward \NC \input ward \NC\NR \stoptabulate \stoptext Ok, that works

Re: [NTG-context] Tagged export breaks r2l alignment in tabulate

2020-09-27 Thread Wolfgang Schuster
] \starttext \starttabulate[|pA{righttoleft}|p|] %\NC \raggedleft Text\NC Translation \NC\NR \NC \rightaligned{Text} \NC Translation \NC\NR \NC \input ward \NC \input ward \NC\NR \stoptabulate \stoptext Wolfgang

[NTG-context] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Willi Egger
[.2\textheight] \rightaligned{Bramble-Bees} \stopstandardmakeup \startstandardmakeup[doublesided=yes,page=yes] \strut \godown[.1\textheight] \startalignment[middle] {\bfb BRAMBLE-BEES AND OTHER} \blank[line] {\bfa by J. HENRI FABRE} \stopalignment \vfill

Re: [NTG-context] Bidi-related register problem

2019-01-27 Thread Hans Hagen
On 1/27/2019 7:15 PM, Rik Kabel wrote: That allows the compilation to complete, but method=three breaks other stuff. Try this: \starttext \setupdirections [bidi=on,method=three] \rightaligned{(( How is this?} \stoptext (I also see problems with boxes set in the margin where

Re: [NTG-context] Bidi-related register problem

2019-01-27 Thread Rik Kabel
- That allows the compilation to complete, but method=three breaks other stuff. Try this: \starttext \setupdirections [bidi=on,method=three] \rightaligned{(( How is this?} \stoptext (I also see problems with boxes set in the margin where

Re: [NTG-context] Problems with letter module

2018-07-20 Thread Lutz Haseloff
dule[letter] >> \useletterstyle[dinb] >> \mainlanguage[de] >> \starttext >> \setupletter >> [signature={Unterschrift}, >> fromname={Absender}, >> fromaddress={Straße\\Ort}, >> toname={An}, >> toaddress={Adresse}] >> % correspondence.pdf, p. 73 >>

Re: [NTG-context] Problems with letter module

2018-07-20 Thread Henri Menke
] \starttext \setupletter [signature={Unterschrift}, fromname={Absender}, fromaddress={Straße\\Ort}, toname={An}, toaddress={Adresse}] % correspondence.pdf, p. 73 \startsetups letter:head \rightaligned{Seite \correspagenumber\ von \numberofcorrespages} \stopsetups % correspondence.pdf, p. 71

[NTG-context] Problems with letter module

2018-07-19 Thread Lutz Haseloff
={Unterschrift}, fromname={Absender}, fromaddress={Straße\\Ort}, toname={An}, toaddress={Adresse}] % correspondence.pdf, p. 73 \startsetups letter:head \rightaligned{Seite \correspagenumber\ von \numberofcorrespages} \stopsetups % correspondence.pdf, p. 71 \startuseMPgraphic{dactylus} draw unitsquare

[NTG-context] 6-sided letter fold (TRYPTICHON) with unequal page size

2018-06-19 Thread Marco Patzer
=9.7cm, height=21cm] \setuppapersize [flyer] [A4, landscape] \setuplayout [page] \setuparranging [TRYPTICHON] \starttext \showframe 10cm:\blank \rightaligned{\blackrule[width=10cm]}\vfill{\tfd\currentpage} \page 10cm:\blank[5mm] \blackrule[width=10cm]\vfill{\tfd\currentpage} \page 10cm:\blank

Re: [NTG-context] rightaligned formulas stick out in the margin

2016-09-27 Thread Mikael P. Sundqvist
On Tue, Sep 27, 2016 at 3:14 PM, Henri Menke wrote: > No problem with TL 2016. Are you on beta? > > On 09/27/2016 03:10 PM, Mikael P. Sundqvist wrote: >> Hi! >> >> Look at the following example (pdf attached) >> >> \setupformulas[ >> align=flushleft, >> leftmargin=3em, >> ]

Re: [NTG-context] rightaligned formulas stick out in the margin

2016-09-27 Thread Henri Menke
No problem with TL 2016. Are you on beta? On 09/27/2016 03:10 PM, Mikael P. Sundqvist wrote: > Hi! > > Look at the following example (pdf attached) > > \setupformulas[ > align=flushleft, > leftmargin=3em, > ] > > \starttext > \input tufte % Some text to see where the margin is > > This looks

[NTG-context] rightaligned formulas stick out in the margin

2016-09-27 Thread Mikael P. Sundqvist
Hi! Look at the following example (pdf attached) \setupformulas[ align=flushleft, leftmargin=3em, ] \starttext \input tufte % Some text to see where the margin is This looks OK: \startformula 1+1=2 \stopformula This does not look OK: \startformula 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1=19

Re: [NTG-context] How to typeset a line as if it had zero height

2016-08-03 Thread Wolfgang Schuster
width \raise \baselineskip \hbox to \textwidth{% shift one line back \rightaligned{Line}% typset right aligned }% }% }% \input knuth \stopsection \stoptext You can use \offset to shift the text to a different position. \define[1]\MoveText {\dontleavehmode\offset[width=0pt,height=0pt,y=-\line

Re: [NTG-context] How to typeset a line as if it had zero height

2016-08-02 Thread Henri Menke
\rightaligned{Line}% typset right aligned }% }% }% \input knuth \stopsection \stoptext On 08/02/2016 10:16 PM, Joseph Canedo wrote: > Dear all, > > > > I have this simple MWE : > > > > \starttext > > \startsection[title=Section] >

Re: [NTG-context] Bug: RTL \framed when aligned

2016-01-21 Thread Hans Hagen
On 1/20/2016 4:27 PM, Mohammad Hossein Bateni wrote: Hello, There seems to be a bug in RTL documents when \framed goes in \leftaligned, \midaligned, or \rightaligned AND corner=round option is used. (I don't know what other options trigger the bug.) Here is the MWE (verified in ConTeXt ver

[NTG-context] Bug: RTL \framed when aligned

2016-01-20 Thread Mohammad Hossein Bateni
Hello, There seems to be a bug in RTL documents when \framed goes in \leftaligned, \midaligned, or \rightaligned AND corner=round option is used. (I don't know what other options trigger the bug.) Here is the MWE (verified in ConTeXt ver: 2016.01.18 22:21 MKIV beta fmt: 2016.1.19 int: english

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
] \leftaligned{Enterprise Architecture}% \stop \hairline \blank[line] \leftaligned{Making the right moves to manage Business--IT complexity}% \hairline \blank[line]\rightaligned{Gerben Wierda}% \blank[6cm]\start\leftskip=10cm\hairline\stop \rightaligned{2015}% \stopstandardmakeup \startstandardmakeup

[NTG-context] setup for paragraph styles

2015-03-12 Thread mf
:*} ... \xmlsetsetup{\xmldocument}{p[@class='letter-date']}{xml:p:letter-date} ... \stopxmlsetups ... \startxmlsetups xml:p:letter-date \page[no]\rightaligned{\noindent\xmlflush{#1}}\par\page[no] \stopxmlsetups ... Is that the right way or is it better to define and setup a style like

[NTG-context] How to place text to the right of a brace

2015-02-01 Thread Fabrice Couvreur
=\overlayheight]{\useMPgraphic{accolade}}}] \defineoverlay[rightbrace][\rightaligned{\mirror{\scale[height=\overlayheight]{\useMPgraphic{accolade] \starttext \framedtext[frame=off,loffset=1em,roffset=1em,background={rightbrace}]{ La longueur est \unit{4 centimeter} ; on donne à $L$ la valeur

[NTG-context] Trying to force a particular page sequence

2014-11-26 Thread Gerben Wierda
\start \blank[line] \switchtobodyfont[16pt]\bf \leftaligned{Foo}% \blank[line] \leftaligned{bar bar bar bar}% \blank[line] \leftaligned{Foo}% \stop \hairline \blank[line] \leftaligned{Foo bar foo bar bar bar bar}% \hairline \blank[line]\rightaligned{Gerben Wierda}% \blank[6cm]\start\leftskip=10cm

Re: [NTG-context] Trying to force a particular page sequence

2014-11-26 Thread Gerben Wierda
] \leftaligned{bar bar bar bar}% \blank[line] \leftaligned{Foo}% \stop \hairline \blank[line] \leftaligned{Foo bar foo bar bar bar bar}% \hairline \blank[line]\rightaligned{Gerben Wierda}% \blank[6cm]\start\leftskip=10cm\hairline\stop \rightaligned{2014}% \stopstandardmakeup \stop Copyright notice

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-27 Thread Joshua Krämer
}}{\rightaligned{\flushnextbox}}% \else \midaligned{\flushnextbox}% \fi} \hbox} \definefloat [widefigure] [figure] [figure] \setupfloat [widefigure] [command=\WideFloatCommand] \usemodule[tikz] \showframe \starttext x \page \startplacewidefigure \framed[width=\measure

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-27 Thread Joshua Krämer
[draw, minimum width=1.2\textwidth] {Three}; \stoptikzpicture \stopplacewidefigure \startplacewidefigure \starttikzpicture \node [draw, minimum width=3cm] {Four}; \stoptikzpicture \stopplacewidefigure \startplacewidefigure \rightaligned{% \starttikzpicture \node [draw, minimum width=1.2\textwidth

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-25 Thread Hans Hagen
to the width of the text are, when the figure is wider then the available space use the \leftaligned or \rightaligned commands to let the content protrude to the outer margins. \setuppagenumbering[alternative=doublesided] \setuplayout[backspace=4cm,width=12cm] \definemeasure[Widefigure][\textwidth

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-25 Thread Rik Kabel
are, when the figure is wider then the available space use the \leftaligned or \rightaligned commands to let the content protrude to the outer margins. \setuppagenumbering[alternative=doublesided] \setuplayout[backspace=4cm,width=12cm] \definemeasure[Widefigure][\textwidth+\rightmargindistance

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-25 Thread Hans Hagen
and compare the width to the width of the text are, when the figure is wider then the available space use the \leftaligned or \rightaligned commands to let the content protrude to the outer margins. \setuppagenumbering[alternative=doublesided] \setuplayout[backspace=4cm,width=12cm] \definemeasure

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-24 Thread Wolfgang Schuster
are, when the figure is wider then the available space use the \leftaligned or \rightaligned commands to let the content protrude to the outer margins. \setuppagenumbering[alternative=doublesided] \setuplayout[backspace=4cm,width=12cm] \definemeasure[Widefigure][\textwidth+\rightmargindistance

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-24 Thread Keith J. Schultz
the figure is wider then the available space use the \leftaligned or \rightaligned commands to let the content protrude to the outer margins. \setuppagenumbering[alternative=doublesided] \setuplayout[backspace=4cm,width=12cm] \definemeasure[Widefigure][\textwidth+\rightmargindistance

Re: [NTG-context] How to make floats extend into the outer margin

2014-07-24 Thread Joshua Krämer
\nextboxwd\textwidth \doifrightpageelse{\leftaligned{\flushnextbox}}{\rightaligned{\flushnextbox}}% \else \midaligned{\flushnextbox}% \fi} \hbox} \showframe \starttext \startplacefigure[location={270, page}] \framed[width=\textheight,framecolor=red]{Turned

[NTG-context] Another issue with my magazine

2013-09-03 Thread Mikoláš Štrajt
\blank[1*halfline] \rightaligned{--- #2} }} \def\trojtecka { {\bf \ruda \tt...} } \def \robotitulka{ \startstandardmakeup \title{Neslyšný kočkopes - \getvariable[cislo]} \placecontent \stopstandardmakeup \page } \def\zanrO #1{ \framed[   background=color,   backgroundcolor=grave,   foreground=color

Re: [NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Wolfgang Schuster
, - \rightaligned and - \midaligned. Even though each command is only meant for short text you use the \\ command to put text into several lines, e.g. \starttext \midaligned{One\\Two\\Three} \stoptext creates three lines for the input. In recent installations you can write

Re: [NTG-context] \centerline vs. \midaligned vs. \startalignment[middle]

2013-06-26 Thread Procházka Lukáš Ing . - Pontex s . r . o .
on a single line but it isn’t recommended to use them because ConTeXt has it’s own alternative for them. The replacement commands are - \leftaligned, - \rightaligned and - \midaligned. Even though each command is only meant for short text you use the \\ command to put text into several lines

Re: [NTG-context] Working with layers ... with example

2013-06-24 Thread Wolfgang Schuster
. \setupbackgrounds[page][background={document_logo,document_data}] 2. You can insert a certain numbers of empty lines in your document with \blank[n*line]. 3. \startalignment makes no sense in a layer. 4. You can align single lines of text with \leftaligned, \midaligned or \rightaligned

Re: [NTG-context] split natural table

2013-05-21 Thread Wolfgang Schuster
=max,align={middle,low},foregroundstyle=\ss\bfb,offset=1ex] \startoverlay {\leftaligned {Left}} {\midaligned {Middle}} {\rightaligned{Right}} \stopoverlay \stopframed \stopsetups

Re: [NTG-context] split natural table

2013-05-21 Thread Stephens, Kenny
,align={middle,low},foregroundstyle=\ss\bfb,offset=1ex] \startoverlay {\leftaligned {Left}} {\midaligned {Middle}} {\rightaligned{Right}} \stopoverlay \stopframed \stopsetups \setupheadertexts[\texsetup{header}] Wolfgang

Re: [NTG-context] split natural table

2013-05-21 Thread Wolfgang Schuster
}} {\rightaligned{Right}} \stopoverlay \stopframed \stopsetups \setupheadertexts[\texsetup{header}] Use the normal \framed command and replace \texsetup with \setups in \setupheadertexts and it will also work with your older version of context. \startsetups[header] \framed[corner=09,width

Re: [NTG-context] split natural table

2013-05-21 Thread Stephens, Kenny
\startoverlay {\leftaligned {Left}} {\midaligned {Middle}} {\rightaligned{Right}} \stopoverlay \egroup \stopsetups \setupheadertexts[\setups{header}] When you have a longer text for all three fields

Re: [NTG-context] bibliography (interaction)

2013-03-23 Thread Alan BRASLAU
) \starttext \startquotation The mind cannot possibly grasp the full meaning of the term of a hundred million years. \stopquotation \rightaligned{\cite [Darwin1859]} \completepublications [criterium=all] \stoptext - @BOOK{ Darwin1859

[NTG-context] Some questions

2013-01-25 Thread Alain Delmotte
is the manual about it? - The boxes on page 45, second example are not at the right position, particularly the second is on the same line as the first. \leftaligned {\inframed[width=fit]{People in Hasselt}} \midaligned {\inframed[height=1.5cm,frame=off]{have a}} \rightaligned {\inframed[background

Re: [NTG-context] Some questions

2013-01-25 Thread Marco Patzer
a}} \rightaligned {\inframed[background=screen]{historic background}} In MkIV there's a new syntax you can use: \startlinealignment [left] \inframed[width=fit]{People in Hasselt} \stoplinealignment \startlinealignment [middle] \inframed[height=1.5cm,frame=on]{have a} \stoplinealignment

Re: [NTG-context] Some questions

2013-01-25 Thread Alain Delmotte
as the first. \leftaligned {\inframed[width=fit]{People in Hasselt}} \midaligned {\inframed[height=1.5cm,frame=off]{have a}} \rightaligned {\inframed[background=screen]{historic background}} In MkIV there's a new syntax you can use: \startlinealignment [left] \inframed[width=fit]{People in Hasselt

Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Wolfgang Schuster
: \setuppagenumbering[alternative=doublesided,location=] \setupheadertexts [margin] [][\rightaligned{\bf\userpagenumber}] [\leftaligned{\bf\userpagenumber}][] \setupheader[margin][align=outer] \starttext \showframe \dorecurse{10}{\dontleavehmode\page} \stoptext Wolfgang

Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Marco Patzer
=\PageNumberCommand] \starttexdefinition PageNumberCommand #pageno \signalrightpage \doifrightpageelse {\rightaligned{#pageno}} {\leftaligned{#pageno}} \stoptexdefinition Marco signature.asc Description: Digital signature

Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Wolfgang Schuster
=doublesided, location={header, margin}, style=bold, command=\PageNumberCommand] \starttexdefinition PageNumberCommand #pageno \signalrightpage \doifrightpageelse {\rightaligned{#pageno}} {\leftaligned{#pageno}} \stoptexdefinition Marco When you’re in the header you can just

Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Malte Stien
to be numbers? Here is what worked in the end: \setuppagenumbering[ alternative=doublesided, location={header, margin}, style=bold, command=\PageNumberCommand ] \starttexdefinition PageNumberCommand #1 \doifoddpageelse {\rightaligned{#1}} {\leftaligned{#1

Re: [NTG-context] align and location in \setupcombination

2012-10-30 Thread Wolfgang Schuster
: \unexpanded\def\leftaligned {\spac_align_wrapper_handle\v!left } -\unexpanded\def\midaligned {\spac_align_wrapper_handle\v!middle} +\unexpanded\def\middlealigned{\spac_align_wrapper_handle\v!middle} \unexpanded\def\rightaligned {\spac_align_wrapper_handle\v!right } \unexpanded\def\maxaligned

Re: [NTG-context] Help with Long Titles

2012-10-21 Thread Malte Stien
is minimal example (or something very close to that): % The title page \startsetups titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{project}} \textrule \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title

Re: [NTG-context] Help with Long Titles

2012-10-19 Thread Otared Kavian
titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{project}} \textrule \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}} \blank[170mm] \starttabulate[|plf{\tfa}|prf{\tfa}|] \NC\tfa

Re: [NTG-context] Help with Long Titles

2012-10-19 Thread Wolfgang Schuster
to that? Is there maybe a way to position the information down the bottom absolute? Here is minimal example (or something very close to that): % The title page \startsetups titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{project

[NTG-context] Help with Long Titles

2012-10-18 Thread Malte Stien
is minimal example (or something very close to that): % The title page \startsetups titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{project}} \textrule \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage

Re: [NTG-context] notes placed left, right aligned

2012-07-29 Thread Peter Münster
On Sun, Jul 29 2012, Steffen Wolfrum wrote: but these numbers should be right aligned: so that the ones (eg. in 1 and 21 and 201) are exactly on top of each other any idea how to achieve this? \def\NumberCommand#1{\rightaligned{#1}} % or: \def\NumberCommand#1{\hfill#1} \setupnotation

Re: [NTG-context] notes placed left, right aligned

2012-07-29 Thread Steffen Wolfrum
Am 29.07.2012 um 18:27 schrieb Peter Münster: On Sun, Jul 29 2012, Steffen Wolfrum wrote: but these numbers should be right aligned: so that the ones (eg. in 1 and 21 and 201) are exactly on top of each other any idea how to achieve this? \def\NumberCommand#1{\rightaligned{#1

Re: [NTG-context] notes placed left, right aligned

2012-07-29 Thread Wolfgang Schuster
any idea how to achieve this? \def\NumberCommand#1{\rightaligned{#1}} % or: \def\NumberCommand#1{\hfill#1} \setupnotation[footnote][alternative=left,width=12pt,distance=4.80pt, numbercommand=\NumberCommand] Yes numbercommand, that's it! I wanted command=\NumberCommand with \def

Re: [NTG-context] alignment in TABLE (solved)

2012-07-25 Thread Peter Münster
! \vfill \rightaligned{bla} \eTD \eTR \eTABLE} \stoptext -- Peter ___ 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

Re: [NTG-context] alignment in TABLE (solved)

2012-07-25 Thread Hans Hagen
=flushleft] \strut 1 Über\crlf 1 and 1 are aligned! \vfill \rightaligned{bla} \eTD \eTR \eTABLE} \stoptext in that case \begstrut ... \endstrut (you can also play with overlay=0pt or none) - Hans

[NTG-context] indent a block of text

2012-07-15 Thread Peter Münster
, frame=off]{% This text is indented to the right by the amount of the width of \quote{Bla:~}. Can this be done better? \vfill \rightaligned{At the bottom of the outer box.}}} \stoptext --8---cut here---end---8--- Any hints, how to do this in a cleaner

[NTG-context] even odd page condition

2012-06-06 Thread Pavel Dohnal
Hello, is it possible to find if you’re on an odd or an even page in context? I want to do something like this: \def\makemytext#1{ %if page is even \rightaligned{#1} %else \leftaligned{#1} } Thanks for the answer. Pavel Dohnal

Re: [NTG-context] even odd page condition

2012-06-06 Thread Wolfgang Schuster
Am 06.06.2012 um 17:13 schrieb Pavel Dohnal: Hello, is it possible to find if you’re on an odd or an even page in context? I want to do something like this: \def\makemytext#1{ %if page is even \rightaligned{#1} %else \leftaligned{#1} } \defineframed[noframed

Re: [NTG-context] even odd page condition

2012-06-06 Thread Aditya Mahajan
On Wed, 6 Jun 2012, Wolfgang Schuster wrote: \define[1]\AlignOuter {\doifoddpageelse\rightaligned\leftaligned{#1}} you can simplify this to: \define\AlignOuter {\doifoddpageelse\rightaligned\leftaligned} Aditya

Re: [NTG-context] even odd page condition

2012-06-06 Thread Hans Hagen
On 6-6-2012 17:40, Aditya Mahajan wrote: On Wed, 6 Jun 2012, Wolfgang Schuster wrote: \define[1]\AlignOuter {\doifoddpageelse\rightaligned\leftaligned{#1}} you can simplify this to: \define\AlignOuter {\doifoddpageelse\rightaligned\leftaligned} there's also the pair: \signalrightpage

Re: [NTG-context] alignment in a footer

2012-05-31 Thread Jan Pohanka
Thank you for answer, I have discovered, that \tbox does the job for me. \startoverlay {\leftaligned{nazev}} {\midaligned{\pagenumber /\totalnumberofpages}} {\rightaligned{\tbox{\externalfigure[jc_logo_small][width=4cm]}}} \stopoverlay regards Jan Dne Wed, 30 May 2012

Re: [NTG-context] alignment in a footer

2012-05-30 Thread Willi Egger
{\leftaligned{title}} {\midaligned{1/1}} {\rightaligned{\externalfigure[jc_logo_small][width=4cm]}} \stopoverlay Unfortunately I have two problems with code above. I need to have the text and figure in overlay top aligned and also the text in the frame should have

Re: [NTG-context] Strange errors on using setupheader

2012-03-31 Thread Malte Stien
to a minimal example: % Select A4 as the paper size \setuppapersize[A4] % A macro for the title page \def\titlepage[#1][#2][#3][#4]{ \startstandardmakeup \blank[50mm] \rightaligned{\ss\tfd\bf\nohyphens{#1}} \blank[2mm]\textrule[bottom] \rightaligned{\ss{\tfc{\color[darkgray] {#2 \blank[170mm] \ss

Re: [NTG-context] Strange errors on using setupheader

2012-03-31 Thread Wolfgang Schuster
page is \setvariables: \startsetups titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{company}} \textrule \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}} \blank[170mm] \starttabulate[|plf{\tfa}|prf{\tfa

[NTG-context] right and left alignment in header w/ linebreak sign

2011-07-17 Thread Peter Schorsch
Hi, I am trying to have the header text aligned at the outer border of margin. At the moment I have \setupheadertexts[margin][][\rightaligned{\CurrentChapter}][\leftaligned{\CurrentChapter}][] and in the text \chapter{A very, very long long heading} and it works like I

Re: [NTG-context] writing the name of the section on all the pages

2011-06-15 Thread Julian Becker
replace \setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}] \setupbackgrounds [text] [rightmargin] [background=side] with \setuptexttexts [margin] [][\rightaligned{\rotate[rotation=90]{\getmarking[section]}}] [\leftaligned{\rotate[rotation=90

Re: [NTG-context] Automatic landscape figure rotation

2011-06-14 Thread Wolfgang Schuster
{\leftaligned {\rotate[rotation=90] {...}}} {\rightaligned{\rotate[rotation=270]{...}}} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] Automatic landscape figure rotation

2011-06-14 Thread Hans Hagen
for all these things: \doifoddpageelse {\leftaligned {\rotate[rotation=90] {...}}} {\rightaligned{\rotate[rotation=270]{...}}} since a few days the beta also has rotation=left|right|inner|outer per request by taco (although no final word yet on if i need to swap 'm) Hans

Re: [NTG-context] writing the name of the section on all the pages

2011-05-20 Thread Wolfgang Schuster
] with \setuptexttexts [margin] [][\rightaligned{\rotate[rotation=90]{\getmarking[section]}}] [\leftaligned{\rotate[rotation=90]{\getmarking[section]}}][] Wolfgang ___ If your question is of interest to others as well

Re: [NTG-context] How to get rounded corners and a thicker line with \startframedtext

2011-03-18 Thread Cecil Westerhof
the box \defineframedtext[][rulethickness=2bp] Perfect. That looks much more slick. I know have defined: \define[2]\Citation{ \blank \startframedtext[middle][align=middle,corner=round,rulethickness=2bp] {\bf #2} \blank[small] \rightaligned{\it #1} \stopframedtext \blank

Re: [NTG-context] How to get rounded corners and a thicker line with \startframedtext

2011-03-18 Thread Cecil Westerhof
, rulethickness=2bp ] {\bf #2} \blank[small] \rightaligned{\it #1} \stopframedtext \blank } This results in an even more pleasing effect. (In my opinion.) -- Cecil Westerhof ___ If your question

Re: [NTG-context] How to get rounded corners and a thicker line with \startframedtext

2011-03-18 Thread luigi scarso
=middle,     background=color,     backgroundcolor=lightgray,     corner=round,     rulethickness=2bp     ]     {\bf #2}     \blank[small]     \rightaligned{\it #1}   \stopframedtext   \blank } This results in an even more pleasing effect. (In my opinion.) You can also use metafun, which

Re: [NTG-context] Putting citations in an e-book

2011-03-14 Thread Cecil Westerhof
2011/3/8 Wolfgang Schuster schuster.wolfg...@googlemail.com 2011/3/8 Wolfgang Schuster schuster.wolfg...@googlemail.com \define[2]\epigraph {\blank \startframedtext[middle][frame=off,offset=none,width=fit,align=middle]% \color[darkgreen]{#2}\endgraf \rightaligned{\it #1

Re: [NTG-context] Putting citations in an e-book

2011-03-08 Thread Wolfgang Schuster
{\blank \startframedtext[middle][frame=off,offset=none,width=fit,align=middle]% \color[darkgreen]{#2}\endgraf \rightaligned{\it #1}% \stopframedtext \blank} Wolfgang ___ If your question is of interest

Re: [NTG-context] Putting citations in an e-book

2011-03-08 Thread Cecil Westerhof
}% \stopalignment \stopframedtext \blank } I think it does not look bad. But I have to let it grow on me. \define[2]\epigraph {\blank \startframedtext[middle][frame=off,offset=none,width=fit,align=middle]% \color[darkgreen]{#2}\endgraf \rightaligned{\it #1

Re: [NTG-context] Putting citations in an e-book

2011-03-08 Thread Cecil Westerhof
2011/3/8 Wolfgang Schuster schuster.wolfg...@googlemail.com \define[2]\epigraph {\blank \startframedtext[middle][frame=off,offset=none,width=fit,align=middle]% \color[darkgreen]{#2}\endgraf \rightaligned{\it #1}% \stopframedtext \blank} I want to do something like

Re: [NTG-context] Putting citations in an e-book

2011-03-08 Thread Wolfgang Schuster
Am 08.03.2011 um 19:57 schrieb Cecil Westerhof: 2011/3/8 Wolfgang Schuster schuster.wolfg...@googlemail.com \define[2]\epigraph {\blank \startframedtext[middle][frame=off,offset=none,width=fit,align=middle]% \color[darkgreen]{#2}\endgraf \rightaligned{\it #1

Re: [NTG-context] Putting citations in an e-book

2011-03-08 Thread Cecil Westerhof
2011/3/8 Wolfgang Schuster schuster.wolfg...@googlemail.com \define[2]\epigraph {\blank \startframedtext[middle][frame=off,offset=none,width=fit,align=middle]% \color[darkgreen]{#2}\endgraf \rightaligned{\it #1}% \stopframedtext \blank} I want to do something like

[NTG-context] header text for each page of a chapter

2011-03-05 Thread Milton Galo Patricio Inostroza Aguilera
: \startnarrower[3*right] \crlf {\tfd \rightaligned{ CHAPTER_NAME }} \stopnarrower Why I'm doing that?... because I have a lot of framed and I want when they are send to the next page the document shows the name of the chapter that they belong (or the name of the current chapter). am I right with my approach

Re: [NTG-context] Left and centered text on the same line

2011-03-05 Thread Wolfgang Schuster
Am 05.03.2011 um 23:01 schrieb C.: Good evening, How can I place left aligned and centered text on one line? So that the centered text is in the same place as with \startaligned[middle] \starttext \startoverlay {\leftaligned{left}} {\midaligned{middle}} % {\rightaligned{right

Re: [NTG-context] How to place a (right) brace in a TABLE?

2010-05-20 Thread Wolfgang Schuster
(context minimal). You can play with this: \def\linkeklammer {\setbox\scratchbox\hbox{$\left\{\vrule height .5\vsize depth .5\vsize width 0pt\relax\right.$}% \rightaligned{\hbox to .5\wd\scratchbox{\raise\dp\scratchbox\box\scratchbox\hss}}} \def\rechteklammer {\setbox\scratchbox\hbox

Re: [NTG-context] How to place a (right) brace in a TABLE?

2010-05-20 Thread Vladimir Lomov
big brace. And, yes I use mkiv and latest beta (context minimal). You can play with this: \def\linkeklammer {\setbox\scratchbox\hbox{$\left\{\vrule height .5\vsize depth .5\vsize width 0pt\relax\right.$}% \rightaligned{\hbox to .5\wd\scratchbox{\raise\dp\scratchbox\box\scratchbox\hss

[NTG-context] problem with def

2010-05-12 Thread John Culleton
In plain pdftex I can define a string thus: \def\booktitle{My Book Title} and then reuse it later as \rightline{\bf\booktitle} But in Context when I use \rightaligned{\bf\booktitle} it errors on the tag \booktitle I tried \the\booktitle but that didn't work either. -- John Culleton Wexford

Re: [NTG-context] problem with def

2010-05-12 Thread Taco Hoekwater
John Culleton wrote: In plain pdftex I can define a string thus: \def\booktitle{My Book Title} and then reuse it later as \rightline{\bf\booktitle} But in Context when I use \rightaligned{\bf\booktitle} it errors on the tag \booktitle This definitely should work, so you should post

Re: [NTG-context] problem with def

2010-05-12 Thread luigi scarso
On Wed, May 12, 2010 at 4:46 PM, John Culleton j...@wexfordpress.com wrote: In plain pdftex I can define a string thus: \def\booktitle{My Book Title} and then reuse it later as \rightline{\bf\booktitle}  But in Context when I use \rightaligned{\bf\booktitle} it errors on the tag

Re: [NTG-context] problem with def

2010-05-12 Thread Otared Kavian
On 12 mai 2010, at 16:52, luigi scarso wrote: no problem here with last current \def\booktitle{My Book Title} \showframe \starttext then reuse it later as \rightline{\bf\booktitle} But in Context when I use \rightaligned{\bf\booktitle} \stoptext Hi Luigi, Are you sure? If I

Re: [NTG-context] problem with def

2010-05-12 Thread Wolfgang Schuster
Am 12.05.10 16:46, schrieb John Culleton: In plain pdftex I can define a string thus: \def\booktitle{My Book Title} and then reuse it later as \rightline{\bf\booktitle} But in Context when I use \rightaligned{\bf\booktitle} it errors on the tag \booktitle I tried \the\booktitle

Re: [NTG-context] problem with def

2010-05-12 Thread luigi scarso
\rightaligned{\bf\booktitle} \stoptext Hi Luigi, Are you sure? If I compile exactly the lines above, I don't get the intended righ aligned title: it seems that one needs a blank line before \rightalign, that is: \def\booktitle{My Book Title} \showframe \starttext then reuse it later

Re: [NTG-context] problem with def

2010-05-12 Thread John Culleton
On Wednesday 12 May 2010 10:52:03 Taco Hoekwater wrote: John Culleton wrote: In plain pdftex I can define a string thus: \def\booktitle{My Book Title} and then reuse it later as \rightline{\bf\booktitle} But in Context when I use \rightaligned{\bf\booktitle} it errors

Re: [NTG-context] three problems

2010-03-24 Thread Wolfgang Schuster
=middle] \setupheadertexts [margin] [\leftaligned{very long leftmargin text}] [\rightaligned{very long rightmargin text}] \setupheadertexts[text in the middle] \showframe \starttext \input knuth \stoptext or \setuplayout [backspace=6cm, width=middle] \setupheader [margin

[NTG-context] sometimes \rightaligned

2010-03-11 Thread Wolfgang Werners-Lucchini
a macro which does nothing if there is enough space on the right to set the whole argument and puts the argument in a new line, rightaligned otherwise. Can someone remember who has asked this before, or a fresh solution alternativly. thank you Wolfgang

Re: [NTG-context] sometimes \rightaligned

2010-03-11 Thread Wolfgang Schuster
(Genesis 3, 21)} \stopnarrower \stoptext I want \RT a macro which does nothing if there is enough space on the right to set the whole argument and puts the argument in a new line, rightaligned otherwise. Can someone remember who has asked this before, or a fresh solution alternativly. \wordright

  1   2   >