[NTG-context] Itemize and natural tables

2018-09-23 Thread Jan Willem Flamma
he MWE below. MWE: \startsetups [table] \setupTABLE [start] [frame=off,rulethickness=0pt,offset=0pt] \setupTABLE [column] [1] [width=4cm,align=flushleft] \setupTABLE [row][1] [toffset=5pt] \setupTABLE [column] [2] [width=4cm,align=flushleft] \stopsetups \enablemode[test]

Re: [NTG-context] Language dependency in environment-project file

2018-11-29 Thread Wolfgang Schuster
e] [i] \stoptokenlist \starttokenlist [swedish]   \setupitemgroup [itemize] [a] \stoptokenlist \startsetups [document:start] \doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}   \startmodeset     [*en] {\gettokenlist[english]}     [*sv] {\gettokenlist[swedish]}   \stopmo

[NTG-context] Changes \setuphead

2019-01-21 Thread Ursula Hermann
show the effect on this wiki \setuppapersize[A8][A5,landscape] \setuppaper[nx=4, ny=2] \setuplayout[page][location=middle, marking=on] \setuparranging [XY] \setupbodyfont[6pt] % actual example starts here \setuppagenumbering [alternative=doublesided] \startsetups [chapter:before

Re: [NTG-context] [***SPAM***] heading in margin -> strange extra vertical spaces

2013-05-04 Thread Marco Patzer
ve=myheader, section=section-8] \defineheadalternative [myheader] [alternative=horizontal, renderingsetup=setup:myheader] \startsetups [setup:myheader] \inouter{\headtextcontent} \stopsetups \starttext \inouter{Hasselt makes headlines} \input tufte \myheader{Hasselt makes he

Re: [NTG-context] keeping headings with following texts

2013-07-13 Thread Pablo Rodríguez
ont[TeX Gyre Pagella] \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty=1 \stopsetups \setupinterlinespace[line=3.2ex] \setupnote[footnote][split=verystrict]

Re: [NTG-context] About Hyphenation

2013-07-25 Thread Hans Hagen
On 7/25/2013 3:24 AM, Andres Conrado Montoya wrote: So, it seems that this configuration worked (more or less), to avoid: Widows, Orphans, 3 or more consecutive hyphens, and final hyphens. \startsetups[grid][correcto] \setups[*reset] \setpenalties\widowpenalties{1}{1

Re: [NTG-context] section numbers in margin eventually get placed too far left

2013-09-18 Thread Hans Hagen
ayout[rightmargindistance=1cm] \setuphead[section][alternative=inmargin] \showframe \starttext \dorecurse{16}{\section{Blah} \input tufte} \stoptext \startsetups[\??headrenderings:\v!inmargin] \vbox { \headsetupspacing \begstrut \dontleavehmode \ifcondit

Re: [NTG-context] Divider in grid environment

2014-02-13 Thread Jan Tosovsky
t position of this command. > > I'd like to express rather: If there is no space for three lines, > break the page, but grab few previous lines (at least 2) together > with me (according to orphan/widow settings). > > The current behaviour can be demonstrated using

Re: [NTG-context] Orphans/Widows in the Index

2014-06-23 Thread Jan Tosovsky
! alone !) > > V > Vamberk 18 > ... > ... > > > There are also few cases of orphans, but this is not so strange: > ... > ... > Josef 29 > > K > Karel 69 (! alone !) > (end page) - >

Re: [NTG-context] chapter setup / table of contents

2008-04-16 Thread Wolfgang Schuster
On Wed, Apr 16, 2008 at 12:32 AM, Henning Hraban Ramm <[EMAIL PROTECTED]> wrote: > I have now: > > \unprotect > > \resetvalue{\??sw\v!chapter} > > \startsetups chapter:list > > \doifsomething{\sectionworldparameter\c!author} >

Re: [NTG-context] who eats my spaces (was: chapter setup / table of contents)

2008-09-25 Thread Wolfgang Schuster
Am 27.04.2008 um 23:45 schrieb Henning Hraban Ramm: > Coming back to my old thread. > > Here's my latest chapter setup: > > --- >8 --- > > \unprotect > > \resetvalue{\??sw\v!chapter} > > \startsetups chapter:list > > \def\\{{\ \

Re: [NTG-context] Letter module béta

2008-10-13 Thread Wolfgang Schuster
le) and save it in your TeX directory where ConTeXt could find the file. > Some small things : > — changing the interligne space dont change it in the « fromaddress » \setupletterstyle[head][top={\setupinterlinespace[line=...]}] or \startsetups head:interlinespace \setupinterlinespace[

Re: [NTG-context] listalternative “d” and \[ start|stop]narrower

2010-12-16 Thread Philipp Gesang
ht,placehead=yes] > > \setuplist [chapter] [alternative=d,before=\blank,after=\blank] > > \setuplist [part][before=\blank,after=\blank] > > > > \starttext > > \startsetups chapter > >\blank \startnarrower[3*middle] \placecontent[criterium=local] > > \stopnar

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thank you, Wolfgang, this works better. Actually I need to use '%' in the condition and that fails: --- ... \startrawsetups layer % The value of 'n' is used here to set the appropriate background, % = n-th page of a PDF, and also to draw a filled rectangle on % the left or right side (depe

Re: [NTG-context] conditional evaluation and section names

2011-02-15 Thread Wolfgang Schuster
Am 15.02.2011 um 09:11 schrieb Daniel Lyons: > Hi again, > > I have this in my environment > > \startsetups[sectioninfo] > \ss > \rlap{\userpagenumber} > \hfill > § \getmarking[sectionnumber][current] > \emspace > \bf \getmarking[section][current] &

Re: [NTG-context] margin comment above heading

2020-06-18 Thread Pablo Rodriguez
On 6/17/20 10:47 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 16.06.2020 um 22:17: >> Dear list, >> >> I have the following sample: >> >>\startsetups[tinytiny] >> \setupwhitespace[-2em] >> \setupbodyfont[0.01pt] >>

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Taco Hoekwater
=userdata:margintext] \startsetups [userdata:margintext] \margindata [inright] [style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}, stack=yes] {\startframedtext[before=,after=,offset=0pt,width=max,frame=off] \getinlineuserdata

Re: [NTG-context] More table questions

2020-09-22 Thread Aditya Mahajan
of table mechanism. The wiki has an example when using the (now deprecated) TaBlE macros https://wiki.contextgarden.net/Table#Booktabs The same effect is rather easy to achieve when using natural tables as well. \startsetups booktabs \setupTABLE[each][each][frame=off] \setupTABLE[row][first]

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
> Btw, do you know whether there is any difference between \lastpagenumber > > and \lastuserpagenumber mentioned both by Wolfgang and by the excursion > > book <http://www.pragma-ade.com/general/manuals/ma-cb-en.pdf>? > > \defineconversionset [bodypart:pagenumber] [] [Rom

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] Arabic place names

