ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* using modeset
@ 2020-06-11  8:41 Jan Willem Flamma
  2020-06-11  9:34 ` Wolfgang Schuster
  2020-06-11 18:53 ` BPJ
  0 siblings, 2 replies; 7+ messages in thread
From: Jan Willem Flamma @ 2020-06-11  8:41 UTC (permalink / raw)
  To: ntg-context

[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-06-17 12:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11  8:41 using modeset Jan Willem Flamma
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

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