ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [bug?] no space before \cite[data][] and after \abbreviation
Date: Thu, 22 May 2014 16:15:22 +0200	[thread overview]
Message-ID: <D74FF5BF-B552-4E5A-91C8-5C9EDFB7FEFC@gmail.com> (raw)
In-Reply-To: <DUB131-W115E46376F645DAA7A4625B13F0@phx.gbl>


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


Am 22.05.2014 um 14:35 schrieb pol stra <ryzz@hotmail.fr>:

> Hello,
> 
> I used "see \cite[data]" in a document and I obtained "seeAuthor" without space between "see" and "Author". I think it is a bug.
> 
> I also had troubles with abbreviations (although it might be a bad use from myself):
> setting "\abbreviation{AB}{Abbreviation}"
> 
> "an \AB some text" will give "an ABsome text" => missing space after abbreviation
> "an {\AB} some text" will give "an AB some text" => OK
> "an \infull{AB} some text" will give "an  some text" => missing expanded abbreviation

Spaces after commands (e.g. \TeX) are ignored, to keep the space you have to add “\ ” or “{} ” after the command.

\abbreviation{AB}{Abbreviation}

\starttext
text \AB\ text \AB{} \infull{AB} text
\stoptext


There is also a automatic way for this where you don’t have add any thing after the command but there are a few exceptions where this doesn’t work.

\abbreviation{AB}{Abbreviation}

\setupsynonyms
  [abbreviation]
  [next=\autoinsertnextspace]

\starttext
text \AB text
\stoptext

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2014-05-22 14:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-22 12:35 pol stra
2014-05-22 14:15 ` Wolfgang Schuster [this message]
2014-05-25  7:27   ` Pol Stra
2014-05-27 14:38     ` Wolfgang Schuster
2014-05-28  9:37       ` pol stra
2014-06-05  9:10         ` Wolfgang Schuster

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=D74FF5BF-B552-4E5A-91C8-5C9EDFB7FEFC@gmail.com \
    --to=schuster.wolfgang@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).