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

2020-05-18 Thread Wolfgang Schuster
which 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
, 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 ; i := 0.125in ; string

[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
: %% 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 := ""; currentCh

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
by 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

Re: [NTG-context] future versions

2018-07-25 Thread Rik Kabel
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 \emph{} and \strong{} in my projects

Re: [NTG-context] future versions

2018-07-25 Thread Henning Hraban Ramm
ts 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
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
? 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 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 read

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
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: > >

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

2017-11-12 Thread Wolfgang Schuster
ything 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

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 highligh

Re: [NTG-context] problems with XML export

2017-11-12 Thread Henning Hraban Ramm
gt; this works with 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

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 <oi...@gmx.es>: > 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 \def

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
On Mon, Jul 10, 2017 at 8:09 PM, Henri Menke <henrime...@gmail.com> 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. Th

Re: [NTG-context] \textfraction broken?

2017-07-12 Thread Henri Menke
017 at 8:09 PM, Henri Menke <henrime...@gmail.com> 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 <henrime...@gmail.com> 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-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 <bowenala...@gmail.com> wrote: > Has there been

[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

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
llSize Bar1}} {\SmallSize Bar2} Baz. > > > Many thanks for any hint. Perhaps (untested): \definealternativestyle [BigFont] [{\setbodyfont [12pt]}] \definealternativestyle [SmallFont] [{\setbodyfont [8pt]}] \definehighlight [BigSize] [style=BigFont]

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

2016-06-12 Thread Alan BRASLAU
tivestyle [BigFont] [{\setbodyfont [12pt]}] \definealternativestyle [SmallFont] [{\setbodyfont [8pt]}] \definehighlight [BigSize] [style=BigFont] \definehighlight [SmallSize] [style=SmallFont] \BigSize{Foo \SmallSize{Bar1}} \SmallSize{Bar2} Baz.

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
. Then \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 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] \definehighlight

Re: [NTG-context] Custom XML Export

2015-09-12 Thread Toby Miller
t;>> 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? >>> >>> \

Re: [NTG-context] Custom XML Export

2015-09-12 Thread Toby Miller
ent) around some text in the >> output? > > \setupbackend[export=yes] > > \definehighlight[this] > > \starttext > \startelement[what] > \this{that} \input ward > \stopelement > \stoptext > > (there are also ways to add extra properties)

Re: [NTG-context] Custom XML Export

2015-09-12 Thread Hans Hagen
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{that} \input ward \stopelement \stoptext

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

2015-07-27 Thread Rik Kabel
. The \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 pra...@wxs.nl 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

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. However

[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 which I can't

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, just

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 their own

[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] 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] 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] tagging a startstop

2015-03-28 Thread Wolfgang Schuster
Am 28.03.2015 um 19:18 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: 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

Re: [NTG-context] Exporting highlights