2021-04-10 Thread jbf
look at DejaVu Sans. \definefont[ArabicFont][file:Amiri-Regular.ttf*arabic at 11pt] \startsetups arabic \setupalign[r2l] \ArabicFont \stopsetups Julian On 10/4/21 10:39 pm, Arthur Rosendahl wrote: On Sat, Apr 10, 2021 at 09:05:37AM +1000, jbf wrote

Re: [NTG-context] header in the middle on doublesided layout

2010-03-22 Thread Mojca Miklavec
se setups on the outer level (not on the inner), but that hardly makes a difference (\setups{Header:Left} and \myleftheader are almost equal). \startsetups[header with logo] \doifmodeelse {twosided} {\setupheadertexts [\hbox{\kern-5mm\myheaderright}][] [][\hbox{\myheaderleft\kern

[NTG-context] float at fixed position

2010-04-22 Thread Peter Rolf
area[one][left][x=1,y=1,nx=6,ny=6,state=start] \setupcolumnsetareatext[one][left][\setup{test}] \startsetups test \placefigure[here][test]{test}{\externalfigure[cow]} \stopsetups \starttext \startcolumnset[example] \dorecurse{25}{\fakewords{50}{100}} \stopcolumnset \

Re: [NTG-context] setups in typescripts

2010-05-30 Thread Willi Egger
On 30 May 2010, at 10:18, Bernhard Rosensteiner wrote: > Hello, > > i have made a typescript which works. the only thing is that i have in my > typescript something like: > > \startsetups [fallbackfonts] > … > \stopsetups > > \starttypescript

Re: [NTG-context] Float objects problem (was TABLE in Header ?)

2010-07-19 Thread Hans Hagen
s the code : %%== \startsetups[myheader] \bTABLE[setups=mytable-header] \bTR \bTD[nr=2] \placefigure[here,force]{none}{\externalfigure[logo][width=22mm]} don't use placefloat in a table, just

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Hans Hagen
more semantically correct approach. Any help appreciated. this sort of works \startbuffer some source code some source code some source code \stopbuffer \setuplinenumbering[style=\ttx,distance=0em,width=1em] \startsetups algorithm \startlinenumbering \setuptyping[file][before=,after=] \f

Re: [NTG-context] Subject marking in MkIV

2010-11-10 Thread Hans Hagen
On 10-11-2010 6:50, Aditya Mahajan wrote: Hi I was trying to answer a question on tex.stackexchange (http://tex.stackexchange.com/questions/5166/) when I noticed that marking does not work the same way in MkIV as it did in MkII. Consider the following minimal example: \startsetups footer

[NTG-context] Interfering frames in natural tables

2012-05-22 Thread Marco
Hi, the frames are interfering in the following example. How to avoid the 2pt-2-column bottom rule also be drawn at the top? \startsetups table \setupTABLE [frame=off] \setupTABLE [row] [first] [topframe=on] \setupTABLE [1] [first] [bottomframe=on, rulethickness=2pt] \stopsetups

Re: [NTG-context] labels and new structure code

2009-06-07 Thread Thomas A. Schmitz
counter works in my xml files as well; I had a second after= assignment which confused ConteXt. It's almost perfect, but there's a spurious space creeping in somewhere. Reusing my old example: \startsetups section:after \ifodd\namedheadnumber{section}\relax \resetS

Re: [NTG-context] Jumping headers

2009-10-29 Thread Andreas Harder
\setupinterlinespace [line=2.8ex]}] \setupheader[style=\tfxx] % strut=yes \setupheadertexts[chapter][section] % try this % \setupheadertexts[\setups{head}] % or this \startsetups[head] \framed [width=broad,strut=yes,height=\lineheight,framecolor=red] {\getmarking[chapter]\hfill\getmarking[section

Re: [NTG-context] About \defineshortcut

2005-12-20 Thread Radhelorn
doable with: \starttext \startsetups whatever \defineshortcut [b] [style=bold] \defineshortcut [e] [style=slanted] \stopsetups \definestartstop[whatever][commands=\setups{whatever}] \input tufte oeps or \startwhatever oeps or \stopwhatever oeps or \input tufte \stoptext Many

Re: [NTG-context] TOC: page headers

2007-11-17 Thread Wolfgang Schuster
e this should be a nice example I could use myself > > in the future (it's to easy to forgot many of the necessary settings). > > So the strategy is to use \startsetups. This worked beautifully! Thank > you VERY much! :-) The important thing is to change the header after th

Re: [NTG-context] Re: Strange offset

2003-11-25 Thread Hans Hagen
oop {\startbaselinecorrection If you run your code with: \startsetups[verydirtytrick] \doglobal\increment\DirtyTrickCounter \ifodd\realpageno\relax \ifodd\DirtyTrickCounter \hbox to \overlaywidth{1{\hskip0mm}\foregroundbox1} \else \hbox to \overlaywidth{2{\hskip-1.

Re: [NTG-context] How to implement a changing navigation bar?

2004-08-19 Thread Hans Hagen
accomplished with them? you can put a layer in the background of the header area and that do something: \startsetups whatever \setlayer[thatlayer][positioning...]{\the\pageno} \stopsetups \setupheadertexts[\setups{whatever}] PS: Here is my current implementation: \definelayer[navbar

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
inition > ``` > > Do I have to apply expansion control somewhere else or in some other way? > > Joey > > On Wed, Oct 6, 2021 at 2:35 PM Joey McCollum > wrote: > >> All right, I think I see what I did wrong; I just needed to enclose the >> whole \abbr

[NTG-context] \setupheadertexts not working when text contains \subject

2022-01-13 Thread Bruce Horrocks via ntg-context
When the \subject line is included then the author name disappears - there's just a blank space in the header. MWE: \setuppagenumbering [ alternative=doublesided, location={footer}, ] \definefont [stylePageHeader] [Serif at 10pt] \startsetups ChapterSetup \setupheadertexts

Re: [NTG-context] number of chapters

2022-07-20 Thread Henning Hraban Ramm via ntg-context
\someheadnumber[chapter][current] \someheadnumber[chapter][last] What’s the difference? And even if I use \definecolor within a setup, I get the same color for every chapter – how and where must I delay expansion? \usemodule[visual] \startsetups[MyChapterSetup] \definecolor[MyChapterColor][h={360

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
=\vbox,align=middle,stack=yes] \defineuserdata [margintext] [alternative=margintext] \defineuserdataalternative [margintext] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext] \margindata [inright] [ style={\switchtobodyfont[10pt]}, width=\rightmarginwidth

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
de [JA]         \setscript [nihongo]         \mainlanguage [ja]     \stopmode but for documents which use multiple script/languages at the same time replace the previous setup with     \startsetups [japanese]         \setscript [nihongo]     \stopsetups     \setuplanguage [ja] [setups=japanese] a

[NTG-context] Penalties and overprinting in tabulate

2023-08-18 Thread denis.maier
Dear list, typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting? Best, Denis \startsetups[mypenalties] \setdefaultpena

[NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-03 Thread jbf
,section}] \startsetups [SecToc] \startframedtext [width=\textwidth, align=middle, frame=off] \placelist [section] [ criterium=chapter, ] \stopframedtext \stopsetups While that produces a result, it is nothing like what I want above. Has anyone put together a TOC of this kind and might be

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
tructureuservariable{intro}) > > } > > Stop there! > > Use \definehead to create your own variation of a heading - much more robust. > Something like the following (untested): > > \startsetups PlaceSubTitleAndIntro > % Set font and and style etc for the subtitle

[NTG-context] Re: Prefix the text in an enumeration.

2024-06-13 Thread Wolfgang Schuster
ptext ``` I tried to misuse `inbetween` for that but `alternative=top` seems to make a (not modifiable space) between the heading and the text body. Use the \setupparagraphintro command to set the text which should appear at the start of the question. begin example \startsetups[question:

[NTG-context] Re: roman numerals frontpart

2024-06-25 Thread jbf
I have found the problem, but am still seeking a little help: I had created a setup to raise the page number in the footer. Calling this setup resulted in the frontpart pages reverting to arabic instead of roman: \startsetups pnfooter \setuppagenumbering[alternative=doublesided,location

[NTG-context] Re: Nāgarī for Academics

2024-08-08 Thread Wolfgang Schuster
] \definetransliteration   [MyDeva]   [lang=sa,    vector={iast to deva}] \startsetups [sanskrit]   \settransliteration[MyDeva]   \switchtobodyfont[nagari] \stopsetups \setuplanguage [sa] [setups=sanskrit] \starttext \subject{Some notes on Printing Sanskrit with lmtx} \language[sa]{योग} -- That is the

[NTG-context] Re: Probably a very simple question, but how do I get a page number to be centered, at the bottom and vertically in the middle whilst having my doc margins?

2024-08-19 Thread Felix
section numbers, use this \startsetups document:start \centerline{\documentvariable{title}} \centerline{\documentvariable{author}} \centerline{\documentvariable{date}} \blank[line] \stopsetups \startdocument[title=Title,author=Author,date=Date] \stopdocument ``` I hope

Re: [NTG-context] Indentation within footnotes

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
explain why *both* commands are needed? Toggling these two commands doesn't work. \setupindenting[big,yes] \startsetups[footnote:indenting] \setupindenting[big,yes] \stopsetups \setupheads[indentnext=no] \setupnote[footnote][setups=footnote:indenting] \setupnotation[footnote][indentin

Re: [NTG-context] Letterhead Usage

2015-05-01 Thread Wolfgang Schuster
ing > the layers functionality of context? You can put the layer settings in a setups environment and flush the content when the page backgrounds are applied with the setups key for \setupbackground. \definelayer[letterhead][width=\paperwidth,height=\paperheight] \startsetups[letterhead]

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Hans Hagen
dth,height=\overlayheight] \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber \setlayerframed [pagenumber] [preset=rightbottom] {p} \stopsetups \bTABLE \setupTABLE[each][each][background=pagenumber] \bTR \bTD multiline \par text

Re: [NTG-context] beta / current

2016-03-30 Thread Hans Hagen
have a minimal sample that shows the issue: \showframe\showgrid \setuppapersize[A5] \setuplayout[setups=*lessstrict, topspace=4.5cm, height=middle] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty

Re: [NTG-context] orphan headline

2016-05-27 Thread Andrea Valle
) > Your lack of a working minimal example makes it hard to give a solution Sorry, I know, but I didn’t know to reproduce the situation. > but adding changing the way how the frame is added should improve things. > > \startsetups[section:andrea] > \ifconditional

Re: [NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Wolfgang Schuster
et=0pt, location=low, width=\struttotal, background=color, backgroundcolor=darkred, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\FRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \startsetups[table:initialize] \setupTABLE[start]

Re: [NTG-context] Problems with letter module

2018-07-20 Thread Henri Menke
anguage[de] \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.

[NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Stanislav Sokolenko
ext = context.btxflush('author')     -- tex.sprint(text) -- text remains nill     \stopluacode \stoptexdefinition \startsetups btx:default:list:article     \texdefinition{btx:customauthor}     \texdefinition{btx:default:title}     \texdefinition{btx:default:journal}     \texdefinition{btx

Re: [NTG-context] A ConTeXt Guide in Italian

2018-11-21 Thread Wolfgang Schuster
rdata [example] [alternative=example] \defineuserdataalternative [example] [renderingsetup=userdata:example] \startsetups [userdata:example]   \startembeddedxtable [width=\textwidth,strut=no,offset=1ex,framecolor=red]     \startxrow [corner=03]   \startxcell     \typebuffer [userdata] [optio

Re: [NTG-context] Troubles with the \cldcontext command

2019-04-02 Thread Willi Egger
pulate the page number. However I > get an error: > > > MWE: > > \setuppapersize [A6] [A6] > > \setuppagenumbering[location=none] > > \startsetups [Pagenumber] > \doifrightpageelse >{\cldcontext{"\letterpercent d",(\pagenumber+1)/2}} >

Re: [NTG-context] Creating one's own style

2019-05-18 Thread Alan Braslau
language= {english}, hyphenation = {english}, % ignored pagetotal = {206}, % ignored pages = {206}, } \stopbuffer \usebtxdataset[bib.buffer] \usebtxdefinitions[apa] \setupbtx[apa:cite:authoryear][left={[},right={]}] \startsetups btx:apa:list:book \btxdoif {author} {

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
\definesectionalternative[mysection][renderingsetup=mysection] \startsetups[mysection] \vbox\bgroup \headsetupspacing \strut\headnumbercontent\par \begstrut\headtextcontent\endstrut \egroup \stopsetups \setuplabeltext[en][section={}{Section] \setuphead[section][alternative

Re: [NTG-context] unwanted extra interline space in typing environment

2013-08-08 Thread Hans Hagen
typing environment? [...] you shouldn't rely on \\ as it also starts a new line with content \dorecurse{38}{line\par} Hans, I have adapted the sample to: \starttext \dorecurse{41}{line\par} \starttyping \setuplayout[setups=*lessstrict] \startsetups[*lesss

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

2013-09-21 Thread Xan
Hi, I have this \startsetups table:style \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss] \setupTABLE[column][1][align={right,lohi}] \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
after=\setups{document:after}] \startsetups [document:after] \startTEXpage \externalfigure [cow] \stopTEXpage \stopsetups \startdocument \input knuth \stopdocument Marco OK... But - is there a solution "more close" and "more Lua" to that mine? The example is much s

Re: [NTG-context] bug: \getmarking with mixedcolumns

2013-11-22 Thread Lars Huttar
ast* item on >> the page. Here's the MWE: > > I changed the example a bit > > \setupbodyfont[dejavu] > > \definemarking[country] > > \startsetups myheader > > (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom]) > > \hf

[NTG-context] still buggy TOC generation

2014-11-08 Thread Pablo Rodriguez
Hans, many thanks for the fix in latest beta from 2014.11.08 15:07. I still experience a bug that it wasn’t there before beta from 2014.11.06 14:55. Here you have the sample: \startsetups[placelist:section] \start \setupinterlinespace[line=2.8ex] \placelist[section][alternative=d

Re: [NTG-context] chapter setup / table of contents

2008-04-15 Thread Henning Hraban Ramm
Am 2008-04-15 um 10:03 schrieb Wolfgang Schuster: > Try this. > > \unprotect > > \resetvalue{\??sw\v!chapter} > > \startsetups chapter:list > > \doifsomething{\sectionworldparameter\c!author} > {\expanded{\writetolist[\v!chapter] > {\sect

Re: [NTG-context] Letter backaddress

2008-07-03 Thread Wolfgang Schuster
gt;> closing={Greetings from the Author}] >> >> \input knuth >> >> \stopletter >> >> >> \stoptext >> --- >> >> but couldn't see the backaddress line in the output. What do I have to >> change? > > There is nothi

Re: [NTG-context] colors for pretty-printing (was: Re: pret-c.lua -> v-c.lua)

2010-12-07 Thread Aditya Mahajan
to use a syntax like this: \startsetups[verbatim:C] \definestartstop[SnippetName][color=...,style=...] \definestartstop[string][color=...,style=...] \stopsetups and then pass setups=verbatim:C to an appropriate \setup... command. That will make it easy to share the same syntax highlighti

[NTG-context] listalternative “d” and \[ start|stop]narrower

2010-12-16 Thread Philipp Gesang
art] \setupcolors[state=start] \setuphead [part][page=right,placehead=yes] \setuplist [chapter] [alternative=d,before=\blank,after=\blank] \setuplist [part][before=\blank,after=\blank] \starttext \startsetups chapter \blank \startnarrower[3*middle] \placecontent[criterium=local] \stopnarro

Re: [NTG-context] two problems with natural tables

2011-04-11 Thread Florian Wobbe
LEbody >> \bTR \bTD hello \eTD \eTR >> \bTR \bTD world \eTD \eTR >> \eTABLEbody >> \eTABLE > > You mix too many setups, \bTH overwrites your setting for the row > (\bTR[style=\tfx]) > and also your other setting (\setupTABLE[row][1][style=\bfx]). Here is one t

[NTG-context] setuplayerframed broken?

2011-09-16 Thread Henning Hraban Ramm
Layer,background=MyBg,state=start] \starttext \strut \startsetups ALayer \setlayerframed[MyBg] [width=65mm,height=30mm,frame=off,hoffset=0mm,voffset=0mm,align=right] {foo bar} \stopsetups \page \stoptext --- Versions: This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) \write18 en

[NTG-context] How do I test for empty labeltext?

2011-10-24 Thread Mojca Miklavec
={{#2}}] \startstandardmakeup \setups{content} \setups{decoration} \stopstandardmakeup } \startsetups content This is for \labeltext{name}% \doifemptyelse{\labeltext{company}}{.}{, working for \labeltext{company}.} \stopsetups I have no problem changing the complete code and

Re: [NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Aditya Mahajan
On Wed, 28 Aug 2019, Fabrice Couvreur wrote: Hello, The date display is incorrect : I get day 28 instead of day 2. Thank you Fabrice \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext

Re: [NTG-context] orphans and widows not working in LMTX?

2020-08-09 Thread Joseph Canedo
llowing sample: > > \showframe\showgrid > \setuppapersize[A7] > \setuplayout[setups=*lessstrict] > \startsetups[*lessstrict] > \widowpenalty=1000 > \clubpenalty=1000 > \brokenpenalty=1000 > \stopsetups > \setupbodyfont[

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] three problems

2010-03-24 Thread Wolfgang Schuster
code: \setupheadertexts[\setups{text a}] \startsetups[text a] \rlap{\getmarking[section]}\hfill \hfill --center text here-- \hfill \hfill\llap{\getmarking[subsection]} \stopsetups can place a center header text. Is there a way to do both? \setuplayout [backspace=6cm, width

Re: [NTG-context] float at fixed position

2010-04-24 Thread Peter Rolf
\setupexternalfigures[location={local,global,default}] \setuppagenumbering[alternative=doublesided] \usemodule[visual] \definecolumnset[example][n=3] \definecolumnsetarea[one][left][x=1,y=1,nx=3,ny=16,state=start] \setupcolumnsetareatext[one][lef

Re: [NTG-context] Two \framed texts, one below the other

2010-06-15 Thread Taco Hoekwater
now I have a question: what am I doing wrong? This works : \starttext \definelayer[lyr][width=\overlaywidth,height=\overlayheight] \defineoverlay[ovl][{\directsetup{lyr}\tightlayer[lyr]}] \startsetups lyr \setlayer[lyr][preset=lefttop]{left top} \setlayer[lyr][preset=righttop]{right top

Re: [NTG-context] Dynamic content on layers - wiki example not working

2012-02-21 Thread luigi scarso
ferably on the "Dummies" level, I'd prefer not to > see the bowels of my ConTeXt, if I can avoid it. going on on http://wiki.contextgarden.net/Layers you see \definelayer [pagenumber] [width=\paperwidth, height=\paperheight, preset=middle] \startsetups layer \setlayer[pagenu

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

2012-03-31 Thread Wolfgang Schuster
4} A cleaner way to set the values for the title page is \setvariables: \startsetups titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{company}} \textrule \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}} \blank[1

Re: [NTG-context] Interfering frames in natural tables

2012-05-22 Thread Marco
ss}/2) bottomenlarged (\frameddimension{bottomrulethickness}/2) ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay [tableborders] [\useMPgraphic{tableborders}] \startsetups tableborders \setupTABLE [ background=tableborders, frame=off, backgroundo

[NTG-context] Chapter layout with \structureuservariable and a makeup

2012-06-06 Thread Marco
Hi, I fail to use \structureuservariable to print a value on the page preceding a chapter. Example: \setuphead [chapter] [before=\setups{chap}, command=\myChap] \startsetups chap \startmakeup setups\crlf structureuservariable foo: \structureuservariable{foo} \stopmakeup

[NTG-context] beta

2012-07-09 Thread Hans Hagen
lternative % new [whatever] [alternative=vertical, renderingsetup=whatever] \startsetups[whatever] /\headnumbercontent/\headtextcontent/ \stopsetups \setuphead[section][command=,alternative=whatever] \section{test} \stoptext There are some helpers. T

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Wolfgang Schuster
\defineannotationalternative > [myalternative] > [renderingsetup=annotation:myalternative] > > \startsetups [annotation:myalternative] > Content: \placeannotationcontent > \stopsetups > > \starttext > > %% The annotation content should be placed here. > > \input ward \blank >

Re: [NTG-context] Arranging framed text without gaps

2013-02-28 Thread Matthias Weber
gt; > \defineseparatedlist > [MyTable] > [before=\bTABLE, after=\eTABLE, > first=\bTR, last=\eTR, > left=\bTD, right=\eTD, > setups=my:table] > > \startsetups [my:table] > \setupTABLE [split=yes, width=5cm, height=4cm, style=MyBigFont] > \setupTABLE [each] [align=

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
rounds[page][background=figure] >> >> >> \starttext >> >> \dorecurse{4}{\input knuth} >> >> \startsetups figure >> >> \setlayerframed[figure][x=.3\layerwidth,y=.2\layerheight]{\externalfigure[cow][width=3cm,height=4cm]} >> >> \setlayer

Re: [NTG-context] processing of setvariables/getvariables again

2005-10-21 Thread Thomas A. Schmitz
ript[Greek] \definetypeface [My\initializegreekfont] [rm] [serif] [\initializegreekfont] [default] [encoding=agr] \stoptypescript And once more for switching to this font: \startsetups[enablegreek] \catcode`~=\other \catcode`|=\other \catcode`'=\other \language[greek] \swit

[NTG-context] positioning a watermark

2006-08-29 Thread Paul Jones
   [watermark]    [position=yes]\startsetups watermark \doifoddpageelse    {\framed[frame=off,foregroundcolor=gray]{\scale[sx=10,sy=10]{\rotate[rotation=0.0]{forever    {\framed[frame=off,foregroundcolor=gray]{\scale[sx=10,sy=10]{\rotate[rotation= 0.0]{together\stopset

[NTG-context] overlay page background missing

2006-11-02 Thread Paul Jones
stop working when I put the layer into the overlay? Much thanks, Paul %output=pdf \setuppagenumbering[alternative=doublesided] \setupcolors[state=start] \setupbackgrounds[page][background={WatermarkOverlay}] \startsetups WatermarkSetup \doifoddpageelse {\framed[frame=off,

Re: [NTG-context] overlay page background missing

2006-11-02 Thread Mojca Miklavec
of the pages. Am I doing this in a resonable way? Why did the > setupbackgrounds stop working when I put the layer into the overlay? > > Much thanks, > Paul > > %output=pdf > \setuppagenumbering[alternative=doublesided] > > \setupcolors[state=start] > > \se

Re: [NTG-context] Layout definitions ..

2004-09-23 Thread Hans Hagen
] \startsetups buildpage \setlayer[pp][preset=lefttop]{\tightlayer[lt]} \setlayer[pp][preset=righttop] {\tightlayer[rt]} \setlayer[pp][preset=leftbottom] {\tightlayer[lb]} \setlayer[pp][preset=rightbottom]{\tightlayer[rb]} \startstandardmakeup \tightlayer[pp] \stopstandardmakeup

Re: [NTG-context] Thumb indexes

2005-02-13 Thread h h extern
=start] \setupbackgrounds [page] [background=thumbs] \defineoverlay [thumbs] [\setups{thumbs}] \def\NOfChapters{4} % i need to make this one available \startsetups thumbs \definemeasure[thumbheight][\dimexpr\paperheight/\NOfChapters\relax] \vbox to \paperheight \bgroup \vskip

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-08-22 Thread Joey McCollum via ntg-context
Just continuing to talk my way through the inner workings of the ConTeXt Publication modules. It looks like three "long" citation forms are defined in publ-imp-cite.mkvi: \startsetups btx:cite:listelement \fastsetup{\s!btx:\s!cite:concat} \fastsetup{\s!btx:\s!cite:lefttext

Re: [NTG-context] Preventing double title pages for nested content

2015-05-21 Thread Kate F
g nearly the same example for another time but it still >>> does what you asked for. >>> >>> >>> But it doesn't... >>> >>> You have a page for Volume 3 (which is made blank due to your >>> \ifnum\structurelistsize=0): >>> >>

Re: [NTG-context] Displaying names in Chicago-Turabian "note" style

2021-12-21 Thread Joey McCollum via ntg-context
bid. tracking is eventually implemented, so you might be able to use that as a template. (4) To get the "inverted first author" authorconversion working, I had to create new authorconversions for this. You can find this in the updated publ-imp-author.mkvi file in my GitHub repo: \start

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen
files so that my setup for xml was very simple. Here are my setups for the layout of the novels showing some trackers that were used as well: \definepapersize[pagee][width=5.06in,height=7.81in] \setuppapersize[pagee] % XML setups here \startsetups[grid][mypenalties] \setdefaultpenalties

Re: [NTG-context] Modes in tables

2018-09-07 Thread Jan Willem Flamma
table varies. It is larger when using tabulate. 4. The vertical space between the lines in the table text also varies. It is larger when using TABLE. (I left out the modes in MWE below because I don’t think it is relevant here.) \starttext \setupwhitespace[big] \startsetups [tablesetups

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

2013-09-22 Thread Xan
\chardef\characteralignmentmode=2 \chardef\characteralignmentmode\plustwo %%% http://randomdeterminism.wordpress.com/2012/11/18/separation-of-content-and-presentation-for-tables-part-1/ \startsetups table:style \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={mi

Re: [NTG-context] how to supress headers

2008-03-25 Thread Horacio Suarez
}][][][\setups{textb}] \startsetups[texta] {\tfx\ss Editorial Antropofagia - www.eantropofagia.com.ar - [EMAIL PROTECTED] \hfill {\bf Página \pagenumber}} \stopsetups \startsetups[textb] {\tfx\ss{\bf Página \pagenumber}\hfill Editorial Antropofagia - www.eantropofagia.com.ar - [EMAIL PROTECTED

Re: [NTG-context] Mkiv Colour issue and more

2008-09-10 Thread Hans Hagen
ilebin.ca/xmupe i'll have a look at it ... there is some leader bug in luatex itself that might to be solved first > 2. Is it possible to have the \blank[2*big] generated by the placecontent > command? The default space generated after chapter seems fine, but I'd >

Re: [NTG-context] columnsets error in 2.08 beta

2012-02-15 Thread Peter Park Nelson
gt; % modes used options> % options (not that important) used options> \startsetups *runtime:options used options> \stopsetups used options> % styles and modules used options> \startsetups *runtime:modules used options> \stopsetups used options> % done used

Re: [NTG-context] Bug: Messy results when using "table" in head and multi-page "tables" in text

2008-01-20 Thread Wolfgang Schuster
tables in the text, as again the results ain't pretty, > to say the least. > > Here the ConTeXt to show what happens in that case > (and using your suggestion for the page-head with natural tables) > > \setuppagenumbering[location=] > \setupheadertexts[\setups{pa

<    5   6   7   8   9   10   11   12   13   14   >