[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-07-01 Thread Gerion Entrup
Am Freitag, 28. Juni 2024, 11:59:19 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 28.06.2024 um 11:40: > > > Do you know, why the groupedcommand solution does not work? > > The command and the environment which are created by \definestartstop > can't be interchanged when you use the

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-28 Thread Wolfgang Schuster
Gerion Entrup schrieb am 28.06.2024 um 11:40: Do you know, why the groupedcommand solution does not work? The command and the environment which are created by \definestartstop can't be interchanged when you use the before/after and left/right keys. begin example \usemodule[visual] \de

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-28 Thread Gerion Entrup
t;>> wanted to simplify the code in the same move. > >>>>> I discovered headcommand for that, but struggled to set the text in an > >>>>> highlight _and_ make a colon at the end. > >>>> Not sure what exactly you want, but how about: >

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-27 Thread Wolfgang Schuster
process to convert an itemize part to a description and wanted to simplify the code in the same move. I discovered headcommand for that, but struggled to set the text in an highlight _and_ make a colon at the end. Not sure what exactly you want, but how about: \definehighlight[hl][style={\m

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight (now: \definestartstop)

2024-06-24 Thread Gerion Entrup
t;>> > >>> I was in the process to convert an itemize part to a description and > >>> wanted to simplify the code in the same move. > >>> I discovered headcommand for that, but struggled to set the text in an > >>> highlight _and_ make a colon at th

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Wolfgang Schuster
headcommand for that, but struggled to set the text in an highlight _and_ make a colon at the end. Not sure what exactly you want, but how about: \definehighlight[hl][style={\m{>}\,\switchtobodyfont[tt]}] % This is the wrong way to define such a command as '>' is not part of the style.

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Gerion Entrup
discovered headcommand for that, but struggled to set the text in an > > highlight _and_ make a colon at the end. > > Not sure what exactly you want, but how about: > > \definehighlight[hl][style={\m{>}\,\switchtobodyfont[tt]}] > % This is the wrong way to define such a

[NTG-context] Re: Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Aditya Mahajan
the end. Not sure what exactly you want, but how about: \definehighlight[hl][style={\m{>}\,\switchtobodyfont[tt]}] % This is the wrong way to define such a command as '>' is not part of the style. I have left this definition just for comparison with the soln b

[NTG-context] Use headcommand in \definedescription together with \definehighlight

2024-06-24 Thread Gerion Entrup
: ``` \definehighlight[hl][style={\m{>}\,\switchtobodyfont[tt]}] \definedescription[category][ alternative=top, headstyle=bold, width=broad, ] \definedescription[desc][ width=broad, distance={\widthofstring{~}}, headcommand={\groupedcommand{

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread Wolfgang Schuster
},     ] \definefont[highfont][name:ibmplexsansbold*default at 10pt] \definehighlight[newhigh][color=darkblue,style=highfont] \starttext \input{knuth} \Mynote{refrence} \startitemize \item \newhigh{\input{knuth}\Mynote{refrenceTwo}} \stopitemize \placenotes[Mynote] \stoptext as you can see the note number

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread seyal zavira
10pt] \definehighlight[newhigh][color=darkblue,style=highfont] \starttext \input{knuth} \Mynote{refrence} \startitemize \item \newhigh{\input{knuth}\Mynote{refrenceTwo}} \stopitemize \placenotes[Mynote] \stoptext as you can see the note number has same style all over the document. but i want it

[NTG-context] Re: After using a custom command in the title, the table of contents is not generated properly

2024-06-05 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 05.06.2024 um 16:03: As described, here is example: % \def\cmd#1{{\tt\textslash #1}} \def\cmdii#1{\tt #1} \def\cmdiii#1{\rm #1} You can use \definehighlight to create a custom command for a style. The case where you want a slash before the text you have

[NTG-context] Re: additional font faces

2024-03-08 Thread Hans Hagen
\let\md\normalmd \let\mi\normalmi \let\ms\normalms \definehighlight[medium   ] [command=no,style=medium] \definehighlight[mediumitalic ] [command=no,style=mediumitalic] \definehighlight[mediumslanted] [command=no,style=mediumslanted] Is that necessary? And is it enough? \starttypescript

[NTG-context] additional font faces

2024-03-08 Thread Henning Hraban Ramm
} \let\md\normalmd \let\mi\normalmi \let\ms\normalms \definehighlight[medium ] [command=no,style=medium] \definehighlight[mediumitalic ] [command=no,style=mediumitalic] \definehighlight[mediumslanted] [command=no,style=mediumslanted] Is that necessary? And is it enough? \starttypescript

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
\bodyfontsize, lines=26, footer=\bodyfontsize, footerdistance=\bodyfontsize] \definehighlight [sesamedot] %\showframe %\showgrid %\showboxes %\showmakeup % [glyph,fontkern] \starttext \starttitle [title={ごん狐}] [author={新美南吉},source={https://www.aozora.gr.jp/cards/000121/files/628_14895.html

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context
? \setupbodyfontenvironment         [default]     [em=italicface] %same with italic for this example \definehighlight     [emIt]     [style=italic] \definehighlight     [emIf]     [style=italicface] \definehighlight     [emEm]     [style=\em

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context
with italic for this example \definehighlight     [emIt]     [style=italic] \definehighlight     [emIf]     [style=italicface] \definehighlight     [emEm]     [style=\em] \starttext {\em abc {\em def} ghi}: \type{\em} \emph

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context
hairline the example below, but see that italicface adapts to nesting, while italic does not: Are there other places where this makes a difference? \setupbodyfontenvironment         [default]     [em=italicface] %same with italic for this example \definehighlight

[NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context
to nesting, while italic does not: Are there other places where this makes a difference? \setupbodyfontenvironment         [default]     [em=italicface] %same with italic for this example \definehighlight     [emIt]     [style=italic] \definehighlight

[NTG-context] Additional font variants

2021-08-01 Thread Henning Hraban Ramm via ntg-context
ss] [sans] [modern] [default] \definetypeface [ka] [tt] [mono] [modern] [default] \definetypeface [ka] [mm] [math] [modern] [default] \definetypeface [ka] [hw] [handwriting] [comicsans] [default] \stoptypescript \setupbodyfont[ka,rm,18pt] \setupbodyfontenvironment[default][em=italicface] \de

Re: [NTG-context] Color problem

2021-05-20 Thread Aditya Mahajan
On Thu, 20 May 2021, Rik Kabel wrote: > Consider the following example: > >\define \HighlightColor {red} Why not just use: \definecolor[HighlightColor][red] and then use color=HighlightColor, etc. >\definehighlight[RED][color=\HighlightColor] >\definelabel[

[NTG-context] Color problem

2021-05-20 Thread Rik Kabel
Consider the following example: \define \HighlightColor {red} \definehighlight[RED][color=\HighlightColor] \definelabel[AA][alternative=inright,headcolor=\HighlightColor,text=] \definelabel[BB][alternative=inright,headcolor=red,text=] \noheaderandfooterlines \starttext

Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Sylvain Hubert
Hi Andrés, You could probably put the notes inside a \start...\stopxtablefoot Sylvain On Tue, 10 Nov 2020 at 21:49, Andres Conrado Montoya < andresconr...@gmail.com> wrote: > MWE (sorry for the long table, I hadn't anything else at hand): > > %%%% > \defi

[NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
MWE (sorry for the long table, I hadn't anything else at hand): %%%% \definehighlight[emph][style={\em}] \definehighlight[strong][style={\bf}] \setupfloat[table][default={here}] \definereferenceformat[figura][text={Figura~}] \definereferenceformat[tabla][text={

Re: [NTG-context] The correct way to add emphasis to text using italics

2020-10-21 Thread Aditya Mahajan
ou also see **Before you start...** section on that page: https://wiki.contextgarden.net/Font_Switching#Before_you_start_... > If you go to *Export*, it says: "Also note that switches like \em don’t > translate into output structure, you need to > \definehighlight[emph][style={\em}] an

[NTG-context] The correct way to add emphasis to text using italics

2020-10-21 Thread Andres Conrado Montoya
lanted; for OpenType fonts, recommends using \definefontfeature[default][default][itlc=yes] to also activate the italic correction. However, this seems not to work in x(ht)ml export. If you go to *Export*, it says: "Also note that switches like \em don’t translate into output structure, you need

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Wolfgang Schuster
ich can be used. Example: \setupbuffer [before=\blank\blackrule\startnarrower\BufferStyle, after=\stopnarrower\blackrule\blank] [...] \definehighlight [BufferStyle] [style=smallitalic, color=blue] Use the highlight-environment or create a new startstop-environment to apply style

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Jan U. Hasecke
er > [before=\blank\blackrule\startnarrower\BufferStyle, > after=\stopnarrower\blackrule\blank] > > %% alternatively define custom buffers > \definebuffer > [foobar] > > \setupblackrules > [width=1cm, >height=1pt, >color=gray] > > \defi

Re: [NTG-context] Styling of included buffers or files

2020-05-17 Thread Marco Patzer
er has before and after keys which can be used. Example: \setupbuffer [before=\blank\blackrule\startnarrower\BufferStyle, after=\stopnarrower\blackrule\blank] %% alternatively define custom buffers \definebuffer [foobar] \setupblackrules [width=1cm, height=1pt, color=gray] \definehighli

Re: [NTG-context] Abstracting styles

2019-11-27 Thread Hans Hagen
] [factor=0.12] \definecharacterkerning [LittleMoreB] [factor=0.08] \setuphead [chapter] [distance=2em, style=\tfd, textstyle={\smallcaps\setcharacterkerning[LittleMoreA]}] \definehighlight [emphasis] [style={\setcharacterkerning[LittleMoreA]}] \starttext \startchapter[title=Something

[NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
ter a regular (even) page, everything works as expected (no color-filled page, no header in the start-chapter page). MWE: %% START MWE \definecolor[rojo][h=ED553B] \definehighlight[rojo][color=rojo] \startMPinclusions numeric u ; u := 1.125pt ; numeric i ;

[NTG-context] inline fractions

2019-06-26 Thread Alan Bowen
The following mwe \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] \starttext a fraction \m{\frac{1}{n}}, \textfraction{1/n}, \vulgarfraction{1}{n} in the text \stoptext works for all but \textfraction in the latest beta (luatex, luametatex

[NTG-context] Strange behavior in somewhat complex layout

2019-06-23 Thread Andres Conrado Montoya
-chapter page). MWE: %% START MWE \definecolor[rojo][h=ED553B] \definehighlight[rojo][color=rojo] \startMPinclusions numeric u ; u := 1.125pt ; numeric i ; i := 0.125in ; string prevChapterTitle, currentChapterTitle; prevChapterTitle := "&

Re: [NTG-context] definefont

2019-01-23 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 23.01.19 um 17:32: And how can I \definefont so that \em or \emph works the same as in bodyfont? You can’t. Or, the other way round, how must I \definehighlight[emph][style=italic] so that it works in all sizes? - \setupbodyfont[rm,12pt] \definefont

Re: [NTG-context] definefont (was: definefontfamily use)

2019-01-23 Thread Henning Hraban Ramm
And how can I \definefont so that \em or \emph works the same as in bodyfont? Or, the other way round, how must I \definehighlight[emph][style=italic] so that it works in all sizes? - \setupbodyfont[rm,12pt] \definefont[TitleFont][SansBold*default sa 3] \setuphead[chapter][style

Re: [NTG-context] style=underbar output in export

2018-10-03 Thread Wolfgang Schuster
: \definehighlight [Term][style={{\underbar}}] \definehighlight [Term] [style={\setbar[underbar]}] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

[NTG-context] style=underbar output in export

2018-10-03 Thread Rik Kabel
List, With recent betas, since a fix for tagged elements in tables, underbar processing seems to have changed (or perhaps I just noticed it after that fix). Previously, the following highlight definition worked for both pdf and export outputs: \definehighlight [Term][style={{\underbar

Re: [NTG-context] future versions

2018-07-25 Thread Hans Hagen
using \definehighlight. I replaced \em and \bf by \emph{} and \strong{} in my projects. Didn’t try real bibliographies or xml input yet, but I guess you can change the setup to use those. \definehighlight does not (by default) nest. You can handle this to some degree in css or xslt for XML exports

Re: [NTG-context] future versions

2018-07-25 Thread Alan Braslau
er could then > >> apply the appropriate styling with css or other transformation > >> mechanisms. > > Generally, you get stylistic tagging by using \definehighlight. > > I replaced \em and \bf by \emph{} and \strong{} in my projects. > > > > Didn’t try re

Re: [NTG-context] future versions

2018-07-25 Thread Hans Hagen
, they could be implemented as highlights or tagged elements, both of which are currently carried through, and the user could then apply the appropriate styling with css or other transformation mechanisms. Generally, you get stylistic tagging by using \definehighlight. I replaced \em and \bf by

Re: [NTG-context] future versions

2018-07-25 Thread Rik Kabel
highlights or tagged elements, both of which are currently carried through, and the user could then apply the appropriate styling with css or other transformation mechanisms. Generally, you get stylistic tagging by using \definehighlight. I replaced \em and \bf by \emph{} and \strong{} in my projects

Re: [NTG-context] future versions

2018-07-25 Thread Henning Hraban Ramm
or tagged elements, both of which are currently carried > through, and the user could then apply the appropriate styling with css or > other transformation mechanisms. Generally, you get stylistic tagging by using \definehighlight. I replaced \em and \bf by \emph{} and \strong{} in my projects

Re: [NTG-context] More spurious problems in exports

2018-07-18 Thread Hans Hagen
eaks? MWE: \setupbackend [export=yes] \definehighlight [emIt] [style=italic] \starttext \startparagraph {\emIt Taa} aaa aa a aa aaa aa aa aa. Taa a, a aa a

Re: [NTG-context] More spurious problems in exports

2018-07-18 Thread Hans Hagen
anyone dealt with this before? Is there a way to control the insertion of the breaks? MWE: \setupbackend [export=yes] \definehighlight [emIt] [style=italic] \starttext \startparagraph {\emIt Taa} aaa aa a aa aaa aa

[NTG-context] More spurious problems in exports

2018-07-17 Thread Rik Kabel
a way to control the insertion of the breaks? MWE: \setupbackend [export=yes] \definehighlight [emIt] [style=italic] \starttext \startparagraph {\emIt Taa} aaa aa a aa aaa aa aa aa. Taa a

Re: [NTG-context] Custom tags, revisited

2018-06-26 Thread Hans Hagen
On 6/26/2018 8:26 PM, Rik wrote: In September 2015 thread "Custom XML Export," Hans instructed  us on how to create custom tags. The example he presented is: \setupbackend[export=yes] \definehighlight[this] \starttext \startelement[what] \this{tha

[NTG-context] Custom tags, revisited

2018-06-26 Thread Rik
In September 2015 thread "Custom XML Export," Hans instructed  us on how to create custom tags. The example he presented is: \setupbackend[export=yes] \definehighlight[this] \starttext \startelement[what] \this{that} \input ward \stopelement

Re: [NTG-context] How to scale math with text?

2018-06-06 Thread Aditya Mahajan
On Tue, 5 Jun 2018, Alan Braslau wrote: The "style=" use is, in general, preferable for tagging (and exporting). For less than paragraph switching, the use of \definehighlight for example could be used. Quick and dirty font switching is almost always poor usage... You didn't

Re: [NTG-context] How to scale math with text?

2018-06-05 Thread Alan Braslau
The "style=" use is, in general, preferable for tagging (and exporting). For less than paragraph switching, the use of \definehighlight for example could be used. Quick and dirty font switching is almost always poor usage... Alan On Tue, 5 Jun 2018 12:57:59 -0400 (EDT) Aditya Maha

Re: [NTG-context] problems with XML export

2017-11-12 Thread Alan Braslau
g Hraban Ramm wrote: > > Here are a few problems that I encountered in my current ePub > > projects: > > > > * \color[]{} leaves no trace in export. > > Hi Hraban, > > this works with PDF, it should work with ePub: > > \definehighlight[read][color=red,

Re: [NTG-context] insert tags in export xml

2017-11-12 Thread Wolfgang Schuster
g into lowercase like {\sc iso}. (I also tried OpenType features, but those were too unreliable with my fonts. That’s not the problem here.) But my small caps end as unmarked lowercase in the exported xml. I didn’t manage to combine my above approach with \definehighlight, but after poking around

Re: [NTG-context] problems with XML export

2017-11-12 Thread Pablo Rodriguez
On 11/12/2017 09:33 AM, Henning Hraban Ramm wrote: > Am 2017-11-11 um 19:46 schrieb Pablo Rodriguez: >> \definehighlight[read][color=red, style=\sc] >> [...] >> I guess you have to use this instead of \color[]{}. > > Yes, I guess too. I remembered highlight suits colo

Re: [NTG-context] problems with XML export

2017-11-12 Thread Henning Hraban Ramm
ith PDF, it should work with ePub: > > \definehighlight[read][color=red, style=\sc] > \starttext > \starthighlight[read] rot\stophighlight > \stoptext > > I guess you have to use this instead of \color[]{}. Yes, I guess too. I remembered highlight suits color after sending, but

Re: [NTG-context] problems with XML export

2017-11-11 Thread Pablo Rodriguez
On 11/11/2017 06:30 PM, Henning Hraban Ramm wrote: > Here are a few problems that I encountered in my current ePub projects: > > * \color[]{} leaves no trace in export. Hi Hraban, this works with PDF, it should work with ePub: \definehighlight[read][color=red, style=\sc] \

[NTG-context] insert tags in export xml

2017-11-08 Thread Henning Hraban Ramm
too unreliable with my fonts. That’s not the problem here.) But my small caps end as unmarked lowercase in the exported xml. I didn’t manage to combine my above approach with \definehighlight, but after poking around in the source (core-sys.mkiv, strc-tag.mkiv) I found this solution: \def\SC#1

Re: [NTG-context] context sensitive highlight styles

2017-08-17 Thread Wolfgang Schuster
Henning Hraban Ramm <mailto:te...@fiee.net> 16. August 2017 um 17:47 In my current project, section titles are typeset in SansBold while the body text (and that of the ToC) is roman. How can I define \definehighlight[emph], so that I get SansBoldItalic in titles and SerifItalic i

Re: [NTG-context] context sensitive highlight styles

2017-08-17 Thread Henning Hraban Ramm
Am 2017-08-16 um 18:09 schrieb Pablo Rodriguez : > On 08/16/2017 05:47 PM, Henning Hraban Ramm wrote: >> In my current project, section titles are typeset in SansBold while >> the body text (and that of the ToC) is roman. >> >> How can I define \definehig

Re: [NTG-context] context sensitive highlight styles

2017-08-16 Thread Pablo Rodriguez
On 08/16/2017 05:47 PM, Henning Hraban Ramm wrote: > In my current project, section titles are typeset in SansBold while > the body text (and that of the ToC) is roman. > > How can I define \definehighlight[emph], so that I get > SansBoldItalic in titles and SerifItalic in bo

[NTG-context] context sensitive highlight styles

2017-08-16 Thread Henning Hraban Ramm
In my current project, section titles are typeset in SansBold while the body text (and that of the ToC) is roman. How can I define \definehighlight[emph], so that I get SansBoldItalic in titles and SerifItalic in body text and ToC? (Body text is not a problem.) MNWE: \setuphead[chapter][page

[NTG-context] Fwd: Re: \textfraction broken?

2017-07-13 Thread Hans Hagen
wrote: On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote: Adding \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] fixes the problem in the sample just sent. This, and the font has to have the corresponding feature present. Sorry for t

Re: [NTG-context] \textfraction broken?

2017-07-12 Thread Henri Menke
, 2017 at 8:09 PM, Henri Menke wrote: > > On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote: > > > Adding > > > > > > \definefontfeature[fraction][frac=yes] > > > \definehighlight[textfraction][style={\feature[+][fraction]}] > > > > > >

Re: [NTG-context] \textfraction broken?

2017-07-12 Thread Alan Bowen
, 2017 at 8:09 PM, Henri Menke wrote: > On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote: > > Adding > > > > \definefontfeature[fraction][frac=yes] > > \definehighlight[textfraction][style={\feature[+][fraction]}] > > > > fixes the problem in the sample j

Re: [NTG-context] \textfraction broken?

2017-07-10 Thread Henri Menke
On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote: > Adding > > \definefontfeature[fraction][frac=yes] > \definehighlight[textfraction][style={\feature[+][fraction]}] > > fixes the problem in the sample just sent. This, and the font has to have the cor

Re: [NTG-context] \textfraction broken?

2017-07-10 Thread Alan Bowen
Adding \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] fixes the problem in the sample just sent. Sorry for the misfire. Alan On Mon, Jul 10, 2017 at 1:53 PM, Alan Bowen wrote: > Has there been a change to \textfraction? > >

[NTG-context] \textfraction query

2017-02-18 Thread Alan Bowen
] \definehighlight[textfraction][style={\feature[+][fraction]}] \starttext A. \textfraction{1/2} B. \textfraction{1.5/2} C. \textfraction{{2\textfraction{1/2}}/7} \stoptext Alan ___ If your question is of interest to others as

Re: [NTG-context] Text inline fractions

2016-06-25 Thread Thomas Fehige
slash; something like 1{}^1/_2 to mean one and a half? \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] \starttext \m{1\vfrac{1}{2}} 1\textfraction{1/2} \stoptext Wo

Re: [NTG-context] Text inline fractions

2016-06-22 Thread Wolfgang Schuster
Thomas Fehige <mailto:tho...@fehige.de> 22. Juni 2016 um 14:34 Is there a clean and easy way in mkiv to create text inline fractions with a slash; something like 1{}^1/_2 to mean one and a half? \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fr

Re: [NTG-context] Simple font size changes command

2016-06-12 Thread josephcanedo
> > Many thanks for any hint. Perhaps (untested): \definealternativestyle [BigFont] [{\setbodyfont [12pt]}] \definealternativestyle [SmallFont] [{\setbodyfont [8pt]}] \definehighlight [BigSize] [style=BigFont] \defin

Re: [NTG-context] Simple font size changes command

2016-06-12 Thread Alan BRASLAU
t don’t know who to get \BigSize > and \SmallSize defined (and have Bar1 and Bar2 of same size) : > > > {\BigSize Foo {\SmallSize Bar1}} {\SmallSize Bar2} Baz. > > > Many thanks for any hint. Perhaps (untested): \definealternativestyle [BigFont] [{\setbodyfont [12pt]}]

Re: [NTG-context] meaning of error message?

2015-11-30 Thread Wolfgang Schuster
Alan Bowen <mailto:bowenala...@gmail.com> 29. November 2015 um 14:49 Hi, Wolfgang— at line 34, I have \Query which is defined: \definehighlight[Query][color=magenta,style=bold] There also instances of \emph (\definehighlight[emph][style=italic]) at lines 41 and 58. You have create a m

Re: [NTG-context] meaning of error message?

2015-11-29 Thread Alan Bowen
Hi, Wolfgang— at line 34, I have \Query which is defined: \definehighlight[Query][color=magenta,style=bold] There also instances of \emph (\definehighlight[emph][style=italic]) at lines 41 and 58. Alan On Sat, Nov 28, 2015 at 11:31 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com>

Re: [NTG-context] meaning of error message?

2015-11-28 Thread Wolfgang Schuster
\emph lapsus}, even if it is not clear whether the mistake is a haplography or a dittography.} % μορίουϲ. \stoplines \stopparagraph \stopextract <— LINE 80 ​Many thanks for any thoughts on this or advice. Did you create a command with \definehighlight which is used in this part of the docum

Re: [NTG-context] Improving Pandoc Support for ConTeXt

2015-10-24 Thread Aditya Mahajan
\pandocstrong could be defined as \definehighlight[pandocstrong][style=bold] Simplicarly, h2, h3, can be translated to \startpandocsection etc., allowing the user to change the level of the sections. Have a look at m-markdown in the source for such an implementation. This makes it much easier for a user

Re: [NTG-context] Custom XML Export

2015-09-12 Thread Toby Miller
/2015 4:21 PM, Toby Miller wrote: >>>> I'm using ConTeXt's export to XML feature, but I'd like more control >>>> over the XML output. Is there a way to define a TeX command that will >>>> output a specific tag (content) around some text in t

Re: [NTG-context] Custom XML Export

2015-09-12 Thread Hans Hagen
Xt's export to XML feature, but I'd like more control over the XML output. Is there a way to define a TeX command that will output a specific tag (content) around some text in the output? \setupbackend[export=yes] \definehighlight[this] \starttext \startelement[what] \this{tha

Re: [NTG-context] Custom XML Export

2015-09-12 Thread Toby Miller
that will >> output a specific tag (content) around some text in the >> output? > > \setupbackend[export=yes] > > \definehighlight[this] > > \starttext > \startelement[what] > \this{that} \input ward > \stopelement > \stoptext > >

Re: [NTG-context] Custom XML Export

2015-09-12 Thread Hans Hagen
On 9/11/2015 4:21 PM, Toby Miller wrote: I'm using ConTeXt's export to XML feature, but I'd like more control over the XML output. Is there a way to define a TeX command that will output a specific tag (content) around some text in the output? \setupbackend[export=yes] \defin

Re: [NTG-context] Section heading colors lost with \startbodymatter

2015-07-27 Thread Rik Kabel
\setupmarginrules color remains even in bodymatter mode (the \setupbar color does not). \setupmarginrules[rulethickness=1pt] \setupmarginrules[1][rulecolor=red] \setupbar[overstrike][color=red] \define[1]\RR {\startmarginrule[1]\RRR#1\stopmarginrule} \definehighlight [RRR

Re: [NTG-context] before= and after= for \setuphighlight

2015-05-15 Thread Kate F
On 15 May 2015 at 21:57, Hans Hagen wrote: > On 5/15/2015 9:57 PM, Kate F wrote: >> >> Hi, >> >> I'm looking for something like \definehighlight which I can use to >> markup various things in inline body text. I want different >> environments to be ab

Re: [NTG-context] before= and after= for \setuphighlight

2015-05-15 Thread Hans Hagen
On 5/15/2015 11:00 PM, Aditya Mahajan wrote: On Fri, 15 May 2015, Hans Hagen wrote: On 5/15/2015 9:57 PM, Kate F wrote: Hi, I'm looking for something like \definehighlight which I can use to markup various things in inline body text. I want different environments to be able to have thei

Re: [NTG-context] before= and after= for \setuphighlight

2015-05-15 Thread Aditya Mahajan
On Fri, 15 May 2015, Hans Hagen wrote: On 5/15/2015 9:57 PM, Kate F wrote: Hi, I'm looking for something like \definehighlight which I can use to markup various things in inline body text. I want different environments to be able to have their own setups to configure how these appear, ju

Re: [NTG-context] before= and after= for \setuphighlight

2015-05-15 Thread Hans Hagen
On 5/15/2015 9:57 PM, Kate F wrote: Hi, I'm looking for something like \definehighlight which I can use to markup various things in inline body text. I want different environments to be able to have their own setups to configure how these appear, just as \setuphighlight would provide. Ho

[NTG-context] before= and after= for \setuphighlight

2015-05-15 Thread Kate F
Hi, I'm looking for something like \definehighlight which I can use to markup various things in inline body text. I want different environments to be able to have their own setups to configure how these appear, just as \setuphighlight would provide. However there's one situation whi

Re: [NTG-context] Export bugs

2015-04-24 Thread Aditya Mahajan
On Fri, 24 Apr 2015, Idris Samawi Hamid ادريس سماوي حامد wrote: \definehighlight[emphasis][style=\em] ... Some \emph{emphasis} and \important{important}. The exported formatting of \emph vanishes in each instance. You define \emphasis but use \emph

[NTG-context] Export bugs

2015-04-24 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Here are two export bugs, full test suite attached: ==sh_ahmad-qajar-xml-test-highlight.tex=== \setupexport[cssfile=sh_ahmad-qajar.css] \setupbackend[export=yes] \definehighlight[emphasis][style=\em] \definehighlight[important][style=bold] \starttext

Re: [NTG-context] tagging a startstop

2015-03-28 Thread Wolfgang Schuster
> Am 28.03.2015 um 19:18 schrieb Idris Samawi Hamid ادريس سماوي حامد > : > > Dear syndicate, > > We have \definehighlight[tagged][style=] so that > > \tagged{arg} > > tags the argument. Analogously: Is there a general facility to tag > startstops? I played a

[NTG-context] tagging a startstop

2015-03-28 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear syndicate, We have \definehighlight[tagged][style=] so that \tagged{arg} tags the argument. Analogously: Is there a general facility to tag startstops? I played around with \dostarttagged etc but could not get it to work (too low-level for me I guess). What would be nice is to be able

Re: [NTG-context] Exporting highlights

2015-03-16 Thread Idris Samawi Hamid ادريس سماوي حامد
Ok, I've made some progress: On Sun, 15 Mar 2015 17:01:16 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: export-highlight.tex== \setupbackend [export=yes,css=highlight.css] \setupexport[cssfile=highlight.css] \setupbackend[export=yes] \definehigh

[NTG-context] Exporting highlights

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
ached. Immediate problem is highlights. export-highlight.tex== \setupbackend [export=yes,css=highlight.css] \definehighlight[emphasis] [style=italic] \definehighlight[important][style=bold] \definehighlight[regular][style=\tf] \starttext \startchapter[title=Highl

Re: [NTG-context] need defaults for \definehighlight

2015-02-09 Thread Wolfgang Schuster
> Am 09.02.2015 um 14:34 schrieb Keith Schultz : > > Hi Hans, Idris, All, > > fonts and color are as such appearance. > But, when one uses different fonts and colors or mix > then then we add meaning or as you tend to call > it structure. > > If their use does not add to the structure, then on

Re: [NTG-context] need defaults for \definehighlight

2015-02-09 Thread Keith Schultz
Hi Hans, Idris, All, fonts and color are as such appearance. But, when one uses different fonts and colors or mix then then we add meaning or as you tend to call it structure. If their use does not add to the structure, then only one font style and color is needed. So actually, in the end they

Re: [NTG-context] need defaults for \definehighlight

2015-02-09 Thread Alan BRASLAU
On Sun, 8 Feb 2015 13:56:54 +0100 "Keith J. Schultz" wrote: > As to setting up defaults, the question is their a generic usage of > such ways of for so called highlights. These are, basically, by those > that: 1) like this much fluff > 2) idiosyncratic terminology > > 1) is supposed to avoided!

Re: [NTG-context] need defaults for \definehighlight

2015-02-09 Thread Hans Hagen
On 2/9/2015 12:42 AM, Keith Schultz wrote: Hi Hans, Idris, All, Then we should call it definetag of definestyletag ! It would describe its function better! Like I said I find the command highlight nice because it is alot easier than define my own commands for setting styles with color! it's n

Re: [NTG-context] need defaults for \definehighlight

2015-02-08 Thread Keith Schultz
Hi Hans, Idris, All, Then we should call it definetag of definestyletag ! It would describe its function better! Like I said I find the command highlight nice because it is alot easier than define my own commands for setting styles with color! regards Keith. > Am 08.02.2015 um 15:01 sch

Re: [NTG-context] need defaults for \definehighlight

2015-02-08 Thread Idris Samawi Hamid ادريس سماوي حامد
nto output structure, you need to \definehighlight[emph][style=italic] and use as \emph{emphasized}. == Now \em does have structural meaning (emphasis) so either the wiki is wrong or we have some inconsistency here -) highlights are for the few things left ... but often one can also use

Re: [NTG-context] need defaults for \definehighlight

2015-02-08 Thread Hans Hagen
On 2/8/2015 8:08 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Ok. It's clear that I'm doing a lot of guessing, so question: Can you specify exactly what does *not* get tagged in xml-export? What exactly do we need to worry about? Then we can go from there... everything that has some structur

Re: [NTG-context] need defaults for \definehighlight

2015-02-08 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Wolfgang, On Sun, 08 Feb 2015 12:17:11 -0700, Wolfgang Schuster wrote: Am 08.02.2015 um 15:40 schrieb Idris Samawi Hamid ادريس سماوي حامد : […] There seems to be a bug with \smallcaps. Otherwise I think the above makes a good default set to start with. Hans changed the effect o

Re: [NTG-context] need defaults for \definehighlight

2015-02-08 Thread Wolfgang Schuster
> Am 08.02.2015 um 15:40 schrieb Idris Samawi Hamid ادريس سماوي حامد > : > > […] > > There seems to be a bug with \smallcaps. Otherwise I think the above makes a > good default set to start with. Hans changed the effect of “style=smallcaps”, in the ConTeXt used \sc when you did this setups b

Re: [NTG-context] need defaults for \definehighlight

2015-02-08 Thread Idris Samawi Hamid ادريس سماوي حامد
xml Ok, so I suppose \quote and \quotation already work in the exporter. The following iteration then: = \unprotect \definehighlight[\v!italic] [\c!command=\v!no,\c!style=\v!italic] \definehighlight[\v!bold ] [\c!command=\v!no,\c!style=\v!bold] \definehighlight[\v

Re: [NTG-context] need defaults for \definehighlight

2015-02-08 Thread Wolfgang Schuster
> to it contents. > > The problem is that is this REALLY a Highlight! > > A style and color is applied so, what we have is a use color and style! > > would it not be better to call it > definecharstyle > or > definetextstyle > > For compatibility we could u

  1   2   >