Hi Hans,
please consider the following example.
\setupbackend[export=yes,xhtml=yes,css=yes]
\setupheadertexts[{\startelement[header] test \stopelement}]
\starttext
\startbuffer
\startparagraph
\input tufte
\stopparagraph
\startparagraph
\input ward
\stopparagraph
\stopbuffer
to be
fixed wrapping the paragraph with \startparagraph \stopparagraph. I
assume this is the right thing to do for a proper export, isn't it?
Indeed. On and off I'm trying to make the automatic recognition more
clever but too much guessing is bad too.
Btw, is there a way to run context just for the xml
I think I'm hitting another bug with highlights:
See this following example:
%%% start example
\setupbackend[export=yes]
\definehighlight[emph][style=italic]
\starttext
\startparagraph
Published on \dontleavehmode\emph{Dissonanze} vol. I
\stopparagraph
\startparagraph
Published on vol. I
[huge]
\definepapersize[huge][width=4000mm]
\setuppapersize[huge][huge]
\setupbodyfont[8pt]
\stopmode
\starttext
\startparagraph
Published on \dontleavehmode\emph{Dissonanze} vol. I
\stopparagraph
\startparagraph
Published on vol. I Published on vol. I Published on vol. I Published
with \startparagraph \stopparagraph. I
assume this is the right thing to do for a proper export, isn't it?
Btw, is there a way to run context just for the xml output (as I'm doing
conditional runs, and I discard the pdf which comes with the xml as a
side effect). context --help doesn't seem
Hi,
I am using the \startsection (\startparagraph ...) to structure my
document and export it to XML. But for all the environments, for each
\startsection I have to put a \stopsection even if I start a new section
right after.
Is it be possible to automatically stop the previous section
On 7-10-2011 18:24, Charles wrote:
Hi,
I am using the \startsection (\startparagraph ...) to structure my
document and export it to XML. But for all the environments, for each
\startsection I have to put a \stopsection even if I start a new section
right after.
Is it be possible
On Fri, Oct 7, 2011 at 18:24, Charles wrote:
Hi,
I am using the \startsection (\startparagraph ...) to structure my document
and export it to XML. But for all the environments, for each \startsection I
have to put a \stopsection even if I start a new section right after.
Configure your text
Am 07.10.2011 um 20:24 schrieb Mojca Miklavec:
On Fri, Oct 7, 2011 at 18:24, Charles wrote:
Hi,
I am using the \startsection (\startparagraph ...) to structure my document
and export it to XML. But for all the environments, for each \startsection I
have to put a \stopsection even if I
Am 20.07.2011 um 14:24 schrieb Hans Hagen:
On 19-7-2011 7:25, Wolfgang Schuster wrote:
Can you then also add a few features:
- Headings use \startstructurelevel
- Paragraphs are enclosed in startparagraph/stopparagraph
- emphasis and bold styles use \definehiglight command
to make
On 19-7-2011 7:25, Wolfgang Schuster wrote:
Can you then also add a few features:
- Headings use \startstructurelevel
- Paragraphs are enclosed in startparagraph/stopparagraph
- emphasis and bold styles use \definehiglight command
to make it possible to change the layout of markdown documents
add a few features:
- Headings use \startstructurelevel
- Paragraphs are enclosed in startparagraph/stopparagraph
- emphasis and bold styles use \definehiglight command
to make it possible to change the layout of markdown documents
where ConTeXt is only used to produce a PDF.
Wolfgang
the wrong margin width is often
used.
\unexpanded\def\startParagraph
{\dosingleempty\dostartParagraph}
\def\dostartParagraph[#1]%
{\getrawparameters[Paragraph][heading=,mark=,#1]%
\incrementnumber[ParagraphNumber]%
\ininner{\tfx\getnumber
%Define paragraph command
\definenumber[ParagraphNumber][way=bysection,prefixsegments=100]
\unexpanded\def\startParagraph
{\dosingleempty\dostartParagraph}
\def\dostartParagraph[#1]%
{\getrawparameters[Paragraph][heading=,mark=,#1]%
\incrementnumber[ParagraphNumber]%
\ininner{\tfx
\Umathquad\displaystyle is not set ...
52 \startparagraph \input zapf (Zapf) \stopparagraph
53
54 \startdescription {Ward} \input ward \stopdescription
55
56 \startdescription {Tufte} \input tufte \stopdescription
57
58 \startparagraph \input knuth (Knuth) \stopparagraph
]
\setupindenting[yes,-2em]
\input knuth
\stopnarrower
\stoptext
---
But I would like to ask whether this way is clean enough and/or there is a better
way, especially via a kind of \setupsomething command, e.g. something like:
\setupparagraph[MySpecialParagraph][first=0pt,next=2em]
...
\startparagraph
of \setupsomething command,
e.g. something like:
\setupparagraph[MySpecialParagraph][first=0pt,next=2em]
...
\startparagraph[MySpecialParagraph]
Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ.
\stopparagraph
% or:
\startMySpecialParagraph
Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL
\stopnarrower
\stoptext
---
But I would like to ask whether this way is clean enough and/or there
is a better way, especially via a kind of \setupsomething command,
e.g. something like:
\setupparagraph[MySpecialParagraph][first=0pt,next=2em]
...
\startparagraph[MySpecialParagraph]
Abc defhi jklm
}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}
\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:b
\startparagraph
\xmlflush{#1}
\stopparagraph
\stopxmlsetups
\startxmlsetups xml:chapter
\doifelse {\xmlatt{#1}{num}} {}
{\setuphead[chapter][number
{\xmldocument}{num}{-}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}
\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:b
\startparagraph
\xmlflush{#1}
\stopparagraph
\stopxmlsetups
\startxmlsetups xml:ueberForceFlush
\xmlflush{#1}
\stopxmlsetups
}{a|b|chapter}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}
\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:b
\startparagraph
\xmlflush{#1}
\stopparagraph
\stopxmlsetups
\startxmlsetups xml:chapter
\doifelse {\xmlatt{#1}{num}} {}
{\setuphead[chapter
/a
\stopbuffer
\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{a|b|title}{xml:*}
\xmlsetsetup{\xmldocument}{num}{-}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}
\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:b
\startparagraph
\xmlflush{#1
be a very good starting point. In fact, in the moment at the
position where a pagebreak occurs, the space (if it occurs at a space)
is eaten up. Minimal example:
\setupbackend [export=yes]
\starttext
\startchapter [title=Tufte Example]
\startparagraph
\dorecurse{10}{\input tufte}
\stopparagraph
, in the moment at the
position where a pagebreak occurs, the space (if it occurs at a space)
is eaten up. Minimal example:
\setupbackend [export=yes]
\starttext
\startchapter [title=Tufte Example]
\startparagraph
\dorecurse{10}{\input tufte}
\stopparagraph
\stopchapter
\stoptext
of “\dontleavehmode” if you set up the paragraph
auto-indentation to “yes,medium”:
8···
\setupindenting[yes,medium] % comment this out and it works again
\usemodule[lettrine]
\starttext
\chapter{Some Section}
\startparagraph
\dontleavehmode
Section}
\startparagraph
\dontleavehmode\lettrine{D}{on Knuth asserts:}
\input knuth
\stopparagraph
\stoptext
8···
This results, again, in the glue node error.
we know and we will take a look at it next week (as it takes some time
to nail
Minimal example (given at the workshop):
\setupbackend [export=yes]
\starttext
\startchapter [title=First chapter]
\startparagraph
\input ward
\stopparagraph
\stopchapter
\stoptext
On Wednesday 22 September 2010 14:18:18 Otared Kavian wrote:
On 22 sept. 2010, at 14:06, Yury G
Am 22.09.2010 um 14:25 schrieb Alan BRASLAU:
\setupbackend [export=yes]
\starttext
\startchapter [title=First chapter]
\startparagraph
\input ward
\stopparagraph
\stopchapter
\stoptext
Results in Undefined control sequence. \setupbackend (newest beta; OS X) …
Greeting
On Wednesday 22 September 2010 14:29:08 Andreas Harder wrote:
Am 22.09.2010 um 14:25 schrieb Alan BRASLAU:
\setupbackend [export=yes]
\starttext
\startchapter [title=First chapter]
\startparagraph
\input ward
\stopparagraph
\stopchapter
\stoptext
Hi,
there seems to be a confusion in contextgarden (at least *I* am confused):
Isn't there also a setup for \startparagraph ... \stopparagraph???
\defineparagraphs is something different, no?
See
http://wiki.contextgarden.net/Reference/en/startparagraph
Reference/en/startparagraph
Am 11.08.10 21:20, schrieb Steffen Wolfrum:
Hi,
there seems to be a confusion in contextgarden (at least *I* am confused):
Isn't there also a setup for \startparagraph ... \stopparagraph???
This should be \startPARAGRAPH ... \stopPARAGRAPH where PARAGRAPH stands
for the name
Am 11.08.2010 um 21:28 schrieb Wolfgang Schuster:
Am 11.08.10 21:20, schrieb Steffen Wolfrum:
Hi,
there seems to be a confusion in contextgarden (at least *I* am confused):
Isn't there also a setup for \startparagraph ... \stopparagraph???
This should be \startPARAGRAPH
Am 11.08.10 21:32, schrieb Steffen Wolfrum:
there seems to be a confusion in contextgarden (at least *I* am confused):
Isn't there also a setup for \startparagraph ... \stopparagraph???
This should be \startPARAGRAPH ... \stopPARAGRAPH where PARAGRAPH stands
for the name of the environment
On 11-8-2010 9:38, Wolfgang Schuster wrote:
Am 11.08.10 21:32, schrieb Steffen Wolfrum:
there seems to be a confusion in contextgarden (at least *I* am
confused):
Isn't there also a setup for \startparagraph ... \stopparagraph???
This should be \startPARAGRAPH ... \stopPARAGRAPH where
Am 11.08.10 21:44, schrieb Hans Hagen:
Exactly. And is there also a dedicated setup for \startparagraph ...
\stopparagraph?
No because the environment adds only tags before and after the
environment, nothing else.
indeed. but there will be something someday; maybe we should reserve
On 11-8-2010 9:49, Wolfgang Schuster wrote:
Am 11.08.10 21:44, schrieb Hans Hagen:
Exactly. And is there also a dedicated setup for \startparagraph ...
\stopparagraph?
No because the environment adds only tags before and after the
environment, nothing else.
indeed
], many command (like
itemize,
headers, tabulate, natural tables) have it build-in, for others you can use
\startelement[tag]
...
\stopelement
To tag paragraphs you need
\startparagraph ... \stopparagraph
Wolfgang
\stopnotmode
\startopposite \stopopposite
\startoverlay{text}{text} \stopoverlay
\startoverview[names] \stopoverview
\startpacked[blank] \stoppacked
\startparagraph \stopparagraph
\startpositioning \stoppositioning
\startpostponing \stoppostponing
\startproduct file \stopproduct
\startprofile[names
]
\starttext
\chapter{first heading}
\section{hamha}
\startparagraph\paragraphMark[ref1]\paragraphHeading{tztzttzt}
blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla blabla
Peter Münster wrote:
Hello,
how could I place a footnote in a startParagraph environment?
\defineparagraphs[Par][n=3]
\starttext
\startPar
bla\Par bla\footnote{a footnote, that gets hidden...}\Par bla
\stopPar
\stoptext
\startPar
bla\Par bla\postponefootnotes\footnote{a footnote, that gets
Hello,
how could I place a footnote in a startParagraph environment?
\defineparagraphs[Par][n=3]
\starttext
\startPar
bla\Par bla\footnote{a footnote, that gets hidden...}\Par bla
\stopPar
\stoptext
Greetings, Peter
--
http://pmrb.free.fr/contact
201 - 241 of 241 matches
Mail list logo