Tag Info

1

A fairly ugly solution follows. In the code that generates the address attribute value, replace all new line characters with a \break{} command (\hfil is probably not needed). For example, in Java: string.replaceAll( "\n", "\\\\\\break{}" ); This will make it through any entity barriers that the XHTML exporter code has in place, with the ...

2

This has been recently discussed in the mailing list (here the message by Hans). You need \nohyphencollapsing which deals both with em-dash and en-dash: \startTEXpage {\nohyphencollapsing Why hello --- -- and how are you?} {Why hello --- -- and how are you?} \stopTEXpage As a note, you have to update your ConTeXt distribution so that this feature is ...

2

ConTeXt, unlike LaTeX and plain TeX, defines ~ as a Unicode non-breaking space (U+00A0) with catcode 12 ("other"), so you shouldn't be surprised it's not being treated as a space in the TeX sense. Instead you need \nonbreakablespace and, if this last command is to uncomfortable to write you may even do the following (better with grouping not to ...

1

NEW ANSWER: If you only need those modes called via the command line, this task is easier. Since ConTeXt stores command line data in the environment namespace, let's take advantage of this: \startluacode local listofcalledmodes = function() local split = string.split local flag = '^--c:mode=' local concat = table.concat for _, v in pairs(...

4

You can use \fullrestoreglobalbodyfont. In the MWE below I defined a command to combine this setting with the selection of a new font size. This setting, unlike the name might suggest, is local to the group. \mainlanguage[en] \setuppapersize[letter] \setupbodyfont[modern,12pt] \define[1]\globalfsize{\fullrestoreglobalbodyfont\switchtobodyfont[#1]} \starttext ...

1

\setuppapersize[S6] \starttext Footnote \startfootnote \blank[-line] \startitemize[before=] \item Item 1 \item Item 2 \stopitemize \stopfootnote \startitemize \item Item 1 \item Item 2 \stopitemize \stoptext

2

Set up the sets: % Block elements \xmlsetsetup{\xmldocument}{blockquote|div|p}{xml:*} \xmlsetsetup{\xmldocument}{blockquote/p}{xml:blockquote:p} \xmlsetsetup{\xmldocument}{blockquote[count(p)=1]}{xml:blockquote:single} \xmlsetsetup{\xmldocument}{blockquote[count(p)=2]/p[position()=first()]}{xml:blockquote:began} \xmlsetsetup{\xmldocument}{blockquote[count(p)=...

1

Well, first you need to print. Second, what do you need to type exactly? Not an Python expert, but according to documentation, (La)TeX printing is available. Only for expository purposes I defined two filters, so choose the one which fits your needs: \usemodule[filter] %It depends on your OS. In mine it's python3 \defineexternalfilter [pythontyping] [...

1

I'm not sure whether or not it counts as a duplicate, but I'll post an answer if helpful. For an example of how defining your own MetaPost backgrounds, you could look at this answer by Wolfgang Schuster. Options for text background alternatives are, e.g., always (applied to the whole text), paragraph and text (applies to words). In the MetaPost side, ...

Top 50 recent answers are included