ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Hyphenation questions
@ 2019-04-24 17:34 Dmitry Starostin
  2019-04-24 17:47 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Starostin @ 2019-04-24 17:34 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 576 bytes --]

1. is there an analog to \hyp{} command from the 'hyphenat' package? Double
words with a dash happen all too often.

2. how to switch language for just three words for correct hyphenation?

3. if the citation in APS format falls out of the right margin, what needs
to be changed to adjust it?

4. In APS, I cannot figure out how to make a space appear between the
numbers for cited sources. [1, p. 1,2, p. 2]. But [1, p. 1, 2, p. 2] is
what is desired. In one case it did appear automatically, but all others
don't work.

\cite[righttext={{{, p.~1}},{{, p.~2}}}][book1,book2]

[-- Attachment #1.2: Type: text/html, Size: 706 bytes --]

[-- Attachment #2: 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] 4+ messages in thread

* Re: Hyphenation questions
  2019-04-24 17:34 Hyphenation questions Dmitry Starostin
@ 2019-04-24 17:47 ` Wolfgang Schuster
  2019-05-01 14:14   ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2019-04-24 17:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Dmitry Starostin

Dmitry Starostin schrieb am 24.04.2019 um 19:34:
> 1. is there an analog to \hyp{} command from the 'hyphenat' package? 
> Double words with a dash happen all too often.

1. Add \setbreakpoints[compound] to enable a line break at a hyphen.

\setbreakpoints[compound]

\starttext
electromagnetic-endioscopy
\stoptext

2. Use || to insert a breakable hyphen.

\starttext
electromagnetic||endioscopy
\stoptext

> 2. how to switch language for just three words for correct hyphenation?

\starttext
English ... \language[de]{Deutsch}
\stoptext

Wolfgang

___________________________________________________________________________________
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] 4+ messages in thread

* Re: Hyphenation questions
  2019-04-24 17:47 ` Wolfgang Schuster
@ 2019-05-01 14:14   ` Henning Hraban Ramm
  2019-05-01 17:40     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2019-05-01 14:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2019-04-24 um 19:47 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:

> Dmitry Starostin schrieb am 24.04.2019 um 19:34:
>> 1. is there an analog to \hyp{} command from the 'hyphenat' package? Double words with a dash happen all too often.
> 
> 1. Add \setbreakpoints[compound] to enable a line break at a hyphen.
> 
> \setbreakpoints[compound]
> 
> \starttext
> electromagnetic-endioscopy
> \stoptext
> 
> 2. Use || to insert a breakable hyphen.
> 
> \starttext
> electromagnetic||endioscopy
> \stoptext
> 
>> 2. how to switch language for just three words for correct hyphenation?
> 
> \starttext
> English ... \language[de]{Deutsch}
> \stoptext

Shouldn’t that be

\starttext
English ... {\language[de]Deutsch}
\stoptext

?

For most languages you can also use their shortcut, e.g. \de, \ru, \en – but not \it (italic, not Italian) or \sl (slanted, not Slowenian).

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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] 4+ messages in thread

* Re: Hyphenation questions
  2019-05-01 14:14   ` Henning Hraban Ramm
@ 2019-05-01 17:40     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2019-05-01 17:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm

Henning Hraban Ramm schrieb am 01.05.2019 um 16:14:
>>> 2. how to switch language for just three words for correct hyphenation?
>> \starttext
>> English ... \language[de]{Deutsch}
>> \stoptext
> Shouldn’t that be
>
> \starttext
> English ... {\language[de]Deutsch}
> \stoptext
>
> ?
Yes, the brace should be before \language because the command is switch 
to change the language.

Wolfgang

___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2019-05-01 17:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24 17:34 Hyphenation questions Dmitry Starostin
2019-04-24 17:47 ` Wolfgang Schuster
2019-05-01 14:14   ` Henning Hraban Ramm
2019-05-01 17:40     ` Wolfgang Schuster

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