ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: (announcement) from pandoc to ConTeXt
Date: Fri, 10 Jul 2015 19:10:47 +0200	[thread overview]
Message-ID: <559FFC97.4090108@gmx.es> (raw)
In-Reply-To: <559EA9F4.7080600@gmail.com>

On 07/09/2015 07:05 PM, Wolfgang Schuster wrote:
> 
>> Pablo Rodriguez
>> 9. Juli 2015 18:32
>> [...]
>> Here you have the websites:
>>
>> http://www.from-pandoc-to-context.tk
>> https://github.com/ousia/from-pandoc-to-context
> 
> Just a few comments on your code.

Many thanks for your comments, Wolfgang. I really appreciate your help.

Many thanks for all the improvements. The original code only shows my
ignorance related to ConTeXt matters :-).

> 5. Use \define[2]\... or \unexpanded\def\... to create your \href command.

Sorry, but I don’t get it. Why do I need expansion when having more than
one arguments?

BTW, it isn’t clear to me what expansion may be.

> 6. ConTeXt already has a \url command.

To avoid name clashes, I replaced the command with \mypersonalurl.

> 7. Your \url command has two font changes (\tt and \hw) and one should
> be removed.

Yes, but this is the workaround that came to my mind to solve the
following scenario: I may want to a special mono typeface only for urls.
This mono typeface would be different from the general mono font.

The problem when using \setupbodyfont or \switchtobodyfont is that it
doesn’t work with other sizes than the default one.

This sample shows the issue:

    \definefontfamily
        [anothermono]
        [ss]
        [DejaVu Sans Mono]

    \starttext
    \tfxx smaller text with \anothermono\ss second mono.
    \stoptext

Either I define the handwriting or calligraphy font for the same font
family, or I get wrong sizes when using other than the default.

Is this a bug or is my approach wrong?

BTW, if you allow me a question, I’d be very interested in setting up a
\hiddentitle that adds no extra vertical space (I need the \hiddentitle
to be displayed in the PDF bookmarks).

    \setupinteraction[state=start]
    \placebookmarks[chapter,hiddentitle]
    \definehead[hiddentitle][chapter]
    \setuphead
        [hiddentitle]
        [placehead=empty,
         incrementnumber=list,
         number=no,
         before=,
         after=]
    \starttext
         \completecontent
         \startmakeup[copyright][top=]
         \hiddentitle{[Copyright]}
         This document is released to the public...
         \stopmakeup
         \chapter{Foreword}
         aa
         \chapter{Introduction}
    \stoptext

I need to have no space inserted by \hiddentitle. Otherwise, vertical
spacing in makeups won’t work.

Many thanks for your help again,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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:[~2015-07-10 17:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-09 16:32 Pablo Rodriguez
2015-07-09 17:05 ` Wolfgang Schuster
2015-07-10 17:10   ` Pablo Rodriguez [this message]

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=559FFC97.4090108@gmx.es \
    --to=oinos@gmx.es \
    --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).