From: Jan Willem Flamma <register12c@gmail.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: using modeset
Date: Thu, 11 Jun 2020 10:41:31 +0200 [thread overview]
Message-ID: <C09CC956-F32A-4AEE-B8F6-35BC8A01A2ED@hxcore.ol> (raw)
[-- Attachment #1: Type: text/html, Size: 7082 bytes --]
[-- Attachment #2: test_modeset.pdf --]
[-- Type: application/pdf, Size: 10810 bytes --]
[-- Attachment #3: test_modeset.tex --]
[-- Type: application/octet-stream, Size: 1783 bytes --]
\useMPlibrary[dum]
\setupinteraction
[state=start,
style=,
color=,
contrastcolor=,
openaction=FitWindow]
\placebookmarks[chapter,section]
%\enablemode[en]
\enablemode[nl]
\enablemode[l2]
\enablemode[l4]
\starttext
\completecontent
%TOC works correctly but the PDF bookmarks text is not correct
\startchapter[
title={\doifmode{en}{English Chapter Title}\doifmode{nl}{Dutch Chapter Title}},
bookmarks{\doifmode{en}{English Chapter Title}\doifmode{nl}{Dutch Chapter Title}}]
\startmodeset
[en] {
\startsection[title={English section title}]
Generic English text.
\startmodeset
[l2] {
This is English L2 text.}
[l4] {
This is English L4 text.}
\stopmodeset
\stopsection
}
% Place a figure inbetween two modeset cases does not work
%\startplacefigure[title={
% \doifmode{en}{English caption}
% \doifmode{nl}{Dutch caption}}]
% \externalfigure[dummy][width=0.4\textwidth]
%\stopplacefigure
[nl] {
\startsection[title={Dutch Section Title}]
Generic Dutch text.
% No space between the L2 and L4 sentences, expected
\startmodeset
[l2] {This is Dutch L2 text.}
[l4] {This is Dutch L4 text.}
\stopmodeset
% One space between L2 and L4 sentences, expected
\startmodeset
[l2] {This is Dutch L2 text.
}
[l4] {This is Dutch L4 text.
}
\stopmodeset
% Two spaces between the L2 and L4 sentences, not expected !
\startmodeset
[l2] {
This is Dutch L2 text.
}
[l4] {
This is Dutch L4 text.
}
\stopmodeset
\stopsection
}
\stopmodeset
\stopsection
\stopchapter
\stoptext
[-- Attachment #4: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2020-06-11 8:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-11 8:41 Jan Willem Flamma [this message]
2020-06-11 9:34 ` Wolfgang Schuster
2020-06-11 18:53 ` BPJ
2020-06-12 5:29 ` r.ermers
2020-06-12 9:26 ` Jan Willem Flamma
2020-06-15 18:23 ` Henning Hraban Ramm
2020-06-17 12:13 ` Jan Willem Flamma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C09CC956-F32A-4AEE-B8F6-35BC8A01A2ED@hxcore.ol \
--to=register12c@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).