2015-03-16 Thread Idris Samawi Hamid ادريس سماوي حامد
] \definehighlight[emphasis] [style=italic] \definehighlight[important][style=bold] \definehighlight[regular][style=\tf] \starttext \startchapter[title=Highlights] \startparagraph This is \emphasis{emphasis}. This is \important{important}. This is \regular{regular}. This is \emphasis{some

[NTG-context] Exporting highlights

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
. 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=Highlights

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 keithjschu...@web.de 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

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

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 Wolfgang Schuster
Am 09.02.2015 um 14:34 schrieb Keith Schultz keithjschu...@icloud.com: 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

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

2015-02-08 Thread Keith J. Schultz
, what we have is a use color and style! would it not be better to call it definecharstyle or definetextstyle For compatibility we could use keep the definehighlight as a synonym. As to setting up defaults, the question is their a generic usage of such ways of for so called highlights

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

2015-02-08 Thread Wolfgang Schuster
. 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 use keep the definehighlight as a synonym. As to setting up

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

2015-02-08 Thread Hans Hagen
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!bolditalic] [\c!command=\v!no,\c!style=\v!bolditalic

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

2015-02-08 Thread Idris Samawi Hamid ادريس سماوي حامد
untagged in the exporter to 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

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

2015-02-08 Thread Wolfgang Schuster
Am 08.02.2015 um 15:40 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: […] 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

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

2015-02-08 Thread Hans Hagen
On 2/8/2015 1:56 PM, Keith J. Schultz wrote: Basically, a highlight allows one so setup a font style and color to be applied to it contents. the only reason why highlight exists is that it can be used to tag stuff that is otherwise untagged in the exporter to xml which is why there is

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

2015-02-08 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Keith, On Sun, 08 Feb 2015 05:56:54 -0700, Keith J. Schultz keithjschu...@web.de wrote: Also, not everybody would want the predefined styles and colors so they will have to be changed in the setuphighlight anyway! Indeed, but the point is not to predefine the styles but to predefine

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

2015-02-08 Thread Idris Samawi Hamid ادريس سماوي حامد
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!bolditalic] [\c!command=\v!no,\c!style=\v!bolditalic] \definehighlight[\v!mono] [\c!command=\v!no,\c!style

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

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 schuster.wolfg...@gmail.com wrote: Am 08.02.2015 um 15:40 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: […] There seems to be a bug with \smallcaps. Otherwise I think the above makes a good

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

2015-02-08 Thread Idris Samawi Hamid ادريس سماوي حامد
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 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

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

2015-02-07 Thread Hans Hagen
On 2/7/2015 2:07 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Thinking of present and future documents (maximum flexibility in converting from format to format), I'm moving from the standard {\em text} to something like \definehighlight[emph][style=italic]. Here's the question

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

2015-02-07 Thread Idris Samawi Hamid ادريس سماوي حامد
is that we won't overload existing commands by default, so redefining is not an option in the core. An option is to provide a set like: \unprotect \definehighlight[\v!italic][\c!command=\v!no,\c!style=\v!italic] \definehighlight[\v!bold ][\c!command=\v!no,\c!style=\v!bold

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

2015-02-07 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 07 Feb 2015 12:33:00 -0700, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: \definehighlight[extraimportant] [\c!command=\v!no,\c!style=\v!bolditalic] \definehighlight[extraimportant] [\c!command=\v!no,\c!style=\v!smallcaps] % \definehighlight

[NTG-context] need defaults for \definehighlight

2015-02-06 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Thinking of present and future documents (maximum flexibility in converting from format to format), I'm moving from the standard {\em text} to something like \definehighlight[emph][style=italic]. Here's the question: Does ConTeXt contain some default highlights that need

Re: [NTG-context] context - docx ??

2015-01-15 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 15 Jan 2015 01:01:37 -0700, Alan BRASLAU alan.bras...@cea.fr wrote: The suggestion of using \definehighlight, etc. is good practice, too. But to be consistent we would have to do this: \definehighlight[important][style=bold] \starttext \startimportant This is important

Re: [NTG-context] context - docx ??

2015-01-15 Thread Wolfgang Schuster
Am 15.01.2015 um 15:43 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: On Thu, 15 Jan 2015 01:01:37 -0700, Alan BRASLAU alan.bras...@cea.fr wrote: The suggestion of using \definehighlight, etc. is good practice, too. But to be consistent we would have to do

Re: [NTG-context] context - docx ??

2015-01-15 Thread Alan BRASLAU
have a hard time understanding the significance (and the non-significance) of blank lines, I try to end all paragraphs with \par. I imagine that \startparagraph ...\stopparagraph would be a better practice in this workflow. \stopdigression The suggestion of using \definehighlight, etc. is good

Re: [NTG-context] context - docx ??

2015-01-14 Thread Aditya Mahajan
info transmitted? Structural elements are exported; raw typographical commands are not. So, you would need: \definehighlight[important][style=bold] \starttext \important{This is important} \stoptext Aditya___

Re: [NTG-context] context - docx ??

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
. Aditya gave some of the answer. But his answer implies that I will have to define a whole bunch of \definehighlight[typography][style=mystyle] commands and change my entire style of writing... Yet another showstopper 3. My assumption is this: If I can get the xml/xhtml file looking right

Re: [NTG-context] context - docx ??

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Aditya, On Wed, 14 Jan 2015 14:38:25 -0700, Aditya Mahajan adit...@umich.edu wrote: Structural elements are exported; raw typographical commands are not. So, you would need: \definehighlight[important][style=bold] \starttext \important{This is important} \stoptext Ok, thanks

Re: [NTG-context] E-books and XML.

2014-08-30 Thread Henning Hraban Ramm
Am 2014-08-29 um 18:46 schrieb Hans Hagen pra...@wxs.nl: Is there already a solution for \em (or \emph) and other switches? They don’t show up in export.xml. use 'highlights' Ah, of course, thanks. Forgot to copy my \definehighlight from the previous ebook project. Greetlings, Hraban

Re: [NTG-context] Bugs in XML export (for ePub)

2014-03-11 Thread Wolfgang Schuster
Am 11.03.2014 um 09:09 schrieb Henning Hraban Ramm te...@fiee.net: more issues: [5] emphasis How to markup emphasize (\em, \bf, \it, \sl) so that it gets exported? {\em Something} doesn’t. You have to create a command for them which add tags, e.g. \definehighlight[important][style

Re: [NTG-context] Simplefonts

2013-10-14 Thread Wolfgang Schuster
by defining a new typeface/family and refer to a certain alternative of this typeface with the \classfont command. \definefontfamily[keywords][ss][DejaVu Sans Mono] \definefont[kword][\classfont{keywords}{Sans} at 13pt] \definehighlight[keyword][style=kword] \starttext Text font \keyword

Re: [NTG-context] XML export and font switches

2013-10-13 Thread Hans Hagen
On 10/13/2013 12:42 AM, Marco Patzer wrote: Hi, certain font switches fail when XML export is used. Example: \setupbackend [export=foo.xml] \definehighlight [emph] [style=\ita] %% \bfa works \starttext \ita Foobar%% works Foo \emph{Bar} %% fails \stoptext LuaTeX error

Re: [NTG-context] XML export and font switches

2013-10-13 Thread Marco Patzer
On 2013–10–13 Hans Hagen wrote: On 10/13/2013 12:42 AM, Marco Patzer wrote: Hi, certain font switches fail when XML export is used. Example: \setupbackend [export=foo.xml] \definehighlight [emph] [style=\ita] %% \bfa works \starttext \ita Foobar%% works Foo \emph

Re: [NTG-context] Feedback wanted on a ConTeXt tutorial

2013-09-29 Thread Marco Patzer
}. % sans serif This is a {\tt test}. % typewriter Rather teach logical markup from the very beginning. \definehighlight [important] [style=bold] \important{This} is logical markup. 6.3 Floats This is arguable, but I personally would drop the (not deprecated and still supported

Re: [NTG-context] Feedback wanted on a ConTeXt tutorial

2013-09-29 Thread Mari Voipio
Rather teach logical markup from the very beginning. True. Not that I follow this advice myself, but probably should (some of my earlier ConTeXt files are - umm - not beautiful because I have some Word baggage). \definehighlight [important] [style=bold] \important{This} is logical

Re: [NTG-context] \definehighlight with style=command problem

2013-05-28 Thread Alan Bowen
: I an trying to use \definehighlight to define a macro that will color and overstrike selected text. Thus far, \definehighlight[Delete][color=red,style={\overstrike}] \starttext test \Delete{test} test \stoptext reports ! Too many }'s. system tex error on line 4 in file

[NTG-context] \definehighlight with style=command problem

2013-05-27 Thread Alan Bowen
I an trying to use \definehighlight to define a macro that will color and overstrike selected text. Thus far, \definehighlight[Delete][color=red,style={\overstrike}] \starttext test \Delete{test} test \stoptext reports ! Too many }'s. system tex error on line 4 in file ...TEST.tex

Re: [NTG-context] \definehighlight with style=command problem

2013-05-27 Thread Alan Bowen
Wonderful, Hans! Many thanks. Alan On Mon, May 27, 2013 at 1:14 PM, Hans Hagen pra...@wxs.nl wrote: On 5/27/2013 3:36 PM, Alan Bowen wrote: I an trying to use \definehighlight to define a macro that will color and overstrike selected text. Thus far, \definehighlight[Delete][**color=red

Re: [NTG-context] \definehighlight with style=command problem

2013-05-27 Thread Wolfgang Schuster
Am 27.05.2013 um 15:36 schrieb Alan Bowen bowenala...@gmail.com: I an trying to use \definehighlight to define a macro that will color and overstrike selected text. Thus far, \definehighlight[Delete][color=red,style={\overstrike}] \starttext test \Delete{test} test \stoptext

  1   2   >